Merged revisions 134814 via svnmerge from
[asterisk-bristuff.git] / configure
blobfcc31b37d308f397441a4de71978c443bb374385
1 #! /bin/sh
2 # From configure.ac Revision: 134538 .
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 DAHDI_LIB
748 DAHDI_INCLUDE
749 DAHDI_DIR
750 PBX_DAHDI
751 FFMPEG_LIB
752 FFMPEG_INCLUDE
753 FFMPEG_DIR
754 PBX_FFMPEG
755 GSM_LIB
756 GSM_INCLUDE
757 GSM_DIR
758 PBX_GSM
759 GTK_LIB
760 GTK_INCLUDE
761 GTK_DIR
762 PBX_GTK
763 GTK2_LIB
764 GTK2_INCLUDE
765 GTK2_DIR
766 PBX_GTK2
767 GMIME_LIB
768 GMIME_INCLUDE
769 GMIME_DIR
770 PBX_GMIME
771 ICONV_LIB
772 ICONV_INCLUDE
773 ICONV_DIR
774 PBX_ICONV
775 IKSEMEL_LIB
776 IKSEMEL_INCLUDE
777 IKSEMEL_DIR
778 PBX_IKSEMEL
779 IMAP_TK_LIB
780 IMAP_TK_INCLUDE
781 IMAP_TK_DIR
782 PBX_IMAP_TK
783 ISDNNET_LIB
784 ISDNNET_INCLUDE
785 ISDNNET_DIR
786 PBX_ISDNNET
787 JACK_LIB
788 JACK_INCLUDE
789 JACK_DIR
790 PBX_JACK
791 LDAP_LIB
792 LDAP_INCLUDE
793 LDAP_DIR
794 PBX_LDAP
795 LTDL_LIB
796 LTDL_INCLUDE
797 LTDL_DIR
798 PBX_LTDL
799 LUA_LIB
800 LUA_INCLUDE
801 LUA_DIR
802 PBX_LUA
803 MISDN_LIB
804 MISDN_INCLUDE
805 MISDN_DIR
806 PBX_MISDN
807 NBS_LIB
808 NBS_INCLUDE
809 NBS_DIR
810 PBX_NBS
811 NCURSES_LIB
812 NCURSES_INCLUDE
813 NCURSES_DIR
814 PBX_NCURSES
815 NETSNMP_LIB
816 NETSNMP_INCLUDE
817 NETSNMP_DIR
818 PBX_NETSNMP
819 NEWT_LIB
820 NEWT_INCLUDE
821 NEWT_DIR
822 PBX_NEWT
823 UNIXODBC_LIB
824 UNIXODBC_INCLUDE
825 UNIXODBC_DIR
826 PBX_UNIXODBC
827 OGG_LIB
828 OGG_INCLUDE
829 OGG_DIR
830 PBX_OGG
831 OSPTK_LIB
832 OSPTK_INCLUDE
833 OSPTK_DIR
834 PBX_OSPTK
835 OSS_LIB
836 OSS_INCLUDE
837 OSS_DIR
838 PBX_OSS
839 PGSQL_LIB
840 PGSQL_INCLUDE
841 PGSQL_DIR
842 PBX_PGSQL
843 POPT_LIB
844 POPT_INCLUDE
845 POPT_DIR
846 PBX_POPT
847 PORTAUDIO_LIB
848 PORTAUDIO_INCLUDE
849 PORTAUDIO_DIR
850 PBX_PORTAUDIO
851 PRI_LIB
852 PRI_INCLUDE
853 PRI_DIR
854 PBX_PRI
855 RESAMPLE_LIB
856 RESAMPLE_INCLUDE
857 RESAMPLE_DIR
858 PBX_RESAMPLE
859 SPANDSP_LIB
860 SPANDSP_INCLUDE
861 SPANDSP_DIR
862 PBX_SPANDSP
863 SS7_LIB
864 SS7_INCLUDE
865 SS7_DIR
866 PBX_SS7
867 PWLIB_LIB
868 PWLIB_INCLUDE
869 PWLIB_DIR
870 PBX_PWLIB
871 OPENH323_LIB
872 OPENH323_INCLUDE
873 OPENH323_DIR
874 PBX_OPENH323
875 RADIUS_LIB
876 RADIUS_INCLUDE
877 RADIUS_DIR
878 PBX_RADIUS
879 SDL_LIB
880 SDL_INCLUDE
881 SDL_DIR
882 PBX_SDL
883 SDL_IMAGE_LIB
884 SDL_IMAGE_INCLUDE
885 SDL_IMAGE_DIR
886 PBX_SDL_IMAGE
887 OPENAIS_LIB
888 OPENAIS_INCLUDE
889 OPENAIS_DIR
890 PBX_OPENAIS
891 SPEEX_LIB
892 SPEEX_INCLUDE
893 SPEEX_DIR
894 PBX_SPEEX
895 SPEEXDSP_LIB
896 SPEEXDSP_INCLUDE
897 SPEEXDSP_DIR
898 PBX_SPEEXDSP
899 SQLITE_LIB
900 SQLITE_INCLUDE
901 SQLITE_DIR
902 PBX_SQLITE
903 SQLITE3_LIB
904 SQLITE3_INCLUDE
905 SQLITE3_DIR
906 PBX_SQLITE3
907 SUPPSERV_LIB
908 SUPPSERV_INCLUDE
909 SUPPSERV_DIR
910 PBX_SUPPSERV
911 OPENSSL_LIB
912 OPENSSL_INCLUDE
913 OPENSSL_DIR
914 PBX_OPENSSL
915 FREETDS_LIB
916 FREETDS_INCLUDE
917 FREETDS_DIR
918 PBX_FREETDS
919 TERMCAP_LIB
920 TERMCAP_INCLUDE
921 TERMCAP_DIR
922 PBX_TERMCAP
923 TINFO_LIB
924 TINFO_INCLUDE
925 TINFO_DIR
926 PBX_TINFO
927 TONEZONE_LIB
928 TONEZONE_INCLUDE
929 TONEZONE_DIR
930 PBX_TONEZONE
931 USB_LIB
932 USB_INCLUDE
933 USB_DIR
934 PBX_USB
935 VORBIS_LIB
936 VORBIS_INCLUDE
937 VORBIS_DIR
938 PBX_VORBIS
939 VPB_LIB
940 VPB_INCLUDE
941 VPB_DIR
942 PBX_VPB
943 X11_LIB
944 X11_INCLUDE
945 X11_DIR
946 PBX_X11
947 ZLIB_LIB
948 ZLIB_INCLUDE
949 ZLIB_DIR
950 PBX_ZLIB
951 ALLOCA
952 LIBOBJS
953 POW_LIB
954 HAS_POLL
955 PBX_PTHREAD_RWLOCK_INITIALIZER
956 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
957 GC_CFLAGS
958 GC_LDFLAGS
959 AST_DECLARATION_AFTER_STATEMENT
960 AST_NO_STRICT_OVERFLOW
961 PBX_RTLD_NOLOAD
962 PBX_IP_MTU_DISCOVER
963 GSM_INTERNAL
964 PBX_MISDN_FAC_RESULT
965 PBX_MISDN_FAC_ERROR
966 CONFIG_NETSNMP
967 PG_CONFIG
968 PTLIB_CONFIG
969 PWLIBDIR
970 PWLIB_INCDIR
971 PWLIB_LIBDIR
972 PWLIB_PLATFORM
973 OPENH323DIR
974 OPENH323_INCDIR
975 OPENH323_LIBDIR
976 OPENH323_SUFFIX
977 OPENH323_BUILD
978 PBX_AIS
979 AIS_INCLUDE
980 AIS_LIB
981 PBX_SPEEX_PREPROCESS
982 CONFIG_GMIME
983 EDITLINE_LIB
984 PBX_H323
985 PBX_IXJUSER
986 CONFIG_SDL
987 CONFIG_GTK
988 PKGCONFIG
989 CURL_CONFIG
990 LTLIBOBJS'
991 ac_subst_files=''
992 ac_precious_vars='build_alias
993 host_alias
994 target_alias
996 CFLAGS
997 LDFLAGS
998 LIBS
999 CPPFLAGS
1002 CXXFLAGS
1004 CXXCPP'
1007 # Initialize some variables set by options.
1008 ac_init_help=
1009 ac_init_version=false
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file=/dev/null
1013 exec_prefix=NONE
1014 no_create=
1015 no_recursion=
1016 prefix=NONE
1017 program_prefix=NONE
1018 program_suffix=NONE
1019 program_transform_name=s,x,x,
1020 silent=
1021 site=
1022 srcdir=
1023 verbose=
1024 x_includes=NONE
1025 x_libraries=NONE
1027 # Installation directory options.
1028 # These are left unexpanded so users can "make install exec_prefix=/foo"
1029 # and all the variables that are supposed to be based on exec_prefix
1030 # by default will actually change.
1031 # Use braces instead of parens because sh, perl, etc. also accept them.
1032 # (The list follows the same order as the GNU Coding Standards.)
1033 bindir='${exec_prefix}/bin'
1034 sbindir='${exec_prefix}/sbin'
1035 libexecdir='${exec_prefix}/libexec'
1036 datarootdir='${prefix}/share'
1037 datadir='${datarootdir}'
1038 sysconfdir='${prefix}/etc'
1039 sharedstatedir='${prefix}/com'
1040 localstatedir='${prefix}/var'
1041 includedir='${prefix}/include'
1042 oldincludedir='/usr/include'
1043 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1044 infodir='${datarootdir}/info'
1045 htmldir='${docdir}'
1046 dvidir='${docdir}'
1047 pdfdir='${docdir}'
1048 psdir='${docdir}'
1049 libdir='${exec_prefix}/lib'
1050 localedir='${datarootdir}/locale'
1051 mandir='${datarootdir}/man'
1053 ac_prev=
1054 ac_dashdash=
1055 for ac_option
1057 # If the previous option needs an argument, assign it.
1058 if test -n "$ac_prev"; then
1059 eval $ac_prev=\$ac_option
1060 ac_prev=
1061 continue
1064 case $ac_option in
1065 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 *) ac_optarg=yes ;;
1067 esac
1069 # Accept the important Cygnus configure options, so we can diagnose typos.
1071 case $ac_dashdash$ac_option in
1073 ac_dashdash=yes ;;
1075 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076 ac_prev=bindir ;;
1077 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078 bindir=$ac_optarg ;;
1080 -build | --build | --buil | --bui | --bu)
1081 ac_prev=build_alias ;;
1082 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083 build_alias=$ac_optarg ;;
1085 -cache-file | --cache-file | --cache-fil | --cache-fi \
1086 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087 ac_prev=cache_file ;;
1088 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090 cache_file=$ac_optarg ;;
1092 --config-cache | -C)
1093 cache_file=config.cache ;;
1095 -datadir | --datadir | --datadi | --datad)
1096 ac_prev=datadir ;;
1097 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098 datadir=$ac_optarg ;;
1100 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101 | --dataroo | --dataro | --datar)
1102 ac_prev=datarootdir ;;
1103 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105 datarootdir=$ac_optarg ;;
1107 -disable-* | --disable-*)
1108 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1114 eval enable_$ac_feature=no ;;
1116 -docdir | --docdir | --docdi | --doc | --do)
1117 ac_prev=docdir ;;
1118 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1119 docdir=$ac_optarg ;;
1121 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1122 ac_prev=dvidir ;;
1123 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1124 dvidir=$ac_optarg ;;
1126 -enable-* | --enable-*)
1127 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1131 { (exit 1); exit 1; }; }
1132 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1133 eval enable_$ac_feature=\$ac_optarg ;;
1135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1137 | --exec | --exe | --ex)
1138 ac_prev=exec_prefix ;;
1139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1141 | --exec=* | --exe=* | --ex=*)
1142 exec_prefix=$ac_optarg ;;
1144 -gas | --gas | --ga | --g)
1145 # Obsolete; use --with-gas.
1146 with_gas=yes ;;
1148 -help | --help | --hel | --he | -h)
1149 ac_init_help=long ;;
1150 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1151 ac_init_help=recursive ;;
1152 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1153 ac_init_help=short ;;
1155 -host | --host | --hos | --ho)
1156 ac_prev=host_alias ;;
1157 -host=* | --host=* | --hos=* | --ho=*)
1158 host_alias=$ac_optarg ;;
1160 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1161 ac_prev=htmldir ;;
1162 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1163 | --ht=*)
1164 htmldir=$ac_optarg ;;
1166 -includedir | --includedir | --includedi | --included | --include \
1167 | --includ | --inclu | --incl | --inc)
1168 ac_prev=includedir ;;
1169 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1170 | --includ=* | --inclu=* | --incl=* | --inc=*)
1171 includedir=$ac_optarg ;;
1173 -infodir | --infodir | --infodi | --infod | --info | --inf)
1174 ac_prev=infodir ;;
1175 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1176 infodir=$ac_optarg ;;
1178 -libdir | --libdir | --libdi | --libd)
1179 ac_prev=libdir ;;
1180 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1181 libdir=$ac_optarg ;;
1183 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1184 | --libexe | --libex | --libe)
1185 ac_prev=libexecdir ;;
1186 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1187 | --libexe=* | --libex=* | --libe=*)
1188 libexecdir=$ac_optarg ;;
1190 -localedir | --localedir | --localedi | --localed | --locale)
1191 ac_prev=localedir ;;
1192 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1193 localedir=$ac_optarg ;;
1195 -localstatedir | --localstatedir | --localstatedi | --localstated \
1196 | --localstate | --localstat | --localsta | --localst | --locals)
1197 ac_prev=localstatedir ;;
1198 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1199 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1200 localstatedir=$ac_optarg ;;
1202 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1203 ac_prev=mandir ;;
1204 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1205 mandir=$ac_optarg ;;
1207 -nfp | --nfp | --nf)
1208 # Obsolete; use --without-fp.
1209 with_fp=no ;;
1211 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1212 | --no-cr | --no-c | -n)
1213 no_create=yes ;;
1215 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1216 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1217 no_recursion=yes ;;
1219 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1220 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1221 | --oldin | --oldi | --old | --ol | --o)
1222 ac_prev=oldincludedir ;;
1223 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1224 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1225 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1226 oldincludedir=$ac_optarg ;;
1228 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1229 ac_prev=prefix ;;
1230 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1231 prefix=$ac_optarg ;;
1233 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1234 | --program-pre | --program-pr | --program-p)
1235 ac_prev=program_prefix ;;
1236 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1237 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1238 program_prefix=$ac_optarg ;;
1240 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1241 | --program-suf | --program-su | --program-s)
1242 ac_prev=program_suffix ;;
1243 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1244 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1245 program_suffix=$ac_optarg ;;
1247 -program-transform-name | --program-transform-name \
1248 | --program-transform-nam | --program-transform-na \
1249 | --program-transform-n | --program-transform- \
1250 | --program-transform | --program-transfor \
1251 | --program-transfo | --program-transf \
1252 | --program-trans | --program-tran \
1253 | --progr-tra | --program-tr | --program-t)
1254 ac_prev=program_transform_name ;;
1255 -program-transform-name=* | --program-transform-name=* \
1256 | --program-transform-nam=* | --program-transform-na=* \
1257 | --program-transform-n=* | --program-transform-=* \
1258 | --program-transform=* | --program-transfor=* \
1259 | --program-transfo=* | --program-transf=* \
1260 | --program-trans=* | --program-tran=* \
1261 | --progr-tra=* | --program-tr=* | --program-t=*)
1262 program_transform_name=$ac_optarg ;;
1264 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1265 ac_prev=pdfdir ;;
1266 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1267 pdfdir=$ac_optarg ;;
1269 -psdir | --psdir | --psdi | --psd | --ps)
1270 ac_prev=psdir ;;
1271 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1272 psdir=$ac_optarg ;;
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1276 silent=yes ;;
1278 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1279 ac_prev=sbindir ;;
1280 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1281 | --sbi=* | --sb=*)
1282 sbindir=$ac_optarg ;;
1284 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1285 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1286 | --sharedst | --shareds | --shared | --share | --shar \
1287 | --sha | --sh)
1288 ac_prev=sharedstatedir ;;
1289 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1290 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1291 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1292 | --sha=* | --sh=*)
1293 sharedstatedir=$ac_optarg ;;
1295 -site | --site | --sit)
1296 ac_prev=site ;;
1297 -site=* | --site=* | --sit=*)
1298 site=$ac_optarg ;;
1300 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1301 ac_prev=srcdir ;;
1302 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1303 srcdir=$ac_optarg ;;
1305 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1306 | --syscon | --sysco | --sysc | --sys | --sy)
1307 ac_prev=sysconfdir ;;
1308 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1309 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1310 sysconfdir=$ac_optarg ;;
1312 -target | --target | --targe | --targ | --tar | --ta | --t)
1313 ac_prev=target_alias ;;
1314 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1315 target_alias=$ac_optarg ;;
1317 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1318 verbose=yes ;;
1320 -version | --version | --versio | --versi | --vers | -V)
1321 ac_init_version=: ;;
1323 -with-* | --with-*)
1324 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327 { echo "$as_me: error: invalid package name: $ac_package" >&2
1328 { (exit 1); exit 1; }; }
1329 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1330 eval with_$ac_package=\$ac_optarg ;;
1332 -without-* | --without-*)
1333 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 { echo "$as_me: error: invalid package name: $ac_package" >&2
1337 { (exit 1); exit 1; }; }
1338 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1339 eval with_$ac_package=no ;;
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1359 -*) { echo "$as_me: error: unrecognized option: $ac_option
1360 Try \`$0 --help' for more information." >&2
1361 { (exit 1); exit 1; }; }
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1368 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1369 { (exit 1); exit 1; }; }
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 esac
1382 done
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 { echo "$as_me: error: missing argument to $ac_option" >&2
1387 { (exit 1); exit 1; }; }
1390 # Be sure to have absolute directory names.
1391 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392 datadir sysconfdir sharedstatedir localstatedir includedir \
1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394 libdir localedir mandir
1396 eval ac_val=\$$ac_var
1397 case $ac_val in
1398 [\\/$]* | ?:[\\/]* ) continue;;
1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400 esac
1401 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1402 { (exit 1); exit 1; }; }
1403 done
1405 # There might be people who depend on the old broken behavior: `$host'
1406 # used to hold the argument of --host etc.
1407 # FIXME: To remove some day.
1408 build=$build_alias
1409 host=$host_alias
1410 target=$target_alias
1412 # FIXME: To remove some day.
1413 if test "x$host_alias" != x; then
1414 if test "x$build_alias" = x; then
1415 cross_compiling=maybe
1416 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1417 If a cross compiler is detected then cross compile mode will be used." >&2
1418 elif test "x$build_alias" != "x$host_alias"; then
1419 cross_compiling=yes
1423 ac_tool_prefix=
1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426 test "$silent" = yes && exec 6>/dev/null
1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di=`ls -di .` &&
1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432 { echo "$as_me: error: Working directory cannot be determined" >&2
1433 { (exit 1); exit 1; }; }
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 { echo "$as_me: error: pwd does not report name of working directory" >&2
1436 { (exit 1); exit 1; }; }
1439 # Find the source files, if location was not specified.
1440 if test -z "$srcdir"; then
1441 ac_srcdir_defaulted=yes
1442 # Try the directory containing this script, then the parent directory.
1443 ac_confdir=`$as_dirname -- "$0" ||
1444 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1445 X"$0" : 'X\(//\)[^/]' \| \
1446 X"$0" : 'X\(//\)$' \| \
1447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1448 echo X"$0" |
1449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 s//\1/
1453 /^X\(\/\/\)[^/].*/{
1454 s//\1/
1457 /^X\(\/\/\)$/{
1458 s//\1/
1461 /^X\(\/\).*/{
1462 s//\1/
1465 s/.*/./; q'`
1466 srcdir=$ac_confdir
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 srcdir=..
1470 else
1471 ac_srcdir_defaulted=no
1473 if test ! -r "$srcdir/$ac_unique_file"; then
1474 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1475 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1476 { (exit 1); exit 1; }; }
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479 ac_abs_confdir=`(
1480 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1481 { (exit 1); exit 1; }; }
1482 pwd)`
1483 # When building in place, set srcdir=.
1484 if test "$ac_abs_confdir" = "$ac_pwd"; then
1485 srcdir=.
1487 # Remove unnecessary trailing slashes from srcdir.
1488 # Double slashes in file names in object file debugging info
1489 # mess up M-x gdb in Emacs.
1490 case $srcdir in
1491 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 esac
1493 for ac_var in $ac_precious_vars; do
1494 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495 eval ac_env_${ac_var}_value=\$${ac_var}
1496 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1498 done
1501 # Report the --help message.
1503 if test "$ac_init_help" = "long"; then
1504 # Omit some internal or obsolete options to make the list less imposing.
1505 # This message is too long to be a string in the A/UX 3.1 sh.
1506 cat <<_ACEOF
1507 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1509 Usage: $0 [OPTION]... [VAR=VALUE]...
1511 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512 VAR=VALUE. See below for descriptions of some of the useful variables.
1514 Defaults for the options are specified in brackets.
1516 Configuration:
1517 -h, --help display this help and exit
1518 --help=short display options specific to this package
1519 --help=recursive display the short help of all the included packages
1520 -V, --version display version information and exit
1521 -q, --quiet, --silent do not print \`checking...' messages
1522 --cache-file=FILE cache test results in FILE [disabled]
1523 -C, --config-cache alias for \`--cache-file=config.cache'
1524 -n, --no-create do not create output files
1525 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1527 Installation directories:
1528 --prefix=PREFIX install architecture-independent files in PREFIX
1529 [$ac_default_prefix]
1530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1531 [PREFIX]
1533 By default, \`make install' will install all the files in
1534 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1535 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536 for instance \`--prefix=\$HOME'.
1538 For better control, use the options below.
1540 Fine tuning of the installation directories:
1541 --bindir=DIR user executables [EPREFIX/bin]
1542 --sbindir=DIR system admin executables [EPREFIX/sbin]
1543 --libexecdir=DIR program executables [EPREFIX/libexec]
1544 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1545 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1546 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1547 --libdir=DIR object code libraries [EPREFIX/lib]
1548 --includedir=DIR C header files [PREFIX/include]
1549 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1552 --infodir=DIR info documentation [DATAROOTDIR/info]
1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1554 --mandir=DIR man documentation [DATAROOTDIR/man]
1555 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1556 --htmldir=DIR html documentation [DOCDIR]
1557 --dvidir=DIR dvi documentation [DOCDIR]
1558 --pdfdir=DIR pdf documentation [DOCDIR]
1559 --psdir=DIR ps documentation [DOCDIR]
1560 _ACEOF
1562 cat <<\_ACEOF
1564 System types:
1565 --build=BUILD configure for building on BUILD [guessed]
1566 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 _ACEOF
1570 if test -n "$ac_init_help"; then
1571 case $ac_init_help in
1572 short | recursive ) echo "Configuration of asterisk 1.6:";;
1573 esac
1574 cat <<\_ACEOF
1576 Optional Features:
1577 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1578 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1579 --enable-dev-mode Turn on developer mode
1580 --disable-largefile omit support for large files
1581 --enable-internal-poll Use Asterisk's poll implementation
1583 Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1587 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1588 --with-execinfo=PATH use Stack Backtrace support files in PATH
1589 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1590 --with-curl=PATH use cURL files in PATH
1591 --with-curses=PATH use curses files in PATH
1592 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1593 --with-dahdi=PATH use DAHDI files in PATH
1594 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1595 --with-gsm=PATH use External GSM library files in PATH , use
1596 'internal' GSM otherwise
1597 --with-gtk=PATH use gtk libraries files in PATH
1598 --with-gtk2=PATH use gtk2 libraries files in PATH
1599 --with-gmime=PATH use GMime library files in PATH
1600 --with-iconv=PATH use Iconv Library files in PATH
1601 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1602 --with-imap=PATH use UW IMAP Toolkit files in PATH
1603 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1604 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1605 --with-ldap=PATH use OpenLDAP files in PATH
1606 --with-ltdl=PATH use libtool files in PATH
1607 --with-lua=PATH use Lua files in PATH
1608 --with-misdn=PATH use mISDN User Library files in PATH
1609 --with-nbs=PATH use Network Broadcast Sound files in PATH
1610 --with-ncurses=PATH use ncurses files in PATH
1611 --with-netsnmp=PATH use Net-SNMP files in PATH
1612 --with-newt=PATH use newt files in PATH
1613 --with-odbc=PATH use unixODBC files in PATH
1614 --with-ogg=PATH use OGG files in PATH
1615 --with-osptk=PATH use OSP Toolkit files in PATH
1616 --with-oss=PATH use Open Sound System files in PATH
1617 --with-postgres=PATH use PostgreSQL files in PATH
1618 --with-popt=PATH use popt files in PATH
1619 --with-portaudio=PATH use PortAudio files in PATH
1620 --with-pri=PATH use ISDN PRI files in PATH
1621 --with-resample=PATH use LIBRESAMPLE files in PATH
1622 --with-spandsp=PATH use SPANDSP files in PATH
1623 --with-ss7=PATH use ISDN SS7 files in PATH
1624 --with-pwlib=PATH use PWlib files in PATH
1625 --with-h323=PATH use OpenH323 files in PATH
1626 --with-radius=PATH use Radius Client files in PATH
1627 --with-sdl=PATH use Sdl files in PATH
1628 --with-SDL_image=PATH use Sdl Image library files in PATH
1629 --with-openais=PATH use OpenAIS files in PATH
1630 --with-speex=PATH use Speex files in PATH
1631 --with-speexdsp=PATH use Speexdsp files in PATH
1632 --with-sqlite=PATH use SQLite files in PATH
1633 --with-sqlite3=PATH use SQLite files in PATH
1634 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1635 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1636 PATH
1637 --with-tds=PATH use FreeTDS files in PATH
1638 --with-termcap=PATH use Termcap files in PATH
1639 --with-tinfo=PATH use Term Info files in PATH
1640 --with-tonezone=PATH use tonezone files in PATH
1641 --with-usb=PATH use usb files in PATH
1642 --with-vorbis=PATH use Vorbis files in PATH
1643 --with-vpb=PATH use Voicetronix API files in PATH
1644 --with-x11=PATH use X11 support files in PATH
1645 --with-z=PATH use zlib files in PATH
1647 Some influential environment variables:
1648 CC C compiler command
1649 CFLAGS C compiler flags
1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651 nonstandard directory <lib dir>
1652 LIBS libraries to pass to the linker, e.g. -l<library>
1653 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1654 you have headers in a nonstandard directory <include dir>
1655 CPP C preprocessor
1656 CXX C++ compiler command
1657 CXXFLAGS C++ compiler flags
1658 CXXCPP C++ preprocessor
1660 Use these variables to override the choices made by `configure' or to help
1661 it to find libraries and programs with nonstandard names/locations.
1663 Report bugs to <www.asterisk.org>.
1664 _ACEOF
1665 ac_status=$?
1668 if test "$ac_init_help" = "recursive"; then
1669 # If there are subdirs, report their specific --help.
1670 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1671 test -d "$ac_dir" || continue
1672 ac_builddir=.
1674 case "$ac_dir" in
1675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1678 # A ".." for each directory in $ac_dir_suffix.
1679 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1680 case $ac_top_builddir_sub in
1681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1683 esac ;;
1684 esac
1685 ac_abs_top_builddir=$ac_pwd
1686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1687 # for backward compatibility:
1688 ac_top_builddir=$ac_top_build_prefix
1690 case $srcdir in
1691 .) # We are building in place.
1692 ac_srcdir=.
1693 ac_top_srcdir=$ac_top_builddir_sub
1694 ac_abs_top_srcdir=$ac_pwd ;;
1695 [\\/]* | ?:[\\/]* ) # Absolute name.
1696 ac_srcdir=$srcdir$ac_dir_suffix;
1697 ac_top_srcdir=$srcdir
1698 ac_abs_top_srcdir=$srcdir ;;
1699 *) # Relative name.
1700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1701 ac_top_srcdir=$ac_top_build_prefix$srcdir
1702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1703 esac
1704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1706 cd "$ac_dir" || { ac_status=$?; continue; }
1707 # Check for guested configure.
1708 if test -f "$ac_srcdir/configure.gnu"; then
1709 echo &&
1710 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1711 elif test -f "$ac_srcdir/configure"; then
1712 echo &&
1713 $SHELL "$ac_srcdir/configure" --help=recursive
1714 else
1715 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716 fi || ac_status=$?
1717 cd "$ac_pwd" || { ac_status=$?; break; }
1718 done
1721 test -n "$ac_init_help" && exit $ac_status
1722 if $ac_init_version; then
1723 cat <<\_ACEOF
1724 asterisk configure 1.6
1725 generated by GNU Autoconf 2.61
1727 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1728 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1729 This configure script is free software; the Free Software Foundation
1730 gives unlimited permission to copy, distribute and modify it.
1732 "Asterisk"
1733 _ACEOF
1734 exit
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1740 It was created by asterisk $as_me 1.6, which was
1741 generated by GNU Autoconf 2.61. Invocation command line was
1743 $ $0 $@
1745 _ACEOF
1746 exec 5>>config.log
1748 cat <<_ASUNAME
1749 ## --------- ##
1750 ## Platform. ##
1751 ## --------- ##
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1770 _ASUNAME
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 echo "PATH: $as_dir"
1778 done
1779 IFS=$as_save_IFS
1781 } >&5
1783 cat >&5 <<_ACEOF
1786 ## ----------- ##
1787 ## Core tests. ##
1788 ## ----------- ##
1790 _ACEOF
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_configure_args=
1799 ac_configure_args0=
1800 ac_configure_args1=
1801 ac_must_keep_next=false
1802 for ac_pass in 1 2
1804 for ac_arg
1806 case $ac_arg in
1807 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809 | -silent | --silent | --silen | --sile | --sil)
1810 continue ;;
1811 *\'*)
1812 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813 esac
1814 case $ac_pass in
1815 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1817 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1818 if test $ac_must_keep_next = true; then
1819 ac_must_keep_next=false # Got value, back to normal.
1820 else
1821 case $ac_arg in
1822 *=* | --config-cache | -C | -disable-* | --disable-* \
1823 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825 | -with-* | --with-* | -without-* | --without-* | --x)
1826 case "$ac_configure_args0 " in
1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828 esac
1830 -* ) ac_must_keep_next=true ;;
1831 esac
1833 ac_configure_args="$ac_configure_args '$ac_arg'"
1835 esac
1836 done
1837 done
1838 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1839 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log. We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847 # Save into config.log some information that might help in debugging.
1849 echo
1851 cat <<\_ASBOX
1852 ## ---------------- ##
1853 ## Cache variables. ##
1854 ## ---------------- ##
1855 _ASBOX
1856 echo
1857 # The following way of writing the cache mishandles newlines in values,
1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1860 eval ac_val=\$$ac_var
1861 case $ac_val in #(
1862 *${as_nl}*)
1863 case $ac_var in #(
1864 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1865 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1866 esac
1867 case $ac_var in #(
1868 _ | IFS | as_nl) ;; #(
1869 *) $as_unset $ac_var ;;
1870 esac ;;
1871 esac
1872 done
1873 (set) 2>&1 |
1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875 *${as_nl}ac_space=\ *)
1876 sed -n \
1877 "s/'\''/'\''\\\\'\'''\''/g;
1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879 ;; #(
1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1883 esac |
1884 sort
1886 echo
1888 cat <<\_ASBOX
1889 ## ----------------- ##
1890 ## Output variables. ##
1891 ## ----------------- ##
1892 _ASBOX
1893 echo
1894 for ac_var in $ac_subst_vars
1896 eval ac_val=\$$ac_var
1897 case $ac_val in
1898 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899 esac
1900 echo "$ac_var='\''$ac_val'\''"
1901 done | sort
1902 echo
1904 if test -n "$ac_subst_files"; then
1905 cat <<\_ASBOX
1906 ## ------------------- ##
1907 ## File substitutions. ##
1908 ## ------------------- ##
1909 _ASBOX
1910 echo
1911 for ac_var in $ac_subst_files
1913 eval ac_val=\$$ac_var
1914 case $ac_val in
1915 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 esac
1917 echo "$ac_var='\''$ac_val'\''"
1918 done | sort
1919 echo
1922 if test -s confdefs.h; then
1923 cat <<\_ASBOX
1924 ## ----------- ##
1925 ## confdefs.h. ##
1926 ## ----------- ##
1927 _ASBOX
1928 echo
1929 cat confdefs.h
1930 echo
1932 test "$ac_signal" != 0 &&
1933 echo "$as_me: caught signal $ac_signal"
1934 echo "$as_me: exit $exit_status"
1935 } >&5
1936 rm -f core *.core core.conftest.* &&
1937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938 exit $exit_status
1940 for ac_signal in 1 2 13 15; do
1941 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1942 done
1943 ac_signal=0
1945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1946 rm -f -r conftest* confdefs.h
1948 # Predefined preprocessor variables.
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_NAME "$PACKAGE_NAME"
1952 _ACEOF
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1957 _ACEOF
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1962 _ACEOF
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_STRING "$PACKAGE_STRING"
1967 _ACEOF
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1972 _ACEOF
1975 # Let the site file select an alternate cache file if it wants to.
1976 # Prefer explicitly selected file to automatically selected ones.
1977 if test -n "$CONFIG_SITE"; then
1978 set x "$CONFIG_SITE"
1979 elif test "x$prefix" != xNONE; then
1980 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1981 else
1982 set x "$ac_default_prefix/share/config.site" \
1983 "$ac_default_prefix/etc/config.site"
1985 shift
1986 for ac_site_file
1988 if test -r "$ac_site_file"; then
1989 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1990 echo "$as_me: loading site script $ac_site_file" >&6;}
1991 sed 's/^/| /' "$ac_site_file" >&5
1992 . "$ac_site_file"
1994 done
1996 if test -r "$cache_file"; then
1997 # Some versions of bash will fail to source /dev/null (special
1998 # files actually), so we avoid doing that.
1999 if test -f "$cache_file"; then
2000 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2001 echo "$as_me: loading cache $cache_file" >&6;}
2002 case $cache_file in
2003 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2004 *) . "./$cache_file";;
2005 esac
2007 else
2008 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2009 echo "$as_me: creating cache $cache_file" >&6;}
2010 >$cache_file
2013 ac_header_list="$ac_header_list utime.h"
2014 # Check that the precious variables saved in the cache have kept the same
2015 # value.
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019 eval ac_new_set=\$ac_env_${ac_var}_set
2020 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021 eval ac_new_val=\$ac_env_${ac_var}_value
2022 case $ac_old_set,$ac_new_set in
2023 set,)
2024 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2027 ,set)
2028 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2031 ,);;
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
2034 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2035 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2036 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2037 echo "$as_me: former value: $ac_old_val" >&2;}
2038 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2039 echo "$as_me: current value: $ac_new_val" >&2;}
2040 ac_cache_corrupted=:
2041 fi;;
2042 esac
2043 # Pass precious variables to config.status.
2044 if test "$ac_new_set" = set; then
2045 case $ac_new_val in
2046 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 *) ac_arg=$ac_var=$ac_new_val ;;
2048 esac
2049 case " $ac_configure_args " in
2050 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2051 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2052 esac
2054 done
2055 if $ac_cache_corrupted; then
2056 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2057 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2058 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2059 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2060 { (exit 1); exit 1; }; }
2087 ac_ext=c
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 # cross-compile macros
2096 ac_aux_dir=
2097 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2098 if test -f "$ac_dir/install-sh"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/install-sh -c"
2101 break
2102 elif test -f "$ac_dir/install.sh"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/install.sh -c"
2105 break
2106 elif test -f "$ac_dir/shtool"; then
2107 ac_aux_dir=$ac_dir
2108 ac_install_sh="$ac_aux_dir/shtool install -c"
2109 break
2111 done
2112 if test -z "$ac_aux_dir"; then
2113 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2114 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2115 { (exit 1); exit 1; }; }
2118 # These three variables are undocumented and unsupported,
2119 # and are intended to be withdrawn in a future Autoconf release.
2120 # They can cause serious problems if a builder's source tree is in a directory
2121 # whose full name contains unusual characters.
2122 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2123 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2124 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2127 # Make sure we can run config.sub.
2128 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2129 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2130 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2131 { (exit 1); exit 1; }; }
2133 { echo "$as_me:$LINENO: checking build system type" >&5
2134 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2135 if test "${ac_cv_build+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 ac_build_alias=$build_alias
2139 test "x$ac_build_alias" = x &&
2140 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2141 test "x$ac_build_alias" = x &&
2142 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2143 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2144 { (exit 1); exit 1; }; }
2145 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2146 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2147 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2148 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2152 echo "${ECHO_T}$ac_cv_build" >&6; }
2153 case $ac_cv_build in
2154 *-*-*) ;;
2155 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2156 echo "$as_me: error: invalid value of canonical build" >&2;}
2157 { (exit 1); exit 1; }; };;
2158 esac
2159 build=$ac_cv_build
2160 ac_save_IFS=$IFS; IFS='-'
2161 set x $ac_cv_build
2162 shift
2163 build_cpu=$1
2164 build_vendor=$2
2165 shift; shift
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2168 build_os=$*
2169 IFS=$ac_save_IFS
2170 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2173 { echo "$as_me:$LINENO: checking host system type" >&5
2174 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2175 if test "${ac_cv_host+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test "x$host_alias" = x; then
2179 ac_cv_host=$ac_cv_build
2180 else
2181 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2182 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2183 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2184 { (exit 1); exit 1; }; }
2188 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2189 echo "${ECHO_T}$ac_cv_host" >&6; }
2190 case $ac_cv_host in
2191 *-*-*) ;;
2192 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2193 echo "$as_me: error: invalid value of canonical host" >&2;}
2194 { (exit 1); exit 1; }; };;
2195 esac
2196 host=$ac_cv_host
2197 ac_save_IFS=$IFS; IFS='-'
2198 set x $ac_cv_host
2199 shift
2200 host_cpu=$1
2201 host_vendor=$2
2202 shift; shift
2203 # Remember, the first character of IFS is used to create $*,
2204 # except with old shells:
2205 host_os=$*
2206 IFS=$ac_save_IFS
2207 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2211 # check existence of the package
2214 # specify output header file
2215 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2222 cat >>confdefs.h <<\_ACEOF
2223 #define _GNU_SOURCE 1
2224 _ACEOF
2227 ac_ext=c
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 if test -n "$ac_tool_prefix"; then
2233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237 if test "${ac_cv_prog_CC+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 if test -n "$CC"; then
2241 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 else
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2254 done
2255 done
2256 IFS=$as_save_IFS
2260 CC=$ac_cv_prog_CC
2261 if test -n "$CC"; then
2262 { echo "$as_me:$LINENO: result: $CC" >&5
2263 echo "${ECHO_T}$CC" >&6; }
2264 else
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2271 if test -z "$ac_cv_prog_CC"; then
2272 ac_ct_CC=$CC
2273 # Extract the first word of "gcc", so it can be a program name with args.
2274 set dummy gcc; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$ac_ct_CC"; then
2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_ac_ct_CC="gcc"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2294 done
2295 done
2296 IFS=$as_save_IFS
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303 echo "${ECHO_T}$ac_ct_CC" >&6; }
2304 else
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2309 if test "x$ac_ct_CC" = x; then
2310 CC=""
2311 else
2312 case $cross_compiling:$ac_tool_warned in
2313 yes:)
2314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&5
2317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320 ac_tool_warned=yes ;;
2321 esac
2322 CC=$ac_ct_CC
2324 else
2325 CC="$ac_cv_prog_CC"
2328 if test -z "$CC"; then
2329 if test -n "$ac_tool_prefix"; then
2330 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2331 set dummy ${ac_tool_prefix}cc; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_CC="${ac_tool_prefix}cc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2351 done
2352 done
2353 IFS=$as_save_IFS
2357 CC=$ac_cv_prog_CC
2358 if test -n "$CC"; then
2359 { echo "$as_me:$LINENO: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6; }
2361 else
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2369 if test -z "$CC"; then
2370 # Extract the first word of "cc", so it can be a program name with args.
2371 set dummy cc; ac_word=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_CC+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 if test -n "$CC"; then
2378 ac_cv_prog_CC="$CC" # Let the user override the test.
2379 else
2380 ac_prog_rejected=no
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2389 ac_prog_rejected=yes
2390 continue
2392 ac_cv_prog_CC="cc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2396 done
2397 done
2398 IFS=$as_save_IFS
2400 if test $ac_prog_rejected = yes; then
2401 # We found a bogon in the path, so make sure we never use it.
2402 set dummy $ac_cv_prog_CC
2403 shift
2404 if test $# != 0; then
2405 # We chose a different compiler from the bogus one.
2406 # However, it has the same basename, so the bogon will be chosen
2407 # first if we set CC to just the basename; use the full file name.
2408 shift
2409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2414 CC=$ac_cv_prog_CC
2415 if test -n "$CC"; then
2416 { echo "$as_me:$LINENO: result: $CC" >&5
2417 echo "${ECHO_T}$CC" >&6; }
2418 else
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2427 for ac_prog in cl.exe
2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2450 done
2451 done
2452 IFS=$as_save_IFS
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458 { echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6; }
2460 else
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2466 test -n "$CC" && break
2467 done
2469 if test -z "$CC"; then
2470 ac_ct_CC=$CC
2471 for ac_prog in cl.exe
2473 # Extract the first word of "$ac_prog", so it can be a program name with args.
2474 set dummy $ac_prog; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 if test -n "$ac_ct_CC"; then
2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_ac_ct_CC="$ac_prog"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2494 done
2495 done
2496 IFS=$as_save_IFS
2500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501 if test -n "$ac_ct_CC"; then
2502 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503 echo "${ECHO_T}$ac_ct_CC" >&6; }
2504 else
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2510 test -n "$ac_ct_CC" && break
2511 done
2513 if test "x$ac_ct_CC" = x; then
2514 CC=""
2515 else
2516 case $cross_compiling:$ac_tool_warned in
2517 yes:)
2518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&5
2521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2524 ac_tool_warned=yes ;;
2525 esac
2526 CC=$ac_ct_CC
2533 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: no acceptable C compiler found in \$PATH
2536 See \`config.log' for more details." >&2;}
2537 { (exit 1); exit 1; }; }
2539 # Provide some information about the compiler.
2540 echo "$as_me:$LINENO: checking for C compiler version" >&5
2541 ac_compiler=`set X $ac_compile; echo $2`
2542 { (ac_try="$ac_compiler --version >&5"
2543 case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_compiler --version >&5") 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }
2552 { (ac_try="$ac_compiler -v >&5"
2553 case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556 esac
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_compiler -v >&5") 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }
2562 { (ac_try="$ac_compiler -V >&5"
2563 case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compiler -V >&5") 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }
2573 cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2581 main ()
2585 return 0;
2587 _ACEOF
2588 ac_clean_files_save=$ac_clean_files
2589 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2590 # Try to create an executable without -o first, disregard a.out.
2591 # It will help us diagnose broken compilers, and finding out an intuition
2592 # of exeext.
2593 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2594 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2595 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2597 # List of possible output files, starting from the most likely.
2598 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2599 # only as a last resort. b.out is created by i960 compilers.
2600 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2602 # The IRIX 6 linker writes into existing files which may not be
2603 # executable, retaining their permissions. Remove them first so a
2604 # subsequent execution test works.
2605 ac_rmfiles=
2606 for ac_file in $ac_files
2608 case $ac_file in
2609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2610 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2611 esac
2612 done
2613 rm -f $ac_rmfiles
2615 if { (ac_try="$ac_link_default"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_link_default") 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; then
2625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2626 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2627 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2628 # so that the user can short-circuit this test for compilers unknown to
2629 # Autoconf.
2630 for ac_file in $ac_files ''
2632 test -f "$ac_file" || continue
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2636 [ab].out )
2637 # We found the default executable, but exeext='' is most
2638 # certainly right.
2639 break;;
2640 *.* )
2641 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2642 then :; else
2643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 # We set ac_cv_exeext here because the later test for it is not
2646 # safe: cross compilers may not add the suffix if given an `-o'
2647 # argument, so we may need to know it at that point already.
2648 # Even if this section looks crufty: it has the advantage of
2649 # actually working.
2650 break;;
2652 break;;
2653 esac
2654 done
2655 test "$ac_cv_exeext" = no && ac_cv_exeext=
2657 else
2658 ac_file=''
2661 { echo "$as_me:$LINENO: result: $ac_file" >&5
2662 echo "${ECHO_T}$ac_file" >&6; }
2663 if test -z "$ac_file"; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: C compiler cannot create executables
2670 See \`config.log' for more details." >&2;}
2671 { (exit 77); exit 77; }; }
2674 ac_exeext=$ac_cv_exeext
2676 # Check that the compiler produces executables we can run. If not, either
2677 # the compiler is broken, or we cross compile.
2678 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2679 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2680 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2681 # If not cross compiling, check that we can run a simple program.
2682 if test "$cross_compiling" != yes; then
2683 if { ac_try='./$ac_file'
2684 { (case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_try") 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2693 cross_compiling=no
2694 else
2695 if test "$cross_compiling" = maybe; then
2696 cross_compiling=yes
2697 else
2698 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2699 If you meant to cross compile, use \`--host'.
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: cannot run C compiled programs.
2702 If you meant to cross compile, use \`--host'.
2703 See \`config.log' for more details." >&2;}
2704 { (exit 1); exit 1; }; }
2708 { echo "$as_me:$LINENO: result: yes" >&5
2709 echo "${ECHO_T}yes" >&6; }
2711 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2712 ac_clean_files=$ac_clean_files_save
2713 # Check that the compiler produces executables we can run. If not, either
2714 # the compiler is broken, or we cross compile.
2715 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2716 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2717 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2718 echo "${ECHO_T}$cross_compiling" >&6; }
2720 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2721 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2722 if { (ac_try="$ac_link"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_link") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then
2732 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2733 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2734 # work properly (i.e., refer to `conftest.exe'), while it won't with
2735 # `rm'.
2736 for ac_file in conftest.exe conftest conftest.*; do
2737 test -f "$ac_file" || continue
2738 case $ac_file in
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2741 break;;
2742 * ) break;;
2743 esac
2744 done
2745 else
2746 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2747 See \`config.log' for more details." >&5
2748 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2749 See \`config.log' for more details." >&2;}
2750 { (exit 1); exit 1; }; }
2753 rm -f conftest$ac_cv_exeext
2754 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2755 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2757 rm -f conftest.$ac_ext
2758 EXEEXT=$ac_cv_exeext
2759 ac_exeext=$EXEEXT
2760 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2761 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2762 if test "${ac_cv_objext+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2773 main ()
2777 return 0;
2779 _ACEOF
2780 rm -f conftest.o conftest.obj
2781 if { (ac_try="$ac_compile"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_compile") 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; then
2791 for ac_file in conftest.o conftest.obj conftest.*; do
2792 test -f "$ac_file" || continue;
2793 case $ac_file in
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2796 break;;
2797 esac
2798 done
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2803 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2806 See \`config.log' for more details." >&2;}
2807 { (exit 1); exit 1; }; }
2810 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2812 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2813 echo "${ECHO_T}$ac_cv_objext" >&6; }
2814 OBJEXT=$ac_cv_objext
2815 ac_objext=$OBJEXT
2816 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2817 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2818 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2829 main ()
2831 #ifndef __GNUC__
2832 choke me
2833 #endif
2836 return 0;
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (ac_try="$ac_compile"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_compile") 2>conftest.er1
2847 ac_status=$?
2848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } && {
2853 test -z "$ac_c_werror_flag" ||
2854 test ! -s conftest.err
2855 } && test -s conftest.$ac_objext; then
2856 ac_compiler_gnu=yes
2857 else
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2861 ac_compiler_gnu=no
2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2868 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2869 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2870 GCC=`test $ac_compiler_gnu = yes && echo yes`
2871 ac_test_CFLAGS=${CFLAGS+set}
2872 ac_save_CFLAGS=$CFLAGS
2873 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2874 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_cc_g+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 ac_save_c_werror_flag=$ac_c_werror_flag
2879 ac_c_werror_flag=yes
2880 ac_cv_prog_cc_g=no
2881 CFLAGS="-g"
2882 cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h. */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2890 main ()
2894 return 0;
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (ac_try="$ac_compile"
2899 case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compile") 2>conftest.er1
2905 ac_status=$?
2906 grep -v '^ *+' conftest.er1 >conftest.err
2907 rm -f conftest.er1
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } && {
2911 test -z "$ac_c_werror_flag" ||
2912 test ! -s conftest.err
2913 } && test -s conftest.$ac_objext; then
2914 ac_cv_prog_cc_g=yes
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2919 CFLAGS=""
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2928 main ()
2932 return 0;
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } && {
2949 test -z "$ac_c_werror_flag" ||
2950 test ! -s conftest.err
2951 } && test -s conftest.$ac_objext; then
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 ac_c_werror_flag=$ac_save_c_werror_flag
2958 CFLAGS="-g"
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2967 main ()
2971 return 0;
2973 _ACEOF
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } && {
2988 test -z "$ac_c_werror_flag" ||
2989 test ! -s conftest.err
2990 } && test -s conftest.$ac_objext; then
2991 ac_cv_prog_cc_g=yes
2992 else
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_c_werror_flag=$ac_save_c_werror_flag
3008 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3009 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3010 if test "$ac_test_CFLAGS" = set; then
3011 CFLAGS=$ac_save_CFLAGS
3012 elif test $ac_cv_prog_cc_g = yes; then
3013 if test "$GCC" = yes; then
3014 CFLAGS="-g -O2"
3015 else
3016 CFLAGS="-g"
3018 else
3019 if test "$GCC" = yes; then
3020 CFLAGS="-O2"
3021 else
3022 CFLAGS=
3025 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3026 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_cc_c89+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 ac_cv_prog_cc_c89=no
3031 ac_save_CC=$CC
3032 cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h. */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3038 #include <stdarg.h>
3039 #include <stdio.h>
3040 #include <sys/types.h>
3041 #include <sys/stat.h>
3042 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3043 struct buf { int x; };
3044 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3045 static char *e (p, i)
3046 char **p;
3047 int i;
3049 return p[i];
3051 static char *f (char * (*g) (char **, int), char **p, ...)
3053 char *s;
3054 va_list v;
3055 va_start (v,p);
3056 s = g (p, va_arg (v,int));
3057 va_end (v);
3058 return s;
3061 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3062 function prototypes and stuff, but not '\xHH' hex character constants.
3063 These don't provoke an error unfortunately, instead are silently treated
3064 as 'x'. The following induces an error, until -std is added to get
3065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3066 array size at least. It's necessary to write '\x00'==0 to get something
3067 that's true only with -std. */
3068 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3070 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3071 inside strings and character constants. */
3072 #define FOO(x) 'x'
3073 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3075 int test (int i, double x);
3076 struct s1 {int (*f) (int a);};
3077 struct s2 {int (*f) (double a);};
3078 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3079 int argc;
3080 char **argv;
3082 main ()
3084 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3086 return 0;
3088 _ACEOF
3089 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3092 CC="$ac_save_CC $ac_arg"
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3110 ac_cv_prog_cc_c89=$ac_arg
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3118 rm -f core conftest.err conftest.$ac_objext
3119 test "x$ac_cv_prog_cc_c89" != "xno" && break
3120 done
3121 rm -f conftest.$ac_ext
3122 CC=$ac_save_CC
3125 # AC_CACHE_VAL
3126 case "x$ac_cv_prog_cc_c89" in
3128 { echo "$as_me:$LINENO: result: none needed" >&5
3129 echo "${ECHO_T}none needed" >&6; } ;;
3130 xno)
3131 { echo "$as_me:$LINENO: result: unsupported" >&5
3132 echo "${ECHO_T}unsupported" >&6; } ;;
3134 CC="$CC $ac_cv_prog_cc_c89"
3135 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3136 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3137 esac
3140 ac_ext=c
3141 ac_cpp='$CPP $CPPFLAGS'
3142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 ac_ext=c
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3153 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3154 # On Suns, sometimes $CPP names a directory.
3155 if test -n "$CPP" && test -d "$CPP"; then
3156 CPP=
3158 if test -z "$CPP"; then
3159 if test "${ac_cv_prog_CPP+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 # Double quotes because CPP needs to be expanded
3163 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3165 ac_preproc_ok=false
3166 for ac_c_preproc_warn_flag in '' yes
3168 # Use a header file that comes with gcc, so configuring glibc
3169 # with a fresh cross-compiler works.
3170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3171 # <limits.h> exists even on freestanding compilers.
3172 # On the NeXT, cc -E runs the code through the compiler's parser,
3173 # not just through cpp. "Syntax error" is here to catch this case.
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 #ifdef __STDC__
3181 # include <limits.h>
3182 #else
3183 # include <assert.h>
3184 #endif
3185 Syntax error
3186 _ACEOF
3187 if { (ac_try="$ac_cpp conftest.$ac_ext"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } >/dev/null && {
3200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3201 test ! -s conftest.err
3202 }; then
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 # Broken: fails on valid input.
3209 continue
3212 rm -f conftest.err conftest.$ac_ext
3214 # OK, works on sane cases. Now check whether nonexistent headers
3215 # can be detected and how.
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222 #include <ac_nonexistent.h>
3223 _ACEOF
3224 if { (ac_try="$ac_cpp conftest.$ac_ext"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } >/dev/null && {
3237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 }; then
3240 # Broken: success on invalid input.
3241 continue
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 # Passes both tests.
3247 ac_preproc_ok=:
3248 break
3251 rm -f conftest.err conftest.$ac_ext
3253 done
3254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3255 rm -f conftest.err conftest.$ac_ext
3256 if $ac_preproc_ok; then
3257 break
3260 done
3261 ac_cv_prog_CPP=$CPP
3264 CPP=$ac_cv_prog_CPP
3265 else
3266 ac_cv_prog_CPP=$CPP
3268 { echo "$as_me:$LINENO: result: $CPP" >&5
3269 echo "${ECHO_T}$CPP" >&6; }
3270 ac_preproc_ok=false
3271 for ac_c_preproc_warn_flag in '' yes
3273 # Use a header file that comes with gcc, so configuring glibc
3274 # with a fresh cross-compiler works.
3275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3276 # <limits.h> exists even on freestanding compilers.
3277 # On the NeXT, cc -E runs the code through the compiler's parser,
3278 # not just through cpp. "Syntax error" is here to catch this case.
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #ifdef __STDC__
3286 # include <limits.h>
3287 #else
3288 # include <assert.h>
3289 #endif
3290 Syntax error
3291 _ACEOF
3292 if { (ac_try="$ac_cpp conftest.$ac_ext"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null && {
3305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 }; then
3309 else
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Broken: fails on valid input.
3314 continue
3317 rm -f conftest.err conftest.$ac_ext
3319 # OK, works on sane cases. Now check whether nonexistent headers
3320 # can be detected and how.
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <ac_nonexistent.h>
3328 _ACEOF
3329 if { (ac_try="$ac_cpp conftest.$ac_ext"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } >/dev/null && {
3342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 }; then
3345 # Broken: success on invalid input.
3346 continue
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 # Passes both tests.
3352 ac_preproc_ok=:
3353 break
3356 rm -f conftest.err conftest.$ac_ext
3358 done
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then
3363 else
3364 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3365 See \`config.log' for more details." >&5
3366 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3367 See \`config.log' for more details." >&2;}
3368 { (exit 1); exit 1; }; }
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3379 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3380 if test "${ac_cv_path_GREP+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 # Extract the first word of "grep ggrep" to use in msg output
3384 if test -z "$GREP"; then
3385 set dummy grep ggrep; ac_prog_name=$2
3386 if test "${ac_cv_path_GREP+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 ac_path_GREP_found=false
3390 # Loop through the user's path and test for each of PROGNAME-LIST
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_prog in grep ggrep; do
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3399 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3400 # Check for GNU ac_path_GREP and select it if it is found.
3401 # Check for GNU $ac_path_GREP
3402 case `"$ac_path_GREP" --version 2>&1` in
3403 *GNU*)
3404 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3406 ac_count=0
3407 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3408 while :
3410 cat "conftest.in" "conftest.in" >"conftest.tmp"
3411 mv "conftest.tmp" "conftest.in"
3412 cp "conftest.in" "conftest.nl"
3413 echo 'GREP' >> "conftest.nl"
3414 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3416 ac_count=`expr $ac_count + 1`
3417 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3418 # Best one so far, save it but keep looking for a better one
3419 ac_cv_path_GREP="$ac_path_GREP"
3420 ac_path_GREP_max=$ac_count
3422 # 10*(2^10) chars as input seems more than enough
3423 test $ac_count -gt 10 && break
3424 done
3425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3426 esac
3429 $ac_path_GREP_found && break 3
3430 done
3431 done
3433 done
3434 IFS=$as_save_IFS
3439 GREP="$ac_cv_path_GREP"
3440 if test -z "$GREP"; then
3441 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3442 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3443 { (exit 1); exit 1; }; }
3446 else
3447 ac_cv_path_GREP=$GREP
3452 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3453 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3454 GREP="$ac_cv_path_GREP"
3457 { echo "$as_me:$LINENO: checking for egrep" >&5
3458 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3459 if test "${ac_cv_path_EGREP+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3463 then ac_cv_path_EGREP="$GREP -E"
3464 else
3465 # Extract the first word of "egrep" to use in msg output
3466 if test -z "$EGREP"; then
3467 set dummy egrep; ac_prog_name=$2
3468 if test "${ac_cv_path_EGREP+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 ac_path_EGREP_found=false
3472 # Loop through the user's path and test for each of PROGNAME-LIST
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_prog in egrep; do
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3481 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3482 # Check for GNU ac_path_EGREP and select it if it is found.
3483 # Check for GNU $ac_path_EGREP
3484 case `"$ac_path_EGREP" --version 2>&1` in
3485 *GNU*)
3486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3488 ac_count=0
3489 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3490 while :
3492 cat "conftest.in" "conftest.in" >"conftest.tmp"
3493 mv "conftest.tmp" "conftest.in"
3494 cp "conftest.in" "conftest.nl"
3495 echo 'EGREP' >> "conftest.nl"
3496 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3498 ac_count=`expr $ac_count + 1`
3499 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3500 # Best one so far, save it but keep looking for a better one
3501 ac_cv_path_EGREP="$ac_path_EGREP"
3502 ac_path_EGREP_max=$ac_count
3504 # 10*(2^10) chars as input seems more than enough
3505 test $ac_count -gt 10 && break
3506 done
3507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3508 esac
3511 $ac_path_EGREP_found && break 3
3512 done
3513 done
3515 done
3516 IFS=$as_save_IFS
3521 EGREP="$ac_cv_path_EGREP"
3522 if test -z "$EGREP"; then
3523 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3524 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3525 { (exit 1); exit 1; }; }
3528 else
3529 ac_cv_path_EGREP=$EGREP
3535 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3536 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3537 EGREP="$ac_cv_path_EGREP"
3541 { echo "$as_me:$LINENO: checking for AIX" >&5
3542 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #ifdef _AIX
3551 #endif
3553 _ACEOF
3554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3555 $EGREP "yes" >/dev/null 2>&1; then
3556 { echo "$as_me:$LINENO: result: yes" >&5
3557 echo "${ECHO_T}yes" >&6; }
3558 cat >>confdefs.h <<\_ACEOF
3559 #define _ALL_SOURCE 1
3560 _ACEOF
3562 else
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3566 rm -f conftest*
3569 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3570 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3571 if test "${ac_cv_header_stdc+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 #include <stdlib.h>
3581 #include <stdarg.h>
3582 #include <string.h>
3583 #include <float.h>
3586 main ()
3590 return 0;
3592 _ACEOF
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3610 ac_cv_header_stdc=yes
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 ac_cv_header_stdc=no
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 if test $ac_cv_header_stdc = yes; then
3621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3622 cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h. */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3628 #include <string.h>
3630 _ACEOF
3631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632 $EGREP "memchr" >/dev/null 2>&1; then
3634 else
3635 ac_cv_header_stdc=no
3637 rm -f conftest*
3641 if test $ac_cv_header_stdc = yes; then
3642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 #include <stdlib.h>
3651 _ACEOF
3652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653 $EGREP "free" >/dev/null 2>&1; then
3655 else
3656 ac_cv_header_stdc=no
3658 rm -f conftest*
3662 if test $ac_cv_header_stdc = yes; then
3663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3664 if test "$cross_compiling" = yes; then
3666 else
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 #include <ctype.h>
3674 #include <stdlib.h>
3675 #if ((' ' & 0x0FF) == 0x020)
3676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678 #else
3679 # define ISLOWER(c) \
3680 (('a' <= (c) && (c) <= 'i') \
3681 || ('j' <= (c) && (c) <= 'r') \
3682 || ('s' <= (c) && (c) <= 'z'))
3683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3684 #endif
3686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3688 main ()
3690 int i;
3691 for (i = 0; i < 256; i++)
3692 if (XOR (islower (i), ISLOWER (i))
3693 || toupper (i) != TOUPPER (i))
3694 return 2;
3695 return 0;
3697 _ACEOF
3698 rm -f conftest$ac_exeext
3699 if { (ac_try="$ac_link"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_link") 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3709 { (case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_try") 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3719 else
3720 echo "$as_me: program exited with status $ac_status" >&5
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 ( exit $ac_status )
3725 ac_cv_header_stdc=no
3727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3733 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3734 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3735 if test $ac_cv_header_stdc = yes; then
3737 cat >>confdefs.h <<\_ACEOF
3738 #define STDC_HEADERS 1
3739 _ACEOF
3743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3754 inttypes.h stdint.h unistd.h
3756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 $ac_includes_default
3770 #include <$ac_header>
3771 _ACEOF
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3789 eval "$as_ac_Header=yes"
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 eval "$as_ac_Header=no"
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_res=`eval echo '${'$as_ac_Header'}'`
3800 { echo "$as_me:$LINENO: result: $ac_res" >&5
3801 echo "${ECHO_T}$ac_res" >&6; }
3802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3803 cat >>confdefs.h <<_ACEOF
3804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3805 _ACEOF
3809 done
3812 if test "${ac_cv_header_minix_config_h+set}" = set; then
3813 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3814 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_minix_config_h+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3819 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3820 else
3821 # Is the header compilable?
3822 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3823 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830 $ac_includes_default
3831 #include <minix/config.h>
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && {
3847 test -z "$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 } && test -s conftest.$ac_objext; then
3850 ac_header_compiler=yes
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 ac_header_compiler=no
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3860 echo "${ECHO_T}$ac_header_compiler" >&6; }
3862 # Is the header present?
3863 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3864 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #include <minix/config.h>
3872 _ACEOF
3873 if { (ac_try="$ac_cpp conftest.$ac_ext"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } >/dev/null && {
3886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 }; then
3889 ac_header_preproc=yes
3890 else
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 ac_header_preproc=no
3897 rm -f conftest.err conftest.$ac_ext
3898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3899 echo "${ECHO_T}$ac_header_preproc" >&6; }
3901 # So? What about this header?
3902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3903 yes:no: )
3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3905 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3907 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3908 ac_header_preproc=yes
3910 no:yes:* )
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3912 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3914 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3916 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3918 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3920 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3921 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3922 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3923 ( cat <<\_ASBOX
3924 ## ------------------------------- ##
3925 ## Report this to www.asterisk.org ##
3926 ## ------------------------------- ##
3927 _ASBOX
3928 ) | sed "s/^/$as_me: WARNING: /" >&2
3930 esac
3931 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3932 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3933 if test "${ac_cv_header_minix_config_h+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 ac_cv_header_minix_config_h=$ac_header_preproc
3938 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3939 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3942 if test $ac_cv_header_minix_config_h = yes; then
3943 MINIX=yes
3944 else
3945 MINIX=
3949 if test "$MINIX" = yes; then
3951 cat >>confdefs.h <<\_ACEOF
3952 #define _POSIX_SOURCE 1
3953 _ACEOF
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _POSIX_1_SOURCE 2
3958 _ACEOF
3961 cat >>confdefs.h <<\_ACEOF
3962 #define _MINIX 1
3963 _ACEOF
3977 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3978 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3979 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3989 # define __EXTENSIONS__ 1
3990 $ac_includes_default
3992 main ()
3996 return 0;
3998 _ACEOF
3999 rm -f conftest.$ac_objext
4000 if { (ac_try="$ac_compile"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && {
4013 test -z "$ac_c_werror_flag" ||
4014 test ! -s conftest.err
4015 } && test -s conftest.$ac_objext; then
4016 ac_cv_safe_to_define___extensions__=yes
4017 else
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 ac_cv_safe_to_define___extensions__=no
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4027 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4028 test $ac_cv_safe_to_define___extensions__ = yes &&
4029 cat >>confdefs.h <<\_ACEOF
4030 #define __EXTENSIONS__ 1
4031 _ACEOF
4033 cat >>confdefs.h <<\_ACEOF
4034 #define _POSIX_PTHREAD_SEMANTICS 1
4035 _ACEOF
4037 cat >>confdefs.h <<\_ACEOF
4038 #define _TANDEM_SOURCE 1
4039 _ACEOF
4041 # note- does not work on FreeBSD
4043 case "${host_os}" in
4044 freebsd*)
4045 ac_default_prefix=/usr/local
4046 CPPFLAGS=-I/usr/local/include
4047 LDFLAGS=-L/usr/local/lib
4051 ac_default_prefix=/usr
4052 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4053 if test ${sysconfdir} = '${prefix}/etc'; then
4054 sysconfdir=/etc
4056 if test ${mandir} = '${prefix}/man'; then
4057 mandir=/usr/share/man
4061 esac
4063 if test ${localstatedir} = '${prefix}/var'; then
4064 localstatedir=/var
4067 BUILD_PLATFORM=${build}
4068 BUILD_CPU=${build_cpu}
4069 BUILD_VENDOR=${build_vendor}
4070 BUILD_OS=${build_os}
4077 HOST_PLATFORM=${host}
4078 HOST_CPU=${host_cpu}
4079 HOST_VENDOR=${host_vendor}
4080 HOST_OS=${host_os}
4087 WINARCH=0
4089 case "${host_os}" in
4090 freebsd*)
4091 OSARCH=FreeBSD
4093 netbsd*)
4094 OSARCH=NetBSD
4096 openbsd*)
4097 OSARCH=OpenBSD
4099 solaris*)
4100 OSARCH=SunOS
4102 mingw32)
4103 OSARCH=mingw32
4104 WINARCH=1
4106 cygwin)
4107 OSARCH=cygwin
4108 WINARCH=1
4111 OSARCH=${host_os}
4113 esac
4118 # check for uname
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}uname; ac_word=$2
4122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124 if test "${ac_cv_path_UNAME+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 case $UNAME in
4128 [\\/]* | ?:[\\/]*)
4129 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4143 done
4144 done
4145 IFS=$as_save_IFS
4148 esac
4150 UNAME=$ac_cv_path_UNAME
4151 if test -n "$UNAME"; then
4152 { echo "$as_me:$LINENO: result: $UNAME" >&5
4153 echo "${ECHO_T}$UNAME" >&6; }
4154 else
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4161 if test -z "$ac_cv_path_UNAME"; then
4162 ac_pt_UNAME=$UNAME
4163 # Extract the first word of "uname", so it can be a program name with args.
4164 set dummy uname; ac_word=$2
4165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 case $ac_pt_UNAME in
4171 [\\/]* | ?:[\\/]*)
4172 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4186 done
4187 done
4188 IFS=$as_save_IFS
4191 esac
4193 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4194 if test -n "$ac_pt_UNAME"; then
4195 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4196 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4197 else
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4202 if test "x$ac_pt_UNAME" = x; then
4203 UNAME="No"
4204 else
4205 case $cross_compiling:$ac_tool_warned in
4206 yes:)
4207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4208 whose name does not start with the host triplet. If you think this
4209 configuration is useful to you, please write to autoconf@gnu.org." >&5
4210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215 UNAME=$ac_pt_UNAME
4217 else
4218 UNAME="$ac_cv_path_UNAME"
4221 if test ! x"${UNAME}" = xNo; then
4222 PBX_OSREV=$(${UNAME} -r)
4232 # cross-compile checks
4233 if test "${cross_compiling}" = "yes";
4234 then
4235 if test -n "$ac_tool_prefix"; then
4236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4240 if test "${ac_cv_prog_CC+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4257 done
4258 done
4259 IFS=$as_save_IFS
4263 CC=$ac_cv_prog_CC
4264 if test -n "$CC"; then
4265 { echo "$as_me:$LINENO: result: $CC" >&5
4266 echo "${ECHO_T}$CC" >&6; }
4267 else
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4274 if test -z "$ac_cv_prog_CC"; then
4275 ac_ct_CC=$CC
4276 # Extract the first word of "gcc", so it can be a program name with args.
4277 set dummy gcc; ac_word=$2
4278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283 if test -n "$ac_ct_CC"; then
4284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_ac_ct_CC="gcc"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4297 done
4298 done
4299 IFS=$as_save_IFS
4303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4304 if test -n "$ac_ct_CC"; then
4305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4306 echo "${ECHO_T}$ac_ct_CC" >&6; }
4307 else
4308 { echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; }
4312 if test "x$ac_ct_CC" = x; then
4313 CC=":"
4314 else
4315 case $cross_compiling:$ac_tool_warned in
4316 yes:)
4317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4318 whose name does not start with the host triplet. If you think this
4319 configuration is useful to you, please write to autoconf@gnu.org." >&5
4320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4321 whose name does not start with the host triplet. If you think this
4322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4323 ac_tool_warned=yes ;;
4324 esac
4325 CC=$ac_ct_CC
4327 else
4328 CC="$ac_cv_prog_CC"
4331 if test -n "$ac_tool_prefix"; then
4332 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4333 set dummy ${ac_tool_prefix}g++; ac_word=$2
4334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4336 if test "${ac_cv_prog_CXX+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 if test -n "$CXX"; then
4340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 done
4355 IFS=$as_save_IFS
4359 CXX=$ac_cv_prog_CXX
4360 if test -n "$CXX"; then
4361 { echo "$as_me:$LINENO: result: $CXX" >&5
4362 echo "${ECHO_T}$CXX" >&6; }
4363 else
4364 { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4370 if test -z "$ac_cv_prog_CXX"; then
4371 ac_ct_CXX=$CXX
4372 # Extract the first word of "g++", so it can be a program name with args.
4373 set dummy g++; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test -n "$ac_ct_CXX"; then
4380 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_ac_ct_CXX="g++"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4399 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4400 if test -n "$ac_ct_CXX"; then
4401 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4402 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4403 else
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4408 if test "x$ac_ct_CXX" = x; then
4409 CXX=":"
4410 else
4411 case $cross_compiling:$ac_tool_warned in
4412 yes:)
4413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4414 whose name does not start with the host triplet. If you think this
4415 configuration is useful to you, please write to autoconf@gnu.org." >&5
4416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4417 whose name does not start with the host triplet. If you think this
4418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4419 ac_tool_warned=yes ;;
4420 esac
4421 CXX=$ac_ct_CXX
4423 else
4424 CXX="$ac_cv_prog_CXX"
4427 if test -n "$ac_tool_prefix"; then
4428 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4429 set dummy ${ac_tool_prefix}ld; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_LD+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$LD"; then
4436 ac_cv_prog_LD="$LD" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_LD="${ac_tool_prefix}ld"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 LD=$ac_cv_prog_LD
4456 if test -n "$LD"; then
4457 { echo "$as_me:$LINENO: result: $LD" >&5
4458 echo "${ECHO_T}$LD" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4466 if test -z "$ac_cv_prog_LD"; then
4467 ac_ct_LD=$LD
4468 # Extract the first word of "ld", so it can be a program name with args.
4469 set dummy ld; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 if test -n "$ac_ct_LD"; then
4476 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_ac_ct_LD="ld"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4489 done
4490 done
4491 IFS=$as_save_IFS
4495 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4496 if test -n "$ac_ct_LD"; then
4497 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4498 echo "${ECHO_T}$ac_ct_LD" >&6; }
4499 else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4504 if test "x$ac_ct_LD" = x; then
4505 LD=":"
4506 else
4507 case $cross_compiling:$ac_tool_warned in
4508 yes:)
4509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4510 whose name does not start with the host triplet. If you think this
4511 configuration is useful to you, please write to autoconf@gnu.org." >&5
4512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4513 whose name does not start with the host triplet. If you think this
4514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4515 ac_tool_warned=yes ;;
4516 esac
4517 LD=$ac_ct_LD
4519 else
4520 LD="$ac_cv_prog_LD"
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_RANLIB+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 if test -n "$RANLIB"; then
4532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4545 done
4546 done
4547 IFS=$as_save_IFS
4551 RANLIB=$ac_cv_prog_RANLIB
4552 if test -n "$RANLIB"; then
4553 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4554 echo "${ECHO_T}$RANLIB" >&6; }
4555 else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4562 if test -z "$ac_cv_prog_RANLIB"; then
4563 ac_ct_RANLIB=$RANLIB
4564 # Extract the first word of "ranlib", so it can be a program name with args.
4565 set dummy ranlib; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if test -n "$ac_ct_RANLIB"; then
4572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_ac_ct_RANLIB="ranlib"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4587 IFS=$as_save_IFS
4591 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4592 if test -n "$ac_ct_RANLIB"; then
4593 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4594 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4595 else
4596 { echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6; }
4600 if test "x$ac_ct_RANLIB" = x; then
4601 RANLIB=":"
4602 else
4603 case $cross_compiling:$ac_tool_warned in
4604 yes:)
4605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4606 whose name does not start with the host triplet. If you think this
4607 configuration is useful to you, please write to autoconf@gnu.org." >&5
4608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4609 whose name does not start with the host triplet. If you think this
4610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4611 ac_tool_warned=yes ;;
4612 esac
4613 RANLIB=$ac_ct_RANLIB
4615 else
4616 RANLIB="$ac_cv_prog_RANLIB"
4621 # Checks for programs.
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4651 IFS=$as_save_IFS
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657 { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4659 else
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4666 if test -z "$ac_cv_prog_CC"; then
4667 ac_ct_CC=$CC
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="gcc"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4698 echo "${ECHO_T}$ac_ct_CC" >&6; }
4699 else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4704 if test "x$ac_ct_CC" = x; then
4705 CC=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4710 whose name does not start with the host triplet. If you think this
4711 configuration is useful to you, please write to autoconf@gnu.org." >&5
4712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4713 whose name does not start with the host triplet. If you think this
4714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 CC=$ac_ct_CC
4719 else
4720 CC="$ac_cv_prog_CC"
4723 if test -z "$CC"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}cc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="${ac_tool_prefix}cc"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4746 done
4747 done
4748 IFS=$as_save_IFS
4752 CC=$ac_cv_prog_CC
4753 if test -n "$CC"; then
4754 { echo "$as_me:$LINENO: result: $CC" >&5
4755 echo "${ECHO_T}$CC" >&6; }
4756 else
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4764 if test -z "$CC"; then
4765 # Extract the first word of "cc", so it can be a program name with args.
4766 set dummy cc; ac_word=$2
4767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769 if test "${ac_cv_prog_CC+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 else
4775 ac_prog_rejected=no
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected=yes
4785 continue
4787 ac_cv_prog_CC="cc"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4791 done
4792 done
4793 IFS=$as_save_IFS
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_CC
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 { echo "$as_me:$LINENO: result: $CC" >&5
4812 echo "${ECHO_T}$CC" >&6; }
4813 else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4820 if test -z "$CC"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog in cl.exe
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 if test -n "$CC"; then
4832 ac_cv_prog_CC="$CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 CC=$ac_cv_prog_CC
4852 if test -n "$CC"; then
4853 { echo "$as_me:$LINENO: result: $CC" >&5
4854 echo "${ECHO_T}$CC" >&6; }
4855 else
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 test -n "$CC" && break
4862 done
4864 if test -z "$CC"; then
4865 ac_ct_CC=$CC
4866 for ac_prog in cl.exe
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy $ac_prog; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 if test -n "$ac_ct_CC"; then
4876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_CC="$ac_prog"
4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4896 if test -n "$ac_ct_CC"; then
4897 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4898 echo "${ECHO_T}$ac_ct_CC" >&6; }
4899 else
4900 { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4905 test -n "$ac_ct_CC" && break
4906 done
4908 if test "x$ac_ct_CC" = x; then
4909 CC=""
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4914 whose name does not start with the host triplet. If you think this
4915 configuration is useful to you, please write to autoconf@gnu.org." >&5
4916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4917 whose name does not start with the host triplet. If you think this
4918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921 CC=$ac_ct_CC
4928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4929 See \`config.log' for more details." >&5
4930 echo "$as_me: error: no acceptable C compiler found in \$PATH
4931 See \`config.log' for more details." >&2;}
4932 { (exit 1); exit 1; }; }
4934 # Provide some information about the compiler.
4935 echo "$as_me:$LINENO: checking for C compiler version" >&5
4936 ac_compiler=`set X $ac_compile; echo $2`
4937 { (ac_try="$ac_compiler --version >&5"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_compiler --version >&5") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }
4947 { (ac_try="$ac_compiler -v >&5"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compiler -v >&5") 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }
4957 { (ac_try="$ac_compiler -V >&5"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_compiler -V >&5") 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }
4968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4981 main ()
4983 #ifndef __GNUC__
4984 choke me
4985 #endif
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_compile") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5008 ac_compiler_gnu=yes
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 ac_compiler_gnu=no
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5020 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5022 GCC=`test $ac_compiler_gnu = yes && echo yes`
5023 ac_test_CFLAGS=${CFLAGS+set}
5024 ac_save_CFLAGS=$CFLAGS
5025 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_cc_g+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5032 ac_cv_prog_cc_g=no
5033 CFLAGS="-g"
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5042 main ()
5046 return 0;
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_prog_cc_g=yes
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 CFLAGS=""
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5080 main ()
5084 return 0;
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (ac_try="$ac_compile"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_compile") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && {
5101 test -z "$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 } && test -s conftest.$ac_objext; then
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ac_c_werror_flag=$ac_save_c_werror_flag
5110 CFLAGS="-g"
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5119 main ()
5123 return 0;
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
5143 ac_cv_prog_cc_g=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 ac_c_werror_flag=$ac_save_c_werror_flag
5160 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5162 if test "$ac_test_CFLAGS" = set; then
5163 CFLAGS=$ac_save_CFLAGS
5164 elif test $ac_cv_prog_cc_g = yes; then
5165 if test "$GCC" = yes; then
5166 CFLAGS="-g -O2"
5167 else
5168 CFLAGS="-g"
5170 else
5171 if test "$GCC" = yes; then
5172 CFLAGS="-O2"
5173 else
5174 CFLAGS=
5177 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5178 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5179 if test "${ac_cv_prog_cc_c89+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 ac_cv_prog_cc_c89=no
5183 ac_save_CC=$CC
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <stdarg.h>
5191 #include <stdio.h>
5192 #include <sys/types.h>
5193 #include <sys/stat.h>
5194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5195 struct buf { int x; };
5196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5197 static char *e (p, i)
5198 char **p;
5199 int i;
5201 return p[i];
5203 static char *f (char * (*g) (char **, int), char **p, ...)
5205 char *s;
5206 va_list v;
5207 va_start (v,p);
5208 s = g (p, va_arg (v,int));
5209 va_end (v);
5210 return s;
5213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5214 function prototypes and stuff, but not '\xHH' hex character constants.
5215 These don't provoke an error unfortunately, instead are silently treated
5216 as 'x'. The following induces an error, until -std is added to get
5217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5218 array size at least. It's necessary to write '\x00'==0 to get something
5219 that's true only with -std. */
5220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5223 inside strings and character constants. */
5224 #define FOO(x) 'x'
5225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5227 int test (int i, double x);
5228 struct s1 {int (*f) (int a);};
5229 struct s2 {int (*f) (double a);};
5230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5231 int argc;
5232 char **argv;
5234 main ()
5236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5238 return 0;
5240 _ACEOF
5241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5244 CC="$ac_save_CC $ac_arg"
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5262 ac_cv_prog_cc_c89=$ac_arg
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5270 rm -f core conftest.err conftest.$ac_objext
5271 test "x$ac_cv_prog_cc_c89" != "xno" && break
5272 done
5273 rm -f conftest.$ac_ext
5274 CC=$ac_save_CC
5277 # AC_CACHE_VAL
5278 case "x$ac_cv_prog_cc_c89" in
5280 { echo "$as_me:$LINENO: result: none needed" >&5
5281 echo "${ECHO_T}none needed" >&6; } ;;
5282 xno)
5283 { echo "$as_me:$LINENO: result: unsupported" >&5
5284 echo "${ECHO_T}unsupported" >&6; } ;;
5286 CC="$CC $ac_cv_prog_cc_c89"
5287 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5288 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5289 esac
5292 ac_ext=c
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298 ac_ext=cpp
5299 ac_cpp='$CXXCPP $CPPFLAGS'
5300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5303 if test -z "$CXX"; then
5304 if test -n "$CCC"; then
5305 CXX=$CCC
5306 else
5307 if test -n "$ac_tool_prefix"; then
5308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5314 if test "${ac_cv_prog_CXX+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 if test -n "$CXX"; then
5318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5337 CXX=$ac_cv_prog_CXX
5338 if test -n "$CXX"; then
5339 { echo "$as_me:$LINENO: result: $CXX" >&5
5340 echo "${ECHO_T}$CXX" >&6; }
5341 else
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5347 test -n "$CXX" && break
5348 done
5350 if test -z "$CXX"; then
5351 ac_ct_CXX=$CXX
5352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5354 # Extract the first word of "$ac_prog", so it can be a program name with args.
5355 set dummy $ac_prog; ac_word=$2
5356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5358 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 if test -n "$ac_ct_CXX"; then
5362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_ac_ct_CXX="$ac_prog"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5375 done
5376 done
5377 IFS=$as_save_IFS
5381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5382 if test -n "$ac_ct_CXX"; then
5383 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5384 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5385 else
5386 { echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6; }
5391 test -n "$ac_ct_CXX" && break
5392 done
5394 if test "x$ac_ct_CXX" = x; then
5395 CXX="g++"
5396 else
5397 case $cross_compiling:$ac_tool_warned in
5398 yes:)
5399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5400 whose name does not start with the host triplet. If you think this
5401 configuration is useful to you, please write to autoconf@gnu.org." >&5
5402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5403 whose name does not start with the host triplet. If you think this
5404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5405 ac_tool_warned=yes ;;
5406 esac
5407 CXX=$ac_ct_CXX
5413 # Provide some information about the compiler.
5414 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5415 ac_compiler=`set X $ac_compile; echo $2`
5416 { (ac_try="$ac_compiler --version >&5"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compiler --version >&5") 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }
5426 { (ac_try="$ac_compiler -v >&5"
5427 case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_compiler -v >&5") 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }
5436 { (ac_try="$ac_compiler -V >&5"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compiler -V >&5") 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }
5447 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5448 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5449 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5460 main ()
5462 #ifndef __GNUC__
5463 choke me
5464 #endif
5467 return 0;
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_cxx_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 ac_compiler_gnu=yes
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5492 ac_compiler_gnu=no
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5499 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5500 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5501 GXX=`test $ac_compiler_gnu = yes && echo yes`
5502 ac_test_CXXFLAGS=${CXXFLAGS+set}
5503 ac_save_CXXFLAGS=$CXXFLAGS
5504 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5505 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5506 if test "${ac_cv_prog_cxx_g+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5510 ac_cxx_werror_flag=yes
5511 ac_cv_prog_cxx_g=no
5512 CXXFLAGS="-g"
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5521 main ()
5525 return 0;
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5530 case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_cxx_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5545 ac_cv_prog_cxx_g=yes
5546 else
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 CXXFLAGS=""
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5559 main ()
5563 return 0;
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_cxx_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5589 CXXFLAGS="-g"
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5598 main ()
5602 return 0;
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_compile") 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && {
5619 test -z "$ac_cxx_werror_flag" ||
5620 test ! -s conftest.err
5621 } && test -s conftest.$ac_objext; then
5622 ac_cv_prog_cxx_g=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5640 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5641 if test "$ac_test_CXXFLAGS" = set; then
5642 CXXFLAGS=$ac_save_CXXFLAGS
5643 elif test $ac_cv_prog_cxx_g = yes; then
5644 if test "$GXX" = yes; then
5645 CXXFLAGS="-g -O2"
5646 else
5647 CXXFLAGS="-g"
5649 else
5650 if test "$GXX" = yes; then
5651 CXXFLAGS="-O2"
5652 else
5653 CXXFLAGS=
5656 ac_ext=c
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662 ac_ext=c
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5667 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5668 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5669 # On Suns, sometimes $CPP names a directory.
5670 if test -n "$CPP" && test -d "$CPP"; then
5671 CPP=
5673 if test -z "$CPP"; then
5674 if test "${ac_cv_prog_CPP+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 # Double quotes because CPP needs to be expanded
5678 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5680 ac_preproc_ok=false
5681 for ac_c_preproc_warn_flag in '' yes
5683 # Use a header file that comes with gcc, so configuring glibc
5684 # with a fresh cross-compiler works.
5685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5686 # <limits.h> exists even on freestanding compilers.
5687 # On the NeXT, cc -E runs the code through the compiler's parser,
5688 # not just through cpp. "Syntax error" is here to catch this case.
5689 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h. */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 #ifdef __STDC__
5696 # include <limits.h>
5697 #else
5698 # include <assert.h>
5699 #endif
5700 Syntax error
5701 _ACEOF
5702 if { (ac_try="$ac_cpp conftest.$ac_ext"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } >/dev/null && {
5715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5717 }; then
5719 else
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 # Broken: fails on valid input.
5724 continue
5727 rm -f conftest.err conftest.$ac_ext
5729 # OK, works on sane cases. Now check whether nonexistent headers
5730 # can be detected and how.
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #include <ac_nonexistent.h>
5738 _ACEOF
5739 if { (ac_try="$ac_cpp conftest.$ac_ext"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } >/dev/null && {
5752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 }; then
5755 # Broken: success on invalid input.
5756 continue
5757 else
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5761 # Passes both tests.
5762 ac_preproc_ok=:
5763 break
5766 rm -f conftest.err conftest.$ac_ext
5768 done
5769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5770 rm -f conftest.err conftest.$ac_ext
5771 if $ac_preproc_ok; then
5772 break
5775 done
5776 ac_cv_prog_CPP=$CPP
5779 CPP=$ac_cv_prog_CPP
5780 else
5781 ac_cv_prog_CPP=$CPP
5783 { echo "$as_me:$LINENO: result: $CPP" >&5
5784 echo "${ECHO_T}$CPP" >&6; }
5785 ac_preproc_ok=false
5786 for ac_c_preproc_warn_flag in '' yes
5788 # Use a header file that comes with gcc, so configuring glibc
5789 # with a fresh cross-compiler works.
5790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5791 # <limits.h> exists even on freestanding compilers.
5792 # On the NeXT, cc -E runs the code through the compiler's parser,
5793 # not just through cpp. "Syntax error" is here to catch this case.
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #ifdef __STDC__
5801 # include <limits.h>
5802 #else
5803 # include <assert.h>
5804 #endif
5805 Syntax error
5806 _ACEOF
5807 if { (ac_try="$ac_cpp conftest.$ac_ext"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } >/dev/null && {
5820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 }; then
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 # Broken: fails on valid input.
5829 continue
5832 rm -f conftest.err conftest.$ac_ext
5834 # OK, works on sane cases. Now check whether nonexistent headers
5835 # can be detected and how.
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 #include <ac_nonexistent.h>
5843 _ACEOF
5844 if { (ac_try="$ac_cpp conftest.$ac_ext"
5845 case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848 esac
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } >/dev/null && {
5857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 }; then
5860 # Broken: success on invalid input.
5861 continue
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5866 # Passes both tests.
5867 ac_preproc_ok=:
5868 break
5871 rm -f conftest.err conftest.$ac_ext
5873 done
5874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5875 rm -f conftest.err conftest.$ac_ext
5876 if $ac_preproc_ok; then
5878 else
5879 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5880 See \`config.log' for more details." >&5
5881 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5882 See \`config.log' for more details." >&2;}
5883 { (exit 1); exit 1; }; }
5886 ac_ext=c
5887 ac_cpp='$CPP $CPPFLAGS'
5888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892 ac_ext=cpp
5893 ac_cpp='$CXXCPP $CPPFLAGS'
5894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5897 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5898 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5899 if test -z "$CXXCPP"; then
5900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 # Double quotes because CXXCPP needs to be expanded
5904 for CXXCPP in "$CXX -E" "/lib/cpp"
5906 ac_preproc_ok=false
5907 for ac_cxx_preproc_warn_flag in '' yes
5909 # Use a header file that comes with gcc, so configuring glibc
5910 # with a fresh cross-compiler works.
5911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5912 # <limits.h> exists even on freestanding compilers.
5913 # On the NeXT, cc -E runs the code through the compiler's parser,
5914 # not just through cpp. "Syntax error" is here to catch this case.
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #ifdef __STDC__
5922 # include <limits.h>
5923 #else
5924 # include <assert.h>
5925 #endif
5926 Syntax error
5927 _ACEOF
5928 if { (ac_try="$ac_cpp conftest.$ac_ext"
5929 case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932 esac
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } >/dev/null && {
5941 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5942 test ! -s conftest.err
5943 }; then
5945 else
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5949 # Broken: fails on valid input.
5950 continue
5953 rm -f conftest.err conftest.$ac_ext
5955 # OK, works on sane cases. Now check whether nonexistent headers
5956 # can be detected and how.
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <ac_nonexistent.h>
5964 _ACEOF
5965 if { (ac_try="$ac_cpp conftest.$ac_ext"
5966 case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969 esac
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } >/dev/null && {
5978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5979 test ! -s conftest.err
5980 }; then
5981 # Broken: success on invalid input.
5982 continue
5983 else
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987 # Passes both tests.
5988 ac_preproc_ok=:
5989 break
5992 rm -f conftest.err conftest.$ac_ext
5994 done
5995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5996 rm -f conftest.err conftest.$ac_ext
5997 if $ac_preproc_ok; then
5998 break
6001 done
6002 ac_cv_prog_CXXCPP=$CXXCPP
6005 CXXCPP=$ac_cv_prog_CXXCPP
6006 else
6007 ac_cv_prog_CXXCPP=$CXXCPP
6009 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6010 echo "${ECHO_T}$CXXCPP" >&6; }
6011 ac_preproc_ok=false
6012 for ac_cxx_preproc_warn_flag in '' yes
6014 # Use a header file that comes with gcc, so configuring glibc
6015 # with a fresh cross-compiler works.
6016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6017 # <limits.h> exists even on freestanding compilers.
6018 # On the NeXT, cc -E runs the code through the compiler's parser,
6019 # not just through cpp. "Syntax error" is here to catch this case.
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #ifdef __STDC__
6027 # include <limits.h>
6028 #else
6029 # include <assert.h>
6030 #endif
6031 Syntax error
6032 _ACEOF
6033 if { (ac_try="$ac_cpp conftest.$ac_ext"
6034 case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } >/dev/null && {
6046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6047 test ! -s conftest.err
6048 }; then
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 # Broken: fails on valid input.
6055 continue
6058 rm -f conftest.err conftest.$ac_ext
6060 # OK, works on sane cases. Now check whether nonexistent headers
6061 # can be detected and how.
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <ac_nonexistent.h>
6069 _ACEOF
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } >/dev/null && {
6083 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6084 test ! -s conftest.err
6085 }; then
6086 # Broken: success on invalid input.
6087 continue
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 # Passes both tests.
6093 ac_preproc_ok=:
6094 break
6097 rm -f conftest.err conftest.$ac_ext
6099 done
6100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6101 rm -f conftest.err conftest.$ac_ext
6102 if $ac_preproc_ok; then
6104 else
6105 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6106 See \`config.log' for more details." >&5
6107 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6108 See \`config.log' for more details." >&2;}
6109 { (exit 1); exit 1; }; }
6112 ac_ext=c
6113 ac_cpp='$CPP $CPPFLAGS'
6114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6119 # the developers regenerating the configure script don't have to install libtool.
6120 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6121 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6122 if test "${ac_cv_path_SED+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6126 for ac_i in 1 2 3 4 5 6 7; do
6127 ac_script="$ac_script$as_nl$ac_script"
6128 done
6129 echo "$ac_script" | sed 99q >conftest.sed
6130 $as_unset ac_script || ac_script=
6131 # Extract the first word of "sed gsed" to use in msg output
6132 if test -z "$SED"; then
6133 set dummy sed gsed; ac_prog_name=$2
6134 if test "${ac_cv_path_SED+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 ac_path_SED_found=false
6138 # Loop through the user's path and test for each of PROGNAME-LIST
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_prog in sed gsed; do
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6147 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6148 # Check for GNU ac_path_SED and select it if it is found.
6149 # Check for GNU $ac_path_SED
6150 case `"$ac_path_SED" --version 2>&1` in
6151 *GNU*)
6152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6154 ac_count=0
6155 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6156 while :
6158 cat "conftest.in" "conftest.in" >"conftest.tmp"
6159 mv "conftest.tmp" "conftest.in"
6160 cp "conftest.in" "conftest.nl"
6161 echo '' >> "conftest.nl"
6162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6164 ac_count=`expr $ac_count + 1`
6165 if test $ac_count -gt ${ac_path_SED_max-0}; then
6166 # Best one so far, save it but keep looking for a better one
6167 ac_cv_path_SED="$ac_path_SED"
6168 ac_path_SED_max=$ac_count
6170 # 10*(2^10) chars as input seems more than enough
6171 test $ac_count -gt 10 && break
6172 done
6173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6174 esac
6177 $ac_path_SED_found && break 3
6178 done
6179 done
6181 done
6182 IFS=$as_save_IFS
6187 SED="$ac_cv_path_SED"
6188 if test -z "$SED"; then
6189 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6190 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6191 { (exit 1); exit 1; }; }
6194 else
6195 ac_cv_path_SED=$SED
6199 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6200 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6201 SED="$ac_cv_path_SED"
6202 rm -f conftest.sed
6204 { echo "$as_me:$LINENO: checking for egrep" >&5
6205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6206 if test "${ac_cv_prog_egrep+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6210 then ac_cv_prog_egrep='grep -E'
6211 else ac_cv_prog_egrep='egrep'
6214 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6215 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6216 EGREP=$ac_cv_prog_egrep
6220 # Check whether --with-gnu-ld was given.
6221 if test "${with_gnu_ld+set}" = set; then
6222 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6223 else
6224 with_gnu_ld=no
6227 ac_prog=ld
6228 if test "$GCC" = yes; then
6229 # Check if gcc -print-prog-name=ld gives a path.
6230 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6231 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6232 case $host in
6233 *-*-mingw*)
6234 # gcc leaves a trailing carriage return which upsets mingw
6235 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6237 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6238 esac
6239 case $ac_prog in
6240 # Accept absolute paths.
6241 [\\/]* | ?:[\\/]*)
6242 re_direlt='/[^/][^/]*/\.\./'
6243 # Canonicalize the pathname of ld
6244 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6245 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6246 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6247 done
6248 test -z "$LD" && LD="$ac_prog"
6251 # If it fails, then pretend we aren't using GCC.
6252 ac_prog=ld
6255 # If it is relative, then search for the first ld in PATH.
6256 with_gnu_ld=unknown
6258 esac
6259 elif test "$with_gnu_ld" = yes; then
6260 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6261 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6262 else
6263 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6264 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6266 if test "${lt_cv_path_LD+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 if test -z "$LD"; then
6270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6271 for ac_dir in $PATH; do
6272 IFS="$lt_save_ifs"
6273 test -z "$ac_dir" && ac_dir=.
6274 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6275 lt_cv_path_LD="$ac_dir/$ac_prog"
6276 # Check to see if the program is GNU ld. I'd rather use --version,
6277 # but apparently some variants of GNU ld only accept -v.
6278 # Break only if it was the GNU/non-GNU ld that we prefer.
6279 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6280 *GNU* | *'with BFD'*)
6281 test "$with_gnu_ld" != no && break
6284 test "$with_gnu_ld" != yes && break
6286 esac
6288 done
6289 IFS="$lt_save_ifs"
6290 else
6291 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6295 LD="$lt_cv_path_LD"
6296 if test -n "$LD"; then
6297 { echo "$as_me:$LINENO: result: $LD" >&5
6298 echo "${ECHO_T}$LD" >&6; }
6299 else
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6303 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6304 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6305 { (exit 1); exit 1; }; }
6306 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6307 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6308 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6312 case `$LD -v 2>&1 </dev/null` in
6313 *GNU* | *'with BFD'*)
6314 lt_cv_prog_gnu_ld=yes
6317 lt_cv_prog_gnu_ld=no
6319 esac
6321 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6322 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6323 with_gnu_ld=$lt_cv_prog_gnu_ld
6325 # note, does not work on FreeBSD
6326 for ac_prog in gawk mawk nawk awk
6328 # Extract the first word of "$ac_prog", so it can be a program name with args.
6329 set dummy $ac_prog; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_prog_AWK+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 if test -n "$AWK"; then
6336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_AWK="$ac_prog"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6349 done
6350 done
6351 IFS=$as_save_IFS
6355 AWK=$ac_cv_prog_AWK
6356 if test -n "$AWK"; then
6357 { echo "$as_me:$LINENO: result: $AWK" >&5
6358 echo "${ECHO_T}$AWK" >&6; }
6359 else
6360 { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6365 test -n "$AWK" && break
6366 done
6368 # Find a good install program. We prefer a C program (faster),
6369 # so one script is as good as another. But avoid the broken or
6370 # incompatible versions:
6371 # SysV /etc/install, /usr/sbin/install
6372 # SunOS /usr/etc/install
6373 # IRIX /sbin/install
6374 # AIX /bin/install
6375 # AmigaOS /C/install, which installs bootblocks on floppy discs
6376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6379 # OS/2's system install, which has a completely different semantic
6380 # ./install, which can be erroneously created by make from ./install.sh.
6381 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6382 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6383 if test -z "$INSTALL"; then
6384 if test "${ac_cv_path_install+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 # Account for people who put trailing slashes in PATH elements.
6393 case $as_dir/ in
6394 ./ | .// | /cC/* | \
6395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6397 /usr/ucb/* ) ;;
6399 # OSF1 and SCO ODT 3.0 have their own names for install.
6400 # Don't use installbsd from OSF since it installs stuff as root
6401 # by default.
6402 for ac_prog in ginstall scoinst install; do
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6405 if test $ac_prog = install &&
6406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6407 # AIX install. It has an incompatible calling convention.
6409 elif test $ac_prog = install &&
6410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6411 # program-specific install script used by HP pwplus--don't use.
6413 else
6414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6415 break 3
6418 done
6419 done
6421 esac
6422 done
6423 IFS=$as_save_IFS
6427 if test "${ac_cv_path_install+set}" = set; then
6428 INSTALL=$ac_cv_path_install
6429 else
6430 # As a last resort, use the slow shell script. Don't cache a
6431 # value for INSTALL within a source directory, because that will
6432 # break other packages using the cache if that directory is
6433 # removed, or if the value is a relative name.
6434 INSTALL=$ac_install_sh
6437 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6438 echo "${ECHO_T}$INSTALL" >&6; }
6440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6441 # It thinks the first close brace ends the variable substitution.
6442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6448 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6449 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6450 LN_S=$as_ln_s
6451 if test "$LN_S" = "ln -s"; then
6452 { echo "$as_me:$LINENO: result: yes" >&5
6453 echo "${ECHO_T}yes" >&6; }
6454 else
6455 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6456 echo "${ECHO_T}no, using $LN_S" >&6; }
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_prog_RANLIB+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 if test -n "$RANLIB"; then
6468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6481 done
6482 done
6483 IFS=$as_save_IFS
6487 RANLIB=$ac_cv_prog_RANLIB
6488 if test -n "$RANLIB"; then
6489 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6490 echo "${ECHO_T}$RANLIB" >&6; }
6491 else
6492 { echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6; }
6498 if test -z "$ac_cv_prog_RANLIB"; then
6499 ac_ct_RANLIB=$RANLIB
6500 # Extract the first word of "ranlib", so it can be a program name with args.
6501 set dummy ranlib; ac_word=$2
6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 if test -n "$ac_ct_RANLIB"; then
6508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_ac_ct_RANLIB="ranlib"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6528 if test -n "$ac_ct_RANLIB"; then
6529 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6530 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6531 else
6532 { echo "$as_me:$LINENO: result: no" >&5
6533 echo "${ECHO_T}no" >&6; }
6536 if test "x$ac_ct_RANLIB" = x; then
6537 RANLIB=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6542 whose name does not start with the host triplet. If you think this
6543 configuration is useful to you, please write to autoconf@gnu.org." >&5
6544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6545 whose name does not start with the host triplet. If you think this
6546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 RANLIB=$ac_ct_RANLIB
6551 else
6552 RANLIB="$ac_cv_prog_RANLIB"
6555 { echo "$as_me:$LINENO: checking for GNU make" >&5
6556 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6557 if test "${GNU_MAKE+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 GNU_MAKE='Not Found' ;
6561 GNU_MAKE_VERSION_MAJOR=0 ;
6562 GNU_MAKE_VERSION_MINOR=0 ;
6563 for a in make gmake gnumake ; do
6564 if test -z "$a" ; then continue ; fi ;
6565 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6566 GNU_MAKE=$a ;
6567 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6568 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6569 break;
6571 done ;
6574 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6575 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6576 if test "x$GNU_MAKE" = "xNot Found" ; then
6577 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6578 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6579 { (exit 1); exit 1; }; }
6580 exit 1
6585 if test -n "$ac_tool_prefix"; then
6586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}strip; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_STRIP+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 case $STRIP in
6594 [\\/]* | ?:[\\/]*)
6595 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6614 esac
6616 STRIP=$ac_cv_path_STRIP
6617 if test -n "$STRIP"; then
6618 { echo "$as_me:$LINENO: result: $STRIP" >&5
6619 echo "${ECHO_T}$STRIP" >&6; }
6620 else
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6627 if test -z "$ac_cv_path_STRIP"; then
6628 ac_pt_STRIP=$STRIP
6629 # Extract the first word of "strip", so it can be a program name with args.
6630 set dummy strip; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636 case $ac_pt_STRIP in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6657 esac
6659 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6660 if test -n "$ac_pt_STRIP"; then
6661 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6662 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6663 else
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6668 if test "x$ac_pt_STRIP" = x; then
6669 STRIP=":"
6670 else
6671 case $cross_compiling:$ac_tool_warned in
6672 yes:)
6673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6674 whose name does not start with the host triplet. If you think this
6675 configuration is useful to you, please write to autoconf@gnu.org." >&5
6676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet. If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681 STRIP=$ac_pt_STRIP
6683 else
6684 STRIP="$ac_cv_path_STRIP"
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}ar; ac_word=$2
6690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6692 if test "${ac_cv_path_AR+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695 case $AR in
6696 [\\/]* | ?:[\\/]*)
6697 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6711 done
6712 done
6713 IFS=$as_save_IFS
6716 esac
6718 AR=$ac_cv_path_AR
6719 if test -n "$AR"; then
6720 { echo "$as_me:$LINENO: result: $AR" >&5
6721 echo "${ECHO_T}$AR" >&6; }
6722 else
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6729 if test -z "$ac_cv_path_AR"; then
6730 ac_pt_AR=$AR
6731 # Extract the first word of "ar", so it can be a program name with args.
6732 set dummy ar; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 case $ac_pt_AR in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6754 done
6755 done
6756 IFS=$as_save_IFS
6759 esac
6761 ac_pt_AR=$ac_cv_path_ac_pt_AR
6762 if test -n "$ac_pt_AR"; then
6763 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6764 echo "${ECHO_T}$ac_pt_AR" >&6; }
6765 else
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6770 if test "x$ac_pt_AR" = x; then
6771 AR=":"
6772 else
6773 case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6776 whose name does not start with the host triplet. If you think this
6777 configuration is useful to you, please write to autoconf@gnu.org." >&5
6778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6779 whose name does not start with the host triplet. If you think this
6780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783 AR=$ac_pt_AR
6785 else
6786 AR="$ac_cv_path_AR"
6790 GNU_LD=0
6791 if test "x$with_gnu_ld" = "xyes" ; then
6792 GNU_LD=1
6796 # Extract the first word of "grep", so it can be a program name with args.
6797 set dummy grep; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_GREP+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803 case $GREP in
6804 [\\/]* | ?:[\\/]*)
6805 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6823 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6825 esac
6827 GREP=$ac_cv_path_GREP
6828 if test -n "$GREP"; then
6829 { echo "$as_me:$LINENO: result: $GREP" >&5
6830 echo "${ECHO_T}$GREP" >&6; }
6831 else
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 # Extract the first word of "find", so it can be a program name with args.
6838 set dummy find; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_path_FIND+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 case $FIND in
6845 [\\/]* | ?:[\\/]*)
6846 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6860 done
6861 done
6862 IFS=$as_save_IFS
6864 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6866 esac
6868 FIND=$ac_cv_path_FIND
6869 if test -n "$FIND"; then
6870 { echo "$as_me:$LINENO: result: $FIND" >&5
6871 echo "${ECHO_T}$FIND" >&6; }
6872 else
6873 { echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6; }
6878 # Extract the first word of "compress", so it can be a program name with args.
6879 set dummy compress; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_path_COMPRESS+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 case $COMPRESS in
6886 [\\/]* | ?:[\\/]*)
6887 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6901 done
6902 done
6903 IFS=$as_save_IFS
6905 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6907 esac
6909 COMPRESS=$ac_cv_path_COMPRESS
6910 if test -n "$COMPRESS"; then
6911 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6912 echo "${ECHO_T}$COMPRESS" >&6; }
6913 else
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6919 # Extract the first word of "basename", so it can be a program name with args.
6920 set dummy basename; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_BASENAME+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 case $BASENAME in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6946 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6948 esac
6950 BASENAME=$ac_cv_path_BASENAME
6951 if test -n "$BASENAME"; then
6952 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6953 echo "${ECHO_T}$BASENAME" >&6; }
6954 else
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 # Extract the first word of "id", so it can be a program name with args.
6961 set dummy id; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_ID+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 case $ID in
6968 [\\/]* | ?:[\\/]*)
6969 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
6987 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6989 esac
6991 ID=$ac_cv_path_ID
6992 if test -n "$ID"; then
6993 { echo "$as_me:$LINENO: result: $ID" >&5
6994 echo "${ECHO_T}$ID" >&6; }
6995 else
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 # Extract the first word of "dirname", so it can be a program name with args.
7002 set dummy dirname; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_DIRNAME+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008 case $DIRNAME in
7009 [\\/]* | ?:[\\/]*)
7010 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7024 done
7025 done
7026 IFS=$as_save_IFS
7028 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7030 esac
7032 DIRNAME=$ac_cv_path_DIRNAME
7033 if test -n "$DIRNAME"; then
7034 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7035 echo "${ECHO_T}$DIRNAME" >&6; }
7036 else
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7042 # Extract the first word of "sh", so it can be a program name with args.
7043 set dummy sh; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_SHELL+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049 case $SHELL in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7069 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7071 esac
7073 SHELL=$ac_cv_path_SHELL
7074 if test -n "$SHELL"; then
7075 { echo "$as_me:$LINENO: result: $SHELL" >&5
7076 echo "${ECHO_T}$SHELL" >&6; }
7077 else
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 # Extract the first word of "ln", so it can be a program name with args.
7084 set dummy ln; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_LN+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 case $LN in
7091 [\\/]* | ?:[\\/]*)
7092 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7110 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7112 esac
7114 LN=$ac_cv_path_LN
7115 if test -n "$LN"; then
7116 { echo "$as_me:$LINENO: result: $LN" >&5
7117 echo "${ECHO_T}$LN" >&6; }
7118 else
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7124 # Extract the first word of "dot", so it can be a program name with args.
7125 set dummy dot; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_DOT+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 case $DOT in
7132 [\\/]* | ?:[\\/]*)
7133 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7147 done
7148 done
7149 IFS=$as_save_IFS
7151 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7153 esac
7155 DOT=$ac_cv_path_DOT
7156 if test -n "$DOT"; then
7157 { echo "$as_me:$LINENO: result: $DOT" >&5
7158 echo "${ECHO_T}$DOT" >&6; }
7159 else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7165 # Extract the first word of "wget", so it can be a program name with args.
7166 set dummy wget; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_WGET+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 case $WGET in
7173 [\\/]* | ?:[\\/]*)
7174 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7188 done
7189 done
7190 IFS=$as_save_IFS
7192 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7194 esac
7196 WGET=$ac_cv_path_WGET
7197 if test -n "$WGET"; then
7198 { echo "$as_me:$LINENO: result: $WGET" >&5
7199 echo "${ECHO_T}$WGET" >&6; }
7200 else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7206 # Extract the first word of "rubber", so it can be a program name with args.
7207 set dummy rubber; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_RUBBER+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 case $RUBBER in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7229 done
7230 done
7231 IFS=$as_save_IFS
7233 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7235 esac
7237 RUBBER=$ac_cv_path_RUBBER
7238 if test -n "$RUBBER"; then
7239 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7240 echo "${ECHO_T}$RUBBER" >&6; }
7241 else
7242 { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7247 # Extract the first word of "kpsewhich", so it can be a program name with args.
7248 set dummy kpsewhich; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 case $KPATHSEA in
7255 [\\/]* | ?:[\\/]*)
7256 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7270 done
7271 done
7272 IFS=$as_save_IFS
7274 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7276 esac
7278 KPATHSEA=$ac_cv_path_KPATHSEA
7279 if test -n "$KPATHSEA"; then
7280 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7281 echo "${ECHO_T}$KPATHSEA" >&6; }
7282 else
7283 { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7288 if test "${WGET}" != ":" ; then
7289 DOWNLOAD=${WGET}
7290 else
7291 # Extract the first word of "fetch", so it can be a program name with args.
7292 set dummy fetch; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_FETCH+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 case $FETCH in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7314 done
7315 done
7316 IFS=$as_save_IFS
7318 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7320 esac
7322 FETCH=$ac_cv_path_FETCH
7323 if test -n "$FETCH"; then
7324 { echo "$as_me:$LINENO: result: $FETCH" >&5
7325 echo "${ECHO_T}$FETCH" >&6; }
7326 else
7327 { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7332 DOWNLOAD=${FETCH}
7336 if test -n "$ac_tool_prefix"; then
7337 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7338 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 if test -n "$SOXMIX"; then
7345 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7358 done
7359 done
7360 IFS=$as_save_IFS
7364 SOXMIX=$ac_cv_prog_SOXMIX
7365 if test -n "$SOXMIX"; then
7366 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7367 echo "${ECHO_T}$SOXMIX" >&6; }
7368 else
7369 { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7375 if test -z "$ac_cv_prog_SOXMIX"; then
7376 ac_ct_SOXMIX=$SOXMIX
7377 # Extract the first word of "soxmix", so it can be a program name with args.
7378 set dummy soxmix; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 if test -n "$ac_ct_SOXMIX"; then
7385 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7398 done
7399 done
7400 IFS=$as_save_IFS
7404 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7405 if test -n "$ac_ct_SOXMIX"; then
7406 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7407 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7408 else
7409 { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7413 if test "x$ac_ct_SOXMIX" = x; then
7414 SOXMIX=":"
7415 else
7416 case $cross_compiling:$ac_tool_warned in
7417 yes:)
7418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7419 whose name does not start with the host triplet. If you think this
7420 configuration is useful to you, please write to autoconf@gnu.org." >&5
7421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7422 whose name does not start with the host triplet. If you think this
7423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426 SOXMIX=$ac_ct_SOXMIX
7428 else
7429 SOXMIX="$ac_cv_prog_SOXMIX"
7432 if test "${SOXMIX}" != ":" ; then
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_SOXMIX 1
7436 _ACEOF
7443 ac_ext=c
7444 ac_cpp='$CPP $CPPFLAGS'
7445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7449 acx_pthread_ok=no
7451 # We used to check for pthread.h first, but this fails if pthread.h
7452 # requires special compiler flags (e.g. on True64 or Sequent).
7453 # It gets checked for in the link test anyway.
7455 # First of all, check if the user has set any of the PTHREAD_LIBS,
7456 # etcetera environment variables, and if threads linking works using
7457 # them:
7458 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7459 save_CFLAGS="$CFLAGS"
7460 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7461 save_LIBS="$LIBS"
7462 LIBS="$PTHREAD_LIBS $LIBS"
7463 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7464 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7472 /* Override any GCC internal prototype to avoid an error.
7473 Use char because int might match the return type of a GCC
7474 builtin and then its argument prototype would still apply. */
7475 #ifdef __cplusplus
7476 extern "C"
7477 #endif
7478 char pthread_join ();
7480 main ()
7482 return pthread_join ();
7484 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext conftest$ac_exeext
7488 if { (ac_try="$ac_link"
7489 case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_link") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest$ac_exeext &&
7504 $as_test_x conftest$ac_exeext; then
7505 acx_pthread_ok=yes
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7514 conftest$ac_exeext conftest.$ac_ext
7515 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7516 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7517 if test x"$acx_pthread_ok" = xno; then
7518 PTHREAD_LIBS=""
7519 PTHREAD_CFLAGS=""
7521 LIBS="$save_LIBS"
7522 CFLAGS="$save_CFLAGS"
7525 # We must check for the threads library under a number of different
7526 # names; the ordering is very important because some systems
7527 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7528 # libraries is broken (non-POSIX).
7530 # Create a list of thread flags to try. Items starting with a "-" are
7531 # C compiler flags, and other items are library names, except for "none"
7532 # which indicates that we try without any flags at all, and "pthread-config"
7533 # which is a program returning the flags for the Pth emulation library.
7535 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7537 # The ordering *is* (sometimes) important. Some notes on the
7538 # individual items follow:
7540 # pthreads: AIX (must check this before -lpthread)
7541 # none: in case threads are in libc; should be tried before -Kthread and
7542 # other compiler flags to prevent continual compiler warnings
7543 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7544 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7545 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7546 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7547 # -pthreads: Solaris/gcc
7548 # -mthreads: Mingw32/gcc, Lynx/gcc
7549 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7550 # doesn't hurt to check since this sometimes defines pthreads too;
7551 # also defines -D_REENTRANT)
7552 # ... -mt is also the pthreads flag for HP/aCC
7553 # pthread: Linux, etcetera
7554 # --thread-safe: KAI C++
7555 # pthread-config: use pthread-config program (for GNU Pth library)
7557 case "${host_cpu}-${host_os}" in
7558 *solaris*)
7560 # On Solaris (at least, for some versions), libc contains stubbed
7561 # (non-functional) versions of the pthreads routines, so link-based
7562 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7563 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7564 # a function called by this macro, so we could check for that, but
7565 # who knows whether they'll stub that too in a future libc.) So,
7566 # we'll just look for -pthreads and -lpthread first:
7568 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7570 esac
7572 if test x"$acx_pthread_ok" = xno; then
7573 for flag in $acx_pthread_flags; do
7575 case $flag in
7576 none)
7577 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7578 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7582 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7583 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7584 PTHREAD_CFLAGS="$flag"
7587 pthread-config)
7588 # Extract the first word of "pthread-config", so it can be a program name with args.
7589 set dummy pthread-config; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 if test -n "$acx_pthread_config"; then
7596 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_acx_pthread_config="yes"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7609 done
7610 done
7611 IFS=$as_save_IFS
7613 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7616 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7617 if test -n "$acx_pthread_config"; then
7618 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7619 echo "${ECHO_T}$acx_pthread_config" >&6; }
7620 else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 if test x"$acx_pthread_config" = xno; then continue; fi
7627 PTHREAD_CFLAGS="`pthread-config --cflags`"
7628 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7632 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7633 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7634 PTHREAD_LIBS="-l$flag"
7636 esac
7638 save_LIBS="$LIBS"
7639 save_CFLAGS="$CFLAGS"
7640 LIBS="$PTHREAD_LIBS $LIBS"
7641 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7643 # Check for various functions. We must include pthread.h,
7644 # since some functions may be macros. (On the Sequent, we
7645 # need a special flag -Kthread to make this header compile.)
7646 # We check for pthread_join because it is in -lpthread on IRIX
7647 # while pthread_create is in libc. We check for pthread_attr_init
7648 # due to DEC craziness with -lpthreads. We check for
7649 # pthread_cleanup_push because it is one of the few pthread
7650 # functions on Solaris that doesn't have a non-functional libc stub.
7651 # We try pthread_create on general principles.
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <pthread.h>
7660 main ()
7662 pthread_t th; pthread_join(th, 0);
7663 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7664 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7666 return 0;
7668 _ACEOF
7669 rm -f conftest.$ac_objext conftest$ac_exeext
7670 if { (ac_try="$ac_link"
7671 case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674 esac
7675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7676 (eval "$ac_link") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest$ac_exeext &&
7686 $as_test_x conftest$ac_exeext; then
7687 acx_pthread_ok=yes
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7696 conftest$ac_exeext conftest.$ac_ext
7698 LIBS="$save_LIBS"
7699 CFLAGS="$save_CFLAGS"
7701 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7702 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7703 if test "x$acx_pthread_ok" = xyes; then
7704 break;
7707 PTHREAD_LIBS=""
7708 PTHREAD_CFLAGS=""
7709 done
7712 # Various other checks:
7713 if test "x$acx_pthread_ok" = xyes; then
7714 save_LIBS="$LIBS"
7715 LIBS="$PTHREAD_LIBS $LIBS"
7716 save_CFLAGS="$CFLAGS"
7717 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7719 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7720 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7721 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7722 attr_name=unknown
7723 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 #include <pthread.h>
7732 main ()
7734 int attr=$attr; return attr;
7736 return 0;
7738 _ACEOF
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (ac_try="$ac_link"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_link") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest$ac_exeext &&
7756 $as_test_x conftest$ac_exeext; then
7757 attr_name=$attr; break
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7766 conftest$ac_exeext conftest.$ac_ext
7767 done
7768 { echo "$as_me:$LINENO: result: $attr_name" >&5
7769 echo "${ECHO_T}$attr_name" >&6; }
7770 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7772 cat >>confdefs.h <<_ACEOF
7773 #define PTHREAD_CREATE_JOINABLE $attr_name
7774 _ACEOF
7778 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7779 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7780 flag=no
7781 case "${host_cpu}-${host_os}" in
7782 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7783 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7784 esac
7785 { echo "$as_me:$LINENO: result: ${flag}" >&5
7786 echo "${ECHO_T}${flag}" >&6; }
7787 if test "x$flag" != xno; then
7788 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7791 LIBS="$save_LIBS"
7792 CFLAGS="$save_CFLAGS"
7794 # More AIX lossage: must compile with xlc_r or cc_r
7795 if test x"$GCC" != xyes; then
7796 for ac_prog in xlc_r cc_r
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 if test -n "$PTHREAD_CC"; then
7806 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_PTHREAD_CC="$ac_prog"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7819 done
7820 done
7821 IFS=$as_save_IFS
7825 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7826 if test -n "$PTHREAD_CC"; then
7827 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7828 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7829 else
7830 { echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6; }
7835 test -n "$PTHREAD_CC" && break
7836 done
7837 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7839 else
7840 PTHREAD_CC=$CC
7842 else
7843 PTHREAD_CC="$CC"
7850 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7851 if test x"$acx_pthread_ok" = xyes; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_PTHREAD 1
7855 _ACEOF
7858 else
7859 acx_pthread_ok=no
7862 ac_ext=c
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870 ac_ext=c
7871 ac_cpp='$CPP $CPPFLAGS'
7872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877 # Check whether --enable-dev-mode was given.
7878 if test "${enable_dev_mode+set}" = set; then
7879 enableval=$enable_dev_mode; case "${enableval}" in
7880 y|ye|yes) AST_DEVMODE=yes ;;
7881 n|no) AST_DEVMODE=no ;;
7882 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7883 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7884 { (exit 1); exit 1; }; } ;;
7885 esac
7890 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7891 # various packages.
7892 # $1 is the prefix for the variables in makeopts and autoconfig.h
7893 # $2 is the short comment, $4 is the long comment
7894 # $3 is the name used in --with- or --without- flags for configure.
7896 # Package option names should be in alphabetical order
7897 # by the --with option name (the third field),
7898 # to make things easier for the users.
7901 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7902 ALSA_OPTION="asound"
7904 # Check whether --with-asound was given.
7905 if test "${with_asound+set}" = set; then
7906 withval=$with_asound;
7907 case ${withval} in
7908 n|no)
7909 USE_ALSA=no
7911 y|ye|yes)
7912 ac_mandatory_list="${ac_mandatory_list} ALSA"
7915 ALSA_DIR="${withval}"
7916 ac_mandatory_list="${ac_mandatory_list} ALSA"
7918 esac
7922 PBX_ALSA=0
7929 # BKTR is used for backtrace support on platforms that do not
7930 # have it natively.
7932 BKTR_DESCRIP="Stack Backtrace support"
7933 BKTR_OPTION="execinfo"
7935 # Check whether --with-execinfo was given.
7936 if test "${with_execinfo+set}" = set; then
7937 withval=$with_execinfo;
7938 case ${withval} in
7939 n|no)
7940 USE_BKTR=no
7942 y|ye|yes)
7943 ac_mandatory_list="${ac_mandatory_list} BKTR"
7946 BKTR_DIR="${withval}"
7947 ac_mandatory_list="${ac_mandatory_list} BKTR"
7949 esac
7953 PBX_BKTR=0
7960 CAP_DESCRIP="POSIX 1.e capabilities"
7961 CAP_OPTION="cap"
7963 # Check whether --with-cap was given.
7964 if test "${with_cap+set}" = set; then
7965 withval=$with_cap;
7966 case ${withval} in
7967 n|no)
7968 USE_CAP=no
7970 y|ye|yes)
7971 ac_mandatory_list="${ac_mandatory_list} CAP"
7974 CAP_DIR="${withval}"
7975 ac_mandatory_list="${ac_mandatory_list} CAP"
7977 esac
7981 PBX_CAP=0
7988 CURL_DESCRIP="cURL"
7989 CURL_OPTION="curl"
7991 # Check whether --with-curl was given.
7992 if test "${with_curl+set}" = set; then
7993 withval=$with_curl;
7994 case ${withval} in
7995 n|no)
7996 USE_CURL=no
7998 y|ye|yes)
7999 ac_mandatory_list="${ac_mandatory_list} CURL"
8002 CURL_DIR="${withval}"
8003 ac_mandatory_list="${ac_mandatory_list} CURL"
8005 esac
8009 PBX_CURL=0
8016 CURSES_DESCRIP="curses"
8017 CURSES_OPTION="curses"
8019 # Check whether --with-curses was given.
8020 if test "${with_curses+set}" = set; then
8021 withval=$with_curses;
8022 case ${withval} in
8023 n|no)
8024 USE_CURSES=no
8026 y|ye|yes)
8027 ac_mandatory_list="${ac_mandatory_list} CURSES"
8030 CURSES_DIR="${withval}"
8031 ac_mandatory_list="${ac_mandatory_list} CURSES"
8033 esac
8037 PBX_CURSES=0
8044 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8045 CRYPTO_OPTION="crypto"
8047 # Check whether --with-crypto was given.
8048 if test "${with_crypto+set}" = set; then
8049 withval=$with_crypto;
8050 case ${withval} in
8051 n|no)
8052 USE_CRYPTO=no
8054 y|ye|yes)
8055 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8058 CRYPTO_DIR="${withval}"
8059 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8061 esac
8065 PBX_CRYPTO=0
8072 DAHDI_DESCRIP="DAHDI"
8073 DAHDI_OPTION="dahdi"
8075 # Check whether --with-dahdi was given.
8076 if test "${with_dahdi+set}" = set; then
8077 withval=$with_dahdi;
8078 case ${withval} in
8079 n|no)
8080 USE_DAHDI=no
8082 y|ye|yes)
8083 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8086 DAHDI_DIR="${withval}"
8087 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8089 esac
8093 PBX_DAHDI=0
8100 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8101 FFMPEG_OPTION="avcodec"
8103 # Check whether --with-avcodec was given.
8104 if test "${with_avcodec+set}" = set; then
8105 withval=$with_avcodec;
8106 case ${withval} in
8107 n|no)
8108 USE_FFMPEG=no
8110 y|ye|yes)
8111 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8114 FFMPEG_DIR="${withval}"
8115 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8117 esac
8121 PBX_FFMPEG=0
8128 GSM_DESCRIP="External GSM library"
8129 GSM_OPTION="gsm"
8131 # Check whether --with-gsm was given.
8132 if test "${with_gsm+set}" = set; then
8133 withval=$with_gsm;
8134 case ${withval} in
8135 n|no)
8136 USE_GSM=no
8138 y|ye|yes)
8139 ac_mandatory_list="${ac_mandatory_list} GSM"
8142 GSM_DIR="${withval}"
8143 ac_mandatory_list="${ac_mandatory_list} GSM"
8145 esac
8149 PBX_GSM=0
8156 GTK_DESCRIP="gtk libraries"
8157 GTK_OPTION="gtk"
8159 # Check whether --with-gtk was given.
8160 if test "${with_gtk+set}" = set; then
8161 withval=$with_gtk;
8162 case ${withval} in
8163 n|no)
8164 USE_GTK=no
8166 y|ye|yes)
8167 ac_mandatory_list="${ac_mandatory_list} GTK"
8170 GTK_DIR="${withval}"
8171 ac_mandatory_list="${ac_mandatory_list} GTK"
8173 esac
8177 PBX_GTK=0
8184 GTK2_DESCRIP="gtk2 libraries"
8185 GTK2_OPTION="gtk2"
8187 # Check whether --with-gtk2 was given.
8188 if test "${with_gtk2+set}" = set; then
8189 withval=$with_gtk2;
8190 case ${withval} in
8191 n|no)
8192 USE_GTK2=no
8194 y|ye|yes)
8195 ac_mandatory_list="${ac_mandatory_list} GTK2"
8198 GTK2_DIR="${withval}"
8199 ac_mandatory_list="${ac_mandatory_list} GTK2"
8201 esac
8205 PBX_GTK2=0
8212 GMIME_DESCRIP="GMime library"
8213 GMIME_OPTION="gmime"
8215 # Check whether --with-gmime was given.
8216 if test "${with_gmime+set}" = set; then
8217 withval=$with_gmime;
8218 case ${withval} in
8219 n|no)
8220 USE_GMIME=no
8222 y|ye|yes)
8223 ac_mandatory_list="${ac_mandatory_list} GMIME"
8226 GMIME_DIR="${withval}"
8227 ac_mandatory_list="${ac_mandatory_list} GMIME"
8229 esac
8233 PBX_GMIME=0
8240 ICONV_DESCRIP="Iconv Library"
8241 ICONV_OPTION="iconv"
8243 # Check whether --with-iconv was given.
8244 if test "${with_iconv+set}" = set; then
8245 withval=$with_iconv;
8246 case ${withval} in
8247 n|no)
8248 USE_ICONV=no
8250 y|ye|yes)
8251 ac_mandatory_list="${ac_mandatory_list} ICONV"
8254 ICONV_DIR="${withval}"
8255 ac_mandatory_list="${ac_mandatory_list} ICONV"
8257 esac
8261 PBX_ICONV=0
8268 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8269 IKSEMEL_OPTION="iksemel"
8271 # Check whether --with-iksemel was given.
8272 if test "${with_iksemel+set}" = set; then
8273 withval=$with_iksemel;
8274 case ${withval} in
8275 n|no)
8276 USE_IKSEMEL=no
8278 y|ye|yes)
8279 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8282 IKSEMEL_DIR="${withval}"
8283 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8285 esac
8289 PBX_IKSEMEL=0
8296 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8297 IMAP_TK_OPTION="imap"
8299 # Check whether --with-imap was given.
8300 if test "${with_imap+set}" = set; then
8301 withval=$with_imap;
8302 case ${withval} in
8303 n|no)
8304 USE_IMAP_TK=no
8306 y|ye|yes)
8307 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8310 IMAP_TK_DIR="${withval}"
8311 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8313 esac
8317 PBX_IMAP_TK=0
8324 ISDNNET_DESCRIP="ISDN4Linux Library"
8325 ISDNNET_OPTION="isdnnet"
8327 # Check whether --with-isdnnet was given.
8328 if test "${with_isdnnet+set}" = set; then
8329 withval=$with_isdnnet;
8330 case ${withval} in
8331 n|no)
8332 USE_ISDNNET=no
8334 y|ye|yes)
8335 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8338 ISDNNET_DIR="${withval}"
8339 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8341 esac
8345 PBX_ISDNNET=0
8352 JACK_DESCRIP="Jack Audio Connection Kit"
8353 JACK_OPTION="jack"
8355 # Check whether --with-jack was given.
8356 if test "${with_jack+set}" = set; then
8357 withval=$with_jack;
8358 case ${withval} in
8359 n|no)
8360 USE_JACK=no
8362 y|ye|yes)
8363 ac_mandatory_list="${ac_mandatory_list} JACK"
8366 JACK_DIR="${withval}"
8367 ac_mandatory_list="${ac_mandatory_list} JACK"
8369 esac
8373 PBX_JACK=0
8380 LDAP_DESCRIP="OpenLDAP"
8381 LDAP_OPTION="ldap"
8383 # Check whether --with-ldap was given.
8384 if test "${with_ldap+set}" = set; then
8385 withval=$with_ldap;
8386 case ${withval} in
8387 n|no)
8388 USE_LDAP=no
8390 y|ye|yes)
8391 ac_mandatory_list="${ac_mandatory_list} LDAP"
8394 LDAP_DIR="${withval}"
8395 ac_mandatory_list="${ac_mandatory_list} LDAP"
8397 esac
8401 PBX_LDAP=0
8408 LTDL_DESCRIP="libtool"
8409 LTDL_OPTION="ltdl"
8411 # Check whether --with-ltdl was given.
8412 if test "${with_ltdl+set}" = set; then
8413 withval=$with_ltdl;
8414 case ${withval} in
8415 n|no)
8416 USE_LTDL=no
8418 y|ye|yes)
8419 ac_mandatory_list="${ac_mandatory_list} LTDL"
8422 LTDL_DIR="${withval}"
8423 ac_mandatory_list="${ac_mandatory_list} LTDL"
8425 esac
8429 PBX_LTDL=0
8436 LUA_DESCRIP="Lua"
8437 LUA_OPTION="lua"
8439 # Check whether --with-lua was given.
8440 if test "${with_lua+set}" = set; then
8441 withval=$with_lua;
8442 case ${withval} in
8443 n|no)
8444 USE_LUA=no
8446 y|ye|yes)
8447 ac_mandatory_list="${ac_mandatory_list} LUA"
8450 LUA_DIR="${withval}"
8451 ac_mandatory_list="${ac_mandatory_list} LUA"
8453 esac
8457 PBX_LUA=0
8464 MISDN_DESCRIP="mISDN User Library"
8465 MISDN_OPTION="misdn"
8467 # Check whether --with-misdn was given.
8468 if test "${with_misdn+set}" = set; then
8469 withval=$with_misdn;
8470 case ${withval} in
8471 n|no)
8472 USE_MISDN=no
8474 y|ye|yes)
8475 ac_mandatory_list="${ac_mandatory_list} MISDN"
8478 MISDN_DIR="${withval}"
8479 ac_mandatory_list="${ac_mandatory_list} MISDN"
8481 esac
8485 PBX_MISDN=0
8492 NBS_DESCRIP="Network Broadcast Sound"
8493 NBS_OPTION="nbs"
8495 # Check whether --with-nbs was given.
8496 if test "${with_nbs+set}" = set; then
8497 withval=$with_nbs;
8498 case ${withval} in
8499 n|no)
8500 USE_NBS=no
8502 y|ye|yes)
8503 ac_mandatory_list="${ac_mandatory_list} NBS"
8506 NBS_DIR="${withval}"
8507 ac_mandatory_list="${ac_mandatory_list} NBS"
8509 esac
8513 PBX_NBS=0
8520 NCURSES_DESCRIP="ncurses"
8521 NCURSES_OPTION="ncurses"
8523 # Check whether --with-ncurses was given.
8524 if test "${with_ncurses+set}" = set; then
8525 withval=$with_ncurses;
8526 case ${withval} in
8527 n|no)
8528 USE_NCURSES=no
8530 y|ye|yes)
8531 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8534 NCURSES_DIR="${withval}"
8535 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8537 esac
8541 PBX_NCURSES=0
8548 NETSNMP_DESCRIP="Net-SNMP"
8549 NETSNMP_OPTION="netsnmp"
8551 # Check whether --with-netsnmp was given.
8552 if test "${with_netsnmp+set}" = set; then
8553 withval=$with_netsnmp;
8554 case ${withval} in
8555 n|no)
8556 USE_NETSNMP=no
8558 y|ye|yes)
8559 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8562 NETSNMP_DIR="${withval}"
8563 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8565 esac
8569 PBX_NETSNMP=0
8576 NEWT_DESCRIP="newt"
8577 NEWT_OPTION="newt"
8579 # Check whether --with-newt was given.
8580 if test "${with_newt+set}" = set; then
8581 withval=$with_newt;
8582 case ${withval} in
8583 n|no)
8584 USE_NEWT=no
8586 y|ye|yes)
8587 ac_mandatory_list="${ac_mandatory_list} NEWT"
8590 NEWT_DIR="${withval}"
8591 ac_mandatory_list="${ac_mandatory_list} NEWT"
8593 esac
8597 PBX_NEWT=0
8604 UNIXODBC_DESCRIP="unixODBC"
8605 UNIXODBC_OPTION="odbc"
8607 # Check whether --with-odbc was given.
8608 if test "${with_odbc+set}" = set; then
8609 withval=$with_odbc;
8610 case ${withval} in
8611 n|no)
8612 USE_UNIXODBC=no
8614 y|ye|yes)
8615 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8618 UNIXODBC_DIR="${withval}"
8619 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8621 esac
8625 PBX_UNIXODBC=0
8632 OGG_DESCRIP="OGG"
8633 OGG_OPTION="ogg"
8635 # Check whether --with-ogg was given.
8636 if test "${with_ogg+set}" = set; then
8637 withval=$with_ogg;
8638 case ${withval} in
8639 n|no)
8640 USE_OGG=no
8642 y|ye|yes)
8643 ac_mandatory_list="${ac_mandatory_list} OGG"
8646 OGG_DIR="${withval}"
8647 ac_mandatory_list="${ac_mandatory_list} OGG"
8649 esac
8653 PBX_OGG=0
8660 OSPTK_DESCRIP="OSP Toolkit"
8661 OSPTK_OPTION="osptk"
8663 # Check whether --with-osptk was given.
8664 if test "${with_osptk+set}" = set; then
8665 withval=$with_osptk;
8666 case ${withval} in
8667 n|no)
8668 USE_OSPTK=no
8670 y|ye|yes)
8671 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8674 OSPTK_DIR="${withval}"
8675 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8677 esac
8681 PBX_OSPTK=0
8688 OSS_DESCRIP="Open Sound System"
8689 OSS_OPTION="oss"
8691 # Check whether --with-oss was given.
8692 if test "${with_oss+set}" = set; then
8693 withval=$with_oss;
8694 case ${withval} in
8695 n|no)
8696 USE_OSS=no
8698 y|ye|yes)
8699 ac_mandatory_list="${ac_mandatory_list} OSS"
8702 OSS_DIR="${withval}"
8703 ac_mandatory_list="${ac_mandatory_list} OSS"
8705 esac
8709 PBX_OSS=0
8716 PGSQL_DESCRIP="PostgreSQL"
8717 PGSQL_OPTION="postgres"
8719 # Check whether --with-postgres was given.
8720 if test "${with_postgres+set}" = set; then
8721 withval=$with_postgres;
8722 case ${withval} in
8723 n|no)
8724 USE_PGSQL=no
8726 y|ye|yes)
8727 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8730 PGSQL_DIR="${withval}"
8731 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8733 esac
8737 PBX_PGSQL=0
8744 POPT_DESCRIP="popt"
8745 POPT_OPTION="popt"
8747 # Check whether --with-popt was given.
8748 if test "${with_popt+set}" = set; then
8749 withval=$with_popt;
8750 case ${withval} in
8751 n|no)
8752 USE_POPT=no
8754 y|ye|yes)
8755 ac_mandatory_list="${ac_mandatory_list} POPT"
8758 POPT_DIR="${withval}"
8759 ac_mandatory_list="${ac_mandatory_list} POPT"
8761 esac
8765 PBX_POPT=0
8772 PORTAUDIO_DESCRIP="PortAudio"
8773 PORTAUDIO_OPTION="portaudio"
8775 # Check whether --with-portaudio was given.
8776 if test "${with_portaudio+set}" = set; then
8777 withval=$with_portaudio;
8778 case ${withval} in
8779 n|no)
8780 USE_PORTAUDIO=no
8782 y|ye|yes)
8783 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8786 PORTAUDIO_DIR="${withval}"
8787 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8789 esac
8793 PBX_PORTAUDIO=0
8800 PRI_DESCRIP="ISDN PRI"
8801 PRI_OPTION="pri"
8803 # Check whether --with-pri was given.
8804 if test "${with_pri+set}" = set; then
8805 withval=$with_pri;
8806 case ${withval} in
8807 n|no)
8808 USE_PRI=no
8810 y|ye|yes)
8811 ac_mandatory_list="${ac_mandatory_list} PRI"
8814 PRI_DIR="${withval}"
8815 ac_mandatory_list="${ac_mandatory_list} PRI"
8817 esac
8821 PBX_PRI=0
8828 RESAMPLE_DESCRIP="LIBRESAMPLE"
8829 RESAMPLE_OPTION="resample"
8831 # Check whether --with-resample was given.
8832 if test "${with_resample+set}" = set; then
8833 withval=$with_resample;
8834 case ${withval} in
8835 n|no)
8836 USE_RESAMPLE=no
8838 y|ye|yes)
8839 ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
8842 RESAMPLE_DIR="${withval}"
8843 ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
8845 esac
8849 PBX_RESAMPLE=0
8856 SPANDSP_DESCRIP="SPANDSP"
8857 SPANDSP_OPTION="spandsp"
8859 # Check whether --with-spandsp was given.
8860 if test "${with_spandsp+set}" = set; then
8861 withval=$with_spandsp;
8862 case ${withval} in
8863 n|no)
8864 USE_SPANDSP=no
8866 y|ye|yes)
8867 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8870 SPANDSP_DIR="${withval}"
8871 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8873 esac
8877 PBX_SPANDSP=0
8884 SS7_DESCRIP="ISDN SS7"
8885 SS7_OPTION="ss7"
8887 # Check whether --with-ss7 was given.
8888 if test "${with_ss7+set}" = set; then
8889 withval=$with_ss7;
8890 case ${withval} in
8891 n|no)
8892 USE_SS7=no
8894 y|ye|yes)
8895 ac_mandatory_list="${ac_mandatory_list} SS7"
8898 SS7_DIR="${withval}"
8899 ac_mandatory_list="${ac_mandatory_list} SS7"
8901 esac
8905 PBX_SS7=0
8912 PWLIB_DESCRIP="PWlib"
8913 PWLIB_OPTION="pwlib"
8915 # Check whether --with-pwlib was given.
8916 if test "${with_pwlib+set}" = set; then
8917 withval=$with_pwlib;
8918 case ${withval} in
8919 n|no)
8920 USE_PWLIB=no
8922 y|ye|yes)
8923 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8926 PWLIB_DIR="${withval}"
8927 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8929 esac
8933 PBX_PWLIB=0
8940 OPENH323_DESCRIP="OpenH323"
8941 OPENH323_OPTION="h323"
8943 # Check whether --with-h323 was given.
8944 if test "${with_h323+set}" = set; then
8945 withval=$with_h323;
8946 case ${withval} in
8947 n|no)
8948 USE_OPENH323=no
8950 y|ye|yes)
8951 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8954 OPENH323_DIR="${withval}"
8955 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8957 esac
8961 PBX_OPENH323=0
8968 RADIUS_DESCRIP="Radius Client"
8969 RADIUS_OPTION="radius"
8971 # Check whether --with-radius was given.
8972 if test "${with_radius+set}" = set; then
8973 withval=$with_radius;
8974 case ${withval} in
8975 n|no)
8976 USE_RADIUS=no
8978 y|ye|yes)
8979 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8982 RADIUS_DIR="${withval}"
8983 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8985 esac
8989 PBX_RADIUS=0
8996 SDL_DESCRIP="Sdl"
8997 SDL_OPTION="sdl"
8999 # Check whether --with-sdl was given.
9000 if test "${with_sdl+set}" = set; then
9001 withval=$with_sdl;
9002 case ${withval} in
9003 n|no)
9004 USE_SDL=no
9006 y|ye|yes)
9007 ac_mandatory_list="${ac_mandatory_list} SDL"
9010 SDL_DIR="${withval}"
9011 ac_mandatory_list="${ac_mandatory_list} SDL"
9013 esac
9017 PBX_SDL=0
9024 SDL_IMAGE_DESCRIP="Sdl Image library"
9025 SDL_IMAGE_OPTION="SDL_image"
9027 # Check whether --with-SDL_image was given.
9028 if test "${with_SDL_image+set}" = set; then
9029 withval=$with_SDL_image;
9030 case ${withval} in
9031 n|no)
9032 USE_SDL_IMAGE=no
9034 y|ye|yes)
9035 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
9038 SDL_IMAGE_DIR="${withval}"
9039 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
9041 esac
9045 PBX_SDL_IMAGE=0
9052 OPENAIS_DESCRIP="OpenAIS"
9053 OPENAIS_OPTION="openais"
9055 # Check whether --with-openais was given.
9056 if test "${with_openais+set}" = set; then
9057 withval=$with_openais;
9058 case ${withval} in
9059 n|no)
9060 USE_OPENAIS=no
9062 y|ye|yes)
9063 ac_mandatory_list="${ac_mandatory_list} OPENAIS"
9066 OPENAIS_DIR="${withval}"
9067 ac_mandatory_list="${ac_mandatory_list} OPENAIS"
9069 esac
9073 PBX_OPENAIS=0
9080 SPEEX_DESCRIP="Speex"
9081 SPEEX_OPTION="speex"
9083 # Check whether --with-speex was given.
9084 if test "${with_speex+set}" = set; then
9085 withval=$with_speex;
9086 case ${withval} in
9087 n|no)
9088 USE_SPEEX=no
9090 y|ye|yes)
9091 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9094 SPEEX_DIR="${withval}"
9095 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9097 esac
9101 PBX_SPEEX=0
9108 SPEEXDSP_DESCRIP="Speexdsp"
9109 SPEEXDSP_OPTION="speexdsp"
9111 # Check whether --with-speexdsp was given.
9112 if test "${with_speexdsp+set}" = set; then
9113 withval=$with_speexdsp;
9114 case ${withval} in
9115 n|no)
9116 USE_SPEEXDSP=no
9118 y|ye|yes)
9119 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9122 SPEEXDSP_DIR="${withval}"
9123 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9125 esac
9129 PBX_SPEEXDSP=0
9136 SQLITE_DESCRIP="SQLite"
9137 SQLITE_OPTION="sqlite"
9139 # Check whether --with-sqlite was given.
9140 if test "${with_sqlite+set}" = set; then
9141 withval=$with_sqlite;
9142 case ${withval} in
9143 n|no)
9144 USE_SQLITE=no
9146 y|ye|yes)
9147 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9150 SQLITE_DIR="${withval}"
9151 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9153 esac
9157 PBX_SQLITE=0
9164 SQLITE3_DESCRIP="SQLite"
9165 SQLITE3_OPTION="sqlite3"
9167 # Check whether --with-sqlite3 was given.
9168 if test "${with_sqlite3+set}" = set; then
9169 withval=$with_sqlite3;
9170 case ${withval} in
9171 n|no)
9172 USE_SQLITE3=no
9174 y|ye|yes)
9175 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9178 SQLITE3_DIR="${withval}"
9179 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9181 esac
9185 PBX_SQLITE3=0
9192 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9193 SUPPSERV_OPTION="suppserv"
9195 # Check whether --with-suppserv was given.
9196 if test "${with_suppserv+set}" = set; then
9197 withval=$with_suppserv;
9198 case ${withval} in
9199 n|no)
9200 USE_SUPPSERV=no
9202 y|ye|yes)
9203 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9206 SUPPSERV_DIR="${withval}"
9207 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9209 esac
9213 PBX_SUPPSERV=0
9220 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9221 OPENSSL_OPTION="ssl"
9223 # Check whether --with-ssl was given.
9224 if test "${with_ssl+set}" = set; then
9225 withval=$with_ssl;
9226 case ${withval} in
9227 n|no)
9228 USE_OPENSSL=no
9230 y|ye|yes)
9231 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9234 OPENSSL_DIR="${withval}"
9235 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9237 esac
9241 PBX_OPENSSL=0
9248 FREETDS_DESCRIP="FreeTDS"
9249 FREETDS_OPTION="tds"
9251 # Check whether --with-tds was given.
9252 if test "${with_tds+set}" = set; then
9253 withval=$with_tds;
9254 case ${withval} in
9255 n|no)
9256 USE_FREETDS=no
9258 y|ye|yes)
9259 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9262 FREETDS_DIR="${withval}"
9263 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9265 esac
9269 PBX_FREETDS=0
9276 TERMCAP_DESCRIP="Termcap"
9277 TERMCAP_OPTION="termcap"
9279 # Check whether --with-termcap was given.
9280 if test "${with_termcap+set}" = set; then
9281 withval=$with_termcap;
9282 case ${withval} in
9283 n|no)
9284 USE_TERMCAP=no
9286 y|ye|yes)
9287 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9290 TERMCAP_DIR="${withval}"
9291 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9293 esac
9297 PBX_TERMCAP=0
9304 TINFO_DESCRIP="Term Info"
9305 TINFO_OPTION="tinfo"
9307 # Check whether --with-tinfo was given.
9308 if test "${with_tinfo+set}" = set; then
9309 withval=$with_tinfo;
9310 case ${withval} in
9311 n|no)
9312 USE_TINFO=no
9314 y|ye|yes)
9315 ac_mandatory_list="${ac_mandatory_list} TINFO"
9318 TINFO_DIR="${withval}"
9319 ac_mandatory_list="${ac_mandatory_list} TINFO"
9321 esac
9325 PBX_TINFO=0
9332 TONEZONE_DESCRIP="tonezone"
9333 TONEZONE_OPTION="tonezone"
9335 # Check whether --with-tonezone was given.
9336 if test "${with_tonezone+set}" = set; then
9337 withval=$with_tonezone;
9338 case ${withval} in
9339 n|no)
9340 USE_TONEZONE=no
9342 y|ye|yes)
9343 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9346 TONEZONE_DIR="${withval}"
9347 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9349 esac
9353 PBX_TONEZONE=0
9360 USB_DESCRIP="usb"
9361 USB_OPTION="usb"
9363 # Check whether --with-usb was given.
9364 if test "${with_usb+set}" = set; then
9365 withval=$with_usb;
9366 case ${withval} in
9367 n|no)
9368 USE_USB=no
9370 y|ye|yes)
9371 ac_mandatory_list="${ac_mandatory_list} USB"
9374 USB_DIR="${withval}"
9375 ac_mandatory_list="${ac_mandatory_list} USB"
9377 esac
9381 PBX_USB=0
9388 VORBIS_DESCRIP="Vorbis"
9389 VORBIS_OPTION="vorbis"
9391 # Check whether --with-vorbis was given.
9392 if test "${with_vorbis+set}" = set; then
9393 withval=$with_vorbis;
9394 case ${withval} in
9395 n|no)
9396 USE_VORBIS=no
9398 y|ye|yes)
9399 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9402 VORBIS_DIR="${withval}"
9403 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9405 esac
9409 PBX_VORBIS=0
9416 VPB_DESCRIP="Voicetronix API"
9417 VPB_OPTION="vpb"
9419 # Check whether --with-vpb was given.
9420 if test "${with_vpb+set}" = set; then
9421 withval=$with_vpb;
9422 case ${withval} in
9423 n|no)
9424 USE_VPB=no
9426 y|ye|yes)
9427 ac_mandatory_list="${ac_mandatory_list} VPB"
9430 VPB_DIR="${withval}"
9431 ac_mandatory_list="${ac_mandatory_list} VPB"
9433 esac
9437 PBX_VPB=0
9444 X11_DESCRIP="X11 support"
9445 X11_OPTION="x11"
9447 # Check whether --with-x11 was given.
9448 if test "${with_x11+set}" = set; then
9449 withval=$with_x11;
9450 case ${withval} in
9451 n|no)
9452 USE_X11=no
9454 y|ye|yes)
9455 ac_mandatory_list="${ac_mandatory_list} X11"
9458 X11_DIR="${withval}"
9459 ac_mandatory_list="${ac_mandatory_list} X11"
9461 esac
9465 PBX_X11=0
9472 ZLIB_DESCRIP="zlib"
9473 ZLIB_OPTION="z"
9475 # Check whether --with-z was given.
9476 if test "${with_z+set}" = set; then
9477 withval=$with_z;
9478 case ${withval} in
9479 n|no)
9480 USE_ZLIB=no
9482 y|ye|yes)
9483 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9486 ZLIB_DIR="${withval}"
9487 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9489 esac
9493 PBX_ZLIB=0
9500 # check for basic system features and functionality before
9501 # checking for package libraries
9503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9504 # for constant arguments. Useless!
9505 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9506 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9507 if test "${ac_cv_working_alloca_h+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516 #include <alloca.h>
9518 main ()
9520 char *p = (char *) alloca (2 * sizeof (int));
9521 if (p) return 0;
9523 return 0;
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_link") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && {
9540 test -z "$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9542 } && test -s conftest$ac_exeext &&
9543 $as_test_x conftest$ac_exeext; then
9544 ac_cv_working_alloca_h=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_working_alloca_h=no
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553 conftest$ac_exeext conftest.$ac_ext
9555 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9556 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9557 if test $ac_cv_working_alloca_h = yes; then
9559 cat >>confdefs.h <<\_ACEOF
9560 #define HAVE_ALLOCA_H 1
9561 _ACEOF
9565 { echo "$as_me:$LINENO: checking for alloca" >&5
9566 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9567 if test "${ac_cv_func_alloca_works+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #ifdef __GNUC__
9577 # define alloca __builtin_alloca
9578 #else
9579 # ifdef _MSC_VER
9580 # include <malloc.h>
9581 # define alloca _alloca
9582 # else
9583 # ifdef HAVE_ALLOCA_H
9584 # include <alloca.h>
9585 # else
9586 # ifdef _AIX
9587 #pragma alloca
9588 # else
9589 # ifndef alloca /* predefined by HP cc +Olibcalls */
9590 char *alloca ();
9591 # endif
9592 # endif
9593 # endif
9594 # endif
9595 #endif
9598 main ()
9600 char *p = (char *) alloca (1);
9601 if (p) return 0;
9603 return 0;
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_func_alloca_works=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_func_alloca_works=no
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9635 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9636 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9638 if test $ac_cv_func_alloca_works = yes; then
9640 cat >>confdefs.h <<\_ACEOF
9641 #define HAVE_ALLOCA 1
9642 _ACEOF
9644 else
9645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9646 # that cause trouble. Some versions do not even contain alloca or
9647 # contain a buggy version. If you still want to use their alloca,
9648 # use ar to extract alloca.o from them instead of compiling alloca.c.
9650 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9652 cat >>confdefs.h <<\_ACEOF
9653 #define C_ALLOCA 1
9654 _ACEOF
9657 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9658 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9659 if test "${ac_cv_os_cray+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 #if defined CRAY && ! defined CRAY2
9669 webecray
9670 #else
9671 wenotbecray
9672 #endif
9674 _ACEOF
9675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9676 $EGREP "webecray" >/dev/null 2>&1; then
9677 ac_cv_os_cray=yes
9678 else
9679 ac_cv_os_cray=no
9681 rm -f conftest*
9684 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9685 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9686 if test $ac_cv_os_cray = yes; then
9687 for ac_func in _getb67 GETB67 getb67; do
9688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9689 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define $ac_func innocuous_$ac_func
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char $ac_func (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9709 #ifdef __STDC__
9710 # include <limits.h>
9711 #else
9712 # include <assert.h>
9713 #endif
9715 #undef $ac_func
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char $ac_func ();
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined __stub_$ac_func || defined __stub___$ac_func
9728 choke me
9729 #endif
9732 main ()
9734 return $ac_func ();
9736 return 0;
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9741 case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744 esac
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_link") 2>conftest.er1
9747 ac_status=$?
9748 grep -v '^ *+' conftest.er1 >conftest.err
9749 rm -f conftest.er1
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } && {
9753 test -z "$ac_c_werror_flag" ||
9754 test ! -s conftest.err
9755 } && test -s conftest$ac_exeext &&
9756 $as_test_x conftest$ac_exeext; then
9757 eval "$as_ac_var=yes"
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 eval "$as_ac_var=no"
9765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9766 conftest$ac_exeext conftest.$ac_ext
9768 ac_res=`eval echo '${'$as_ac_var'}'`
9769 { echo "$as_me:$LINENO: result: $ac_res" >&5
9770 echo "${ECHO_T}$ac_res" >&6; }
9771 if test `eval echo '${'$as_ac_var'}'` = yes; then
9773 cat >>confdefs.h <<_ACEOF
9774 #define CRAY_STACKSEG_END $ac_func
9775 _ACEOF
9777 break
9780 done
9783 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9784 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9785 if test "${ac_cv_c_stack_direction+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 if test "$cross_compiling" = yes; then
9789 ac_cv_c_stack_direction=0
9790 else
9791 cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h. */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 $ac_includes_default
9799 find_stack_direction ()
9801 static char *addr = 0;
9802 auto char dummy;
9803 if (addr == 0)
9805 addr = &dummy;
9806 return find_stack_direction ();
9808 else
9809 return (&dummy > addr) ? 1 : -1;
9813 main ()
9815 return find_stack_direction () < 0;
9817 _ACEOF
9818 rm -f conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_cv_c_stack_direction=1
9839 else
9840 echo "$as_me: program exited with status $ac_status" >&5
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ( exit $ac_status )
9845 ac_cv_c_stack_direction=-1
9847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9852 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9853 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9855 cat >>confdefs.h <<_ACEOF
9856 #define STACK_DIRECTION $ac_cv_c_stack_direction
9857 _ACEOF
9867 ac_header_dirent=no
9868 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9869 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9870 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9871 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h. */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 #include <sys/types.h>
9882 #include <$ac_hdr>
9885 main ()
9887 if ((DIR *) 0)
9888 return 0;
9890 return 0;
9892 _ACEOF
9893 rm -f conftest.$ac_objext
9894 if { (ac_try="$ac_compile"
9895 case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_compile") 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest.$ac_objext; then
9910 eval "$as_ac_Header=yes"
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 eval "$as_ac_Header=no"
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9920 ac_res=`eval echo '${'$as_ac_Header'}'`
9921 { echo "$as_me:$LINENO: result: $ac_res" >&5
9922 echo "${ECHO_T}$ac_res" >&6; }
9923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9924 cat >>confdefs.h <<_ACEOF
9925 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9926 _ACEOF
9928 ac_header_dirent=$ac_hdr; break
9931 done
9932 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9933 if test $ac_header_dirent = dirent.h; then
9934 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9935 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9936 if test "${ac_cv_search_opendir+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939 ac_func_search_save_LIBS=$LIBS
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9947 /* Override any GCC internal prototype to avoid an error.
9948 Use char because int might match the return type of a GCC
9949 builtin and then its argument prototype would still apply. */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 char opendir ();
9955 main ()
9957 return opendir ();
9959 return 0;
9961 _ACEOF
9962 for ac_lib in '' dir; do
9963 if test -z "$ac_lib"; then
9964 ac_res="none required"
9965 else
9966 ac_res=-l$ac_lib
9967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (ac_try="$ac_link"
9971 case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_link") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest$ac_exeext &&
9986 $as_test_x conftest$ac_exeext; then
9987 ac_cv_search_opendir=$ac_res
9988 else
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9996 conftest$ac_exeext
9997 if test "${ac_cv_search_opendir+set}" = set; then
9998 break
10000 done
10001 if test "${ac_cv_search_opendir+set}" = set; then
10003 else
10004 ac_cv_search_opendir=no
10006 rm conftest.$ac_ext
10007 LIBS=$ac_func_search_save_LIBS
10009 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10010 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10011 ac_res=$ac_cv_search_opendir
10012 if test "$ac_res" != no; then
10013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10017 else
10018 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10019 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10020 if test "${ac_cv_search_opendir+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 ac_func_search_save_LIBS=$LIBS
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char opendir ();
10039 main ()
10041 return opendir ();
10043 return 0;
10045 _ACEOF
10046 for ac_lib in '' x; do
10047 if test -z "$ac_lib"; then
10048 ac_res="none required"
10049 else
10050 ac_res=-l$ac_lib
10051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } && {
10067 test -z "$ac_c_werror_flag" ||
10068 test ! -s conftest.err
10069 } && test -s conftest$ac_exeext &&
10070 $as_test_x conftest$ac_exeext; then
10071 ac_cv_search_opendir=$ac_res
10072 else
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext
10081 if test "${ac_cv_search_opendir+set}" = set; then
10082 break
10084 done
10085 if test "${ac_cv_search_opendir+set}" = set; then
10087 else
10088 ac_cv_search_opendir=no
10090 rm conftest.$ac_ext
10091 LIBS=$ac_func_search_save_LIBS
10093 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10094 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10095 ac_res=$ac_cv_search_opendir
10096 if test "$ac_res" != no; then
10097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10105 if test "${ac_cv_header_stdc+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 #include <stdlib.h>
10115 #include <stdarg.h>
10116 #include <string.h>
10117 #include <float.h>
10120 main ()
10124 return 0;
10126 _ACEOF
10127 rm -f conftest.$ac_objext
10128 if { (ac_try="$ac_compile"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
10144 ac_cv_header_stdc=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_header_stdc=no
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 if test $ac_cv_header_stdc = yes; then
10155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 #include <string.h>
10164 _ACEOF
10165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10166 $EGREP "memchr" >/dev/null 2>&1; then
10168 else
10169 ac_cv_header_stdc=no
10171 rm -f conftest*
10175 if test $ac_cv_header_stdc = yes; then
10176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 #include <stdlib.h>
10185 _ACEOF
10186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10187 $EGREP "free" >/dev/null 2>&1; then
10189 else
10190 ac_cv_header_stdc=no
10192 rm -f conftest*
10196 if test $ac_cv_header_stdc = yes; then
10197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10198 if test "$cross_compiling" = yes; then
10200 else
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 #include <ctype.h>
10208 #include <stdlib.h>
10209 #if ((' ' & 0x0FF) == 0x020)
10210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10212 #else
10213 # define ISLOWER(c) \
10214 (('a' <= (c) && (c) <= 'i') \
10215 || ('j' <= (c) && (c) <= 'r') \
10216 || ('s' <= (c) && (c) <= 'z'))
10217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10218 #endif
10220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10222 main ()
10224 int i;
10225 for (i = 0; i < 256; i++)
10226 if (XOR (islower (i), ISLOWER (i))
10227 || toupper (i) != TOUPPER (i))
10228 return 2;
10229 return 0;
10231 _ACEOF
10232 rm -f conftest$ac_exeext
10233 if { (ac_try="$ac_link"
10234 case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_link") 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10243 { (case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_try") 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10253 else
10254 echo "$as_me: program exited with status $ac_status" >&5
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ( exit $ac_status )
10259 ac_cv_header_stdc=no
10261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10269 if test $ac_cv_header_stdc = yes; then
10271 cat >>confdefs.h <<\_ACEOF
10272 #define STDC_HEADERS 1
10273 _ACEOF
10277 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10278 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10279 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <sys/types.h>
10289 #include <sys/wait.h>
10290 #ifndef WEXITSTATUS
10291 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10292 #endif
10293 #ifndef WIFEXITED
10294 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10295 #endif
10298 main ()
10300 int s;
10301 wait (&s);
10302 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10304 return 0;
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (ac_try="$ac_compile"
10309 case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_compile") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
10324 ac_cv_header_sys_wait_h=yes
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_header_sys_wait_h=no
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10335 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10336 if test $ac_cv_header_sys_wait_h = yes; then
10338 cat >>confdefs.h <<\_ACEOF
10339 #define HAVE_SYS_WAIT_H 1
10340 _ACEOF
10368 for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h
10370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_res=`eval echo '${'$as_ac_Header'}'`
10378 { echo "$as_me:$LINENO: result: $ac_res" >&5
10379 echo "${ECHO_T}$ac_res" >&6; }
10380 else
10381 # Is the header compilable?
10382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 $ac_includes_default
10391 #include <$ac_header>
10392 _ACEOF
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_compile") 2>conftest.er1
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest.$ac_objext; then
10410 ac_header_compiler=yes
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_header_compiler=no
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10420 echo "${ECHO_T}$ac_header_compiler" >&6; }
10422 # Is the header present?
10423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 #include <$ac_header>
10432 _ACEOF
10433 if { (ac_try="$ac_cpp conftest.$ac_ext"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } >/dev/null && {
10446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10447 test ! -s conftest.err
10448 }; then
10449 ac_header_preproc=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_header_preproc=no
10457 rm -f conftest.err conftest.$ac_ext
10458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10459 echo "${ECHO_T}$ac_header_preproc" >&6; }
10461 # So? What about this header?
10462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10463 yes:no: )
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10468 ac_header_preproc=yes
10470 no:yes:* )
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10483 ( cat <<\_ASBOX
10484 ## ------------------------------- ##
10485 ## Report this to www.asterisk.org ##
10486 ## ------------------------------- ##
10487 _ASBOX
10488 ) | sed "s/^/$as_me: WARNING: /" >&2
10490 esac
10491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496 eval "$as_ac_Header=\$ac_header_preproc"
10498 ac_res=`eval echo '${'$as_ac_Header'}'`
10499 { echo "$as_me:$LINENO: result: $ac_res" >&5
10500 echo "${ECHO_T}$ac_res" >&6; }
10503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10504 cat >>confdefs.h <<_ACEOF
10505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10506 _ACEOF
10510 done
10515 for ac_header in winsock.h winsock2.h
10517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 ac_res=`eval echo '${'$as_ac_Header'}'`
10525 { echo "$as_me:$LINENO: result: $ac_res" >&5
10526 echo "${ECHO_T}$ac_res" >&6; }
10527 else
10528 # Is the header compilable?
10529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 $ac_includes_default
10538 #include <$ac_header>
10539 _ACEOF
10540 rm -f conftest.$ac_objext
10541 if { (ac_try="$ac_compile"
10542 case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.$ac_objext; then
10557 ac_header_compiler=yes
10558 else
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_header_compiler=no
10565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10567 echo "${ECHO_T}$ac_header_compiler" >&6; }
10569 # Is the header present?
10570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 #include <$ac_header>
10579 _ACEOF
10580 if { (ac_try="$ac_cpp conftest.$ac_ext"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } >/dev/null && {
10593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 }; then
10596 ac_header_preproc=yes
10597 else
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_preproc=no
10604 rm -f conftest.err conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10606 echo "${ECHO_T}$ac_header_preproc" >&6; }
10608 # So? What about this header?
10609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10610 yes:no: )
10611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10615 ac_header_preproc=yes
10617 no:yes:* )
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10630 ( cat <<\_ASBOX
10631 ## ------------------------------- ##
10632 ## Report this to www.asterisk.org ##
10633 ## ------------------------------- ##
10634 _ASBOX
10635 ) | sed "s/^/$as_me: WARNING: /" >&2
10637 esac
10638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 eval "$as_ac_Header=\$ac_header_preproc"
10645 ac_res=`eval echo '${'$as_ac_Header'}'`
10646 { echo "$as_me:$LINENO: result: $ac_res" >&5
10647 echo "${ECHO_T}$ac_res" >&6; }
10650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10651 cat >>confdefs.h <<_ACEOF
10652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10653 _ACEOF
10657 done
10660 # Check whether --enable-largefile was given.
10661 if test "${enable_largefile+set}" = set; then
10662 enableval=$enable_largefile;
10665 if test "$enable_largefile" != no; then
10667 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10668 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10669 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672 ac_cv_sys_largefile_CC=no
10673 if test "$GCC" != yes; then
10674 ac_save_CC=$CC
10675 while :; do
10676 # IRIX 6.2 and later do not support large files by default,
10677 # so use the C compiler's -n32 option if that helps.
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <sys/types.h>
10685 /* Check that off_t can represent 2**63 - 1 correctly.
10686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10687 since some C++ compilers masquerading as C compilers
10688 incorrectly reject 9223372036854775807. */
10689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10691 && LARGE_OFF_T % 2147483647 == 1)
10692 ? 1 : -1];
10694 main ()
10698 return 0;
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (ac_try="$ac_compile"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_compile") 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && {
10715 test -z "$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10717 } && test -s conftest.$ac_objext; then
10718 break
10719 else
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10726 rm -f core conftest.err conftest.$ac_objext
10727 CC="$CC -n32"
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_compile") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
10745 ac_cv_sys_largefile_CC=' -n32'; break
10746 else
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10753 rm -f core conftest.err conftest.$ac_objext
10754 break
10755 done
10756 CC=$ac_save_CC
10757 rm -f conftest.$ac_ext
10760 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10761 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10762 if test "$ac_cv_sys_largefile_CC" != no; then
10763 CC=$CC$ac_cv_sys_largefile_CC
10766 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10767 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10768 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771 while :; do
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 #include <sys/types.h>
10779 /* Check that off_t can represent 2**63 - 1 correctly.
10780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10781 since some C++ compilers masquerading as C compilers
10782 incorrectly reject 9223372036854775807. */
10783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10785 && LARGE_OFF_T % 2147483647 == 1)
10786 ? 1 : -1];
10788 main ()
10792 return 0;
10794 _ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (ac_try="$ac_compile"
10797 case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_compile") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest.$ac_objext; then
10812 ac_cv_sys_file_offset_bits=no; break
10813 else
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h. */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 #define _FILE_OFFSET_BITS 64
10828 #include <sys/types.h>
10829 /* Check that off_t can represent 2**63 - 1 correctly.
10830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10831 since some C++ compilers masquerading as C compilers
10832 incorrectly reject 9223372036854775807. */
10833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10835 && LARGE_OFF_T % 2147483647 == 1)
10836 ? 1 : -1];
10838 main ()
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } && {
10859 test -z "$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 } && test -s conftest.$ac_objext; then
10862 ac_cv_sys_file_offset_bits=64; break
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 ac_cv_sys_file_offset_bits=unknown
10872 break
10873 done
10875 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10876 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10877 case $ac_cv_sys_file_offset_bits in #(
10878 no | unknown) ;;
10880 cat >>confdefs.h <<_ACEOF
10881 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10882 _ACEOF
10884 esac
10885 rm -f conftest*
10886 if test $ac_cv_sys_file_offset_bits = unknown; then
10887 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10888 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10889 if test "${ac_cv_sys_large_files+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892 while :; do
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 #include <sys/types.h>
10900 /* Check that off_t can represent 2**63 - 1 correctly.
10901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10902 since some C++ compilers masquerading as C compilers
10903 incorrectly reject 9223372036854775807. */
10904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10906 && LARGE_OFF_T % 2147483647 == 1)
10907 ? 1 : -1];
10909 main ()
10913 return 0;
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } && {
10930 test -z "$ac_c_werror_flag" ||
10931 test ! -s conftest.err
10932 } && test -s conftest.$ac_objext; then
10933 ac_cv_sys_large_files=no; break
10934 else
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h. */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 #define _LARGE_FILES 1
10949 #include <sys/types.h>
10950 /* Check that off_t can represent 2**63 - 1 correctly.
10951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10952 since some C++ compilers masquerading as C compilers
10953 incorrectly reject 9223372036854775807. */
10954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10956 && LARGE_OFF_T % 2147483647 == 1)
10957 ? 1 : -1];
10959 main ()
10963 return 0;
10965 _ACEOF
10966 rm -f conftest.$ac_objext
10967 if { (ac_try="$ac_compile"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_compile") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest.$ac_objext; then
10983 ac_cv_sys_large_files=1; break
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 ac_cv_sys_large_files=unknown
10993 break
10994 done
10996 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10997 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10998 case $ac_cv_sys_large_files in #(
10999 no | unknown) ;;
11001 cat >>confdefs.h <<_ACEOF
11002 #define _LARGE_FILES $ac_cv_sys_large_files
11003 _ACEOF
11005 esac
11006 rm -f conftest*
11011 # Checks for typedefs, structures, and compiler characteristics.
11012 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11013 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11014 if test "${ac_cv_header_stdbool_h+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017 cat >conftest.$ac_ext <<_ACEOF
11018 /* confdefs.h. */
11019 _ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11024 #include <stdbool.h>
11025 #ifndef bool
11026 "error: bool is not defined"
11027 #endif
11028 #ifndef false
11029 "error: false is not defined"
11030 #endif
11031 #if false
11032 "error: false is not 0"
11033 #endif
11034 #ifndef true
11035 "error: true is not defined"
11036 #endif
11037 #if true != 1
11038 "error: true is not 1"
11039 #endif
11040 #ifndef __bool_true_false_are_defined
11041 "error: __bool_true_false_are_defined is not defined"
11042 #endif
11044 struct s { _Bool s: 1; _Bool t; } s;
11046 char a[true == 1 ? 1 : -1];
11047 char b[false == 0 ? 1 : -1];
11048 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11049 char d[(bool) 0.5 == true ? 1 : -1];
11050 bool e = &s;
11051 char f[(_Bool) 0.0 == false ? 1 : -1];
11052 char g[true];
11053 char h[sizeof (_Bool)];
11054 char i[sizeof s.t];
11055 enum { j = false, k = true, l = false * true, m = true * 256 };
11056 _Bool n[m];
11057 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11058 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11059 # if defined __xlc__ || defined __GNUC__
11060 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11061 reported by James Lemley on 2005-10-05; see
11062 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11063 This test is not quite right, since xlc is allowed to
11064 reject this program, as the initializer for xlcbug is
11065 not one of the forms that C requires support for.
11066 However, doing the test right would require a runtime
11067 test, and that would make cross-compilation harder.
11068 Let us hope that IBM fixes the xlc bug, and also adds
11069 support for this kind of constant expression. In the
11070 meantime, this test will reject xlc, which is OK, since
11071 our stdbool.h substitute should suffice. We also test
11072 this with GCC, where it should work, to detect more
11073 quickly whether someone messes up the test in the
11074 future. */
11075 char digs[] = "0123456789";
11076 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11077 # endif
11078 /* Catch a bug in an HP-UX C compiler. See
11079 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11080 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11082 _Bool q = true;
11083 _Bool *pq = &q;
11086 main ()
11089 *pq |= q;
11090 *pq |= ! q;
11091 /* Refer to every declared value, to avoid compiler optimizations. */
11092 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11093 + !m + !n + !o + !p + !q + !pq);
11096 return 0;
11098 _ACEOF
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11104 esac
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.$ac_objext; then
11116 ac_cv_header_stdbool_h=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_cv_header_stdbool_h=no
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11127 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11128 { echo "$as_me:$LINENO: checking for _Bool" >&5
11129 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11130 if test "${ac_cv_type__Bool+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 $ac_includes_default
11140 typedef _Bool ac__type_new_;
11142 main ()
11144 if ((ac__type_new_ *) 0)
11145 return 0;
11146 if (sizeof (ac__type_new_))
11147 return 0;
11149 return 0;
11151 _ACEOF
11152 rm -f conftest.$ac_objext
11153 if { (ac_try="$ac_compile"
11154 case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_compile") 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest.$ac_objext; then
11169 ac_cv_type__Bool=yes
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_cv_type__Bool=no
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11180 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11181 if test $ac_cv_type__Bool = yes; then
11183 cat >>confdefs.h <<_ACEOF
11184 #define HAVE__BOOL 1
11185 _ACEOF
11190 if test $ac_cv_header_stdbool_h = yes; then
11192 cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_STDBOOL_H 1
11194 _ACEOF
11198 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11199 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11200 if test "${ac_cv_c_const+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11211 main ()
11213 /* FIXME: Include the comments suggested by Paul. */
11214 #ifndef __cplusplus
11215 /* Ultrix mips cc rejects this. */
11216 typedef int charset[2];
11217 const charset cs;
11218 /* SunOS 4.1.1 cc rejects this. */
11219 char const *const *pcpcc;
11220 char **ppc;
11221 /* NEC SVR4.0.2 mips cc rejects this. */
11222 struct point {int x, y;};
11223 static struct point const zero = {0,0};
11224 /* AIX XL C 1.02.0.0 rejects this.
11225 It does not let you subtract one const X* pointer from another in
11226 an arm of an if-expression whose if-part is not a constant
11227 expression */
11228 const char *g = "string";
11229 pcpcc = &g + (g ? g-g : 0);
11230 /* HPUX 7.0 cc rejects these. */
11231 ++pcpcc;
11232 ppc = (char**) pcpcc;
11233 pcpcc = (char const *const *) ppc;
11234 { /* SCO 3.2v4 cc rejects this. */
11235 char *t;
11236 char const *s = 0 ? (char *) 0 : (char const *) 0;
11238 *t++ = 0;
11239 if (s) return 0;
11241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11242 int x[] = {25, 17};
11243 const int *foo = &x[0];
11244 ++foo;
11246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11247 typedef const int *iptr;
11248 iptr p = 0;
11249 ++p;
11251 { /* AIX XL C 1.02.0.0 rejects this saying
11252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11253 struct s { int j; const int *ap[3]; };
11254 struct s *b; b->j = 5;
11256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11257 const int foo = 10;
11258 if (!foo) return 0;
11260 return !cs[0] && !zero.x;
11261 #endif
11264 return 0;
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_compile") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } && {
11281 test -z "$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 } && test -s conftest.$ac_objext; then
11284 ac_cv_c_const=yes
11285 else
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_cv_c_const=no
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11295 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11296 if test $ac_cv_c_const = no; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define const
11300 _ACEOF
11304 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11305 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11306 if test "${ac_cv_type_uid_t+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <sys/types.h>
11317 _ACEOF
11318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11319 $EGREP "uid_t" >/dev/null 2>&1; then
11320 ac_cv_type_uid_t=yes
11321 else
11322 ac_cv_type_uid_t=no
11324 rm -f conftest*
11327 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11328 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11329 if test $ac_cv_type_uid_t = no; then
11331 cat >>confdefs.h <<\_ACEOF
11332 #define uid_t int
11333 _ACEOF
11336 cat >>confdefs.h <<\_ACEOF
11337 #define gid_t int
11338 _ACEOF
11342 { echo "$as_me:$LINENO: checking for inline" >&5
11343 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11344 if test "${ac_cv_c_inline+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347 ac_cv_c_inline=no
11348 for ac_kw in inline __inline__ __inline; do
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #ifndef __cplusplus
11356 typedef int foo_t;
11357 static $ac_kw foo_t static_foo () {return 0; }
11358 $ac_kw foo_t foo () {return 0; }
11359 #endif
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest.$ac_objext; then
11379 ac_cv_c_inline=$ac_kw
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 test "$ac_cv_c_inline" != no && break
11389 done
11392 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11393 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11396 case $ac_cv_c_inline in
11397 inline | yes) ;;
11399 case $ac_cv_c_inline in
11400 no) ac_val=;;
11401 *) ac_val=$ac_cv_c_inline;;
11402 esac
11403 cat >>confdefs.h <<_ACEOF
11404 #ifndef __cplusplus
11405 #define inline $ac_val
11406 #endif
11407 _ACEOF
11409 esac
11411 { echo "$as_me:$LINENO: checking for mode_t" >&5
11412 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11413 if test "${ac_cv_type_mode_t+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 $ac_includes_default
11423 typedef mode_t ac__type_new_;
11425 main ()
11427 if ((ac__type_new_ *) 0)
11428 return 0;
11429 if (sizeof (ac__type_new_))
11430 return 0;
11432 return 0;
11434 _ACEOF
11435 rm -f conftest.$ac_objext
11436 if { (ac_try="$ac_compile"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_compile") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest.$ac_objext; then
11452 ac_cv_type_mode_t=yes
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 ac_cv_type_mode_t=no
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11463 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11464 if test $ac_cv_type_mode_t = yes; then
11466 else
11468 cat >>confdefs.h <<_ACEOF
11469 #define mode_t int
11470 _ACEOF
11474 { echo "$as_me:$LINENO: checking for off_t" >&5
11475 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11476 if test "${ac_cv_type_off_t+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 $ac_includes_default
11486 typedef off_t ac__type_new_;
11488 main ()
11490 if ((ac__type_new_ *) 0)
11491 return 0;
11492 if (sizeof (ac__type_new_))
11493 return 0;
11495 return 0;
11497 _ACEOF
11498 rm -f conftest.$ac_objext
11499 if { (ac_try="$ac_compile"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_compile") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_c_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest.$ac_objext; then
11515 ac_cv_type_off_t=yes
11516 else
11517 echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11520 ac_cv_type_off_t=no
11523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11526 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11527 if test $ac_cv_type_off_t = yes; then
11529 else
11531 cat >>confdefs.h <<_ACEOF
11532 #define off_t long int
11533 _ACEOF
11537 { echo "$as_me:$LINENO: checking for pid_t" >&5
11538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11539 if test "${ac_cv_type_pid_t+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 $ac_includes_default
11549 typedef pid_t ac__type_new_;
11551 main ()
11553 if ((ac__type_new_ *) 0)
11554 return 0;
11555 if (sizeof (ac__type_new_))
11556 return 0;
11558 return 0;
11560 _ACEOF
11561 rm -f conftest.$ac_objext
11562 if { (ac_try="$ac_compile"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566 esac
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_compile") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest.$ac_objext; then
11578 ac_cv_type_pid_t=yes
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_cv_type_pid_t=no
11586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11589 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11590 if test $ac_cv_type_pid_t = yes; then
11592 else
11594 cat >>confdefs.h <<_ACEOF
11595 #define pid_t int
11596 _ACEOF
11600 { echo "$as_me:$LINENO: checking for size_t" >&5
11601 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11602 if test "${ac_cv_type_size_t+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605 cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h. */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 $ac_includes_default
11612 typedef size_t ac__type_new_;
11614 main ()
11616 if ((ac__type_new_ *) 0)
11617 return 0;
11618 if (sizeof (ac__type_new_))
11619 return 0;
11621 return 0;
11623 _ACEOF
11624 rm -f conftest.$ac_objext
11625 if { (ac_try="$ac_compile"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.$ac_objext; then
11641 ac_cv_type_size_t=yes
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 ac_cv_type_size_t=no
11649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11652 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11653 if test $ac_cv_type_size_t = yes; then
11655 else
11657 cat >>confdefs.h <<_ACEOF
11658 #define size_t unsigned int
11659 _ACEOF
11663 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11664 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11665 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668 cat >conftest.$ac_ext <<_ACEOF
11669 /* confdefs.h. */
11670 _ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 $ac_includes_default
11676 main ()
11678 static struct stat ac_aggr;
11679 if (ac_aggr.st_blksize)
11680 return 0;
11682 return 0;
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (ac_try="$ac_compile"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_compile") 2>conftest.er1
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest.$ac_objext; then
11702 ac_cv_member_struct_stat_st_blksize=yes
11703 else
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713 $ac_includes_default
11715 main ()
11717 static struct stat ac_aggr;
11718 if (sizeof ac_aggr.st_blksize)
11719 return 0;
11721 return 0;
11723 _ACEOF
11724 rm -f conftest.$ac_objext
11725 if { (ac_try="$ac_compile"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_compile") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } && {
11738 test -z "$ac_c_werror_flag" ||
11739 test ! -s conftest.err
11740 } && test -s conftest.$ac_objext; then
11741 ac_cv_member_struct_stat_st_blksize=yes
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_cv_member_struct_stat_st_blksize=no
11749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11755 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11756 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11760 _ACEOF
11765 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11766 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11767 if test "${ac_cv_header_time+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 #include <sys/types.h>
11777 #include <sys/time.h>
11778 #include <time.h>
11781 main ()
11783 if ((struct tm *) 0)
11784 return 0;
11786 return 0;
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11794 esac
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_compile") 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest.$ac_objext; then
11806 ac_cv_header_time=yes
11807 else
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 ac_cv_header_time=no
11814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11817 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11818 if test $ac_cv_header_time = yes; then
11820 cat >>confdefs.h <<\_ACEOF
11821 #define TIME_WITH_SYS_TIME 1
11822 _ACEOF
11826 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11827 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11828 if test "${ac_cv_struct_tm+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831 cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h. */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 #include <sys/types.h>
11838 #include <time.h>
11841 main ()
11843 struct tm tm;
11844 int *p = &tm.tm_sec;
11845 return !p;
11847 return 0;
11849 _ACEOF
11850 rm -f conftest.$ac_objext
11851 if { (ac_try="$ac_compile"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_compile") 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && {
11864 test -z "$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 } && test -s conftest.$ac_objext; then
11867 ac_cv_struct_tm=time.h
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 ac_cv_struct_tm=sys/time.h
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11878 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11879 if test $ac_cv_struct_tm = sys/time.h; then
11881 cat >>confdefs.h <<\_ACEOF
11882 #define TM_IN_SYS_TIME 1
11883 _ACEOF
11887 { echo "$as_me:$LINENO: checking for working volatile" >&5
11888 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11889 if test "${ac_cv_c_volatile+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11900 main ()
11903 volatile int x;
11904 int * volatile y = (int *) 0;
11905 return !x && !y;
11907 return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 ac_cv_c_volatile=yes
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_cv_c_volatile=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11938 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11939 if test $ac_cv_c_volatile = no; then
11941 cat >>confdefs.h <<\_ACEOF
11942 #define volatile
11943 _ACEOF
11947 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11948 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11949 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 $ac_includes_default
11959 typedef ptrdiff_t ac__type_new_;
11961 main ()
11963 if ((ac__type_new_ *) 0)
11964 return 0;
11965 if (sizeof (ac__type_new_))
11966 return 0;
11968 return 0;
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest.$ac_objext; then
11988 ac_cv_type_ptrdiff_t=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_cv_type_ptrdiff_t=no
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11999 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12000 if test $ac_cv_type_ptrdiff_t = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define HAVE_PTRDIFF_T 1
12004 _ACEOF
12010 # Checks for library functions.
12012 for ac_header in unistd.h
12014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 ac_res=`eval echo '${'$as_ac_Header'}'`
12022 { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12024 else
12025 # Is the header compilable?
12026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12028 cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h. */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12035 #include <$ac_header>
12036 _ACEOF
12037 rm -f conftest.$ac_objext
12038 if { (ac_try="$ac_compile"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_compile") 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest.$ac_objext; then
12054 ac_header_compiler=yes
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_header_compiler=no
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12064 echo "${ECHO_T}$ac_header_compiler" >&6; }
12066 # Is the header present?
12067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 #include <$ac_header>
12076 _ACEOF
12077 if { (ac_try="$ac_cpp conftest.$ac_ext"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev/null && {
12090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 }; then
12093 ac_header_preproc=yes
12094 else
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_header_preproc=no
12101 rm -f conftest.err conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 echo "${ECHO_T}$ac_header_preproc" >&6; }
12105 # So? What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 yes:no: )
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12114 no:yes:* )
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127 ( cat <<\_ASBOX
12128 ## ------------------------------- ##
12129 ## Report this to www.asterisk.org ##
12130 ## ------------------------------- ##
12131 _ASBOX
12132 ) | sed "s/^/$as_me: WARNING: /" >&2
12134 esac
12135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 eval "$as_ac_Header=\$ac_header_preproc"
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150 _ACEOF
12154 done
12156 { echo "$as_me:$LINENO: checking for working chown" >&5
12157 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12158 if test "${ac_cv_func_chown_works+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161 if test "$cross_compiling" = yes; then
12162 ac_cv_func_chown_works=no
12163 else
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 $ac_includes_default
12171 #include <fcntl.h>
12174 main ()
12176 char *f = "conftest.chown";
12177 struct stat before, after;
12179 if (creat (f, 0600) < 0)
12180 return 1;
12181 if (stat (f, &before) < 0)
12182 return 1;
12183 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12184 return 1;
12185 if (stat (f, &after) < 0)
12186 return 1;
12187 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12190 return 0;
12192 _ACEOF
12193 rm -f conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_func_chown_works=yes
12214 else
12215 echo "$as_me: program exited with status $ac_status" >&5
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ( exit $ac_status )
12220 ac_cv_func_chown_works=no
12222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12226 rm -f conftest.chown
12229 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12230 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12231 if test $ac_cv_func_chown_works = yes; then
12233 cat >>confdefs.h <<\_ACEOF
12234 #define HAVE_CHOWN 1
12235 _ACEOF
12239 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12240 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12241 if test "${ac_cv_func_closedir_void+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 if test "$cross_compiling" = yes; then
12245 ac_cv_func_closedir_void=yes
12246 else
12247 cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h. */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12253 $ac_includes_default
12254 #include <$ac_header_dirent>
12255 #ifndef __cplusplus
12256 int closedir ();
12257 #endif
12260 main ()
12262 return closedir (opendir (".")) != 0;
12264 return 0;
12266 _ACEOF
12267 rm -f conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12278 { (case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_try") 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 ac_cv_func_closedir_void=no
12288 else
12289 echo "$as_me: program exited with status $ac_status" >&5
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ( exit $ac_status )
12294 ac_cv_func_closedir_void=yes
12296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12301 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12302 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12303 if test $ac_cv_func_closedir_void = yes; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define CLOSEDIR_VOID 1
12307 _ACEOF
12311 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12312 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12313 if test "${ac_cv_lib_error_at_line+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <error.h>
12324 main ()
12326 error_at_line (0, 0, "", 0, "an error occurred");
12328 return 0;
12330 _ACEOF
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (ac_try="$ac_link"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_link") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest$ac_exeext &&
12348 $as_test_x conftest$ac_exeext; then
12349 ac_cv_lib_error_at_line=yes
12350 else
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_lib_error_at_line=no
12357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12358 conftest$ac_exeext conftest.$ac_ext
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12361 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12362 if test $ac_cv_lib_error_at_line = no; then
12363 case " $LIBOBJS " in
12364 *" error.$ac_objext "* ) ;;
12365 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12367 esac
12372 for ac_header in vfork.h
12374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 ac_res=`eval echo '${'$as_ac_Header'}'`
12382 { echo "$as_me:$LINENO: result: $ac_res" >&5
12383 echo "${ECHO_T}$ac_res" >&6; }
12384 else
12385 # Is the header compilable?
12386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h. */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 $ac_includes_default
12395 #include <$ac_header>
12396 _ACEOF
12397 rm -f conftest.$ac_objext
12398 if { (ac_try="$ac_compile"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_compile") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest.$ac_objext; then
12414 ac_header_compiler=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_header_compiler=no
12422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12424 echo "${ECHO_T}$ac_header_compiler" >&6; }
12426 # Is the header present?
12427 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12429 cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h. */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12435 #include <$ac_header>
12436 _ACEOF
12437 if { (ac_try="$ac_cpp conftest.$ac_ext"
12438 case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12444 ac_status=$?
12445 grep -v '^ *+' conftest.er1 >conftest.err
12446 rm -f conftest.er1
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } >/dev/null && {
12450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12451 test ! -s conftest.err
12452 }; then
12453 ac_header_preproc=yes
12454 else
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ac_header_preproc=no
12461 rm -f conftest.err conftest.$ac_ext
12462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12463 echo "${ECHO_T}$ac_header_preproc" >&6; }
12465 # So? What about this header?
12466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12467 yes:no: )
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12472 ac_header_preproc=yes
12474 no:yes:* )
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12487 ( cat <<\_ASBOX
12488 ## ------------------------------- ##
12489 ## Report this to www.asterisk.org ##
12490 ## ------------------------------- ##
12491 _ASBOX
12492 ) | sed "s/^/$as_me: WARNING: /" >&2
12494 esac
12495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500 eval "$as_ac_Header=\$ac_header_preproc"
12502 ac_res=`eval echo '${'$as_ac_Header'}'`
12503 { echo "$as_me:$LINENO: result: $ac_res" >&5
12504 echo "${ECHO_T}$ac_res" >&6; }
12507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12508 cat >>confdefs.h <<_ACEOF
12509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12510 _ACEOF
12514 done
12518 for ac_func in fork vfork
12520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12534 #define $ac_func innocuous_$ac_func
12536 /* System header to define __stub macros and hopefully few prototypes,
12537 which can conflict with char $ac_func (); below.
12538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539 <limits.h> exists even on freestanding compilers. */
12541 #ifdef __STDC__
12542 # include <limits.h>
12543 #else
12544 # include <assert.h>
12545 #endif
12547 #undef $ac_func
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char $ac_func ();
12556 /* The GNU C library defines this for functions which it implements
12557 to always fail with ENOSYS. Some functions are actually named
12558 something starting with __ and the normal name is an alias. */
12559 #if defined __stub_$ac_func || defined __stub___$ac_func
12560 choke me
12561 #endif
12564 main ()
12566 return $ac_func ();
12568 return 0;
12570 _ACEOF
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (ac_try="$ac_link"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_link") 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest$ac_exeext &&
12588 $as_test_x conftest$ac_exeext; then
12589 eval "$as_ac_var=yes"
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 eval "$as_ac_var=no"
12597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12598 conftest$ac_exeext conftest.$ac_ext
12600 ac_res=`eval echo '${'$as_ac_var'}'`
12601 { echo "$as_me:$LINENO: result: $ac_res" >&5
12602 echo "${ECHO_T}$ac_res" >&6; }
12603 if test `eval echo '${'$as_ac_var'}'` = yes; then
12604 cat >>confdefs.h <<_ACEOF
12605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12606 _ACEOF
12609 done
12611 if test "x$ac_cv_func_fork" = xyes; then
12612 { echo "$as_me:$LINENO: checking for working fork" >&5
12613 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12614 if test "${ac_cv_func_fork_works+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617 if test "$cross_compiling" = yes; then
12618 ac_cv_func_fork_works=cross
12619 else
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 $ac_includes_default
12628 main ()
12631 /* By Ruediger Kuhlmann. */
12632 return fork () < 0;
12635 return 0;
12637 _ACEOF
12638 rm -f conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_link") 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_func_fork_works=yes
12659 else
12660 echo "$as_me: program exited with status $ac_status" >&5
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ( exit $ac_status )
12665 ac_cv_func_fork_works=no
12667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12673 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12675 else
12676 ac_cv_func_fork_works=$ac_cv_func_fork
12678 if test "x$ac_cv_func_fork_works" = xcross; then
12679 case $host in
12680 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12681 # Override, as these systems have only a dummy fork() stub
12682 ac_cv_func_fork_works=no
12685 ac_cv_func_fork_works=yes
12687 esac
12688 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12689 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12691 ac_cv_func_vfork_works=$ac_cv_func_vfork
12692 if test "x$ac_cv_func_vfork" = xyes; then
12693 { echo "$as_me:$LINENO: checking for working vfork" >&5
12694 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12695 if test "${ac_cv_func_vfork_works+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 else
12698 if test "$cross_compiling" = yes; then
12699 ac_cv_func_vfork_works=cross
12700 else
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 /* Thanks to Paul Eggert for this test. */
12708 $ac_includes_default
12709 #include <sys/wait.h>
12710 #ifdef HAVE_VFORK_H
12711 # include <vfork.h>
12712 #endif
12713 /* On some sparc systems, changes by the child to local and incoming
12714 argument registers are propagated back to the parent. The compiler
12715 is told about this with #include <vfork.h>, but some compilers
12716 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12717 static variable whose address is put into a register that is
12718 clobbered by the vfork. */
12719 static void
12720 #ifdef __cplusplus
12721 sparc_address_test (int arg)
12722 # else
12723 sparc_address_test (arg) int arg;
12724 #endif
12726 static pid_t child;
12727 if (!child) {
12728 child = vfork ();
12729 if (child < 0) {
12730 perror ("vfork");
12731 _exit(2);
12733 if (!child) {
12734 arg = getpid();
12735 write(-1, "", 0);
12736 _exit (arg);
12742 main ()
12744 pid_t parent = getpid ();
12745 pid_t child;
12747 sparc_address_test (0);
12749 child = vfork ();
12751 if (child == 0) {
12752 /* Here is another test for sparc vfork register problems. This
12753 test uses lots of local variables, at least as many local
12754 variables as main has allocated so far including compiler
12755 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12756 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12757 reuse the register of parent for one of the local variables,
12758 since it will think that parent can't possibly be used any more
12759 in this routine. Assigning to the local variable will thus
12760 munge parent in the parent process. */
12761 pid_t
12762 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12763 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12764 /* Convince the compiler that p..p7 are live; otherwise, it might
12765 use the same hardware register for all 8 local variables. */
12766 if (p != p1 || p != p2 || p != p3 || p != p4
12767 || p != p5 || p != p6 || p != p7)
12768 _exit(1);
12770 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12771 from child file descriptors. If the child closes a descriptor
12772 before it execs or exits, this munges the parent's descriptor
12773 as well. Test for this by closing stdout in the child. */
12774 _exit(close(fileno(stdout)) != 0);
12775 } else {
12776 int status;
12777 struct stat st;
12779 while (wait(&status) != child)
12781 return (
12782 /* Was there some problem with vforking? */
12783 child < 0
12785 /* Did the child fail? (This shouldn't happen.) */
12786 || status
12788 /* Did the vfork/compiler bug occur? */
12789 || parent != getpid()
12791 /* Did the file descriptor bug occur? */
12792 || fstat(fileno(stdout), &st) != 0
12796 _ACEOF
12797 rm -f conftest$ac_exeext
12798 if { (ac_try="$ac_link"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_link") 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12808 { (case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_try") 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_func_vfork_works=yes
12818 else
12819 echo "$as_me: program exited with status $ac_status" >&5
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ( exit $ac_status )
12824 ac_cv_func_vfork_works=no
12826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12831 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12832 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12835 if test "x$ac_cv_func_fork_works" = xcross; then
12836 ac_cv_func_vfork_works=$ac_cv_func_vfork
12837 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12838 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12841 if test "x$ac_cv_func_vfork_works" = xyes; then
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_WORKING_VFORK 1
12845 _ACEOF
12847 else
12849 cat >>confdefs.h <<\_ACEOF
12850 #define vfork fork
12851 _ACEOF
12854 if test "x$ac_cv_func_fork_works" = xyes; then
12856 cat >>confdefs.h <<\_ACEOF
12857 #define HAVE_WORKING_FORK 1
12858 _ACEOF
12862 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12863 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12864 if test "${ac_cv_sys_largefile_source+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867 while :; do
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 #include <sys/types.h> /* for off_t */
12875 #include <stdio.h>
12877 main ()
12879 int (*fp) (FILE *, off_t, int) = fseeko;
12880 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12882 return 0;
12884 _ACEOF
12885 rm -f conftest.$ac_objext conftest$ac_exeext
12886 if { (ac_try="$ac_link"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_link") 2>conftest.er1
12893 ac_status=$?
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } && {
12899 test -z "$ac_c_werror_flag" ||
12900 test ! -s conftest.err
12901 } && test -s conftest$ac_exeext &&
12902 $as_test_x conftest$ac_exeext; then
12903 ac_cv_sys_largefile_source=no; break
12904 else
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12912 conftest$ac_exeext conftest.$ac_ext
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h. */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919 #define _LARGEFILE_SOURCE 1
12920 #include <sys/types.h> /* for off_t */
12921 #include <stdio.h>
12923 main ()
12925 int (*fp) (FILE *, off_t, int) = fseeko;
12926 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12928 return 0;
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (ac_try="$ac_link"
12933 case "(($ac_try" in
12934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12936 esac
12937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12938 (eval "$ac_link") 2>conftest.er1
12939 ac_status=$?
12940 grep -v '^ *+' conftest.er1 >conftest.err
12941 rm -f conftest.er1
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && {
12945 test -z "$ac_c_werror_flag" ||
12946 test ! -s conftest.err
12947 } && test -s conftest$ac_exeext &&
12948 $as_test_x conftest$ac_exeext; then
12949 ac_cv_sys_largefile_source=1; break
12950 else
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12958 conftest$ac_exeext conftest.$ac_ext
12959 ac_cv_sys_largefile_source=unknown
12960 break
12961 done
12963 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12964 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12965 case $ac_cv_sys_largefile_source in #(
12966 no | unknown) ;;
12968 cat >>confdefs.h <<_ACEOF
12969 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12970 _ACEOF
12972 esac
12973 rm -f conftest*
12975 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12976 # in glibc 2.1.3, but that breaks too many other things.
12977 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12978 if test $ac_cv_sys_largefile_source != unknown; then
12980 cat >>confdefs.h <<\_ACEOF
12981 #define HAVE_FSEEKO 1
12982 _ACEOF
12986 if test $ac_cv_c_compiler_gnu = yes; then
12987 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12988 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12989 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992 ac_pattern="Autoconf.*'x'"
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h. */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 #include <sgtty.h>
13000 Autoconf TIOCGETP
13001 _ACEOF
13002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13003 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13004 ac_cv_prog_gcc_traditional=yes
13005 else
13006 ac_cv_prog_gcc_traditional=no
13008 rm -f conftest*
13011 if test $ac_cv_prog_gcc_traditional = no; then
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 #include <termio.h>
13019 Autoconf TCGETA
13020 _ACEOF
13021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13022 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13023 ac_cv_prog_gcc_traditional=yes
13025 rm -f conftest*
13029 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13030 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
13031 if test $ac_cv_prog_gcc_traditional = yes; then
13032 CC="$CC -traditional"
13036 # XXX: these are commented out until we determine whether it matters if our malloc()
13037 # acts exactly like glibc's or not
13038 # AC_FUNC_MALLOC
13039 # AC_FUNC_REALLOC
13040 { echo "$as_me:$LINENO: checking for working memcmp" >&5
13041 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
13042 if test "${ac_cv_func_memcmp_working+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045 if test "$cross_compiling" = yes; then
13046 ac_cv_func_memcmp_working=no
13047 else
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h. */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 $ac_includes_default
13056 main ()
13059 /* Some versions of memcmp are not 8-bit clean. */
13060 char c0 = '\100', c1 = '\200', c2 = '\201';
13061 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13062 return 1;
13064 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13065 or more and with at least one buffer not starting on a 4-byte boundary.
13066 William Lewis provided this test program. */
13068 char foo[21];
13069 char bar[21];
13070 int i;
13071 for (i = 0; i < 4; i++)
13073 char *a = foo + i;
13074 char *b = bar + i;
13075 strcpy (a, "--------01111111");
13076 strcpy (b, "--------10000000");
13077 if (memcmp (a, b, 16) >= 0)
13078 return 1;
13080 return 0;
13084 return 0;
13086 _ACEOF
13087 rm -f conftest$ac_exeext
13088 if { (ac_try="$ac_link"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_link") 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101 esac
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_cv_func_memcmp_working=yes
13108 else
13109 echo "$as_me: program exited with status $ac_status" >&5
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ( exit $ac_status )
13114 ac_cv_func_memcmp_working=no
13116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13121 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13122 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13123 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13124 *" memcmp.$ac_objext "* ) ;;
13125 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13127 esac
13132 for ac_header in stdlib.h unistd.h
13134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 ac_res=`eval echo '${'$as_ac_Header'}'`
13142 { echo "$as_me:$LINENO: result: $ac_res" >&5
13143 echo "${ECHO_T}$ac_res" >&6; }
13144 else
13145 # Is the header compilable?
13146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h. */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 $ac_includes_default
13155 #include <$ac_header>
13156 _ACEOF
13157 rm -f conftest.$ac_objext
13158 if { (ac_try="$ac_compile"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_compile") 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && {
13171 test -z "$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13173 } && test -s conftest.$ac_objext; then
13174 ac_header_compiler=yes
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13179 ac_header_compiler=no
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13184 echo "${ECHO_T}$ac_header_compiler" >&6; }
13186 # Is the header present?
13187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 #include <$ac_header>
13196 _ACEOF
13197 if { (ac_try="$ac_cpp conftest.$ac_ext"
13198 case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } >/dev/null && {
13210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13211 test ! -s conftest.err
13212 }; then
13213 ac_header_preproc=yes
13214 else
13215 echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13218 ac_header_preproc=no
13221 rm -f conftest.err conftest.$ac_ext
13222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13223 echo "${ECHO_T}$ac_header_preproc" >&6; }
13225 # So? What about this header?
13226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13227 yes:no: )
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13232 ac_header_preproc=yes
13234 no:yes:* )
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13242 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13247 ( cat <<\_ASBOX
13248 ## ------------------------------- ##
13249 ## Report this to www.asterisk.org ##
13250 ## ------------------------------- ##
13251 _ASBOX
13252 ) | sed "s/^/$as_me: WARNING: /" >&2
13254 esac
13255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260 eval "$as_ac_Header=\$ac_header_preproc"
13262 ac_res=`eval echo '${'$as_ac_Header'}'`
13263 { echo "$as_me:$LINENO: result: $ac_res" >&5
13264 echo "${ECHO_T}$ac_res" >&6; }
13267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13268 cat >>confdefs.h <<_ACEOF
13269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13270 _ACEOF
13274 done
13277 for ac_func in getpagesize
13279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h. */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13293 #define $ac_func innocuous_$ac_func
13295 /* System header to define __stub macros and hopefully few prototypes,
13296 which can conflict with char $ac_func (); below.
13297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13298 <limits.h> exists even on freestanding compilers. */
13300 #ifdef __STDC__
13301 # include <limits.h>
13302 #else
13303 # include <assert.h>
13304 #endif
13306 #undef $ac_func
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13311 #ifdef __cplusplus
13312 extern "C"
13313 #endif
13314 char $ac_func ();
13315 /* The GNU C library defines this for functions which it implements
13316 to always fail with ENOSYS. Some functions are actually named
13317 something starting with __ and the normal name is an alias. */
13318 #if defined __stub_$ac_func || defined __stub___$ac_func
13319 choke me
13320 #endif
13323 main ()
13325 return $ac_func ();
13327 return 0;
13329 _ACEOF
13330 rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (ac_try="$ac_link"
13332 case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_link") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest$ac_exeext &&
13347 $as_test_x conftest$ac_exeext; then
13348 eval "$as_ac_var=yes"
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 eval "$as_ac_var=no"
13356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13357 conftest$ac_exeext conftest.$ac_ext
13359 ac_res=`eval echo '${'$as_ac_var'}'`
13360 { echo "$as_me:$LINENO: result: $ac_res" >&5
13361 echo "${ECHO_T}$ac_res" >&6; }
13362 if test `eval echo '${'$as_ac_var'}'` = yes; then
13363 cat >>confdefs.h <<_ACEOF
13364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13365 _ACEOF
13368 done
13370 { echo "$as_me:$LINENO: checking for working mmap" >&5
13371 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13372 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375 if test "$cross_compiling" = yes; then
13376 ac_cv_func_mmap_fixed_mapped=no
13377 else
13378 cat >conftest.$ac_ext <<_ACEOF
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 $ac_includes_default
13385 /* malloc might have been renamed as rpl_malloc. */
13386 #undef malloc
13388 /* Thanks to Mike Haertel and Jim Avera for this test.
13389 Here is a matrix of mmap possibilities:
13390 mmap private not fixed
13391 mmap private fixed at somewhere currently unmapped
13392 mmap private fixed at somewhere already mapped
13393 mmap shared not fixed
13394 mmap shared fixed at somewhere currently unmapped
13395 mmap shared fixed at somewhere already mapped
13396 For private mappings, we should verify that changes cannot be read()
13397 back from the file, nor mmap's back from the file at a different
13398 address. (There have been systems where private was not correctly
13399 implemented like the infamous i386 svr4.0, and systems where the
13400 VM page cache was not coherent with the file system buffer cache
13401 like early versions of FreeBSD and possibly contemporary NetBSD.)
13402 For shared mappings, we should conversely verify that changes get
13403 propagated back to all the places they're supposed to be.
13405 Grep wants private fixed already mapped.
13406 The main things grep needs to know about mmap are:
13407 * does it exist and is it safe to write into the mmap'd area
13408 * how to use it (BSD variants) */
13410 #include <fcntl.h>
13411 #include <sys/mman.h>
13413 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13414 char *malloc ();
13415 #endif
13417 /* This mess was copied from the GNU getpagesize.h. */
13418 #ifndef HAVE_GETPAGESIZE
13419 /* Assume that all systems that can run configure have sys/param.h. */
13420 # ifndef HAVE_SYS_PARAM_H
13421 # define HAVE_SYS_PARAM_H 1
13422 # endif
13424 # ifdef _SC_PAGESIZE
13425 # define getpagesize() sysconf(_SC_PAGESIZE)
13426 # else /* no _SC_PAGESIZE */
13427 # ifdef HAVE_SYS_PARAM_H
13428 # include <sys/param.h>
13429 # ifdef EXEC_PAGESIZE
13430 # define getpagesize() EXEC_PAGESIZE
13431 # else /* no EXEC_PAGESIZE */
13432 # ifdef NBPG
13433 # define getpagesize() NBPG * CLSIZE
13434 # ifndef CLSIZE
13435 # define CLSIZE 1
13436 # endif /* no CLSIZE */
13437 # else /* no NBPG */
13438 # ifdef NBPC
13439 # define getpagesize() NBPC
13440 # else /* no NBPC */
13441 # ifdef PAGESIZE
13442 # define getpagesize() PAGESIZE
13443 # endif /* PAGESIZE */
13444 # endif /* no NBPC */
13445 # endif /* no NBPG */
13446 # endif /* no EXEC_PAGESIZE */
13447 # else /* no HAVE_SYS_PARAM_H */
13448 # define getpagesize() 8192 /* punt totally */
13449 # endif /* no HAVE_SYS_PARAM_H */
13450 # endif /* no _SC_PAGESIZE */
13452 #endif /* no HAVE_GETPAGESIZE */
13455 main ()
13457 char *data, *data2, *data3;
13458 int i, pagesize;
13459 int fd;
13461 pagesize = getpagesize ();
13463 /* First, make a file with some known garbage in it. */
13464 data = (char *) malloc (pagesize);
13465 if (!data)
13466 return 1;
13467 for (i = 0; i < pagesize; ++i)
13468 *(data + i) = rand ();
13469 umask (0);
13470 fd = creat ("conftest.mmap", 0600);
13471 if (fd < 0)
13472 return 1;
13473 if (write (fd, data, pagesize) != pagesize)
13474 return 1;
13475 close (fd);
13477 /* Next, try to mmap the file at a fixed address which already has
13478 something else allocated at it. If we can, also make sure that
13479 we see the same garbage. */
13480 fd = open ("conftest.mmap", O_RDWR);
13481 if (fd < 0)
13482 return 1;
13483 data2 = (char *) malloc (2 * pagesize);
13484 if (!data2)
13485 return 1;
13486 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13487 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13489 return 1;
13490 for (i = 0; i < pagesize; ++i)
13491 if (*(data + i) != *(data2 + i))
13492 return 1;
13494 /* Finally, make sure that changes to the mapped area do not
13495 percolate back to the file as seen by read(). (This is a bug on
13496 some variants of i386 svr4.0.) */
13497 for (i = 0; i < pagesize; ++i)
13498 *(data2 + i) = *(data2 + i) + 1;
13499 data3 = (char *) malloc (pagesize);
13500 if (!data3)
13501 return 1;
13502 if (read (fd, data3, pagesize) != pagesize)
13503 return 1;
13504 for (i = 0; i < pagesize; ++i)
13505 if (*(data + i) != *(data3 + i))
13506 return 1;
13507 close (fd);
13508 return 0;
13510 _ACEOF
13511 rm -f conftest$ac_exeext
13512 if { (ac_try="$ac_link"
13513 case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516 esac
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_link") 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_func_mmap_fixed_mapped=yes
13532 else
13533 echo "$as_me: program exited with status $ac_status" >&5
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ( exit $ac_status )
13538 ac_cv_func_mmap_fixed_mapped=no
13540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13546 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13547 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13549 cat >>confdefs.h <<\_ACEOF
13550 #define HAVE_MMAP 1
13551 _ACEOF
13554 rm -f conftest.mmap
13558 for ac_header in sys/select.h sys/socket.h
13560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 ac_res=`eval echo '${'$as_ac_Header'}'`
13568 { echo "$as_me:$LINENO: result: $ac_res" >&5
13569 echo "${ECHO_T}$ac_res" >&6; }
13570 else
13571 # Is the header compilable?
13572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13574 cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h. */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 $ac_includes_default
13581 #include <$ac_header>
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (ac_try="$ac_compile"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_compile") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest.$ac_objext; then
13600 ac_header_compiler=yes
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_header_compiler=no
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13610 echo "${ECHO_T}$ac_header_compiler" >&6; }
13612 # Is the header present?
13613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 #include <$ac_header>
13622 _ACEOF
13623 if { (ac_try="$ac_cpp conftest.$ac_ext"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } >/dev/null && {
13636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13637 test ! -s conftest.err
13638 }; then
13639 ac_header_preproc=yes
13640 else
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 ac_header_preproc=no
13647 rm -f conftest.err conftest.$ac_ext
13648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13649 echo "${ECHO_T}$ac_header_preproc" >&6; }
13651 # So? What about this header?
13652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 yes:no: )
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13658 ac_header_preproc=yes
13660 no:yes:* )
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13673 ( cat <<\_ASBOX
13674 ## ------------------------------- ##
13675 ## Report this to www.asterisk.org ##
13676 ## ------------------------------- ##
13677 _ASBOX
13678 ) | sed "s/^/$as_me: WARNING: /" >&2
13680 esac
13681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686 eval "$as_ac_Header=\$ac_header_preproc"
13688 ac_res=`eval echo '${'$as_ac_Header'}'`
13689 { echo "$as_me:$LINENO: result: $ac_res" >&5
13690 echo "${ECHO_T}$ac_res" >&6; }
13693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13694 cat >>confdefs.h <<_ACEOF
13695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13696 _ACEOF
13700 done
13702 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13703 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13704 if test "${ac_cv_func_select_args+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13708 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13709 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 $ac_includes_default
13717 #ifdef HAVE_SYS_SELECT_H
13718 # include <sys/select.h>
13719 #endif
13720 #ifdef HAVE_SYS_SOCKET_H
13721 # include <sys/socket.h>
13722 #endif
13725 main ()
13727 extern int select ($ac_arg1,
13728 $ac_arg234, $ac_arg234, $ac_arg234,
13729 $ac_arg5);
13731 return 0;
13733 _ACEOF
13734 rm -f conftest.$ac_objext
13735 if { (ac_try="$ac_compile"
13736 case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_compile") 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } && {
13748 test -z "$ac_c_werror_flag" ||
13749 test ! -s conftest.err
13750 } && test -s conftest.$ac_objext; then
13751 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 done
13761 done
13762 done
13763 # Provide a safe default value.
13764 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13767 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13768 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13769 ac_save_IFS=$IFS; IFS=','
13770 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13771 IFS=$ac_save_IFS
13772 shift
13774 cat >>confdefs.h <<_ACEOF
13775 #define SELECT_TYPE_ARG1 $1
13776 _ACEOF
13779 cat >>confdefs.h <<_ACEOF
13780 #define SELECT_TYPE_ARG234 ($2)
13781 _ACEOF
13784 cat >>confdefs.h <<_ACEOF
13785 #define SELECT_TYPE_ARG5 ($3)
13786 _ACEOF
13788 rm -f conftest*
13790 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13791 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13792 if test "$ac_cv_prog_cc_c89" != no; then
13793 { echo "$as_me:$LINENO: result: yes" >&5
13794 echo "${ECHO_T}yes" >&6; }
13796 cat >>confdefs.h <<\_ACEOF
13797 #define PROTOTYPES 1
13798 _ACEOF
13801 cat >>confdefs.h <<\_ACEOF
13802 #define __PROTOTYPES 1
13803 _ACEOF
13805 else
13806 { echo "$as_me:$LINENO: result: no" >&5
13807 echo "${ECHO_T}no" >&6; }
13810 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13811 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13812 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815 ac_cv_func_setvbuf_reversed=no
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 #include <stdio.h>
13823 # ifdef PROTOTYPES
13824 int (setvbuf) (FILE *, int, char *, size_t);
13825 # endif
13827 main ()
13829 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13831 return 0;
13833 _ACEOF
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (ac_try="$ac_link"
13836 case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_link") 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } && {
13848 test -z "$ac_c_werror_flag" ||
13849 test ! -s conftest.err
13850 } && test -s conftest$ac_exeext &&
13851 $as_test_x conftest$ac_exeext; then
13852 cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h. */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 #include <stdio.h>
13859 # ifdef PROTOTYPES
13860 int (setvbuf) (FILE *, int, char *, size_t);
13861 # endif
13863 main ()
13865 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13867 return 0;
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13875 esac
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest$ac_exeext &&
13887 $as_test_x conftest$ac_exeext; then
13888 # It compiles and links either way, so it must not be declared
13889 # with a prototype and most likely this is a K&R C compiler.
13890 # Try running it.
13891 if test "$cross_compiling" = yes; then
13892 : # Assume setvbuf is not reversed when cross-compiling.
13893 else
13894 cat >conftest.$ac_ext <<_ACEOF
13895 /* confdefs.h. */
13896 _ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 $ac_includes_default
13902 main ()
13904 /* This call has the arguments reversed.
13905 A reversed system may check and see that the address of buf
13906 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13907 char buf;
13908 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13909 return 1;
13910 putchar ('\r');
13911 return 0; /* Non-reversed systems SEGV here. */
13913 return 0;
13915 _ACEOF
13916 rm -f conftest$ac_exeext
13917 if { (ac_try="$ac_link"
13918 case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_link") 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13927 { (case "(($ac_try" in
13928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13930 esac
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_try") 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_func_setvbuf_reversed=yes
13937 else
13938 echo "$as_me: program exited with status $ac_status" >&5
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13947 ac_cv_func_setvbuf_reversed=yes
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13956 conftest$ac_exeext conftest.$ac_ext
13957 else
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13965 conftest$ac_exeext conftest.$ac_ext
13967 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13968 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13969 if test $ac_cv_func_setvbuf_reversed = yes; then
13971 cat >>confdefs.h <<\_ACEOF
13972 #define SETVBUF_REVERSED 1
13973 _ACEOF
13977 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13978 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13979 if test "${ac_cv_type_signal+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <sys/types.h>
13989 #include <signal.h>
13992 main ()
13994 return *(signal (0, 0)) (0) == 1;
13996 return 0;
13998 _ACEOF
13999 rm -f conftest.$ac_objext
14000 if { (ac_try="$ac_compile"
14001 case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004 esac
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_compile") 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } && {
14013 test -z "$ac_c_werror_flag" ||
14014 test ! -s conftest.err
14015 } && test -s conftest.$ac_objext; then
14016 ac_cv_type_signal=int
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_cv_type_signal=void
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14027 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14029 cat >>confdefs.h <<_ACEOF
14030 #define RETSIGTYPE $ac_cv_type_signal
14031 _ACEOF
14034 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14035 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14036 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039 rm -f conftest.sym conftest.file
14040 echo >conftest.file
14041 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14042 if test "$cross_compiling" = yes; then
14043 ac_cv_func_lstat_dereferences_slashed_symlink=no
14044 else
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14053 main ()
14055 struct stat sbuf;
14056 /* Linux will dereference the symlink and fail.
14057 That is better in the sense that it means we will not
14058 have to compile and use the lstat wrapper. */
14059 return lstat ("conftest.sym/", &sbuf) == 0;
14061 return 0;
14063 _ACEOF
14064 rm -f conftest$ac_exeext
14065 if { (ac_try="$ac_link"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_link") 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14075 { (case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_try") 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14085 else
14086 echo "$as_me: program exited with status $ac_status" >&5
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ( exit $ac_status )
14091 ac_cv_func_lstat_dereferences_slashed_symlink=no
14093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14097 else
14098 # If the `ln -s' command failed, then we probably don't even
14099 # have an lstat function.
14100 ac_cv_func_lstat_dereferences_slashed_symlink=no
14102 rm -f conftest.sym conftest.file
14105 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14106 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14108 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14110 cat >>confdefs.h <<_ACEOF
14111 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14112 _ACEOF
14115 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14116 case " $LIBOBJS " in
14117 *" lstat.$ac_objext "* ) ;;
14118 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14120 esac
14124 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14125 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14126 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129 if test "$cross_compiling" = yes; then
14130 ac_cv_func_stat_empty_string_bug=yes
14131 else
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h. */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 $ac_includes_default
14140 main ()
14142 struct stat sbuf;
14143 return stat ("", &sbuf) == 0;
14145 return 0;
14147 _ACEOF
14148 rm -f conftest$ac_exeext
14149 if { (ac_try="$ac_link"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_link") 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 ac_cv_func_stat_empty_string_bug=no
14169 else
14170 echo "$as_me: program exited with status $ac_status" >&5
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14174 ( exit $ac_status )
14175 ac_cv_func_stat_empty_string_bug=yes
14177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14182 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14183 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14184 if test $ac_cv_func_stat_empty_string_bug = yes; then
14185 case " $LIBOBJS " in
14186 *" stat.$ac_objext "* ) ;;
14187 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14189 esac
14192 cat >>confdefs.h <<_ACEOF
14193 #define HAVE_STAT_EMPTY_STRING_BUG 1
14194 _ACEOF
14198 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14199 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14200 if test "${ac_cv_func_strcoll_works+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203 if test "$cross_compiling" = yes; then
14204 ac_cv_func_strcoll_works=no
14205 else
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 $ac_includes_default
14214 main ()
14216 return (strcoll ("abc", "def") >= 0 ||
14217 strcoll ("ABC", "DEF") >= 0 ||
14218 strcoll ("123", "456") >= 0)
14220 return 0;
14222 _ACEOF
14223 rm -f conftest$ac_exeext
14224 if { (ac_try="$ac_link"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_link") 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14234 { (case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14237 esac
14238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239 (eval "$ac_try") 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_cv_func_strcoll_works=yes
14244 else
14245 echo "$as_me: program exited with status $ac_status" >&5
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ( exit $ac_status )
14250 ac_cv_func_strcoll_works=no
14252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14257 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14258 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14259 if test $ac_cv_func_strcoll_works = yes; then
14261 cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_STRCOLL 1
14263 _ACEOF
14268 for ac_func in strftime
14270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h. */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14284 #define $ac_func innocuous_$ac_func
14286 /* System header to define __stub macros and hopefully few prototypes,
14287 which can conflict with char $ac_func (); below.
14288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14289 <limits.h> exists even on freestanding compilers. */
14291 #ifdef __STDC__
14292 # include <limits.h>
14293 #else
14294 # include <assert.h>
14295 #endif
14297 #undef $ac_func
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 char $ac_func ();
14306 /* The GNU C library defines this for functions which it implements
14307 to always fail with ENOSYS. Some functions are actually named
14308 something starting with __ and the normal name is an alias. */
14309 #if defined __stub_$ac_func || defined __stub___$ac_func
14310 choke me
14311 #endif
14314 main ()
14316 return $ac_func ();
14318 return 0;
14320 _ACEOF
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest$ac_exeext &&
14338 $as_test_x conftest$ac_exeext; then
14339 eval "$as_ac_var=yes"
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 eval "$as_ac_var=no"
14347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14348 conftest$ac_exeext conftest.$ac_ext
14350 ac_res=`eval echo '${'$as_ac_var'}'`
14351 { echo "$as_me:$LINENO: result: $ac_res" >&5
14352 echo "${ECHO_T}$ac_res" >&6; }
14353 if test `eval echo '${'$as_ac_var'}'` = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14356 _ACEOF
14358 else
14359 # strftime is in -lintl on SCO UNIX.
14360 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14361 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14362 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 ac_check_lib_save_LIBS=$LIBS
14366 LIBS="-lintl $LIBS"
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14374 /* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14377 #ifdef __cplusplus
14378 extern "C"
14379 #endif
14380 char strftime ();
14382 main ()
14384 return strftime ();
14386 return 0;
14388 _ACEOF
14389 rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_link") 2>conftest.er1
14397 ac_status=$?
14398 grep -v '^ *+' conftest.er1 >conftest.err
14399 rm -f conftest.er1
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest$ac_exeext &&
14406 $as_test_x conftest$ac_exeext; then
14407 ac_cv_lib_intl_strftime=yes
14408 else
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_cv_lib_intl_strftime=no
14415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14419 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14420 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14421 if test $ac_cv_lib_intl_strftime = yes; then
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_STRFTIME 1
14424 _ACEOF
14426 LIBS="-lintl $LIBS"
14430 done
14432 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14433 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14434 if test "${ac_cv_func_strnlen_working+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437 if test "$cross_compiling" = yes; then
14438 ac_cv_func_strnlen_working=no
14439 else
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 $ac_includes_default
14448 main ()
14451 #define S "foobar"
14452 #define S_LEN (sizeof S - 1)
14454 /* At least one implementation is buggy: that of AIX 4.3 would
14455 give strnlen (S, 1) == 3. */
14457 int i;
14458 for (i = 0; i < S_LEN + 1; ++i)
14460 int expected = i <= S_LEN ? i : S_LEN;
14461 if (strnlen (S, i) != expected)
14462 return 1;
14464 return 0;
14467 return 0;
14469 _ACEOF
14470 rm -f conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_link") 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14481 { (case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_try") 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 ac_cv_func_strnlen_working=yes
14491 else
14492 echo "$as_me: program exited with status $ac_status" >&5
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ( exit $ac_status )
14497 ac_cv_func_strnlen_working=no
14499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14504 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14505 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14506 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14507 *" strnlen.$ac_objext "* ) ;;
14508 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14510 esac
14513 { echo "$as_me:$LINENO: checking for working strtod" >&5
14514 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14515 if test "${ac_cv_func_strtod+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518 if test "$cross_compiling" = yes; then
14519 ac_cv_func_strtod=no
14520 else
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 $ac_includes_default
14529 #ifndef strtod
14530 double strtod ();
14531 #endif
14533 main()
14536 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14537 char *string = " +69";
14538 char *term;
14539 double value;
14540 value = strtod (string, &term);
14541 if (value != 69 || term != (string + 4))
14542 return 1;
14546 /* Under Solaris 2.4, strtod returns the wrong value for the
14547 terminating character under some conditions. */
14548 char *string = "NaN";
14549 char *term;
14550 strtod (string, &term);
14551 if (term != string && *(term - 1) == 0)
14552 return 1;
14554 return 0;
14557 _ACEOF
14558 rm -f conftest$ac_exeext
14559 if { (ac_try="$ac_link"
14560 case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563 esac
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_link") 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14569 { (case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_try") 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_func_strtod=yes
14579 else
14580 echo "$as_me: program exited with status $ac_status" >&5
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ( exit $ac_status )
14585 ac_cv_func_strtod=no
14587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14592 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14593 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14594 if test $ac_cv_func_strtod = no; then
14595 case " $LIBOBJS " in
14596 *" strtod.$ac_objext "* ) ;;
14597 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14599 esac
14601 { echo "$as_me:$LINENO: checking for pow" >&5
14602 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14603 if test "${ac_cv_func_pow+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606 cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h. */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14614 #define pow innocuous_pow
14616 /* System header to define __stub macros and hopefully few prototypes,
14617 which can conflict with char pow (); below.
14618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14619 <limits.h> exists even on freestanding compilers. */
14621 #ifdef __STDC__
14622 # include <limits.h>
14623 #else
14624 # include <assert.h>
14625 #endif
14627 #undef pow
14629 /* Override any GCC internal prototype to avoid an error.
14630 Use char because int might match the return type of a GCC
14631 builtin and then its argument prototype would still apply. */
14632 #ifdef __cplusplus
14633 extern "C"
14634 #endif
14635 char pow ();
14636 /* The GNU C library defines this for functions which it implements
14637 to always fail with ENOSYS. Some functions are actually named
14638 something starting with __ and the normal name is an alias. */
14639 #if defined __stub_pow || defined __stub___pow
14640 choke me
14641 #endif
14644 main ()
14646 return pow ();
14648 return 0;
14650 _ACEOF
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (ac_try="$ac_link"
14653 case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_link") 2>conftest.er1
14659 ac_status=$?
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } && {
14665 test -z "$ac_c_werror_flag" ||
14666 test ! -s conftest.err
14667 } && test -s conftest$ac_exeext &&
14668 $as_test_x conftest$ac_exeext; then
14669 ac_cv_func_pow=yes
14670 else
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_func_pow=no
14677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14678 conftest$ac_exeext conftest.$ac_ext
14680 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14681 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14683 if test $ac_cv_func_pow = no; then
14684 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14685 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14686 if test "${ac_cv_lib_m_pow+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689 ac_check_lib_save_LIBS=$LIBS
14690 LIBS="-lm $LIBS"
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h. */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14698 /* Override any GCC internal prototype to avoid an error.
14699 Use char because int might match the return type of a GCC
14700 builtin and then its argument prototype would still apply. */
14701 #ifdef __cplusplus
14702 extern "C"
14703 #endif
14704 char pow ();
14706 main ()
14708 return pow ();
14710 return 0;
14712 _ACEOF
14713 rm -f conftest.$ac_objext conftest$ac_exeext
14714 if { (ac_try="$ac_link"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_link") 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } && {
14727 test -z "$ac_c_werror_flag" ||
14728 test ! -s conftest.err
14729 } && test -s conftest$ac_exeext &&
14730 $as_test_x conftest$ac_exeext; then
14731 ac_cv_lib_m_pow=yes
14732 else
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_cv_lib_m_pow=no
14739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14740 conftest$ac_exeext conftest.$ac_ext
14741 LIBS=$ac_check_lib_save_LIBS
14743 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14744 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14745 if test $ac_cv_lib_m_pow = yes; then
14746 POW_LIB=-lm
14747 else
14748 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14749 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14760 for ac_header in $ac_header_list
14762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 ac_res=`eval echo '${'$as_ac_Header'}'`
14770 { echo "$as_me:$LINENO: result: $ac_res" >&5
14771 echo "${ECHO_T}$ac_res" >&6; }
14772 else
14773 # Is the header compilable?
14774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 $ac_includes_default
14783 #include <$ac_header>
14784 _ACEOF
14785 rm -f conftest.$ac_objext
14786 if { (ac_try="$ac_compile"
14787 case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790 esac
14791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14792 (eval "$ac_compile") 2>conftest.er1
14793 ac_status=$?
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } && {
14799 test -z "$ac_c_werror_flag" ||
14800 test ! -s conftest.err
14801 } && test -s conftest.$ac_objext; then
14802 ac_header_compiler=yes
14803 else
14804 echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 ac_header_compiler=no
14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14812 echo "${ECHO_T}$ac_header_compiler" >&6; }
14814 # Is the header present?
14815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <$ac_header>
14824 _ACEOF
14825 if { (ac_try="$ac_cpp conftest.$ac_ext"
14826 case "(($ac_try" in
14827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14829 esac
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14832 ac_status=$?
14833 grep -v '^ *+' conftest.er1 >conftest.err
14834 rm -f conftest.er1
14835 cat conftest.err >&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); } >/dev/null && {
14838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14839 test ! -s conftest.err
14840 }; then
14841 ac_header_preproc=yes
14842 else
14843 echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14846 ac_header_preproc=no
14849 rm -f conftest.err conftest.$ac_ext
14850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14851 echo "${ECHO_T}$ac_header_preproc" >&6; }
14853 # So? What about this header?
14854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14855 yes:no: )
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14860 ac_header_preproc=yes
14862 no:yes:* )
14863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14875 ( cat <<\_ASBOX
14876 ## ------------------------------- ##
14877 ## Report this to www.asterisk.org ##
14878 ## ------------------------------- ##
14879 _ASBOX
14880 ) | sed "s/^/$as_me: WARNING: /" >&2
14882 esac
14883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888 eval "$as_ac_Header=\$ac_header_preproc"
14890 ac_res=`eval echo '${'$as_ac_Header'}'`
14891 { echo "$as_me:$LINENO: result: $ac_res" >&5
14892 echo "${ECHO_T}$ac_res" >&6; }
14895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14896 cat >>confdefs.h <<_ACEOF
14897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14898 _ACEOF
14902 done
14912 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14913 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14914 if test "${ac_cv_func_utime_null+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917 rm -f conftest.data; >conftest.data
14918 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14919 if test "$cross_compiling" = yes; then
14920 ac_cv_func_utime_null=no
14921 else
14922 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h. */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 $ac_includes_default
14929 #ifdef HAVE_UTIME_H
14930 # include <utime.h>
14931 #endif
14933 main ()
14935 struct stat s, t;
14936 return ! (stat ("conftest.data", &s) == 0
14937 && utime ("conftest.data", 0) == 0
14938 && stat ("conftest.data", &t) == 0
14939 && t.st_mtime >= s.st_mtime
14940 && t.st_mtime - s.st_mtime < 120);
14942 return 0;
14944 _ACEOF
14945 rm -f conftest$ac_exeext
14946 if { (ac_try="$ac_link"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950 esac
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_link") 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14956 { (case "(($ac_try" in
14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14959 esac
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961 (eval "$ac_try") 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_cv_func_utime_null=yes
14966 else
14967 echo "$as_me: program exited with status $ac_status" >&5
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ( exit $ac_status )
14972 ac_cv_func_utime_null=no
14974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14979 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14980 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14981 if test $ac_cv_func_utime_null = yes; then
14983 cat >>confdefs.h <<\_ACEOF
14984 #define HAVE_UTIME_NULL 1
14985 _ACEOF
14988 rm -f conftest.data
14991 for ac_func in vprintf
14993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
14999 cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h. */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15007 #define $ac_func innocuous_$ac_func
15009 /* System header to define __stub macros and hopefully few prototypes,
15010 which can conflict with char $ac_func (); below.
15011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15012 <limits.h> exists even on freestanding compilers. */
15014 #ifdef __STDC__
15015 # include <limits.h>
15016 #else
15017 # include <assert.h>
15018 #endif
15020 #undef $ac_func
15022 /* Override any GCC internal prototype to avoid an error.
15023 Use char because int might match the return type of a GCC
15024 builtin and then its argument prototype would still apply. */
15025 #ifdef __cplusplus
15026 extern "C"
15027 #endif
15028 char $ac_func ();
15029 /* The GNU C library defines this for functions which it implements
15030 to always fail with ENOSYS. Some functions are actually named
15031 something starting with __ and the normal name is an alias. */
15032 #if defined __stub_$ac_func || defined __stub___$ac_func
15033 choke me
15034 #endif
15037 main ()
15039 return $ac_func ();
15041 return 0;
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_link") 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest$ac_exeext &&
15061 $as_test_x conftest$ac_exeext; then
15062 eval "$as_ac_var=yes"
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 eval "$as_ac_var=no"
15070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15071 conftest$ac_exeext conftest.$ac_ext
15073 ac_res=`eval echo '${'$as_ac_var'}'`
15074 { echo "$as_me:$LINENO: result: $ac_res" >&5
15075 echo "${ECHO_T}$ac_res" >&6; }
15076 if test `eval echo '${'$as_ac_var'}'` = yes; then
15077 cat >>confdefs.h <<_ACEOF
15078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15079 _ACEOF
15081 { echo "$as_me:$LINENO: checking for _doprnt" >&5
15082 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15083 if test "${ac_cv_func__doprnt+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15094 #define _doprnt innocuous__doprnt
15096 /* System header to define __stub macros and hopefully few prototypes,
15097 which can conflict with char _doprnt (); below.
15098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15099 <limits.h> exists even on freestanding compilers. */
15101 #ifdef __STDC__
15102 # include <limits.h>
15103 #else
15104 # include <assert.h>
15105 #endif
15107 #undef _doprnt
15109 /* Override any GCC internal prototype to avoid an error.
15110 Use char because int might match the return type of a GCC
15111 builtin and then its argument prototype would still apply. */
15112 #ifdef __cplusplus
15113 extern "C"
15114 #endif
15115 char _doprnt ();
15116 /* The GNU C library defines this for functions which it implements
15117 to always fail with ENOSYS. Some functions are actually named
15118 something starting with __ and the normal name is an alias. */
15119 #if defined __stub__doprnt || defined __stub____doprnt
15120 choke me
15121 #endif
15124 main ()
15126 return _doprnt ();
15128 return 0;
15130 _ACEOF
15131 rm -f conftest.$ac_objext conftest$ac_exeext
15132 if { (ac_try="$ac_link"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_link") 2>conftest.er1
15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && {
15145 test -z "$ac_c_werror_flag" ||
15146 test ! -s conftest.err
15147 } && test -s conftest$ac_exeext &&
15148 $as_test_x conftest$ac_exeext; then
15149 ac_cv_func__doprnt=yes
15150 else
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_cv_func__doprnt=no
15157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15158 conftest$ac_exeext conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15161 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15162 if test $ac_cv_func__doprnt = yes; then
15164 cat >>confdefs.h <<\_ACEOF
15165 #define HAVE_DOPRNT 1
15166 _ACEOF
15171 done
15219 for ac_func in asprintf atexit bzero dup2 endpwent ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtol strtoq unsetenv utime vasprintf
15221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15235 #define $ac_func innocuous_$ac_func
15237 /* System header to define __stub macros and hopefully few prototypes,
15238 which can conflict with char $ac_func (); below.
15239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15240 <limits.h> exists even on freestanding compilers. */
15242 #ifdef __STDC__
15243 # include <limits.h>
15244 #else
15245 # include <assert.h>
15246 #endif
15248 #undef $ac_func
15250 /* Override any GCC internal prototype to avoid an error.
15251 Use char because int might match the return type of a GCC
15252 builtin and then its argument prototype would still apply. */
15253 #ifdef __cplusplus
15254 extern "C"
15255 #endif
15256 char $ac_func ();
15257 /* The GNU C library defines this for functions which it implements
15258 to always fail with ENOSYS. Some functions are actually named
15259 something starting with __ and the normal name is an alias. */
15260 #if defined __stub_$ac_func || defined __stub___$ac_func
15261 choke me
15262 #endif
15265 main ()
15267 return $ac_func ();
15269 return 0;
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 eval "$as_ac_var=yes"
15291 else
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 eval "$as_ac_var=no"
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15301 ac_res=`eval echo '${'$as_ac_var'}'`
15302 { echo "$as_me:$LINENO: result: $ac_res" >&5
15303 echo "${ECHO_T}$ac_res" >&6; }
15304 if test `eval echo '${'$as_ac_var'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15307 _ACEOF
15310 done
15314 for ac_func in glob
15316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15330 #define $ac_func innocuous_$ac_func
15332 /* System header to define __stub macros and hopefully few prototypes,
15333 which can conflict with char $ac_func (); below.
15334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15335 <limits.h> exists even on freestanding compilers. */
15337 #ifdef __STDC__
15338 # include <limits.h>
15339 #else
15340 # include <assert.h>
15341 #endif
15343 #undef $ac_func
15345 /* Override any GCC internal prototype to avoid an error.
15346 Use char because int might match the return type of a GCC
15347 builtin and then its argument prototype would still apply. */
15348 #ifdef __cplusplus
15349 extern "C"
15350 #endif
15351 char $ac_func ();
15352 /* The GNU C library defines this for functions which it implements
15353 to always fail with ENOSYS. Some functions are actually named
15354 something starting with __ and the normal name is an alias. */
15355 #if defined __stub_$ac_func || defined __stub___$ac_func
15356 choke me
15357 #endif
15360 main ()
15362 return $ac_func ();
15364 return 0;
15366 _ACEOF
15367 rm -f conftest.$ac_objext conftest$ac_exeext
15368 if { (ac_try="$ac_link"
15369 case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15372 esac
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374 (eval "$ac_link") 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } && {
15381 test -z "$ac_c_werror_flag" ||
15382 test ! -s conftest.err
15383 } && test -s conftest$ac_exeext &&
15384 $as_test_x conftest$ac_exeext; then
15385 eval "$as_ac_var=yes"
15386 else
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 eval "$as_ac_var=no"
15393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15394 conftest$ac_exeext conftest.$ac_ext
15396 ac_res=`eval echo '${'$as_ac_var'}'`
15397 { echo "$as_me:$LINENO: result: $ac_res" >&5
15398 echo "${ECHO_T}$ac_res" >&6; }
15399 if test `eval echo '${'$as_ac_var'}'` = yes; then
15400 cat >>confdefs.h <<_ACEOF
15401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15402 _ACEOF
15405 done
15408 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15409 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 #include <sys/time.h>
15418 main ()
15420 struct timeval *a; timersub(a, a, a);
15422 return 0;
15424 _ACEOF
15425 rm -f conftest.$ac_objext conftest$ac_exeext
15426 if { (ac_try="$ac_link"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_link") 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } && {
15439 test -z "$ac_c_werror_flag" ||
15440 test ! -s conftest.err
15441 } && test -s conftest$ac_exeext &&
15442 $as_test_x conftest$ac_exeext; then
15443 { echo "$as_me:$LINENO: result: yes" >&5
15444 echo "${ECHO_T}yes" >&6; }
15446 cat >>confdefs.h <<\_ACEOF
15447 #define HAVE_TIMERSUB 1
15448 _ACEOF
15450 else
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 { echo "$as_me:$LINENO: result: no" >&5
15455 echo "${ECHO_T}no" >&6; }
15459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 conftest$ac_exeext conftest.$ac_ext
15462 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15463 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15464 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15465 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15469 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15470 else
15471 # Is the header compilable?
15472 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15473 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #include <sys/poll.h>
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (ac_try="$ac_compile"
15485 case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_compile") 2>conftest.er1
15491 ac_status=$?
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest.$ac_objext; then
15500 ac_header_compiler=yes
15501 else
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_compiler=no
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6; }
15512 # Is the header present?
15513 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15514 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h. */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 #include <sys/poll.h>
15522 _ACEOF
15523 if { (ac_try="$ac_cpp conftest.$ac_ext"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev/null && {
15536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15537 test ! -s conftest.err
15538 }; then
15539 ac_header_preproc=yes
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_header_preproc=no
15547 rm -f conftest.err conftest.$ac_ext
15548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15549 echo "${ECHO_T}$ac_header_preproc" >&6; }
15551 # So? What about this header?
15552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15553 yes:no: )
15554 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15555 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15557 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15558 ac_header_preproc=yes
15560 no:yes:* )
15561 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15562 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15564 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15566 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15568 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15570 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15572 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15573 ( cat <<\_ASBOX
15574 ## ------------------------------- ##
15575 ## Report this to www.asterisk.org ##
15576 ## ------------------------------- ##
15577 _ASBOX
15578 ) | sed "s/^/$as_me: WARNING: /" >&2
15580 esac
15581 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15582 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15583 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586 ac_cv_header_sys_poll_h=$ac_header_preproc
15588 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15589 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15592 if test $ac_cv_header_sys_poll_h = yes; then
15593 HAS_POLL=1
15595 cat >>confdefs.h <<\_ACEOF
15596 #define HAVE_SYS_POLL_H 1
15597 _ACEOF
15603 # Check whether --enable-internal-poll was given.
15604 if test "${enable_internal_poll+set}" = set; then
15605 enableval=$enable_internal_poll; case "${enableval}" in
15606 y|ye|yes) HAS_POLL="";;
15607 n|no) HAS_POLL="${HAS_POLL}" ;;
15608 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-internal-poll" >&5
15609 echo "$as_me: error: bad value ${enableval} for --enable-internal-poll" >&2;}
15610 { (exit 1); exit 1; }; } ;;
15611 esac
15618 # https support (in main/http.c) uses funopen on BSD systems,
15619 # fopencookie on linux
15622 for ac_func in funopen fopencookie
15624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15625 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15638 #define $ac_func innocuous_$ac_func
15640 /* System header to define __stub macros and hopefully few prototypes,
15641 which can conflict with char $ac_func (); below.
15642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15643 <limits.h> exists even on freestanding compilers. */
15645 #ifdef __STDC__
15646 # include <limits.h>
15647 #else
15648 # include <assert.h>
15649 #endif
15651 #undef $ac_func
15653 /* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15656 #ifdef __cplusplus
15657 extern "C"
15658 #endif
15659 char $ac_func ();
15660 /* The GNU C library defines this for functions which it implements
15661 to always fail with ENOSYS. Some functions are actually named
15662 something starting with __ and the normal name is an alias. */
15663 #if defined __stub_$ac_func || defined __stub___$ac_func
15664 choke me
15665 #endif
15668 main ()
15670 return $ac_func ();
15672 return 0;
15674 _ACEOF
15675 rm -f conftest.$ac_objext conftest$ac_exeext
15676 if { (ac_try="$ac_link"
15677 case "(($ac_try" in
15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15680 esac
15681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682 (eval "$ac_link") 2>conftest.er1
15683 ac_status=$?
15684 grep -v '^ *+' conftest.er1 >conftest.err
15685 rm -f conftest.er1
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } && {
15689 test -z "$ac_c_werror_flag" ||
15690 test ! -s conftest.err
15691 } && test -s conftest$ac_exeext &&
15692 $as_test_x conftest$ac_exeext; then
15693 eval "$as_ac_var=yes"
15694 else
15695 echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15698 eval "$as_ac_var=no"
15701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15702 conftest$ac_exeext conftest.$ac_ext
15704 ac_res=`eval echo '${'$as_ac_var'}'`
15705 { echo "$as_me:$LINENO: result: $ac_res" >&5
15706 echo "${ECHO_T}$ac_res" >&6; }
15707 if test `eval echo '${'$as_ac_var'}'` = yes; then
15708 cat >>confdefs.h <<_ACEOF
15709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15710 _ACEOF
15713 done
15717 for ac_func in inet_aton
15719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h. */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15733 #define $ac_func innocuous_$ac_func
15735 /* System header to define __stub macros and hopefully few prototypes,
15736 which can conflict with char $ac_func (); below.
15737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15738 <limits.h> exists even on freestanding compilers. */
15740 #ifdef __STDC__
15741 # include <limits.h>
15742 #else
15743 # include <assert.h>
15744 #endif
15746 #undef $ac_func
15748 /* Override any GCC internal prototype to avoid an error.
15749 Use char because int might match the return type of a GCC
15750 builtin and then its argument prototype would still apply. */
15751 #ifdef __cplusplus
15752 extern "C"
15753 #endif
15754 char $ac_func ();
15755 /* The GNU C library defines this for functions which it implements
15756 to always fail with ENOSYS. Some functions are actually named
15757 something starting with __ and the normal name is an alias. */
15758 #if defined __stub_$ac_func || defined __stub___$ac_func
15759 choke me
15760 #endif
15763 main ()
15765 return $ac_func ();
15767 return 0;
15769 _ACEOF
15770 rm -f conftest.$ac_objext conftest$ac_exeext
15771 if { (ac_try="$ac_link"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_link") 2>conftest.er1
15778 ac_status=$?
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } && {
15784 test -z "$ac_c_werror_flag" ||
15785 test ! -s conftest.err
15786 } && test -s conftest$ac_exeext &&
15787 $as_test_x conftest$ac_exeext; then
15788 eval "$as_ac_var=yes"
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 eval "$as_ac_var=no"
15796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15797 conftest$ac_exeext conftest.$ac_ext
15799 ac_res=`eval echo '${'$as_ac_var'}'`
15800 { echo "$as_me:$LINENO: result: $ac_res" >&5
15801 echo "${ECHO_T}$ac_res" >&6; }
15802 if test `eval echo '${'$as_ac_var'}'` = yes; then
15803 cat >>confdefs.h <<_ACEOF
15804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15805 _ACEOF
15808 done
15811 # check if we have IP_PKTINFO constant defined
15812 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15813 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15814 cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h. */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 #include <netinet/in.h>
15822 main ()
15824 int pi = IP_PKTINFO;
15826 return 0;
15828 _ACEOF
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (ac_try="$ac_link"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15834 esac
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_link") 2>conftest.er1
15837 ac_status=$?
15838 grep -v '^ *+' conftest.er1 >conftest.err
15839 rm -f conftest.er1
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } && {
15843 test -z "$ac_c_werror_flag" ||
15844 test ! -s conftest.err
15845 } && test -s conftest$ac_exeext &&
15846 $as_test_x conftest$ac_exeext; then
15847 { echo "$as_me:$LINENO: result: yes" >&5
15848 echo "${ECHO_T}yes" >&6; }
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_PKTINFO 1
15852 _ACEOF
15854 else
15855 echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 { echo "$as_me:$LINENO: result: no" >&5
15859 echo "${ECHO_T}no" >&6; }
15863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15864 conftest$ac_exeext conftest.$ac_ext
15866 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15867 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15868 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15869 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15872 ac_func_search_save_LIBS=$LIBS
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. */
15880 /* Override any GCC internal prototype to avoid an error.
15881 Use char because int might match the return type of a GCC
15882 builtin and then its argument prototype would still apply. */
15883 #ifdef __cplusplus
15884 extern "C"
15885 #endif
15886 char gethostbyname_r ();
15888 main ()
15890 return gethostbyname_r ();
15892 return 0;
15894 _ACEOF
15895 for ac_lib in '' socket nsl; do
15896 if test -z "$ac_lib"; then
15897 ac_res="none required"
15898 else
15899 ac_res=-l$ac_lib
15900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15902 rm -f conftest.$ac_objext conftest$ac_exeext
15903 if { (ac_try="$ac_link"
15904 case "(($ac_try" in
15905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15907 esac
15908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15909 (eval "$ac_link") 2>conftest.er1
15910 ac_status=$?
15911 grep -v '^ *+' conftest.er1 >conftest.err
15912 rm -f conftest.er1
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } && {
15916 test -z "$ac_c_werror_flag" ||
15917 test ! -s conftest.err
15918 } && test -s conftest$ac_exeext &&
15919 $as_test_x conftest$ac_exeext; then
15920 ac_cv_search_gethostbyname_r=$ac_res
15921 else
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15929 conftest$ac_exeext
15930 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15931 break
15933 done
15934 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15936 else
15937 ac_cv_search_gethostbyname_r=no
15939 rm conftest.$ac_ext
15940 LIBS=$ac_func_search_save_LIBS
15942 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15943 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15944 ac_res=$ac_cv_search_gethostbyname_r
15945 if test "$ac_res" != no; then
15946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15951 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15952 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h. */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 #include <stdlib.h>
15960 #include <netdb.h>
15962 main ()
15964 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15966 return 0;
15968 _ACEOF
15969 rm -f conftest.$ac_objext conftest$ac_exeext
15970 if { (ac_try="$ac_link"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_link") 2>conftest.er1
15977 ac_status=$?
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } && {
15983 test -z "$ac_c_werror_flag" ||
15984 test ! -s conftest.err
15985 } && test -s conftest$ac_exeext &&
15986 $as_test_x conftest$ac_exeext; then
15987 { echo "$as_me:$LINENO: result: yes" >&5
15988 echo "${ECHO_T}yes" >&6; }
15990 cat >>confdefs.h <<\_ACEOF
15991 #define HAVE_GETHOSTBYNAME_R_6 1
15992 _ACEOF
15994 else
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 { echo "$as_me:$LINENO: result: no" >&5
15999 echo "${ECHO_T}no" >&6; }
16003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16004 conftest$ac_exeext conftest.$ac_ext
16006 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
16007 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h. */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <stdlib.h>
16015 #include <netdb.h>
16017 main ()
16019 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
16021 return 0;
16023 _ACEOF
16024 rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_link") 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } && {
16038 test -z "$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 } && test -s conftest$ac_exeext &&
16041 $as_test_x conftest$ac_exeext; then
16042 { echo "$as_me:$LINENO: result: yes" >&5
16043 echo "${ECHO_T}yes" >&6; }
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE_GETHOSTBYNAME_R_5 1
16047 _ACEOF
16049 else
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 { echo "$as_me:$LINENO: result: no" >&5
16054 echo "${ECHO_T}no" >&6; }
16058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16059 conftest$ac_exeext conftest.$ac_ext
16061 if test "${ac_cv_header_byteswap_h+set}" = set; then
16062 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16063 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16064 if test "${ac_cv_header_byteswap_h+set}" = set; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16068 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16069 else
16070 # Is the header compilable?
16071 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
16072 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h. */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 $ac_includes_default
16080 #include <byteswap.h>
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_compile") 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } && {
16096 test -z "$ac_c_werror_flag" ||
16097 test ! -s conftest.err
16098 } && test -s conftest.$ac_objext; then
16099 ac_header_compiler=yes
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16104 ac_header_compiler=no
16107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16109 echo "${ECHO_T}$ac_header_compiler" >&6; }
16111 # Is the header present?
16112 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
16113 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h. */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 #include <byteswap.h>
16121 _ACEOF
16122 if { (ac_try="$ac_cpp conftest.$ac_ext"
16123 case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16126 esac
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16129 ac_status=$?
16130 grep -v '^ *+' conftest.er1 >conftest.err
16131 rm -f conftest.er1
16132 cat conftest.err >&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } >/dev/null && {
16135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16136 test ! -s conftest.err
16137 }; then
16138 ac_header_preproc=yes
16139 else
16140 echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16143 ac_header_preproc=no
16146 rm -f conftest.err conftest.$ac_ext
16147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16148 echo "${ECHO_T}$ac_header_preproc" >&6; }
16150 # So? What about this header?
16151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16152 yes:no: )
16153 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16154 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16156 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16157 ac_header_preproc=yes
16159 no:yes:* )
16160 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16161 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16163 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16165 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16167 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16169 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16171 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16172 ( cat <<\_ASBOX
16173 ## ------------------------------- ##
16174 ## Report this to www.asterisk.org ##
16175 ## ------------------------------- ##
16176 _ASBOX
16177 ) | sed "s/^/$as_me: WARNING: /" >&2
16179 esac
16180 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16181 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16182 if test "${ac_cv_header_byteswap_h+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 ac_cv_header_byteswap_h=$ac_header_preproc
16187 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16188 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16191 if test $ac_cv_header_byteswap_h = yes; then
16193 cat >>confdefs.h <<_ACEOF
16194 #define HAVE_BYTESWAP_H 1
16195 _ACEOF
16201 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16202 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16203 cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h. */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16209 #include <sys/endian.h>
16211 main ()
16213 int a = 1; int b = __swap16(a);
16215 return 0;
16217 _ACEOF
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (ac_try="$ac_link"
16220 case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16223 esac
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_link") 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } && {
16232 test -z "$ac_c_werror_flag" ||
16233 test ! -s conftest.err
16234 } && test -s conftest$ac_exeext &&
16235 $as_test_x conftest$ac_exeext; then
16236 { echo "$as_me:$LINENO: result: yes" >&5
16237 echo "${ECHO_T}yes" >&6; }
16239 cat >>confdefs.h <<\_ACEOF
16240 #define HAVE_SYS_ENDIAN_SWAP16 1
16241 _ACEOF
16243 else
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 { echo "$as_me:$LINENO: result: no" >&5
16248 echo "${ECHO_T}no" >&6; }
16252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16253 conftest$ac_exeext conftest.$ac_ext
16255 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16256 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h. */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 #include <sys/endian.h>
16265 main ()
16267 int a = 1; int b = bswap16(a);
16269 return 0;
16271 _ACEOF
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (ac_try="$ac_link"
16274 case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_link") 2>conftest.er1
16280 ac_status=$?
16281 grep -v '^ *+' conftest.er1 >conftest.err
16282 rm -f conftest.er1
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } && {
16286 test -z "$ac_c_werror_flag" ||
16287 test ! -s conftest.err
16288 } && test -s conftest$ac_exeext &&
16289 $as_test_x conftest$ac_exeext; then
16290 { echo "$as_me:$LINENO: result: yes" >&5
16291 echo "${ECHO_T}yes" >&6; }
16293 cat >>confdefs.h <<\_ACEOF
16294 #define HAVE_SYS_ENDIAN_BSWAP16 1
16295 _ACEOF
16297 else
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16301 { echo "$as_me:$LINENO: result: no" >&5
16302 echo "${ECHO_T}no" >&6; }
16306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16307 conftest$ac_exeext conftest.$ac_ext
16309 if test "${cross_compiling}" = "no";
16310 then
16311 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16312 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16313 if test "${ac_cv_file__dev_urandom+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 else
16316 test "$cross_compiling" = yes &&
16317 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16318 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16319 { (exit 1); exit 1; }; }
16320 if test -r "/dev/urandom"; then
16321 ac_cv_file__dev_urandom=yes
16322 else
16323 ac_cv_file__dev_urandom=no
16326 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16327 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16328 if test $ac_cv_file__dev_urandom = yes; then
16330 cat >>confdefs.h <<\_ACEOF
16331 #define HAVE_DEV_URANDOM 1
16332 _ACEOF
16339 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16340 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16341 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16342 saved_cppflags="${CPPFLAGS}"
16343 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16344 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16346 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
16348 cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h. */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 #include <pthread.h>
16356 main ()
16358 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16359 int foo = 0;
16360 #else
16361 int foo = bar;
16362 #endif
16366 return 0;
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (ac_try="$ac_compile"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_compile") 2>conftest.er1
16377 ac_status=$?
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_c_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest.$ac_objext; then
16386 { echo "$as_me:$LINENO: result: yes" >&5
16387 echo "${ECHO_T}yes" >&6; }
16388 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16390 cat >>confdefs.h <<\_ACEOF
16391 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16392 _ACEOF
16395 cat >>confdefs.h <<\_ACEOF
16396 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16397 _ACEOF
16400 else
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16404 { echo "$as_me:$LINENO: result: no" >&5
16405 echo "${ECHO_T}no" >&6; }
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410 CPPFLAGS="${saved_cppflags}"
16415 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16416 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h. */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 #include <pthread.h>
16425 main ()
16427 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16429 return 0;
16431 _ACEOF
16432 rm -f conftest.$ac_objext conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_link") 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } && {
16446 test -z "$ac_c_werror_flag" ||
16447 test ! -s conftest.err
16448 } && test -s conftest$ac_exeext &&
16449 $as_test_x conftest$ac_exeext; then
16450 { echo "$as_me:$LINENO: result: yes" >&5
16451 echo "${ECHO_T}yes" >&6; }
16453 cat >>confdefs.h <<\_ACEOF
16454 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16455 _ACEOF
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 { echo "$as_me:$LINENO: result: no" >&5
16462 echo "${ECHO_T}no" >&6; }
16466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16467 conftest$ac_exeext conftest.$ac_ext
16469 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16470 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16472 /* confdefs.h. */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 #include <pthread.h>
16479 main ()
16481 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16483 return 0;
16485 _ACEOF
16486 rm -f conftest.$ac_objext conftest$ac_exeext
16487 if { (ac_try="$ac_link"
16488 case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_link") 2>conftest.er1
16494 ac_status=$?
16495 grep -v '^ *+' conftest.er1 >conftest.err
16496 rm -f conftest.er1
16497 cat conftest.err >&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } && {
16500 test -z "$ac_c_werror_flag" ||
16501 test ! -s conftest.err
16502 } && test -s conftest$ac_exeext &&
16503 $as_test_x conftest$ac_exeext; then
16504 { echo "$as_me:$LINENO: result: yes" >&5
16505 echo "${ECHO_T}yes" >&6; }
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16509 _ACEOF
16511 else
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16515 { echo "$as_me:$LINENO: result: no" >&5
16516 echo "${ECHO_T}no" >&6; }
16520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16521 conftest$ac_exeext conftest.$ac_ext
16524 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16525 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16526 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16527 saved_cppflags="${CPPFLAGS}"
16528 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16529 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16531 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
16533 cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h. */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 #include <pthread.h>
16541 main ()
16543 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16544 int foo = 0;
16545 #else
16546 int foo = bar;
16547 #endif
16551 return 0;
16553 _ACEOF
16554 rm -f conftest.$ac_objext
16555 if { (ac_try="$ac_compile"
16556 case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_compile") 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && {
16568 test -z "$ac_c_werror_flag" ||
16569 test ! -s conftest.err
16570 } && test -s conftest.$ac_objext; then
16571 { echo "$as_me:$LINENO: result: yes" >&5
16572 echo "${ECHO_T}yes" >&6; }
16573 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16577 _ACEOF
16580 cat >>confdefs.h <<\_ACEOF
16581 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16582 _ACEOF
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 { echo "$as_me:$LINENO: result: no" >&5
16590 echo "${ECHO_T}no" >&6; }
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 CPPFLAGS="${saved_cppflags}"
16600 #if test "${cross_compiling}" = "no";
16601 #then
16602 #AC_MSG_CHECKING(for working epoll support)
16603 #AC_LINK_IFELSE(
16604 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16605 # if (res < 0)
16606 # return 1;
16607 # close (res);
16608 # return 0;]),
16609 #AC_MSG_RESULT(yes)
16610 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16611 #AC_MSG_RESULT(no)
16615 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16616 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16617 cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h. */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16625 main ()
16627 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16629 return 0;
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_link") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && {
16646 test -z "$ac_c_werror_flag" ||
16647 test ! -s conftest.err
16648 } && test -s conftest$ac_exeext &&
16649 $as_test_x conftest$ac_exeext; then
16650 { echo "$as_me:$LINENO: result: yes" >&5
16651 echo "${ECHO_T}yes" >&6; }
16653 cat >>confdefs.h <<\_ACEOF
16654 #define HAVE_GCC_ATOMICS 1
16655 _ACEOF
16657 else
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 { echo "$as_me:$LINENO: result: no" >&5
16662 echo "${ECHO_T}no" >&6; }
16666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16667 conftest$ac_exeext conftest.$ac_ext
16670 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16671 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16672 saved_CFLAGS="$CFLAGS"
16673 CFLAGS="$CFLAGS -Werror"
16674 cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 static void __attribute__((pure)) *test(void *muffin, ...) {}
16682 main ()
16686 return 0;
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_compile") 2>conftest.er1
16697 ac_status=$?
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } && {
16703 test -z "$ac_c_werror_flag" ||
16704 test ! -s conftest.err
16705 } && test -s conftest.$ac_objext; then
16706 { echo "$as_me:$LINENO: result: yes" >&5
16707 echo "${ECHO_T}yes" >&6; }
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_ATTRIBUTE_pure 1
16711 _ACEOF
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16717 { echo "$as_me:$LINENO: result: no" >&5
16718 echo "${ECHO_T}no" >&6; }
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723 CFLAGS="$saved_CFLAGS"
16726 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16727 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16728 saved_CFLAGS="$CFLAGS"
16729 CFLAGS="$CFLAGS -Werror"
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h. */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 static void __attribute__((malloc)) *test(void *muffin, ...) {}
16738 main ()
16742 return 0;
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_compile") 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } && {
16759 test -z "$ac_c_werror_flag" ||
16760 test ! -s conftest.err
16761 } && test -s conftest.$ac_objext; then
16762 { echo "$as_me:$LINENO: result: yes" >&5
16763 echo "${ECHO_T}yes" >&6; }
16765 cat >>confdefs.h <<_ACEOF
16766 #define HAVE_ATTRIBUTE_malloc 1
16767 _ACEOF
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 { echo "$as_me:$LINENO: result: no" >&5
16774 echo "${ECHO_T}no" >&6; }
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779 CFLAGS="$saved_CFLAGS"
16782 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16783 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16784 saved_CFLAGS="$CFLAGS"
16785 CFLAGS="$CFLAGS -Werror"
16786 cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h. */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 static void __attribute__((const)) *test(void *muffin, ...) {}
16794 main ()
16798 return 0;
16800 _ACEOF
16801 rm -f conftest.$ac_objext
16802 if { (ac_try="$ac_compile"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_compile") 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } && {
16815 test -z "$ac_c_werror_flag" ||
16816 test ! -s conftest.err
16817 } && test -s conftest.$ac_objext; then
16818 { echo "$as_me:$LINENO: result: yes" >&5
16819 echo "${ECHO_T}yes" >&6; }
16821 cat >>confdefs.h <<_ACEOF
16822 #define HAVE_ATTRIBUTE_const 1
16823 _ACEOF
16825 else
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 { echo "$as_me:$LINENO: result: no" >&5
16830 echo "${ECHO_T}no" >&6; }
16833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835 CFLAGS="$saved_CFLAGS"
16838 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16839 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16840 saved_CFLAGS="$CFLAGS"
16841 CFLAGS="$CFLAGS -Werror"
16842 cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h. */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848 static void __attribute__((unused)) *test(void *muffin, ...) {}
16850 main ()
16854 return 0;
16856 _ACEOF
16857 rm -f conftest.$ac_objext
16858 if { (ac_try="$ac_compile"
16859 case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_compile") 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } && {
16871 test -z "$ac_c_werror_flag" ||
16872 test ! -s conftest.err
16873 } && test -s conftest.$ac_objext; then
16874 { echo "$as_me:$LINENO: result: yes" >&5
16875 echo "${ECHO_T}yes" >&6; }
16877 cat >>confdefs.h <<_ACEOF
16878 #define HAVE_ATTRIBUTE_unused 1
16879 _ACEOF
16881 else
16882 echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16885 { echo "$as_me:$LINENO: result: no" >&5
16886 echo "${ECHO_T}no" >&6; }
16889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 CFLAGS="$saved_CFLAGS"
16894 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16895 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16896 saved_CFLAGS="$CFLAGS"
16897 CFLAGS="$CFLAGS -Werror"
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
16906 main ()
16910 return 0;
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_compile") 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } && {
16927 test -z "$ac_c_werror_flag" ||
16928 test ! -s conftest.err
16929 } && test -s conftest.$ac_objext; then
16930 { echo "$as_me:$LINENO: result: yes" >&5
16931 echo "${ECHO_T}yes" >&6; }
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_ATTRIBUTE_always_inline 1
16935 _ACEOF
16937 else
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 { echo "$as_me:$LINENO: result: no" >&5
16942 echo "${ECHO_T}no" >&6; }
16945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 CFLAGS="$saved_CFLAGS"
16950 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16951 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16952 saved_CFLAGS="$CFLAGS"
16953 CFLAGS="$CFLAGS -Werror"
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
16962 main ()
16966 return 0;
16968 _ACEOF
16969 rm -f conftest.$ac_objext
16970 if { (ac_try="$ac_compile"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_compile") 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } && {
16983 test -z "$ac_c_werror_flag" ||
16984 test ! -s conftest.err
16985 } && test -s conftest.$ac_objext; then
16986 { echo "$as_me:$LINENO: result: yes" >&5
16987 echo "${ECHO_T}yes" >&6; }
16989 cat >>confdefs.h <<_ACEOF
16990 #define HAVE_ATTRIBUTE_deprecated 1
16991 _ACEOF
16993 else
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16997 { echo "$as_me:$LINENO: result: no" >&5
16998 echo "${ECHO_T}no" >&6; }
17001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003 CFLAGS="$saved_CFLAGS"
17006 { echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
17007 echo $ECHO_N "checking for compiler 'attribute sentinel' support... $ECHO_C" >&6; }
17008 saved_CFLAGS="$CFLAGS"
17009 CFLAGS="$CFLAGS -Werror"
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 static void __attribute__((sentinel)) *test(void *muffin, ...) {}
17018 main ()
17022 return 0;
17024 _ACEOF
17025 rm -f conftest.$ac_objext
17026 if { (ac_try="$ac_compile"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_compile") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } && {
17039 test -z "$ac_c_werror_flag" ||
17040 test ! -s conftest.err
17041 } && test -s conftest.$ac_objext; then
17042 { echo "$as_me:$LINENO: result: yes" >&5
17043 echo "${ECHO_T}yes" >&6; }
17045 cat >>confdefs.h <<_ACEOF
17046 #define HAVE_ATTRIBUTE_sentinel 1
17047 _ACEOF
17049 else
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 { echo "$as_me:$LINENO: result: no" >&5
17054 echo "${ECHO_T}no" >&6; }
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 CFLAGS="$saved_CFLAGS"
17062 { echo "$as_me:$LINENO: checking for compiler 'attribute warn_unused_result' support" >&5
17063 echo $ECHO_N "checking for compiler 'attribute warn_unused_result' support... $ECHO_C" >&6; }
17064 saved_CFLAGS="$CFLAGS"
17065 CFLAGS="$CFLAGS -Werror"
17066 cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h. */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 static void __attribute__((warn_unused_result)) *test(void *muffin, ...) {}
17074 main ()
17078 return 0;
17080 _ACEOF
17081 rm -f conftest.$ac_objext
17082 if { (ac_try="$ac_compile"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_compile") 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } && {
17095 test -z "$ac_c_werror_flag" ||
17096 test ! -s conftest.err
17097 } && test -s conftest.$ac_objext; then
17098 { echo "$as_me:$LINENO: result: yes" >&5
17099 echo "${ECHO_T}yes" >&6; }
17101 cat >>confdefs.h <<_ACEOF
17102 #define HAVE_ATTRIBUTE_warn_unused_result 1
17103 _ACEOF
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 { echo "$as_me:$LINENO: result: no" >&5
17110 echo "${ECHO_T}no" >&6; }
17113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115 CFLAGS="$saved_CFLAGS"
17118 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
17119 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
17120 saved_CFLAGS="${CFLAGS}"
17121 CFLAGS="${CFLAGS} -ffunction-sections"
17122 cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h. */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17130 main ()
17132 int x = 1;
17134 return 0;
17136 _ACEOF
17137 rm -f conftest.$ac_objext
17138 if { (ac_try="$ac_compile"
17139 case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_compile") 2>conftest.er1
17145 ac_status=$?
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest.$ac_objext; then
17154 { echo "$as_me:$LINENO: result: yes" >&5
17155 echo "${ECHO_T}yes" >&6; }
17156 saved_LDFLAGS="${LDFLAGS}"
17157 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
17158 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
17159 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17168 main ()
17170 int x = 1;
17172 return 0;
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext &&
17192 $as_test_x conftest$ac_exeext; then
17193 { echo "$as_me:$LINENO: result: yes" >&5
17194 echo "${ECHO_T}yes" >&6; }
17195 GC_CFLAGS="-ffunction-sections"
17196 GC_LDFLAGS="-Wl,--gc-sections"
17197 else
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17201 { echo "$as_me:$LINENO: result: no" >&5
17202 echo "${ECHO_T}no" >&6; }
17206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17207 conftest$ac_exeext conftest.$ac_ext
17208 LDFLAGS="${saved_LDFLAGS}"
17209 else
17210 echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17213 { echo "$as_me:$LINENO: result: no" >&5
17214 echo "${ECHO_T}no" >&6; }
17218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219 CFLAGS="${saved_CFLAGS}"
17223 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17224 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17225 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17226 { echo "$as_me:$LINENO: result: yes" >&5
17227 echo "${ECHO_T}yes" >&6; }
17228 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17229 else
17230 { echo "$as_me:$LINENO: result: no" >&5
17231 echo "${ECHO_T}no" >&6; }
17232 AST_DECLARATION_AFTER_STATEMENT=
17236 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
17237 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
17238 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17239 { echo "$as_me:$LINENO: result: yes" >&5
17240 echo "${ECHO_T}yes" >&6; }
17241 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
17242 else
17243 { echo "$as_me:$LINENO: result: no" >&5
17244 echo "${ECHO_T}no" >&6; }
17245 AST_NO_STRICT_OVERFLOW=
17249 { echo "$as_me:$LINENO: checking for sysinfo" >&5
17250 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
17251 cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h. */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <sys/sysinfo.h>
17259 main ()
17261 struct sysinfo sys_info; int uptime = sys_info.uptime
17263 return 0;
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_c_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext &&
17283 $as_test_x conftest$ac_exeext; then
17284 { echo "$as_me:$LINENO: result: yes" >&5
17285 echo "${ECHO_T}yes" >&6; }
17287 cat >>confdefs.h <<\_ACEOF
17288 #define HAVE_SYSINFO 1
17289 _ACEOF
17291 else
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17301 conftest$ac_exeext conftest.$ac_ext
17303 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
17304 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
17305 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308 ac_func_search_save_LIBS=$LIBS
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h. */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17316 /* Override any GCC internal prototype to avoid an error.
17317 Use char because int might match the return type of a GCC
17318 builtin and then its argument prototype would still apply. */
17319 #ifdef __cplusplus
17320 extern "C"
17321 #endif
17322 char res_9_ninit ();
17324 main ()
17326 return res_9_ninit ();
17328 return 0;
17330 _ACEOF
17331 for ac_lib in '' resolv; do
17332 if test -z "$ac_lib"; then
17333 ac_res="none required"
17334 else
17335 ac_res=-l$ac_lib
17336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (ac_try="$ac_link"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } && {
17352 test -z "$ac_c_werror_flag" ||
17353 test ! -s conftest.err
17354 } && test -s conftest$ac_exeext &&
17355 $as_test_x conftest$ac_exeext; then
17356 ac_cv_search_res_9_ninit=$ac_res
17357 else
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17365 conftest$ac_exeext
17366 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17367 break
17369 done
17370 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17372 else
17373 ac_cv_search_res_9_ninit=no
17375 rm conftest.$ac_ext
17376 LIBS=$ac_func_search_save_LIBS
17378 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
17379 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
17380 ac_res=$ac_cv_search_res_9_ninit
17381 if test "$ac_res" != no; then
17382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17386 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17387 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17388 cat >conftest.$ac_ext <<_ACEOF
17389 /* confdefs.h. */
17390 _ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17395 #ifdef HAVE_SYS_SOCKET_H
17396 #include <sys/socket.h>
17397 #endif
17398 #ifdef HAVE_NETINET_IN_H
17399 #include <netinet/in.h>
17400 #endif
17401 #ifdef HAVE_ARPA_NAMESER_H
17402 #include <arpa/nameser.h>
17403 #endif
17404 #include <resolv.h>
17406 main ()
17408 int foo = res_ninit(NULL);
17410 return 0;
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_link") 2>conftest.er1
17421 ac_status=$?
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && {
17427 test -z "$ac_c_werror_flag" ||
17428 test ! -s conftest.err
17429 } && test -s conftest$ac_exeext &&
17430 $as_test_x conftest$ac_exeext; then
17431 { echo "$as_me:$LINENO: result: yes" >&5
17432 echo "${ECHO_T}yes" >&6; }
17434 cat >>confdefs.h <<\_ACEOF
17435 #define HAVE_RES_NINIT 1
17436 _ACEOF
17438 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
17439 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
17440 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443 ac_func_search_save_LIBS=$LIBS
17444 cat >conftest.$ac_ext <<_ACEOF
17445 /* confdefs.h. */
17446 _ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17451 /* Override any GCC internal prototype to avoid an error.
17452 Use char because int might match the return type of a GCC
17453 builtin and then its argument prototype would still apply. */
17454 #ifdef __cplusplus
17455 extern "C"
17456 #endif
17457 char res_9_ndestroy ();
17459 main ()
17461 return res_9_ndestroy ();
17463 return 0;
17465 _ACEOF
17466 for ac_lib in '' resolv; do
17467 if test -z "$ac_lib"; then
17468 ac_res="none required"
17469 else
17470 ac_res=-l$ac_lib
17471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17473 rm -f conftest.$ac_objext conftest$ac_exeext
17474 if { (ac_try="$ac_link"
17475 case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17478 esac
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_link") 2>conftest.er1
17481 ac_status=$?
17482 grep -v '^ *+' conftest.er1 >conftest.err
17483 rm -f conftest.er1
17484 cat conftest.err >&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && {
17487 test -z "$ac_c_werror_flag" ||
17488 test ! -s conftest.err
17489 } && test -s conftest$ac_exeext &&
17490 $as_test_x conftest$ac_exeext; then
17491 ac_cv_search_res_9_ndestroy=$ac_res
17492 else
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17500 conftest$ac_exeext
17501 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17502 break
17504 done
17505 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17507 else
17508 ac_cv_search_res_9_ndestroy=no
17510 rm conftest.$ac_ext
17511 LIBS=$ac_func_search_save_LIBS
17513 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
17514 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
17515 ac_res=$ac_cv_search_res_9_ndestroy
17516 if test "$ac_res" != no; then
17517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17521 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17522 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17523 cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h. */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17530 #ifdef HAVE_SYS_SOCKET_H
17531 #include <sys/socket.h>
17532 #endif
17533 #ifdef HAVE_NETINET_IN_H
17534 #include <netinet/in.h>
17535 #endif
17536 #ifdef HAVE_ARPA_NAMESER_H
17537 #include <arpa/nameser.h>
17538 #endif
17539 #include <resolv.h>
17541 main ()
17543 res_ndestroy(NULL);
17545 return 0;
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_link") 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest$ac_exeext &&
17565 $as_test_x conftest$ac_exeext; then
17566 { echo "$as_me:$LINENO: result: yes" >&5
17567 echo "${ECHO_T}yes" >&6; }
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_RES_NDESTROY 1
17571 _ACEOF
17573 else
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 { echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6; }
17582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17583 conftest$ac_exeext conftest.$ac_ext
17584 else
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 { echo "$as_me:$LINENO: result: no" >&5
17589 echo "${ECHO_T}no" >&6; }
17593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17594 conftest$ac_exeext conftest.$ac_ext
17597 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17598 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17599 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17600 saved_cppflags="${CPPFLAGS}"
17601 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17602 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17604 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
17606 cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h. */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612 #include <dlfcn.h>
17614 main ()
17616 #if defined(RTLD_NOLOAD)
17617 int foo = 0;
17618 #else
17619 int foo = bar;
17620 #endif
17624 return 0;
17626 _ACEOF
17627 rm -f conftest.$ac_objext
17628 if { (ac_try="$ac_compile"
17629 case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_compile") 2>conftest.er1
17635 ac_status=$?
17636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && {
17641 test -z "$ac_c_werror_flag" ||
17642 test ! -s conftest.err
17643 } && test -s conftest.$ac_objext; then
17644 { echo "$as_me:$LINENO: result: yes" >&5
17645 echo "${ECHO_T}yes" >&6; }
17646 PBX_RTLD_NOLOAD=1
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_RTLD_NOLOAD 1
17650 _ACEOF
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_RTLD_NOLOAD_VERSION
17655 _ACEOF
17658 else
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 { echo "$as_me:$LINENO: result: no" >&5
17663 echo "${ECHO_T}no" >&6; }
17667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668 CPPFLAGS="${saved_cppflags}"
17674 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17675 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17676 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17677 saved_cppflags="${CPPFLAGS}"
17678 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17679 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17681 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 #include <netinet/in.h>
17691 main ()
17693 #if defined(IP_MTU_DISCOVER)
17694 int foo = 0;
17695 #else
17696 int foo = bar;
17697 #endif
17701 return 0;
17703 _ACEOF
17704 rm -f conftest.$ac_objext
17705 if { (ac_try="$ac_compile"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_compile") 2>conftest.er1
17712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && {
17718 test -z "$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17720 } && test -s conftest.$ac_objext; then
17721 { echo "$as_me:$LINENO: result: yes" >&5
17722 echo "${ECHO_T}yes" >&6; }
17723 PBX_IP_MTU_DISCOVER=1
17725 cat >>confdefs.h <<\_ACEOF
17726 #define HAVE_IP_MTU_DISCOVER 1
17727 _ACEOF
17730 cat >>confdefs.h <<\_ACEOF
17731 #define HAVE_IP_MTU_DISCOVER_VERSION
17732 _ACEOF
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 { echo "$as_me:$LINENO: result: no" >&5
17740 echo "${ECHO_T}no" >&6; }
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 CPPFLAGS="${saved_cppflags}"
17750 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17751 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17752 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17753 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17757 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17758 else
17759 # Is the header compilable?
17760 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17761 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17762 cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h. */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 $ac_includes_default
17769 #include <libkern/OSAtomic.h>
17770 _ACEOF
17771 rm -f conftest.$ac_objext
17772 if { (ac_try="$ac_compile"
17773 case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_compile") 2>conftest.er1
17779 ac_status=$?
17780 grep -v '^ *+' conftest.er1 >conftest.err
17781 rm -f conftest.er1
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } && {
17785 test -z "$ac_c_werror_flag" ||
17786 test ! -s conftest.err
17787 } && test -s conftest.$ac_objext; then
17788 ac_header_compiler=yes
17789 else
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 ac_header_compiler=no
17796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17798 echo "${ECHO_T}$ac_header_compiler" >&6; }
17800 # Is the header present?
17801 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17802 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17803 cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h. */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17809 #include <libkern/OSAtomic.h>
17810 _ACEOF
17811 if { (ac_try="$ac_cpp conftest.$ac_ext"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } >/dev/null && {
17824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17825 test ! -s conftest.err
17826 }; then
17827 ac_header_preproc=yes
17828 else
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_header_preproc=no
17835 rm -f conftest.err conftest.$ac_ext
17836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17837 echo "${ECHO_T}$ac_header_preproc" >&6; }
17839 # So? What about this header?
17840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17841 yes:no: )
17842 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17843 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17844 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17845 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17846 ac_header_preproc=yes
17848 no:yes:* )
17849 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17850 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17851 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17852 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17853 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17854 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17855 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17856 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17857 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17858 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17859 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17860 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17861 ( cat <<\_ASBOX
17862 ## ------------------------------- ##
17863 ## Report this to www.asterisk.org ##
17864 ## ------------------------------- ##
17865 _ASBOX
17866 ) | sed "s/^/$as_me: WARNING: /" >&2
17868 esac
17869 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17870 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17871 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 else
17874 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17876 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17877 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17880 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17882 cat >>confdefs.h <<_ACEOF
17883 #define HAVE_OSX_ATOMICS 1
17884 _ACEOF
17890 { echo "$as_me:$LINENO: checking for int" >&5
17891 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17892 if test "${ac_cv_type_int+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h. */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 $ac_includes_default
17902 typedef int ac__type_new_;
17904 main ()
17906 if ((ac__type_new_ *) 0)
17907 return 0;
17908 if (sizeof (ac__type_new_))
17909 return 0;
17911 return 0;
17913 _ACEOF
17914 rm -f conftest.$ac_objext
17915 if { (ac_try="$ac_compile"
17916 case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_compile") 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } && {
17928 test -z "$ac_c_werror_flag" ||
17929 test ! -s conftest.err
17930 } && test -s conftest.$ac_objext; then
17931 ac_cv_type_int=yes
17932 else
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17936 ac_cv_type_int=no
17939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17942 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17944 # The cast to long int works around a bug in the HP C Compiler
17945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17947 # This bug is HP SR number 8606223364.
17948 { echo "$as_me:$LINENO: checking size of int" >&5
17949 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17950 if test "${ac_cv_sizeof_int+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953 if test "$cross_compiling" = yes; then
17954 # Depending upon the size, compute the lo and hi bounds.
17955 cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h. */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 $ac_includes_default
17962 typedef int ac__type_sizeof_;
17964 main ()
17966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17967 test_array [0] = 0
17970 return 0;
17972 _ACEOF
17973 rm -f conftest.$ac_objext
17974 if { (ac_try="$ac_compile"
17975 case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17978 esac
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_compile") 2>conftest.er1
17981 ac_status=$?
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } && {
17987 test -z "$ac_c_werror_flag" ||
17988 test ! -s conftest.err
17989 } && test -s conftest.$ac_objext; then
17990 ac_lo=0 ac_mid=0
17991 while :; do
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 typedef int ac__type_sizeof_;
18001 main ()
18003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18004 test_array [0] = 0
18007 return 0;
18009 _ACEOF
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_hi=$ac_mid; break
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_lo=`expr $ac_mid + 1`
18033 if test $ac_lo -le $ac_mid; then
18034 ac_lo= ac_hi=
18035 break
18037 ac_mid=`expr 2 '*' $ac_mid + 1`
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 done
18042 else
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 $ac_includes_default
18053 typedef int ac__type_sizeof_;
18055 main ()
18057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18058 test_array [0] = 0
18061 return 0;
18063 _ACEOF
18064 rm -f conftest.$ac_objext
18065 if { (ac_try="$ac_compile"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_compile") 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest.$ac_objext; then
18081 ac_hi=-1 ac_mid=-1
18082 while :; do
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 $ac_includes_default
18090 typedef int ac__type_sizeof_;
18092 main ()
18094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18095 test_array [0] = 0
18098 return 0;
18100 _ACEOF
18101 rm -f conftest.$ac_objext
18102 if { (ac_try="$ac_compile"
18103 case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18106 esac
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_compile") 2>conftest.er1
18109 ac_status=$?
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } && {
18115 test -z "$ac_c_werror_flag" ||
18116 test ! -s conftest.err
18117 } && test -s conftest.$ac_objext; then
18118 ac_lo=$ac_mid; break
18119 else
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 ac_hi=`expr '(' $ac_mid ')' - 1`
18124 if test $ac_mid -le $ac_hi; then
18125 ac_lo= ac_hi=
18126 break
18128 ac_mid=`expr 2 '*' $ac_mid`
18131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132 done
18133 else
18134 echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18137 ac_lo= ac_hi=
18140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 # Binary search between lo and hi bounds.
18145 while test "x$ac_lo" != "x$ac_hi"; do
18146 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18147 cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h. */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 $ac_includes_default
18154 typedef int ac__type_sizeof_;
18156 main ()
18158 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18159 test_array [0] = 0
18162 return 0;
18164 _ACEOF
18165 rm -f conftest.$ac_objext
18166 if { (ac_try="$ac_compile"
18167 case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170 esac
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_compile") 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && {
18179 test -z "$ac_c_werror_flag" ||
18180 test ! -s conftest.err
18181 } && test -s conftest.$ac_objext; then
18182 ac_hi=$ac_mid
18183 else
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 ac_lo=`expr '(' $ac_mid ')' + 1`
18190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18191 done
18192 case $ac_lo in
18193 ?*) ac_cv_sizeof_int=$ac_lo;;
18194 '') if test "$ac_cv_type_int" = yes; then
18195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18196 See \`config.log' for more details." >&5
18197 echo "$as_me: error: cannot compute sizeof (int)
18198 See \`config.log' for more details." >&2;}
18199 { (exit 77); exit 77; }; }
18200 else
18201 ac_cv_sizeof_int=0
18202 fi ;;
18203 esac
18204 else
18205 cat >conftest.$ac_ext <<_ACEOF
18206 /* confdefs.h. */
18207 _ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18211 $ac_includes_default
18212 typedef int ac__type_sizeof_;
18213 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18214 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18215 #include <stdio.h>
18216 #include <stdlib.h>
18218 main ()
18221 FILE *f = fopen ("conftest.val", "w");
18222 if (! f)
18223 return 1;
18224 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18226 long int i = longval ();
18227 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18228 return 1;
18229 fprintf (f, "%ld\n", i);
18231 else
18233 unsigned long int i = ulongval ();
18234 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18235 return 1;
18236 fprintf (f, "%lu\n", i);
18238 return ferror (f) || fclose (f) != 0;
18241 return 0;
18243 _ACEOF
18244 rm -f conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>&5
18252 ac_status=$?
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18255 { (case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18258 esac
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_try") 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_sizeof_int=`cat conftest.val`
18265 else
18266 echo "$as_me: program exited with status $ac_status" >&5
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 ( exit $ac_status )
18271 if test "$ac_cv_type_int" = yes; then
18272 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18273 See \`config.log' for more details." >&5
18274 echo "$as_me: error: cannot compute sizeof (int)
18275 See \`config.log' for more details." >&2;}
18276 { (exit 77); exit 77; }; }
18277 else
18278 ac_cv_sizeof_int=0
18281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18283 rm -f conftest.val
18285 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18286 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18290 cat >>confdefs.h <<_ACEOF
18291 #define SIZEOF_INT $ac_cv_sizeof_int
18292 _ACEOF
18296 # do the package library checks now
18299 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
18300 pbxlibdir=""
18301 # if --with-ALSA=DIR has been specified, use it.
18302 if test "x${ALSA_DIR}" != "x"; then
18303 if test -d ${ALSA_DIR}/lib; then
18304 pbxlibdir="-L${ALSA_DIR}/lib"
18305 else
18306 pbxlibdir="-L${ALSA_DIR}"
18309 pbxfuncname="snd_spcm_init"
18310 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18311 AST_ALSA_FOUND=yes
18312 else
18313 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
18314 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
18315 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
18316 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319 ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h. */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18331 #ifdef __cplusplus
18332 extern "C"
18333 #endif
18334 char ${pbxfuncname} ();
18336 main ()
18338 return ${pbxfuncname} ();
18340 return 0;
18342 _ACEOF
18343 rm -f conftest.$ac_objext conftest$ac_exeext
18344 if { (ac_try="$ac_link"
18345 case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18348 esac
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_link") 2>conftest.er1
18351 ac_status=$?
18352 grep -v '^ *+' conftest.er1 >conftest.err
18353 rm -f conftest.er1
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } && {
18357 test -z "$ac_c_werror_flag" ||
18358 test ! -s conftest.err
18359 } && test -s conftest$ac_exeext &&
18360 $as_test_x conftest$ac_exeext; then
18361 eval "$as_ac_Lib=yes"
18362 else
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 eval "$as_ac_Lib=no"
18369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18370 conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18373 ac_res=`eval echo '${'$as_ac_Lib'}'`
18374 { echo "$as_me:$LINENO: result: $ac_res" >&5
18375 echo "${ECHO_T}$ac_res" >&6; }
18376 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18377 AST_ALSA_FOUND=yes
18378 else
18379 AST_ALSA_FOUND=no
18384 # now check for the header.
18385 if test "${AST_ALSA_FOUND}" = "yes"; then
18386 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
18387 # if --with-ALSA=DIR has been specified, use it.
18388 if test "x${ALSA_DIR}" != "x"; then
18389 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18391 ALSA_INCLUDE="${ALSA_INCLUDE} "
18392 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
18393 ALSA_HEADER_FOUND="1"
18394 else # check for the header
18395 saved_cppflags="${CPPFLAGS}"
18396 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
18397 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18398 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18399 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18400 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18404 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18405 else
18406 # Is the header compilable?
18407 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18408 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18409 cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h. */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 $ac_includes_default
18416 #include <alsa/asoundlib.h>
18417 _ACEOF
18418 rm -f conftest.$ac_objext
18419 if { (ac_try="$ac_compile"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_compile") 2>conftest.er1
18426 ac_status=$?
18427 grep -v '^ *+' conftest.er1 >conftest.err
18428 rm -f conftest.er1
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest.$ac_objext; then
18435 ac_header_compiler=yes
18436 else
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ac_header_compiler=no
18443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18445 echo "${ECHO_T}$ac_header_compiler" >&6; }
18447 # Is the header present?
18448 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18449 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18450 cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h. */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 #include <alsa/asoundlib.h>
18457 _ACEOF
18458 if { (ac_try="$ac_cpp conftest.$ac_ext"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462 esac
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } >/dev/null && {
18471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18472 test ! -s conftest.err
18473 }; then
18474 ac_header_preproc=yes
18475 else
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_header_preproc=no
18482 rm -f conftest.err conftest.$ac_ext
18483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18484 echo "${ECHO_T}$ac_header_preproc" >&6; }
18486 # So? What about this header?
18487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18488 yes:no: )
18489 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18490 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18492 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18493 ac_header_preproc=yes
18495 no:yes:* )
18496 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18497 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18498 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18499 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18501 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18503 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18505 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18507 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18508 ( cat <<\_ASBOX
18509 ## ------------------------------- ##
18510 ## Report this to www.asterisk.org ##
18511 ## ------------------------------- ##
18512 _ASBOX
18513 ) | sed "s/^/$as_me: WARNING: /" >&2
18515 esac
18516 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18517 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18518 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18523 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18524 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18527 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18528 ALSA_HEADER_FOUND=1
18529 else
18530 ALSA_HEADER_FOUND=0
18534 CPPFLAGS="${saved_cppflags}"
18536 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18537 ALSA_LIB=""
18538 ALSA_INCLUDE=""
18539 else
18540 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18541 ALSA_LIB=""
18543 PBX_ALSA=1
18544 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18546 cat >>confdefs.h <<_ACEOF
18547 #define HAVE_ALSA 1
18548 _ACEOF
18551 cat >>confdefs.h <<_ACEOF
18552 #define HAVE_ALSA_VERSION
18553 _ACEOF
18561 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18562 pbxlibdir=""
18563 # if --with-CURSES=DIR has been specified, use it.
18564 if test "x${CURSES_DIR}" != "x"; then
18565 if test -d ${CURSES_DIR}/lib; then
18566 pbxlibdir="-L${CURSES_DIR}/lib"
18567 else
18568 pbxlibdir="-L${CURSES_DIR}"
18571 pbxfuncname="initscr"
18572 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18573 AST_CURSES_FOUND=yes
18574 else
18575 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18576 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18577 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18578 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 else
18581 ac_check_lib_save_LIBS=$LIBS
18582 LIBS="-lcurses ${pbxlibdir} $LIBS"
18583 cat >conftest.$ac_ext <<_ACEOF
18584 /* confdefs.h. */
18585 _ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18590 /* Override any GCC internal prototype to avoid an error.
18591 Use char because int might match the return type of a GCC
18592 builtin and then its argument prototype would still apply. */
18593 #ifdef __cplusplus
18594 extern "C"
18595 #endif
18596 char ${pbxfuncname} ();
18598 main ()
18600 return ${pbxfuncname} ();
18602 return 0;
18604 _ACEOF
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (ac_try="$ac_link"
18607 case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18610 esac
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_link") 2>conftest.er1
18613 ac_status=$?
18614 grep -v '^ *+' conftest.er1 >conftest.err
18615 rm -f conftest.er1
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } && {
18619 test -z "$ac_c_werror_flag" ||
18620 test ! -s conftest.err
18621 } && test -s conftest$ac_exeext &&
18622 $as_test_x conftest$ac_exeext; then
18623 eval "$as_ac_Lib=yes"
18624 else
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18628 eval "$as_ac_Lib=no"
18631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18632 conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18635 ac_res=`eval echo '${'$as_ac_Lib'}'`
18636 { echo "$as_me:$LINENO: result: $ac_res" >&5
18637 echo "${ECHO_T}$ac_res" >&6; }
18638 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18639 AST_CURSES_FOUND=yes
18640 else
18641 AST_CURSES_FOUND=no
18646 # now check for the header.
18647 if test "${AST_CURSES_FOUND}" = "yes"; then
18648 CURSES_LIB="${pbxlibdir} -lcurses "
18649 # if --with-CURSES=DIR has been specified, use it.
18650 if test "x${CURSES_DIR}" != "x"; then
18651 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18653 CURSES_INCLUDE="${CURSES_INCLUDE} "
18654 if test "xcurses.h" = "x" ; then # no header, assume found
18655 CURSES_HEADER_FOUND="1"
18656 else # check for the header
18657 saved_cppflags="${CPPFLAGS}"
18658 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
18659 if test "${ac_cv_header_curses_h+set}" = set; then
18660 { echo "$as_me:$LINENO: checking for curses.h" >&5
18661 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18662 if test "${ac_cv_header_curses_h+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18666 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18667 else
18668 # Is the header compilable?
18669 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18670 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h. */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 $ac_includes_default
18678 #include <curses.h>
18679 _ACEOF
18680 rm -f conftest.$ac_objext
18681 if { (ac_try="$ac_compile"
18682 case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18685 esac
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_compile") 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } && {
18694 test -z "$ac_c_werror_flag" ||
18695 test ! -s conftest.err
18696 } && test -s conftest.$ac_objext; then
18697 ac_header_compiler=yes
18698 else
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 ac_header_compiler=no
18705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18707 echo "${ECHO_T}$ac_header_compiler" >&6; }
18709 # Is the header present?
18710 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18711 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18712 cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h. */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 #include <curses.h>
18719 _ACEOF
18720 if { (ac_try="$ac_cpp conftest.$ac_ext"
18721 case "(($ac_try" in
18722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723 *) ac_try_echo=$ac_try;;
18724 esac
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18727 ac_status=$?
18728 grep -v '^ *+' conftest.er1 >conftest.err
18729 rm -f conftest.er1
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } >/dev/null && {
18733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18734 test ! -s conftest.err
18735 }; then
18736 ac_header_preproc=yes
18737 else
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 ac_header_preproc=no
18744 rm -f conftest.err conftest.$ac_ext
18745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18746 echo "${ECHO_T}$ac_header_preproc" >&6; }
18748 # So? What about this header?
18749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18750 yes:no: )
18751 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18752 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18754 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18755 ac_header_preproc=yes
18757 no:yes:* )
18758 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18759 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18761 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18763 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18765 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18767 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18769 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18770 ( cat <<\_ASBOX
18771 ## ------------------------------- ##
18772 ## Report this to www.asterisk.org ##
18773 ## ------------------------------- ##
18774 _ASBOX
18775 ) | sed "s/^/$as_me: WARNING: /" >&2
18777 esac
18778 { echo "$as_me:$LINENO: checking for curses.h" >&5
18779 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18780 if test "${ac_cv_header_curses_h+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 else
18783 ac_cv_header_curses_h=$ac_header_preproc
18785 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18786 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18789 if test $ac_cv_header_curses_h = yes; then
18790 CURSES_HEADER_FOUND=1
18791 else
18792 CURSES_HEADER_FOUND=0
18796 CPPFLAGS="${saved_cppflags}"
18798 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18799 CURSES_LIB=""
18800 CURSES_INCLUDE=""
18801 else
18802 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18803 CURSES_LIB=""
18805 PBX_CURSES=1
18806 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18808 cat >>confdefs.h <<_ACEOF
18809 #define HAVE_CURSES 1
18810 _ACEOF
18813 cat >>confdefs.h <<_ACEOF
18814 #define HAVE_CURSES_VERSION
18815 _ACEOF
18822 if test "x${host_os}" = "xlinux-gnu" ; then
18824 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18825 pbxlibdir=""
18826 # if --with-CAP=DIR has been specified, use it.
18827 if test "x${CAP_DIR}" != "x"; then
18828 if test -d ${CAP_DIR}/lib; then
18829 pbxlibdir="-L${CAP_DIR}/lib"
18830 else
18831 pbxlibdir="-L${CAP_DIR}"
18834 pbxfuncname="cap_from_text"
18835 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18836 AST_CAP_FOUND=yes
18837 else
18838 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18839 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18840 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18841 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844 ac_check_lib_save_LIBS=$LIBS
18845 LIBS="-lcap ${pbxlibdir} $LIBS"
18846 cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h. */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18853 /* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18856 #ifdef __cplusplus
18857 extern "C"
18858 #endif
18859 char ${pbxfuncname} ();
18861 main ()
18863 return ${pbxfuncname} ();
18865 return 0;
18867 _ACEOF
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18873 esac
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18876 ac_status=$?
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } && {
18882 test -z "$ac_c_werror_flag" ||
18883 test ! -s conftest.err
18884 } && test -s conftest$ac_exeext &&
18885 $as_test_x conftest$ac_exeext; then
18886 eval "$as_ac_Lib=yes"
18887 else
18888 echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18891 eval "$as_ac_Lib=no"
18894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18895 conftest$ac_exeext conftest.$ac_ext
18896 LIBS=$ac_check_lib_save_LIBS
18898 ac_res=`eval echo '${'$as_ac_Lib'}'`
18899 { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18901 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18902 AST_CAP_FOUND=yes
18903 else
18904 AST_CAP_FOUND=no
18909 # now check for the header.
18910 if test "${AST_CAP_FOUND}" = "yes"; then
18911 CAP_LIB="${pbxlibdir} -lcap "
18912 # if --with-CAP=DIR has been specified, use it.
18913 if test "x${CAP_DIR}" != "x"; then
18914 CAP_INCLUDE="-I${CAP_DIR}/include"
18916 CAP_INCLUDE="${CAP_INCLUDE} "
18917 if test "xsys/capability.h" = "x" ; then # no header, assume found
18918 CAP_HEADER_FOUND="1"
18919 else # check for the header
18920 saved_cppflags="${CPPFLAGS}"
18921 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
18922 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18923 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18924 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18925 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18929 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18930 else
18931 # Is the header compilable?
18932 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18933 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 $ac_includes_default
18941 #include <sys/capability.h>
18942 _ACEOF
18943 rm -f conftest.$ac_objext
18944 if { (ac_try="$ac_compile"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_compile") 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest.$ac_objext; then
18960 ac_header_compiler=yes
18961 else
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ac_header_compiler=no
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18970 echo "${ECHO_T}$ac_header_compiler" >&6; }
18972 # Is the header present?
18973 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
18974 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 #include <sys/capability.h>
18982 _ACEOF
18983 if { (ac_try="$ac_cpp conftest.$ac_ext"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null && {
18996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 }; then
18999 ac_header_preproc=yes
19000 else
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_header_preproc=no
19007 rm -f conftest.err conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19009 echo "${ECHO_T}$ac_header_preproc" >&6; }
19011 # So? What about this header?
19012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19013 yes:no: )
19014 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
19015 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
19017 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
19018 ac_header_preproc=yes
19020 no:yes:* )
19021 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
19026 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
19028 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
19032 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
19033 ( cat <<\_ASBOX
19034 ## ------------------------------- ##
19035 ## Report this to www.asterisk.org ##
19036 ## ------------------------------- ##
19037 _ASBOX
19038 ) | sed "s/^/$as_me: WARNING: /" >&2
19040 esac
19041 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
19042 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
19043 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046 ac_cv_header_sys_capability_h=$ac_header_preproc
19048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
19049 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
19052 if test $ac_cv_header_sys_capability_h = yes; then
19053 CAP_HEADER_FOUND=1
19054 else
19055 CAP_HEADER_FOUND=0
19059 CPPFLAGS="${saved_cppflags}"
19061 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
19062 CAP_LIB=""
19063 CAP_INCLUDE=""
19064 else
19065 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19066 CAP_LIB=""
19068 PBX_CAP=1
19069 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19071 cat >>confdefs.h <<_ACEOF
19072 #define HAVE_CAP 1
19073 _ACEOF
19076 cat >>confdefs.h <<_ACEOF
19077 #define HAVE_CAP_VERSION
19078 _ACEOF
19087 if test "x${PBX_DAHDI}" != "x1"; then
19088 { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
19089 echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; }
19090 saved_cppflags="${CPPFLAGS}"
19091 if test "x${DAHDI_DIR}" != "x"; then
19092 DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
19094 CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
19096 cat >conftest.$ac_ext <<_ACEOF
19097 /* confdefs.h. */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h. */
19102 #include <dahdi/user.h>
19104 main ()
19106 #if defined(DAHDI_CODE)
19107 int foo = 0;
19108 #else
19109 int foo = bar;
19110 #endif
19114 return 0;
19116 _ACEOF
19117 rm -f conftest.$ac_objext
19118 if { (ac_try="$ac_compile"
19119 case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_compile") 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } && {
19131 test -z "$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19133 } && test -s conftest.$ac_objext; then
19134 { echo "$as_me:$LINENO: result: yes" >&5
19135 echo "${ECHO_T}yes" >&6; }
19136 PBX_DAHDI=1
19138 cat >>confdefs.h <<\_ACEOF
19139 #define HAVE_DAHDI 1
19140 _ACEOF
19143 cat >>confdefs.h <<\_ACEOF
19144 #define HAVE_DAHDI_VERSION
19145 _ACEOF
19148 else
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 { echo "$as_me:$LINENO: result: no" >&5
19153 echo "${ECHO_T}no" >&6; }
19157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19158 CPPFLAGS="${saved_cppflags}"
19163 # BSD might not have exp2, and/or log2
19165 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
19166 pbxlibdir=""
19167 # if --with-EXP2L=DIR has been specified, use it.
19168 if test "x${EXP2L_DIR}" != "x"; then
19169 if test -d ${EXP2L_DIR}/lib; then
19170 pbxlibdir="-L${EXP2L_DIR}/lib"
19171 else
19172 pbxlibdir="-L${EXP2L_DIR}"
19175 pbxfuncname="exp2l"
19176 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19177 AST_EXP2L_FOUND=yes
19178 else
19179 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19180 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19181 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19182 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 else
19185 ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lm ${pbxlibdir} $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h. */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any GCC internal prototype to avoid an error.
19195 Use char because int might match the return type of a GCC
19196 builtin and then its argument prototype would still apply. */
19197 #ifdef __cplusplus
19198 extern "C"
19199 #endif
19200 char ${pbxfuncname} ();
19202 main ()
19204 return ${pbxfuncname} ();
19206 return 0;
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_link") 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest$ac_exeext &&
19226 $as_test_x conftest$ac_exeext; then
19227 eval "$as_ac_Lib=yes"
19228 else
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 eval "$as_ac_Lib=no"
19235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19236 conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19239 ac_res=`eval echo '${'$as_ac_Lib'}'`
19240 { echo "$as_me:$LINENO: result: $ac_res" >&5
19241 echo "${ECHO_T}$ac_res" >&6; }
19242 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19243 AST_EXP2L_FOUND=yes
19244 else
19245 AST_EXP2L_FOUND=no
19250 # now check for the header.
19251 if test "${AST_EXP2L_FOUND}" = "yes"; then
19252 EXP2L_LIB="${pbxlibdir} -lm "
19253 # if --with-EXP2L=DIR has been specified, use it.
19254 if test "x${EXP2L_DIR}" != "x"; then
19255 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
19257 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
19258 if test "x" = "x" ; then # no header, assume found
19259 EXP2L_HEADER_FOUND="1"
19260 else # check for the header
19261 saved_cppflags="${CPPFLAGS}"
19262 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE}"
19263 if test "${ac_cv_header_+set}" = set; then
19264 { echo "$as_me:$LINENO: checking for " >&5
19265 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19266 if test "${ac_cv_header_+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19270 echo "${ECHO_T}$ac_cv_header_" >&6; }
19271 else
19272 # Is the header compilable?
19273 { echo "$as_me:$LINENO: checking usability" >&5
19274 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19275 cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h. */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 $ac_includes_default
19282 #include <>
19283 _ACEOF
19284 rm -f conftest.$ac_objext
19285 if { (ac_try="$ac_compile"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19289 esac
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_compile") 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest.$ac_objext; then
19301 ac_header_compiler=yes
19302 else
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 ac_header_compiler=no
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19311 echo "${ECHO_T}$ac_header_compiler" >&6; }
19313 # Is the header present?
19314 { echo "$as_me:$LINENO: checking presence" >&5
19315 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19316 cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h. */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19322 #include <>
19323 _ACEOF
19324 if { (ac_try="$ac_cpp conftest.$ac_ext"
19325 case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19331 ac_status=$?
19332 grep -v '^ *+' conftest.er1 >conftest.err
19333 rm -f conftest.er1
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } >/dev/null && {
19337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19338 test ! -s conftest.err
19339 }; then
19340 ac_header_preproc=yes
19341 else
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 ac_header_preproc=no
19348 rm -f conftest.err conftest.$ac_ext
19349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19350 echo "${ECHO_T}$ac_header_preproc" >&6; }
19352 # So? What about this header?
19353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19354 yes:no: )
19355 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19356 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19358 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19359 ac_header_preproc=yes
19361 no:yes:* )
19362 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19363 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19365 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19366 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19367 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19368 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19369 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19370 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19371 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19372 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19373 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19374 ( cat <<\_ASBOX
19375 ## ------------------------------- ##
19376 ## Report this to www.asterisk.org ##
19377 ## ------------------------------- ##
19378 _ASBOX
19379 ) | sed "s/^/$as_me: WARNING: /" >&2
19381 esac
19382 { echo "$as_me:$LINENO: checking for " >&5
19383 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19384 if test "${ac_cv_header_+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387 ac_cv_header_=$ac_header_preproc
19389 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19390 echo "${ECHO_T}$ac_cv_header_" >&6; }
19393 if test $ac_cv_header_ = yes; then
19394 EXP2L_HEADER_FOUND=1
19395 else
19396 EXP2L_HEADER_FOUND=0
19400 CPPFLAGS="${saved_cppflags}"
19402 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
19403 EXP2L_LIB=""
19404 EXP2L_INCLUDE=""
19405 else
19406 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19407 EXP2L_LIB=""
19409 PBX_EXP2L=1
19410 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19412 cat >>confdefs.h <<_ACEOF
19413 #define HAVE_EXP2L 1
19414 _ACEOF
19417 cat >>confdefs.h <<_ACEOF
19418 #define HAVE_EXP2L_VERSION
19419 _ACEOF
19426 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
19427 pbxlibdir=""
19428 # if --with-LOG2L=DIR has been specified, use it.
19429 if test "x${LOG2L_DIR}" != "x"; then
19430 if test -d ${LOG2L_DIR}/lib; then
19431 pbxlibdir="-L${LOG2L_DIR}/lib"
19432 else
19433 pbxlibdir="-L${LOG2L_DIR}"
19436 pbxfuncname="log2l"
19437 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19438 AST_LOG2L_FOUND=yes
19439 else
19440 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19441 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19442 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19443 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lm ${pbxlibdir} $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char ${pbxfuncname} ();
19463 main ()
19465 return ${pbxfuncname} ();
19467 return 0;
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19478 ac_status=$?
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest$ac_exeext &&
19487 $as_test_x conftest$ac_exeext; then
19488 eval "$as_ac_Lib=yes"
19489 else
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 eval "$as_ac_Lib=no"
19496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19497 conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19500 ac_res=`eval echo '${'$as_ac_Lib'}'`
19501 { echo "$as_me:$LINENO: result: $ac_res" >&5
19502 echo "${ECHO_T}$ac_res" >&6; }
19503 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19504 AST_LOG2L_FOUND=yes
19505 else
19506 AST_LOG2L_FOUND=no
19511 # now check for the header.
19512 if test "${AST_LOG2L_FOUND}" = "yes"; then
19513 LOG2L_LIB="${pbxlibdir} -lm "
19514 # if --with-LOG2L=DIR has been specified, use it.
19515 if test "x${LOG2L_DIR}" != "x"; then
19516 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19518 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19519 if test "x" = "x" ; then # no header, assume found
19520 LOG2L_HEADER_FOUND="1"
19521 else # check for the header
19522 saved_cppflags="${CPPFLAGS}"
19523 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE}"
19524 if test "${ac_cv_header_+set}" = set; then
19525 { echo "$as_me:$LINENO: checking for " >&5
19526 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19527 if test "${ac_cv_header_+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19531 echo "${ECHO_T}$ac_cv_header_" >&6; }
19532 else
19533 # Is the header compilable?
19534 { echo "$as_me:$LINENO: checking usability" >&5
19535 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19536 cat >conftest.$ac_ext <<_ACEOF
19537 /* confdefs.h. */
19538 _ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19542 $ac_includes_default
19543 #include <>
19544 _ACEOF
19545 rm -f conftest.$ac_objext
19546 if { (ac_try="$ac_compile"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550 esac
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_compile") 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest.$ac_objext; then
19562 ac_header_compiler=yes
19563 else
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ac_header_compiler=no
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19572 echo "${ECHO_T}$ac_header_compiler" >&6; }
19574 # Is the header present?
19575 { echo "$as_me:$LINENO: checking presence" >&5
19576 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19577 cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h. */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19583 #include <>
19584 _ACEOF
19585 if { (ac_try="$ac_cpp conftest.$ac_ext"
19586 case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } >/dev/null && {
19598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19599 test ! -s conftest.err
19600 }; then
19601 ac_header_preproc=yes
19602 else
19603 echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19606 ac_header_preproc=no
19609 rm -f conftest.err conftest.$ac_ext
19610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19611 echo "${ECHO_T}$ac_header_preproc" >&6; }
19613 # So? What about this header?
19614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19615 yes:no: )
19616 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19617 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19618 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19619 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19620 ac_header_preproc=yes
19622 no:yes:* )
19623 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19624 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19626 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19628 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19630 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19632 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19634 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19635 ( cat <<\_ASBOX
19636 ## ------------------------------- ##
19637 ## Report this to www.asterisk.org ##
19638 ## ------------------------------- ##
19639 _ASBOX
19640 ) | sed "s/^/$as_me: WARNING: /" >&2
19642 esac
19643 { echo "$as_me:$LINENO: checking for " >&5
19644 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19645 if test "${ac_cv_header_+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648 ac_cv_header_=$ac_header_preproc
19650 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19651 echo "${ECHO_T}$ac_cv_header_" >&6; }
19654 if test $ac_cv_header_ = yes; then
19655 LOG2L_HEADER_FOUND=1
19656 else
19657 LOG2L_HEADER_FOUND=0
19661 CPPFLAGS="${saved_cppflags}"
19663 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19664 LOG2L_LIB=""
19665 LOG2L_INCLUDE=""
19666 else
19667 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19668 LOG2L_LIB=""
19670 PBX_LOG2L=1
19671 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19673 cat >>confdefs.h <<_ACEOF
19674 #define HAVE_LOG2L 1
19675 _ACEOF
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_LOG2L_VERSION
19680 _ACEOF
19687 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19688 pbxlibdir=""
19689 # if --with-EXP10L=DIR has been specified, use it.
19690 if test "x${EXP10L_DIR}" != "x"; then
19691 if test -d ${EXP10L_DIR}/lib; then
19692 pbxlibdir="-L${EXP10L_DIR}/lib"
19693 else
19694 pbxlibdir="-L${EXP10L_DIR}"
19697 pbxfuncname="exp10l"
19698 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19699 AST_EXP10L_FOUND=yes
19700 else
19701 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19702 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19703 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19704 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707 ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lm ${pbxlibdir} $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 char ${pbxfuncname} ();
19724 main ()
19726 return ${pbxfuncname} ();
19728 return 0;
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 eval "$as_ac_Lib=yes"
19750 else
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 eval "$as_ac_Lib=no"
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19761 ac_res=`eval echo '${'$as_ac_Lib'}'`
19762 { echo "$as_me:$LINENO: result: $ac_res" >&5
19763 echo "${ECHO_T}$ac_res" >&6; }
19764 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19765 AST_EXP10L_FOUND=yes
19766 else
19767 AST_EXP10L_FOUND=no
19772 # now check for the header.
19773 if test "${AST_EXP10L_FOUND}" = "yes"; then
19774 EXP10L_LIB="${pbxlibdir} -lm "
19775 # if --with-EXP10L=DIR has been specified, use it.
19776 if test "x${EXP10L_DIR}" != "x"; then
19777 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19779 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19780 if test "x" = "x" ; then # no header, assume found
19781 EXP10L_HEADER_FOUND="1"
19782 else # check for the header
19783 saved_cppflags="${CPPFLAGS}"
19784 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE}"
19785 if test "${ac_cv_header_+set}" = set; then
19786 { echo "$as_me:$LINENO: checking for " >&5
19787 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19788 if test "${ac_cv_header_+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19792 echo "${ECHO_T}$ac_cv_header_" >&6; }
19793 else
19794 # Is the header compilable?
19795 { echo "$as_me:$LINENO: checking usability" >&5
19796 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 $ac_includes_default
19804 #include <>
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (ac_try="$ac_compile"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_compile") 2>conftest.er1
19814 ac_status=$?
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } && {
19820 test -z "$ac_c_werror_flag" ||
19821 test ! -s conftest.err
19822 } && test -s conftest.$ac_objext; then
19823 ac_header_compiler=yes
19824 else
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19828 ac_header_compiler=no
19831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19833 echo "${ECHO_T}$ac_header_compiler" >&6; }
19835 # Is the header present?
19836 { echo "$as_me:$LINENO: checking presence" >&5
19837 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 #include <>
19845 _ACEOF
19846 if { (ac_try="$ac_cpp conftest.$ac_ext"
19847 case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } >/dev/null && {
19859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19860 test ! -s conftest.err
19861 }; then
19862 ac_header_preproc=yes
19863 else
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ac_header_preproc=no
19870 rm -f conftest.err conftest.$ac_ext
19871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19872 echo "${ECHO_T}$ac_header_preproc" >&6; }
19874 # So? What about this header?
19875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19876 yes:no: )
19877 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19878 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19880 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19881 ac_header_preproc=yes
19883 no:yes:* )
19884 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19885 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19887 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19889 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19891 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19893 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19895 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19896 ( cat <<\_ASBOX
19897 ## ------------------------------- ##
19898 ## Report this to www.asterisk.org ##
19899 ## ------------------------------- ##
19900 _ASBOX
19901 ) | sed "s/^/$as_me: WARNING: /" >&2
19903 esac
19904 { echo "$as_me:$LINENO: checking for " >&5
19905 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19906 if test "${ac_cv_header_+set}" = set; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19908 else
19909 ac_cv_header_=$ac_header_preproc
19911 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19912 echo "${ECHO_T}$ac_cv_header_" >&6; }
19915 if test $ac_cv_header_ = yes; then
19916 EXP10L_HEADER_FOUND=1
19917 else
19918 EXP10L_HEADER_FOUND=0
19922 CPPFLAGS="${saved_cppflags}"
19924 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19925 EXP10L_LIB=""
19926 EXP10L_INCLUDE=""
19927 else
19928 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19929 EXP10L_LIB=""
19931 PBX_EXP10L=1
19932 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19934 cat >>confdefs.h <<_ACEOF
19935 #define HAVE_EXP10L 1
19936 _ACEOF
19939 cat >>confdefs.h <<_ACEOF
19940 #define HAVE_EXP10L_VERSION
19941 _ACEOF
19948 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19949 pbxlibdir=""
19950 # if --with-LOG10L=DIR has been specified, use it.
19951 if test "x${LOG10L_DIR}" != "x"; then
19952 if test -d ${LOG10L_DIR}/lib; then
19953 pbxlibdir="-L${LOG10L_DIR}/lib"
19954 else
19955 pbxlibdir="-L${LOG10L_DIR}"
19958 pbxfuncname="log10l"
19959 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19960 AST_LOG10L_FOUND=yes
19961 else
19962 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19963 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19964 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19965 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968 ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-lm ${pbxlibdir} $LIBS"
19970 cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h. */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 /* Override any GCC internal prototype to avoid an error.
19978 Use char because int might match the return type of a GCC
19979 builtin and then its argument prototype would still apply. */
19980 #ifdef __cplusplus
19981 extern "C"
19982 #endif
19983 char ${pbxfuncname} ();
19985 main ()
19987 return ${pbxfuncname} ();
19989 return 0;
19991 _ACEOF
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (ac_try="$ac_link"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_link") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest$ac_exeext &&
20009 $as_test_x conftest$ac_exeext; then
20010 eval "$as_ac_Lib=yes"
20011 else
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 eval "$as_ac_Lib=no"
20018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20019 conftest$ac_exeext conftest.$ac_ext
20020 LIBS=$ac_check_lib_save_LIBS
20022 ac_res=`eval echo '${'$as_ac_Lib'}'`
20023 { echo "$as_me:$LINENO: result: $ac_res" >&5
20024 echo "${ECHO_T}$ac_res" >&6; }
20025 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20026 AST_LOG10L_FOUND=yes
20027 else
20028 AST_LOG10L_FOUND=no
20033 # now check for the header.
20034 if test "${AST_LOG10L_FOUND}" = "yes"; then
20035 LOG10L_LIB="${pbxlibdir} -lm "
20036 # if --with-LOG10L=DIR has been specified, use it.
20037 if test "x${LOG10L_DIR}" != "x"; then
20038 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
20040 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
20041 if test "x" = "x" ; then # no header, assume found
20042 LOG10L_HEADER_FOUND="1"
20043 else # check for the header
20044 saved_cppflags="${CPPFLAGS}"
20045 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE}"
20046 if test "${ac_cv_header_+set}" = set; then
20047 { echo "$as_me:$LINENO: checking for " >&5
20048 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20049 if test "${ac_cv_header_+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20053 echo "${ECHO_T}$ac_cv_header_" >&6; }
20054 else
20055 # Is the header compilable?
20056 { echo "$as_me:$LINENO: checking usability" >&5
20057 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h. */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20065 #include <>
20066 _ACEOF
20067 rm -f conftest.$ac_objext
20068 if { (ac_try="$ac_compile"
20069 case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20072 esac
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_compile") 2>conftest.er1
20075 ac_status=$?
20076 grep -v '^ *+' conftest.er1 >conftest.err
20077 rm -f conftest.er1
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && {
20081 test -z "$ac_c_werror_flag" ||
20082 test ! -s conftest.err
20083 } && test -s conftest.$ac_objext; then
20084 ac_header_compiler=yes
20085 else
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_header_compiler=no
20092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20094 echo "${ECHO_T}$ac_header_compiler" >&6; }
20096 # Is the header present?
20097 { echo "$as_me:$LINENO: checking presence" >&5
20098 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 #include <>
20106 _ACEOF
20107 if { (ac_try="$ac_cpp conftest.$ac_ext"
20108 case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } >/dev/null && {
20120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20121 test ! -s conftest.err
20122 }; then
20123 ac_header_preproc=yes
20124 else
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20128 ac_header_preproc=no
20131 rm -f conftest.err conftest.$ac_ext
20132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20133 echo "${ECHO_T}$ac_header_preproc" >&6; }
20135 # So? What about this header?
20136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20137 yes:no: )
20138 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20139 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20140 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20141 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20142 ac_header_preproc=yes
20144 no:yes:* )
20145 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20146 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20147 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20148 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20149 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20150 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20152 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20154 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20155 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20156 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20157 ( cat <<\_ASBOX
20158 ## ------------------------------- ##
20159 ## Report this to www.asterisk.org ##
20160 ## ------------------------------- ##
20161 _ASBOX
20162 ) | sed "s/^/$as_me: WARNING: /" >&2
20164 esac
20165 { echo "$as_me:$LINENO: checking for " >&5
20166 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20167 if test "${ac_cv_header_+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20169 else
20170 ac_cv_header_=$ac_header_preproc
20172 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20173 echo "${ECHO_T}$ac_cv_header_" >&6; }
20176 if test $ac_cv_header_ = yes; then
20177 LOG10L_HEADER_FOUND=1
20178 else
20179 LOG10L_HEADER_FOUND=0
20183 CPPFLAGS="${saved_cppflags}"
20185 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
20186 LOG10L_LIB=""
20187 LOG10L_INCLUDE=""
20188 else
20189 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20190 LOG10L_LIB=""
20192 PBX_LOG10L=1
20193 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_LOG10L 1
20197 _ACEOF
20200 cat >>confdefs.h <<_ACEOF
20201 #define HAVE_LOG10L_VERSION
20202 _ACEOF
20209 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
20210 pbxlibdir=""
20211 # if --with-SINL=DIR has been specified, use it.
20212 if test "x${SINL_DIR}" != "x"; then
20213 if test -d ${SINL_DIR}/lib; then
20214 pbxlibdir="-L${SINL_DIR}/lib"
20215 else
20216 pbxlibdir="-L${SINL_DIR}"
20219 pbxfuncname="sinl"
20220 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20221 AST_SINL_FOUND=yes
20222 else
20223 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20224 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20225 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20226 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229 ac_check_lib_save_LIBS=$LIBS
20230 LIBS="-lm ${pbxlibdir} $LIBS"
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h. */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 char ${pbxfuncname} ();
20246 main ()
20248 return ${pbxfuncname} ();
20250 return 0;
20252 _ACEOF
20253 rm -f conftest.$ac_objext conftest$ac_exeext
20254 if { (ac_try="$ac_link"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_link") 2>conftest.er1
20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } && {
20267 test -z "$ac_c_werror_flag" ||
20268 test ! -s conftest.err
20269 } && test -s conftest$ac_exeext &&
20270 $as_test_x conftest$ac_exeext; then
20271 eval "$as_ac_Lib=yes"
20272 else
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 eval "$as_ac_Lib=no"
20279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20283 ac_res=`eval echo '${'$as_ac_Lib'}'`
20284 { echo "$as_me:$LINENO: result: $ac_res" >&5
20285 echo "${ECHO_T}$ac_res" >&6; }
20286 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20287 AST_SINL_FOUND=yes
20288 else
20289 AST_SINL_FOUND=no
20294 # now check for the header.
20295 if test "${AST_SINL_FOUND}" = "yes"; then
20296 SINL_LIB="${pbxlibdir} -lm "
20297 # if --with-SINL=DIR has been specified, use it.
20298 if test "x${SINL_DIR}" != "x"; then
20299 SINL_INCLUDE="-I${SINL_DIR}/include"
20301 SINL_INCLUDE="${SINL_INCLUDE} "
20302 if test "x" = "x" ; then # no header, assume found
20303 SINL_HEADER_FOUND="1"
20304 else # check for the header
20305 saved_cppflags="${CPPFLAGS}"
20306 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE}"
20307 if test "${ac_cv_header_+set}" = set; then
20308 { echo "$as_me:$LINENO: checking for " >&5
20309 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20310 if test "${ac_cv_header_+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20314 echo "${ECHO_T}$ac_cv_header_" >&6; }
20315 else
20316 # Is the header compilable?
20317 { echo "$as_me:$LINENO: checking usability" >&5
20318 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h. */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 $ac_includes_default
20326 #include <>
20327 _ACEOF
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_compile") 2>conftest.er1
20336 ac_status=$?
20337 grep -v '^ *+' conftest.er1 >conftest.err
20338 rm -f conftest.er1
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } && {
20342 test -z "$ac_c_werror_flag" ||
20343 test ! -s conftest.err
20344 } && test -s conftest.$ac_objext; then
20345 ac_header_compiler=yes
20346 else
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ac_header_compiler=no
20353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20355 echo "${ECHO_T}$ac_header_compiler" >&6; }
20357 # Is the header present?
20358 { echo "$as_me:$LINENO: checking presence" >&5
20359 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h. */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20366 #include <>
20367 _ACEOF
20368 if { (ac_try="$ac_cpp conftest.$ac_ext"
20369 case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } >/dev/null && {
20381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20382 test ! -s conftest.err
20383 }; then
20384 ac_header_preproc=yes
20385 else
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20389 ac_header_preproc=no
20392 rm -f conftest.err conftest.$ac_ext
20393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20394 echo "${ECHO_T}$ac_header_preproc" >&6; }
20396 # So? What about this header?
20397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20398 yes:no: )
20399 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20400 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20402 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20403 ac_header_preproc=yes
20405 no:yes:* )
20406 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20407 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20409 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20410 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20411 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20413 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20415 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20417 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20418 ( cat <<\_ASBOX
20419 ## ------------------------------- ##
20420 ## Report this to www.asterisk.org ##
20421 ## ------------------------------- ##
20422 _ASBOX
20423 ) | sed "s/^/$as_me: WARNING: /" >&2
20425 esac
20426 { echo "$as_me:$LINENO: checking for " >&5
20427 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20428 if test "${ac_cv_header_+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431 ac_cv_header_=$ac_header_preproc
20433 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20434 echo "${ECHO_T}$ac_cv_header_" >&6; }
20437 if test $ac_cv_header_ = yes; then
20438 SINL_HEADER_FOUND=1
20439 else
20440 SINL_HEADER_FOUND=0
20444 CPPFLAGS="${saved_cppflags}"
20446 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
20447 SINL_LIB=""
20448 SINL_INCLUDE=""
20449 else
20450 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20451 SINL_LIB=""
20453 PBX_SINL=1
20454 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_SINL 1
20458 _ACEOF
20461 cat >>confdefs.h <<_ACEOF
20462 #define HAVE_SINL_VERSION
20463 _ACEOF
20470 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
20471 pbxlibdir=""
20472 # if --with-COSL=DIR has been specified, use it.
20473 if test "x${COSL_DIR}" != "x"; then
20474 if test -d ${COSL_DIR}/lib; then
20475 pbxlibdir="-L${COSL_DIR}/lib"
20476 else
20477 pbxlibdir="-L${COSL_DIR}"
20480 pbxfuncname="cosl"
20481 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20482 AST_COSL_FOUND=yes
20483 else
20484 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20485 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20486 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20487 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lm ${pbxlibdir} $LIBS"
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 char ${pbxfuncname} ();
20507 main ()
20509 return ${pbxfuncname} ();
20511 return 0;
20513 _ACEOF
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } && {
20528 test -z "$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 } && test -s conftest$ac_exeext &&
20531 $as_test_x conftest$ac_exeext; then
20532 eval "$as_ac_Lib=yes"
20533 else
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 eval "$as_ac_Lib=no"
20540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20541 conftest$ac_exeext conftest.$ac_ext
20542 LIBS=$ac_check_lib_save_LIBS
20544 ac_res=`eval echo '${'$as_ac_Lib'}'`
20545 { echo "$as_me:$LINENO: result: $ac_res" >&5
20546 echo "${ECHO_T}$ac_res" >&6; }
20547 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20548 AST_COSL_FOUND=yes
20549 else
20550 AST_COSL_FOUND=no
20555 # now check for the header.
20556 if test "${AST_COSL_FOUND}" = "yes"; then
20557 COSL_LIB="${pbxlibdir} -lm "
20558 # if --with-COSL=DIR has been specified, use it.
20559 if test "x${COSL_DIR}" != "x"; then
20560 COSL_INCLUDE="-I${COSL_DIR}/include"
20562 COSL_INCLUDE="${COSL_INCLUDE} "
20563 if test "x" = "x" ; then # no header, assume found
20564 COSL_HEADER_FOUND="1"
20565 else # check for the header
20566 saved_cppflags="${CPPFLAGS}"
20567 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE}"
20568 if test "${ac_cv_header_+set}" = set; then
20569 { echo "$as_me:$LINENO: checking for " >&5
20570 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20571 if test "${ac_cv_header_+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20575 echo "${ECHO_T}$ac_cv_header_" >&6; }
20576 else
20577 # Is the header compilable?
20578 { echo "$as_me:$LINENO: checking usability" >&5
20579 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20580 cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h. */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20586 $ac_includes_default
20587 #include <>
20588 _ACEOF
20589 rm -f conftest.$ac_objext
20590 if { (ac_try="$ac_compile"
20591 case "(($ac_try" in
20592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593 *) ac_try_echo=$ac_try;;
20594 esac
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596 (eval "$ac_compile") 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } && {
20603 test -z "$ac_c_werror_flag" ||
20604 test ! -s conftest.err
20605 } && test -s conftest.$ac_objext; then
20606 ac_header_compiler=yes
20607 else
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 ac_header_compiler=no
20614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20616 echo "${ECHO_T}$ac_header_compiler" >&6; }
20618 # Is the header present?
20619 { echo "$as_me:$LINENO: checking presence" >&5
20620 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20621 cat >conftest.$ac_ext <<_ACEOF
20622 /* confdefs.h. */
20623 _ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20627 #include <>
20628 _ACEOF
20629 if { (ac_try="$ac_cpp conftest.$ac_ext"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } >/dev/null && {
20642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 }; then
20645 ac_header_preproc=yes
20646 else
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_header_preproc=no
20653 rm -f conftest.err conftest.$ac_ext
20654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20655 echo "${ECHO_T}$ac_header_preproc" >&6; }
20657 # So? What about this header?
20658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20659 yes:no: )
20660 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20661 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20663 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20664 ac_header_preproc=yes
20666 no:yes:* )
20667 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20668 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20670 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20672 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20673 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20674 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20675 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20676 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20677 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20678 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20679 ( cat <<\_ASBOX
20680 ## ------------------------------- ##
20681 ## Report this to www.asterisk.org ##
20682 ## ------------------------------- ##
20683 _ASBOX
20684 ) | sed "s/^/$as_me: WARNING: /" >&2
20686 esac
20687 { echo "$as_me:$LINENO: checking for " >&5
20688 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20689 if test "${ac_cv_header_+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692 ac_cv_header_=$ac_header_preproc
20694 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20695 echo "${ECHO_T}$ac_cv_header_" >&6; }
20698 if test $ac_cv_header_ = yes; then
20699 COSL_HEADER_FOUND=1
20700 else
20701 COSL_HEADER_FOUND=0
20705 CPPFLAGS="${saved_cppflags}"
20707 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20708 COSL_LIB=""
20709 COSL_INCLUDE=""
20710 else
20711 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20712 COSL_LIB=""
20714 PBX_COSL=1
20715 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20717 cat >>confdefs.h <<_ACEOF
20718 #define HAVE_COSL 1
20719 _ACEOF
20722 cat >>confdefs.h <<_ACEOF
20723 #define HAVE_COSL_VERSION
20724 _ACEOF
20731 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20732 pbxlibdir=""
20733 # if --with-TANL=DIR has been specified, use it.
20734 if test "x${TANL_DIR}" != "x"; then
20735 if test -d ${TANL_DIR}/lib; then
20736 pbxlibdir="-L${TANL_DIR}/lib"
20737 else
20738 pbxlibdir="-L${TANL_DIR}"
20741 pbxfuncname="tanl"
20742 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20743 AST_TANL_FOUND=yes
20744 else
20745 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20746 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20747 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20748 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751 ac_check_lib_save_LIBS=$LIBS
20752 LIBS="-lm ${pbxlibdir} $LIBS"
20753 cat >conftest.$ac_ext <<_ACEOF
20754 /* confdefs.h. */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20760 /* Override any GCC internal prototype to avoid an error.
20761 Use char because int might match the return type of a GCC
20762 builtin and then its argument prototype would still apply. */
20763 #ifdef __cplusplus
20764 extern "C"
20765 #endif
20766 char ${pbxfuncname} ();
20768 main ()
20770 return ${pbxfuncname} ();
20772 return 0;
20774 _ACEOF
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_link") 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest$ac_exeext &&
20792 $as_test_x conftest$ac_exeext; then
20793 eval "$as_ac_Lib=yes"
20794 else
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20798 eval "$as_ac_Lib=no"
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20802 conftest$ac_exeext conftest.$ac_ext
20803 LIBS=$ac_check_lib_save_LIBS
20805 ac_res=`eval echo '${'$as_ac_Lib'}'`
20806 { echo "$as_me:$LINENO: result: $ac_res" >&5
20807 echo "${ECHO_T}$ac_res" >&6; }
20808 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20809 AST_TANL_FOUND=yes
20810 else
20811 AST_TANL_FOUND=no
20816 # now check for the header.
20817 if test "${AST_TANL_FOUND}" = "yes"; then
20818 TANL_LIB="${pbxlibdir} -lm "
20819 # if --with-TANL=DIR has been specified, use it.
20820 if test "x${TANL_DIR}" != "x"; then
20821 TANL_INCLUDE="-I${TANL_DIR}/include"
20823 TANL_INCLUDE="${TANL_INCLUDE} "
20824 if test "x" = "x" ; then # no header, assume found
20825 TANL_HEADER_FOUND="1"
20826 else # check for the header
20827 saved_cppflags="${CPPFLAGS}"
20828 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE}"
20829 if test "${ac_cv_header_+set}" = set; then
20830 { echo "$as_me:$LINENO: checking for " >&5
20831 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20832 if test "${ac_cv_header_+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20835 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20836 echo "${ECHO_T}$ac_cv_header_" >&6; }
20837 else
20838 # Is the header compilable?
20839 { echo "$as_me:$LINENO: checking usability" >&5
20840 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20841 cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 $ac_includes_default
20848 #include <>
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20858 ac_status=$?
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
20867 ac_header_compiler=yes
20868 else
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20872 ac_header_compiler=no
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20877 echo "${ECHO_T}$ac_header_compiler" >&6; }
20879 # Is the header present?
20880 { echo "$as_me:$LINENO: checking presence" >&5
20881 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20882 cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h. */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 #include <>
20889 _ACEOF
20890 if { (ac_try="$ac_cpp conftest.$ac_ext"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } >/dev/null && {
20903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 }; then
20906 ac_header_preproc=yes
20907 else
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_header_preproc=no
20914 rm -f conftest.err conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20916 echo "${ECHO_T}$ac_header_preproc" >&6; }
20918 # So? What about this header?
20919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20920 yes:no: )
20921 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20922 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20924 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20925 ac_header_preproc=yes
20927 no:yes:* )
20928 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20929 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20931 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20933 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20935 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20936 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20937 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20938 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20939 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20940 ( cat <<\_ASBOX
20941 ## ------------------------------- ##
20942 ## Report this to www.asterisk.org ##
20943 ## ------------------------------- ##
20944 _ASBOX
20945 ) | sed "s/^/$as_me: WARNING: /" >&2
20947 esac
20948 { echo "$as_me:$LINENO: checking for " >&5
20949 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20950 if test "${ac_cv_header_+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953 ac_cv_header_=$ac_header_preproc
20955 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20956 echo "${ECHO_T}$ac_cv_header_" >&6; }
20959 if test $ac_cv_header_ = yes; then
20960 TANL_HEADER_FOUND=1
20961 else
20962 TANL_HEADER_FOUND=0
20966 CPPFLAGS="${saved_cppflags}"
20968 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
20969 TANL_LIB=""
20970 TANL_INCLUDE=""
20971 else
20972 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20973 TANL_LIB=""
20975 PBX_TANL=1
20976 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20978 cat >>confdefs.h <<_ACEOF
20979 #define HAVE_TANL 1
20980 _ACEOF
20983 cat >>confdefs.h <<_ACEOF
20984 #define HAVE_TANL_VERSION
20985 _ACEOF
20992 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
20993 pbxlibdir=""
20994 # if --with-ASINL=DIR has been specified, use it.
20995 if test "x${ASINL_DIR}" != "x"; then
20996 if test -d ${ASINL_DIR}/lib; then
20997 pbxlibdir="-L${ASINL_DIR}/lib"
20998 else
20999 pbxlibdir="-L${ASINL_DIR}"
21002 pbxfuncname="asinl"
21003 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21004 AST_ASINL_FOUND=yes
21005 else
21006 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21007 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21008 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21009 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012 ac_check_lib_save_LIBS=$LIBS
21013 LIBS="-lm ${pbxlibdir} $LIBS"
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21021 /* Override any GCC internal prototype to avoid an error.
21022 Use char because int might match the return type of a GCC
21023 builtin and then its argument prototype would still apply. */
21024 #ifdef __cplusplus
21025 extern "C"
21026 #endif
21027 char ${pbxfuncname} ();
21029 main ()
21031 return ${pbxfuncname} ();
21033 return 0;
21035 _ACEOF
21036 rm -f conftest.$ac_objext conftest$ac_exeext
21037 if { (ac_try="$ac_link"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_link") 2>conftest.er1
21044 ac_status=$?
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest$ac_exeext &&
21053 $as_test_x conftest$ac_exeext; then
21054 eval "$as_ac_Lib=yes"
21055 else
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 eval "$as_ac_Lib=no"
21062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21063 conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_check_lib_save_LIBS
21066 ac_res=`eval echo '${'$as_ac_Lib'}'`
21067 { echo "$as_me:$LINENO: result: $ac_res" >&5
21068 echo "${ECHO_T}$ac_res" >&6; }
21069 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21070 AST_ASINL_FOUND=yes
21071 else
21072 AST_ASINL_FOUND=no
21077 # now check for the header.
21078 if test "${AST_ASINL_FOUND}" = "yes"; then
21079 ASINL_LIB="${pbxlibdir} -lm "
21080 # if --with-ASINL=DIR has been specified, use it.
21081 if test "x${ASINL_DIR}" != "x"; then
21082 ASINL_INCLUDE="-I${ASINL_DIR}/include"
21084 ASINL_INCLUDE="${ASINL_INCLUDE} "
21085 if test "x" = "x" ; then # no header, assume found
21086 ASINL_HEADER_FOUND="1"
21087 else # check for the header
21088 saved_cppflags="${CPPFLAGS}"
21089 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE}"
21090 if test "${ac_cv_header_+set}" = set; then
21091 { echo "$as_me:$LINENO: checking for " >&5
21092 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21093 if test "${ac_cv_header_+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21097 echo "${ECHO_T}$ac_cv_header_" >&6; }
21098 else
21099 # Is the header compilable?
21100 { echo "$as_me:$LINENO: checking usability" >&5
21101 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21102 cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h. */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21108 $ac_includes_default
21109 #include <>
21110 _ACEOF
21111 rm -f conftest.$ac_objext
21112 if { (ac_try="$ac_compile"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21116 esac
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_compile") 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest.$ac_objext; then
21128 ac_header_compiler=yes
21129 else
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_header_compiler=no
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21138 echo "${ECHO_T}$ac_header_compiler" >&6; }
21140 # Is the header present?
21141 { echo "$as_me:$LINENO: checking presence" >&5
21142 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <>
21150 _ACEOF
21151 if { (ac_try="$ac_cpp conftest.$ac_ext"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21158 ac_status=$?
21159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } >/dev/null && {
21164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21165 test ! -s conftest.err
21166 }; then
21167 ac_header_preproc=yes
21168 else
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_header_preproc=no
21175 rm -f conftest.err conftest.$ac_ext
21176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21177 echo "${ECHO_T}$ac_header_preproc" >&6; }
21179 # So? What about this header?
21180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21181 yes:no: )
21182 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21183 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21185 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21186 ac_header_preproc=yes
21188 no:yes:* )
21189 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21190 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21191 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21192 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21193 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21194 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21195 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21196 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21198 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21199 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21200 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21201 ( cat <<\_ASBOX
21202 ## ------------------------------- ##
21203 ## Report this to www.asterisk.org ##
21204 ## ------------------------------- ##
21205 _ASBOX
21206 ) | sed "s/^/$as_me: WARNING: /" >&2
21208 esac
21209 { echo "$as_me:$LINENO: checking for " >&5
21210 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21211 if test "${ac_cv_header_+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 else
21214 ac_cv_header_=$ac_header_preproc
21216 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21217 echo "${ECHO_T}$ac_cv_header_" >&6; }
21220 if test $ac_cv_header_ = yes; then
21221 ASINL_HEADER_FOUND=1
21222 else
21223 ASINL_HEADER_FOUND=0
21227 CPPFLAGS="${saved_cppflags}"
21229 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
21230 ASINL_LIB=""
21231 ASINL_INCLUDE=""
21232 else
21233 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21234 ASINL_LIB=""
21236 PBX_ASINL=1
21237 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21239 cat >>confdefs.h <<_ACEOF
21240 #define HAVE_ASINL 1
21241 _ACEOF
21244 cat >>confdefs.h <<_ACEOF
21245 #define HAVE_ASINL_VERSION
21246 _ACEOF
21253 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
21254 pbxlibdir=""
21255 # if --with-ACOSL=DIR has been specified, use it.
21256 if test "x${ACOSL_DIR}" != "x"; then
21257 if test -d ${ACOSL_DIR}/lib; then
21258 pbxlibdir="-L${ACOSL_DIR}/lib"
21259 else
21260 pbxlibdir="-L${ACOSL_DIR}"
21263 pbxfuncname="acosl"
21264 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21265 AST_ACOSL_FOUND=yes
21266 else
21267 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21268 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21269 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21270 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273 ac_check_lib_save_LIBS=$LIBS
21274 LIBS="-lm ${pbxlibdir} $LIBS"
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h. */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21282 /* Override any GCC internal prototype to avoid an error.
21283 Use char because int might match the return type of a GCC
21284 builtin and then its argument prototype would still apply. */
21285 #ifdef __cplusplus
21286 extern "C"
21287 #endif
21288 char ${pbxfuncname} ();
21290 main ()
21292 return ${pbxfuncname} ();
21294 return 0;
21296 _ACEOF
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (ac_try="$ac_link"
21299 case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_link") 2>conftest.er1
21305 ac_status=$?
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } && {
21311 test -z "$ac_c_werror_flag" ||
21312 test ! -s conftest.err
21313 } && test -s conftest$ac_exeext &&
21314 $as_test_x conftest$ac_exeext; then
21315 eval "$as_ac_Lib=yes"
21316 else
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 eval "$as_ac_Lib=no"
21323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21324 conftest$ac_exeext conftest.$ac_ext
21325 LIBS=$ac_check_lib_save_LIBS
21327 ac_res=`eval echo '${'$as_ac_Lib'}'`
21328 { echo "$as_me:$LINENO: result: $ac_res" >&5
21329 echo "${ECHO_T}$ac_res" >&6; }
21330 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21331 AST_ACOSL_FOUND=yes
21332 else
21333 AST_ACOSL_FOUND=no
21338 # now check for the header.
21339 if test "${AST_ACOSL_FOUND}" = "yes"; then
21340 ACOSL_LIB="${pbxlibdir} -lm "
21341 # if --with-ACOSL=DIR has been specified, use it.
21342 if test "x${ACOSL_DIR}" != "x"; then
21343 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
21345 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
21346 if test "x" = "x" ; then # no header, assume found
21347 ACOSL_HEADER_FOUND="1"
21348 else # check for the header
21349 saved_cppflags="${CPPFLAGS}"
21350 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE}"
21351 if test "${ac_cv_header_+set}" = set; then
21352 { echo "$as_me:$LINENO: checking for " >&5
21353 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21354 if test "${ac_cv_header_+set}" = set; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21358 echo "${ECHO_T}$ac_cv_header_" >&6; }
21359 else
21360 # Is the header compilable?
21361 { echo "$as_me:$LINENO: checking usability" >&5
21362 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 $ac_includes_default
21370 #include <>
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest.$ac_objext; then
21389 ac_header_compiler=yes
21390 else
21391 echo "$as_me: failed program was:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 ac_header_compiler=no
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21399 echo "${ECHO_T}$ac_header_compiler" >&6; }
21401 # Is the header present?
21402 { echo "$as_me:$LINENO: checking presence" >&5
21403 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21404 cat >conftest.$ac_ext <<_ACEOF
21405 /* confdefs.h. */
21406 _ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21410 #include <>
21411 _ACEOF
21412 if { (ac_try="$ac_cpp conftest.$ac_ext"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } >/dev/null && {
21425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 }; then
21428 ac_header_preproc=yes
21429 else
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_header_preproc=no
21436 rm -f conftest.err conftest.$ac_ext
21437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21438 echo "${ECHO_T}$ac_header_preproc" >&6; }
21440 # So? What about this header?
21441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21442 yes:no: )
21443 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21444 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21446 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21447 ac_header_preproc=yes
21449 no:yes:* )
21450 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21451 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21453 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21455 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21457 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21459 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21461 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21462 ( cat <<\_ASBOX
21463 ## ------------------------------- ##
21464 ## Report this to www.asterisk.org ##
21465 ## ------------------------------- ##
21466 _ASBOX
21467 ) | sed "s/^/$as_me: WARNING: /" >&2
21469 esac
21470 { echo "$as_me:$LINENO: checking for " >&5
21471 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21472 if test "${ac_cv_header_+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475 ac_cv_header_=$ac_header_preproc
21477 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21478 echo "${ECHO_T}$ac_cv_header_" >&6; }
21481 if test $ac_cv_header_ = yes; then
21482 ACOSL_HEADER_FOUND=1
21483 else
21484 ACOSL_HEADER_FOUND=0
21488 CPPFLAGS="${saved_cppflags}"
21490 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
21491 ACOSL_LIB=""
21492 ACOSL_INCLUDE=""
21493 else
21494 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21495 ACOSL_LIB=""
21497 PBX_ACOSL=1
21498 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21500 cat >>confdefs.h <<_ACEOF
21501 #define HAVE_ACOSL 1
21502 _ACEOF
21505 cat >>confdefs.h <<_ACEOF
21506 #define HAVE_ACOSL_VERSION
21507 _ACEOF
21514 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21515 pbxlibdir=""
21516 # if --with-ATANL=DIR has been specified, use it.
21517 if test "x${ATANL_DIR}" != "x"; then
21518 if test -d ${ATANL_DIR}/lib; then
21519 pbxlibdir="-L${ATANL_DIR}/lib"
21520 else
21521 pbxlibdir="-L${ATANL_DIR}"
21524 pbxfuncname="atanl"
21525 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21526 AST_ATANL_FOUND=yes
21527 else
21528 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21529 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21530 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21531 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534 ac_check_lib_save_LIBS=$LIBS
21535 LIBS="-lm ${pbxlibdir} $LIBS"
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h. */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21543 /* Override any GCC internal prototype to avoid an error.
21544 Use char because int might match the return type of a GCC
21545 builtin and then its argument prototype would still apply. */
21546 #ifdef __cplusplus
21547 extern "C"
21548 #endif
21549 char ${pbxfuncname} ();
21551 main ()
21553 return ${pbxfuncname} ();
21555 return 0;
21557 _ACEOF
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (ac_try="$ac_link"
21560 case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21563 esac
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_link") 2>conftest.er1
21566 ac_status=$?
21567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } && {
21572 test -z "$ac_c_werror_flag" ||
21573 test ! -s conftest.err
21574 } && test -s conftest$ac_exeext &&
21575 $as_test_x conftest$ac_exeext; then
21576 eval "$as_ac_Lib=yes"
21577 else
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 eval "$as_ac_Lib=no"
21584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21585 conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_lib_save_LIBS
21588 ac_res=`eval echo '${'$as_ac_Lib'}'`
21589 { echo "$as_me:$LINENO: result: $ac_res" >&5
21590 echo "${ECHO_T}$ac_res" >&6; }
21591 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21592 AST_ATANL_FOUND=yes
21593 else
21594 AST_ATANL_FOUND=no
21599 # now check for the header.
21600 if test "${AST_ATANL_FOUND}" = "yes"; then
21601 ATANL_LIB="${pbxlibdir} -lm "
21602 # if --with-ATANL=DIR has been specified, use it.
21603 if test "x${ATANL_DIR}" != "x"; then
21604 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21606 ATANL_INCLUDE="${ATANL_INCLUDE} "
21607 if test "x" = "x" ; then # no header, assume found
21608 ATANL_HEADER_FOUND="1"
21609 else # check for the header
21610 saved_cppflags="${CPPFLAGS}"
21611 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE}"
21612 if test "${ac_cv_header_+set}" = set; then
21613 { echo "$as_me:$LINENO: checking for " >&5
21614 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21615 if test "${ac_cv_header_+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21619 echo "${ECHO_T}$ac_cv_header_" >&6; }
21620 else
21621 # Is the header compilable?
21622 { echo "$as_me:$LINENO: checking usability" >&5
21623 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21624 cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h. */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 $ac_includes_default
21631 #include <>
21632 _ACEOF
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } && {
21647 test -z "$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 } && test -s conftest.$ac_objext; then
21650 ac_header_compiler=yes
21651 else
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_header_compiler=no
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21660 echo "${ECHO_T}$ac_header_compiler" >&6; }
21662 # Is the header present?
21663 { echo "$as_me:$LINENO: checking presence" >&5
21664 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h. */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 #include <>
21672 _ACEOF
21673 if { (ac_try="$ac_cpp conftest.$ac_ext"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } >/dev/null && {
21686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 }; then
21689 ac_header_preproc=yes
21690 else
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_header_preproc=no
21697 rm -f conftest.err conftest.$ac_ext
21698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21699 echo "${ECHO_T}$ac_header_preproc" >&6; }
21701 # So? What about this header?
21702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21703 yes:no: )
21704 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21705 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21707 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21708 ac_header_preproc=yes
21710 no:yes:* )
21711 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21712 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21714 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21716 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21717 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21718 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21719 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21720 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21721 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21722 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21723 ( cat <<\_ASBOX
21724 ## ------------------------------- ##
21725 ## Report this to www.asterisk.org ##
21726 ## ------------------------------- ##
21727 _ASBOX
21728 ) | sed "s/^/$as_me: WARNING: /" >&2
21730 esac
21731 { echo "$as_me:$LINENO: checking for " >&5
21732 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21733 if test "${ac_cv_header_+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736 ac_cv_header_=$ac_header_preproc
21738 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21739 echo "${ECHO_T}$ac_cv_header_" >&6; }
21742 if test $ac_cv_header_ = yes; then
21743 ATANL_HEADER_FOUND=1
21744 else
21745 ATANL_HEADER_FOUND=0
21749 CPPFLAGS="${saved_cppflags}"
21751 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21752 ATANL_LIB=""
21753 ATANL_INCLUDE=""
21754 else
21755 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21756 ATANL_LIB=""
21758 PBX_ATANL=1
21759 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21761 cat >>confdefs.h <<_ACEOF
21762 #define HAVE_ATANL 1
21763 _ACEOF
21766 cat >>confdefs.h <<_ACEOF
21767 #define HAVE_ATANL_VERSION
21768 _ACEOF
21775 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21776 pbxlibdir=""
21777 # if --with-ATAN2L=DIR has been specified, use it.
21778 if test "x${ATAN2L_DIR}" != "x"; then
21779 if test -d ${ATAN2L_DIR}/lib; then
21780 pbxlibdir="-L${ATAN2L_DIR}/lib"
21781 else
21782 pbxlibdir="-L${ATAN2L_DIR}"
21785 pbxfuncname="atan2l"
21786 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21787 AST_ATAN2L_FOUND=yes
21788 else
21789 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21790 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21791 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21792 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 else
21795 ac_check_lib_save_LIBS=$LIBS
21796 LIBS="-lm ${pbxlibdir} $LIBS"
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h. */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21804 /* Override any GCC internal prototype to avoid an error.
21805 Use char because int might match the return type of a GCC
21806 builtin and then its argument prototype would still apply. */
21807 #ifdef __cplusplus
21808 extern "C"
21809 #endif
21810 char ${pbxfuncname} ();
21812 main ()
21814 return ${pbxfuncname} ();
21816 return 0;
21818 _ACEOF
21819 rm -f conftest.$ac_objext conftest$ac_exeext
21820 if { (ac_try="$ac_link"
21821 case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_link") 2>conftest.er1
21827 ac_status=$?
21828 grep -v '^ *+' conftest.er1 >conftest.err
21829 rm -f conftest.er1
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } && {
21833 test -z "$ac_c_werror_flag" ||
21834 test ! -s conftest.err
21835 } && test -s conftest$ac_exeext &&
21836 $as_test_x conftest$ac_exeext; then
21837 eval "$as_ac_Lib=yes"
21838 else
21839 echo "$as_me: failed program was:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 eval "$as_ac_Lib=no"
21845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21846 conftest$ac_exeext conftest.$ac_ext
21847 LIBS=$ac_check_lib_save_LIBS
21849 ac_res=`eval echo '${'$as_ac_Lib'}'`
21850 { echo "$as_me:$LINENO: result: $ac_res" >&5
21851 echo "${ECHO_T}$ac_res" >&6; }
21852 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21853 AST_ATAN2L_FOUND=yes
21854 else
21855 AST_ATAN2L_FOUND=no
21860 # now check for the header.
21861 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21862 ATAN2L_LIB="${pbxlibdir} -lm "
21863 # if --with-ATAN2L=DIR has been specified, use it.
21864 if test "x${ATAN2L_DIR}" != "x"; then
21865 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21867 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21868 if test "x" = "x" ; then # no header, assume found
21869 ATAN2L_HEADER_FOUND="1"
21870 else # check for the header
21871 saved_cppflags="${CPPFLAGS}"
21872 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE}"
21873 if test "${ac_cv_header_+set}" = set; then
21874 { echo "$as_me:$LINENO: checking for " >&5
21875 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21876 if test "${ac_cv_header_+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21879 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21880 echo "${ECHO_T}$ac_cv_header_" >&6; }
21881 else
21882 # Is the header compilable?
21883 { echo "$as_me:$LINENO: checking usability" >&5
21884 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21885 cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h. */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 $ac_includes_default
21892 #include <>
21893 _ACEOF
21894 rm -f conftest.$ac_objext
21895 if { (ac_try="$ac_compile"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_compile") 2>conftest.er1
21902 ac_status=$?
21903 grep -v '^ *+' conftest.er1 >conftest.err
21904 rm -f conftest.er1
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && {
21908 test -z "$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 } && test -s conftest.$ac_objext; then
21911 ac_header_compiler=yes
21912 else
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ac_header_compiler=no
21919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21921 echo "${ECHO_T}$ac_header_compiler" >&6; }
21923 # Is the header present?
21924 { echo "$as_me:$LINENO: checking presence" >&5
21925 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21926 cat >conftest.$ac_ext <<_ACEOF
21927 /* confdefs.h. */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21932 #include <>
21933 _ACEOF
21934 if { (ac_try="$ac_cpp conftest.$ac_ext"
21935 case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21938 esac
21939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21941 ac_status=$?
21942 grep -v '^ *+' conftest.er1 >conftest.err
21943 rm -f conftest.er1
21944 cat conftest.err >&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } >/dev/null && {
21947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21948 test ! -s conftest.err
21949 }; then
21950 ac_header_preproc=yes
21951 else
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ac_header_preproc=no
21958 rm -f conftest.err conftest.$ac_ext
21959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21960 echo "${ECHO_T}$ac_header_preproc" >&6; }
21962 # So? What about this header?
21963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21964 yes:no: )
21965 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21966 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21967 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21968 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21969 ac_header_preproc=yes
21971 no:yes:* )
21972 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21973 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21975 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21977 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21979 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21981 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21983 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21984 ( cat <<\_ASBOX
21985 ## ------------------------------- ##
21986 ## Report this to www.asterisk.org ##
21987 ## ------------------------------- ##
21988 _ASBOX
21989 ) | sed "s/^/$as_me: WARNING: /" >&2
21991 esac
21992 { echo "$as_me:$LINENO: checking for " >&5
21993 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21994 if test "${ac_cv_header_+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21997 ac_cv_header_=$ac_header_preproc
21999 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22000 echo "${ECHO_T}$ac_cv_header_" >&6; }
22003 if test $ac_cv_header_ = yes; then
22004 ATAN2L_HEADER_FOUND=1
22005 else
22006 ATAN2L_HEADER_FOUND=0
22010 CPPFLAGS="${saved_cppflags}"
22012 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
22013 ATAN2L_LIB=""
22014 ATAN2L_INCLUDE=""
22015 else
22016 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22017 ATAN2L_LIB=""
22019 PBX_ATAN2L=1
22020 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_ATAN2L 1
22024 _ACEOF
22027 cat >>confdefs.h <<_ACEOF
22028 #define HAVE_ATAN2L_VERSION
22029 _ACEOF
22036 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
22037 pbxlibdir=""
22038 # if --with-POWL=DIR has been specified, use it.
22039 if test "x${POWL_DIR}" != "x"; then
22040 if test -d ${POWL_DIR}/lib; then
22041 pbxlibdir="-L${POWL_DIR}/lib"
22042 else
22043 pbxlibdir="-L${POWL_DIR}"
22046 pbxfuncname="powl"
22047 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22048 AST_POWL_FOUND=yes
22049 else
22050 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22051 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22052 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22053 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22054 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 else
22056 ac_check_lib_save_LIBS=$LIBS
22057 LIBS="-lm ${pbxlibdir} $LIBS"
22058 cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h. */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22065 /* Override any GCC internal prototype to avoid an error.
22066 Use char because int might match the return type of a GCC
22067 builtin and then its argument prototype would still apply. */
22068 #ifdef __cplusplus
22069 extern "C"
22070 #endif
22071 char ${pbxfuncname} ();
22073 main ()
22075 return ${pbxfuncname} ();
22077 return 0;
22079 _ACEOF
22080 rm -f conftest.$ac_objext conftest$ac_exeext
22081 if { (ac_try="$ac_link"
22082 case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22085 esac
22086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_link") 2>conftest.er1
22088 ac_status=$?
22089 grep -v '^ *+' conftest.er1 >conftest.err
22090 rm -f conftest.er1
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } && {
22094 test -z "$ac_c_werror_flag" ||
22095 test ! -s conftest.err
22096 } && test -s conftest$ac_exeext &&
22097 $as_test_x conftest$ac_exeext; then
22098 eval "$as_ac_Lib=yes"
22099 else
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 eval "$as_ac_Lib=no"
22106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22107 conftest$ac_exeext conftest.$ac_ext
22108 LIBS=$ac_check_lib_save_LIBS
22110 ac_res=`eval echo '${'$as_ac_Lib'}'`
22111 { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22113 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22114 AST_POWL_FOUND=yes
22115 else
22116 AST_POWL_FOUND=no
22121 # now check for the header.
22122 if test "${AST_POWL_FOUND}" = "yes"; then
22123 POWL_LIB="${pbxlibdir} -lm "
22124 # if --with-POWL=DIR has been specified, use it.
22125 if test "x${POWL_DIR}" != "x"; then
22126 POWL_INCLUDE="-I${POWL_DIR}/include"
22128 POWL_INCLUDE="${POWL_INCLUDE} "
22129 if test "x" = "x" ; then # no header, assume found
22130 POWL_HEADER_FOUND="1"
22131 else # check for the header
22132 saved_cppflags="${CPPFLAGS}"
22133 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE}"
22134 if test "${ac_cv_header_+set}" = set; then
22135 { echo "$as_me:$LINENO: checking for " >&5
22136 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22137 if test "${ac_cv_header_+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22140 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22141 echo "${ECHO_T}$ac_cv_header_" >&6; }
22142 else
22143 # Is the header compilable?
22144 { echo "$as_me:$LINENO: checking usability" >&5
22145 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 $ac_includes_default
22153 #include <>
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_compile") 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && {
22169 test -z "$ac_c_werror_flag" ||
22170 test ! -s conftest.err
22171 } && test -s conftest.$ac_objext; then
22172 ac_header_compiler=yes
22173 else
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22177 ac_header_compiler=no
22180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22182 echo "${ECHO_T}$ac_header_compiler" >&6; }
22184 # Is the header present?
22185 { echo "$as_me:$LINENO: checking presence" >&5
22186 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22187 cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h. */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 #include <>
22194 _ACEOF
22195 if { (ac_try="$ac_cpp conftest.$ac_ext"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22202 ac_status=$?
22203 grep -v '^ *+' conftest.er1 >conftest.err
22204 rm -f conftest.er1
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } >/dev/null && {
22208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 }; then
22211 ac_header_preproc=yes
22212 else
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_header_preproc=no
22219 rm -f conftest.err conftest.$ac_ext
22220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22221 echo "${ECHO_T}$ac_header_preproc" >&6; }
22223 # So? What about this header?
22224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22225 yes:no: )
22226 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22227 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22229 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22230 ac_header_preproc=yes
22232 no:yes:* )
22233 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22234 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22236 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22238 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22240 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22242 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22244 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22245 ( cat <<\_ASBOX
22246 ## ------------------------------- ##
22247 ## Report this to www.asterisk.org ##
22248 ## ------------------------------- ##
22249 _ASBOX
22250 ) | sed "s/^/$as_me: WARNING: /" >&2
22252 esac
22253 { echo "$as_me:$LINENO: checking for " >&5
22254 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22255 if test "${ac_cv_header_+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 else
22258 ac_cv_header_=$ac_header_preproc
22260 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22261 echo "${ECHO_T}$ac_cv_header_" >&6; }
22264 if test $ac_cv_header_ = yes; then
22265 POWL_HEADER_FOUND=1
22266 else
22267 POWL_HEADER_FOUND=0
22271 CPPFLAGS="${saved_cppflags}"
22273 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
22274 POWL_LIB=""
22275 POWL_INCLUDE=""
22276 else
22277 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22278 POWL_LIB=""
22280 PBX_POWL=1
22281 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22283 cat >>confdefs.h <<_ACEOF
22284 #define HAVE_POWL 1
22285 _ACEOF
22288 cat >>confdefs.h <<_ACEOF
22289 #define HAVE_POWL_VERSION
22290 _ACEOF
22297 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
22298 pbxlibdir=""
22299 # if --with-SQRTL=DIR has been specified, use it.
22300 if test "x${SQRTL_DIR}" != "x"; then
22301 if test -d ${SQRTL_DIR}/lib; then
22302 pbxlibdir="-L${SQRTL_DIR}/lib"
22303 else
22304 pbxlibdir="-L${SQRTL_DIR}"
22307 pbxfuncname="sqrtl"
22308 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22309 AST_SQRTL_FOUND=yes
22310 else
22311 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22312 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22313 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22314 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317 ac_check_lib_save_LIBS=$LIBS
22318 LIBS="-lm ${pbxlibdir} $LIBS"
22319 cat >conftest.$ac_ext <<_ACEOF
22320 /* confdefs.h. */
22321 _ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h. */
22326 /* Override any GCC internal prototype to avoid an error.
22327 Use char because int might match the return type of a GCC
22328 builtin and then its argument prototype would still apply. */
22329 #ifdef __cplusplus
22330 extern "C"
22331 #endif
22332 char ${pbxfuncname} ();
22334 main ()
22336 return ${pbxfuncname} ();
22338 return 0;
22340 _ACEOF
22341 rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (ac_try="$ac_link"
22343 case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_link") 2>conftest.er1
22349 ac_status=$?
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && {
22355 test -z "$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22357 } && test -s conftest$ac_exeext &&
22358 $as_test_x conftest$ac_exeext; then
22359 eval "$as_ac_Lib=yes"
22360 else
22361 echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22364 eval "$as_ac_Lib=no"
22367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22368 conftest$ac_exeext conftest.$ac_ext
22369 LIBS=$ac_check_lib_save_LIBS
22371 ac_res=`eval echo '${'$as_ac_Lib'}'`
22372 { echo "$as_me:$LINENO: result: $ac_res" >&5
22373 echo "${ECHO_T}$ac_res" >&6; }
22374 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22375 AST_SQRTL_FOUND=yes
22376 else
22377 AST_SQRTL_FOUND=no
22382 # now check for the header.
22383 if test "${AST_SQRTL_FOUND}" = "yes"; then
22384 SQRTL_LIB="${pbxlibdir} -lm "
22385 # if --with-SQRTL=DIR has been specified, use it.
22386 if test "x${SQRTL_DIR}" != "x"; then
22387 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
22389 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
22390 if test "x" = "x" ; then # no header, assume found
22391 SQRTL_HEADER_FOUND="1"
22392 else # check for the header
22393 saved_cppflags="${CPPFLAGS}"
22394 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE}"
22395 if test "${ac_cv_header_+set}" = set; then
22396 { echo "$as_me:$LINENO: checking for " >&5
22397 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22398 if test "${ac_cv_header_+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22402 echo "${ECHO_T}$ac_cv_header_" >&6; }
22403 else
22404 # Is the header compilable?
22405 { echo "$as_me:$LINENO: checking usability" >&5
22406 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22407 cat >conftest.$ac_ext <<_ACEOF
22408 /* confdefs.h. */
22409 _ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22413 $ac_includes_default
22414 #include <>
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_compile") 2>conftest.er1
22424 ac_status=$?
22425 grep -v '^ *+' conftest.er1 >conftest.err
22426 rm -f conftest.er1
22427 cat conftest.err >&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest.$ac_objext; then
22433 ac_header_compiler=yes
22434 else
22435 echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 ac_header_compiler=no
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22443 echo "${ECHO_T}$ac_header_compiler" >&6; }
22445 # Is the header present?
22446 { echo "$as_me:$LINENO: checking presence" >&5
22447 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22448 cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h. */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22454 #include <>
22455 _ACEOF
22456 if { (ac_try="$ac_cpp conftest.$ac_ext"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } >/dev/null && {
22469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22470 test ! -s conftest.err
22471 }; then
22472 ac_header_preproc=yes
22473 else
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 ac_header_preproc=no
22480 rm -f conftest.err conftest.$ac_ext
22481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22482 echo "${ECHO_T}$ac_header_preproc" >&6; }
22484 # So? What about this header?
22485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22486 yes:no: )
22487 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22488 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22489 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22490 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22491 ac_header_preproc=yes
22493 no:yes:* )
22494 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22495 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22496 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22497 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22498 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22499 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22500 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22501 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22503 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22504 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22505 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22506 ( cat <<\_ASBOX
22507 ## ------------------------------- ##
22508 ## Report this to www.asterisk.org ##
22509 ## ------------------------------- ##
22510 _ASBOX
22511 ) | sed "s/^/$as_me: WARNING: /" >&2
22513 esac
22514 { echo "$as_me:$LINENO: checking for " >&5
22515 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22516 if test "${ac_cv_header_+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519 ac_cv_header_=$ac_header_preproc
22521 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22522 echo "${ECHO_T}$ac_cv_header_" >&6; }
22525 if test $ac_cv_header_ = yes; then
22526 SQRTL_HEADER_FOUND=1
22527 else
22528 SQRTL_HEADER_FOUND=0
22532 CPPFLAGS="${saved_cppflags}"
22534 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22535 SQRTL_LIB=""
22536 SQRTL_INCLUDE=""
22537 else
22538 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22539 SQRTL_LIB=""
22541 PBX_SQRTL=1
22542 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22544 cat >>confdefs.h <<_ACEOF
22545 #define HAVE_SQRTL 1
22546 _ACEOF
22549 cat >>confdefs.h <<_ACEOF
22550 #define HAVE_SQRTL_VERSION
22551 _ACEOF
22558 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22559 pbxlibdir=""
22560 # if --with-RINTL=DIR has been specified, use it.
22561 if test "x${RINTL_DIR}" != "x"; then
22562 if test -d ${RINTL_DIR}/lib; then
22563 pbxlibdir="-L${RINTL_DIR}/lib"
22564 else
22565 pbxlibdir="-L${RINTL_DIR}"
22568 pbxfuncname="rintl"
22569 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22570 AST_RINTL_FOUND=yes
22571 else
22572 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22573 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22574 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22575 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578 ac_check_lib_save_LIBS=$LIBS
22579 LIBS="-lm ${pbxlibdir} $LIBS"
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h. */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22587 /* Override any GCC internal prototype to avoid an error.
22588 Use char because int might match the return type of a GCC
22589 builtin and then its argument prototype would still apply. */
22590 #ifdef __cplusplus
22591 extern "C"
22592 #endif
22593 char ${pbxfuncname} ();
22595 main ()
22597 return ${pbxfuncname} ();
22599 return 0;
22601 _ACEOF
22602 rm -f conftest.$ac_objext conftest$ac_exeext
22603 if { (ac_try="$ac_link"
22604 case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609 (eval "$ac_link") 2>conftest.er1
22610 ac_status=$?
22611 grep -v '^ *+' conftest.er1 >conftest.err
22612 rm -f conftest.er1
22613 cat conftest.err >&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } && {
22616 test -z "$ac_c_werror_flag" ||
22617 test ! -s conftest.err
22618 } && test -s conftest$ac_exeext &&
22619 $as_test_x conftest$ac_exeext; then
22620 eval "$as_ac_Lib=yes"
22621 else
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22625 eval "$as_ac_Lib=no"
22628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22629 conftest$ac_exeext conftest.$ac_ext
22630 LIBS=$ac_check_lib_save_LIBS
22632 ac_res=`eval echo '${'$as_ac_Lib'}'`
22633 { echo "$as_me:$LINENO: result: $ac_res" >&5
22634 echo "${ECHO_T}$ac_res" >&6; }
22635 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22636 AST_RINTL_FOUND=yes
22637 else
22638 AST_RINTL_FOUND=no
22643 # now check for the header.
22644 if test "${AST_RINTL_FOUND}" = "yes"; then
22645 RINTL_LIB="${pbxlibdir} -lm "
22646 # if --with-RINTL=DIR has been specified, use it.
22647 if test "x${RINTL_DIR}" != "x"; then
22648 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22650 RINTL_INCLUDE="${RINTL_INCLUDE} "
22651 if test "x" = "x" ; then # no header, assume found
22652 RINTL_HEADER_FOUND="1"
22653 else # check for the header
22654 saved_cppflags="${CPPFLAGS}"
22655 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE}"
22656 if test "${ac_cv_header_+set}" = set; then
22657 { echo "$as_me:$LINENO: checking for " >&5
22658 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22659 if test "${ac_cv_header_+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22663 echo "${ECHO_T}$ac_cv_header_" >&6; }
22664 else
22665 # Is the header compilable?
22666 { echo "$as_me:$LINENO: checking usability" >&5
22667 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 $ac_includes_default
22675 #include <>
22676 _ACEOF
22677 rm -f conftest.$ac_objext
22678 if { (ac_try="$ac_compile"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_compile") 2>conftest.er1
22685 ac_status=$?
22686 grep -v '^ *+' conftest.er1 >conftest.err
22687 rm -f conftest.er1
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } && {
22691 test -z "$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 } && test -s conftest.$ac_objext; then
22694 ac_header_compiler=yes
22695 else
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ac_header_compiler=no
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22704 echo "${ECHO_T}$ac_header_compiler" >&6; }
22706 # Is the header present?
22707 { echo "$as_me:$LINENO: checking presence" >&5
22708 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22709 cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h. */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22715 #include <>
22716 _ACEOF
22717 if { (ac_try="$ac_cpp conftest.$ac_ext"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22724 ac_status=$?
22725 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } >/dev/null && {
22730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 }; then
22733 ac_header_preproc=yes
22734 else
22735 echo "$as_me: failed program was:" >&5
22736 sed 's/^/| /' conftest.$ac_ext >&5
22738 ac_header_preproc=no
22741 rm -f conftest.err conftest.$ac_ext
22742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22743 echo "${ECHO_T}$ac_header_preproc" >&6; }
22745 # So? What about this header?
22746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22747 yes:no: )
22748 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22749 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22750 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22751 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22752 ac_header_preproc=yes
22754 no:yes:* )
22755 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22756 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22757 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22758 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22759 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22760 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22761 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22762 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22763 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22764 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22765 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22766 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22767 ( cat <<\_ASBOX
22768 ## ------------------------------- ##
22769 ## Report this to www.asterisk.org ##
22770 ## ------------------------------- ##
22771 _ASBOX
22772 ) | sed "s/^/$as_me: WARNING: /" >&2
22774 esac
22775 { echo "$as_me:$LINENO: checking for " >&5
22776 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22777 if test "${ac_cv_header_+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 else
22780 ac_cv_header_=$ac_header_preproc
22782 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22783 echo "${ECHO_T}$ac_cv_header_" >&6; }
22786 if test $ac_cv_header_ = yes; then
22787 RINTL_HEADER_FOUND=1
22788 else
22789 RINTL_HEADER_FOUND=0
22793 CPPFLAGS="${saved_cppflags}"
22795 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22796 RINTL_LIB=""
22797 RINTL_INCLUDE=""
22798 else
22799 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22800 RINTL_LIB=""
22802 PBX_RINTL=1
22803 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22805 cat >>confdefs.h <<_ACEOF
22806 #define HAVE_RINTL 1
22807 _ACEOF
22810 cat >>confdefs.h <<_ACEOF
22811 #define HAVE_RINTL_VERSION
22812 _ACEOF
22819 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22820 pbxlibdir=""
22821 # if --with-EXPL=DIR has been specified, use it.
22822 if test "x${EXPL_DIR}" != "x"; then
22823 if test -d ${EXPL_DIR}/lib; then
22824 pbxlibdir="-L${EXPL_DIR}/lib"
22825 else
22826 pbxlibdir="-L${EXPL_DIR}"
22829 pbxfuncname="expl"
22830 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22831 AST_EXPL_FOUND=yes
22832 else
22833 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22834 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22835 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22836 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 else
22839 ac_check_lib_save_LIBS=$LIBS
22840 LIBS="-lm ${pbxlibdir} $LIBS"
22841 cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h. */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22848 /* Override any GCC internal prototype to avoid an error.
22849 Use char because int might match the return type of a GCC
22850 builtin and then its argument prototype would still apply. */
22851 #ifdef __cplusplus
22852 extern "C"
22853 #endif
22854 char ${pbxfuncname} ();
22856 main ()
22858 return ${pbxfuncname} ();
22860 return 0;
22862 _ACEOF
22863 rm -f conftest.$ac_objext conftest$ac_exeext
22864 if { (ac_try="$ac_link"
22865 case "(($ac_try" in
22866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867 *) ac_try_echo=$ac_try;;
22868 esac
22869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22870 (eval "$ac_link") 2>conftest.er1
22871 ac_status=$?
22872 grep -v '^ *+' conftest.er1 >conftest.err
22873 rm -f conftest.er1
22874 cat conftest.err >&5
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } && {
22877 test -z "$ac_c_werror_flag" ||
22878 test ! -s conftest.err
22879 } && test -s conftest$ac_exeext &&
22880 $as_test_x conftest$ac_exeext; then
22881 eval "$as_ac_Lib=yes"
22882 else
22883 echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22886 eval "$as_ac_Lib=no"
22889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22890 conftest$ac_exeext conftest.$ac_ext
22891 LIBS=$ac_check_lib_save_LIBS
22893 ac_res=`eval echo '${'$as_ac_Lib'}'`
22894 { echo "$as_me:$LINENO: result: $ac_res" >&5
22895 echo "${ECHO_T}$ac_res" >&6; }
22896 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22897 AST_EXPL_FOUND=yes
22898 else
22899 AST_EXPL_FOUND=no
22904 # now check for the header.
22905 if test "${AST_EXPL_FOUND}" = "yes"; then
22906 EXPL_LIB="${pbxlibdir} -lm "
22907 # if --with-EXPL=DIR has been specified, use it.
22908 if test "x${EXPL_DIR}" != "x"; then
22909 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22911 EXPL_INCLUDE="${EXPL_INCLUDE} "
22912 if test "x" = "x" ; then # no header, assume found
22913 EXPL_HEADER_FOUND="1"
22914 else # check for the header
22915 saved_cppflags="${CPPFLAGS}"
22916 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE}"
22917 if test "${ac_cv_header_+set}" = set; then
22918 { echo "$as_me:$LINENO: checking for " >&5
22919 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22920 if test "${ac_cv_header_+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22924 echo "${ECHO_T}$ac_cv_header_" >&6; }
22925 else
22926 # Is the header compilable?
22927 { echo "$as_me:$LINENO: checking usability" >&5
22928 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h. */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935 $ac_includes_default
22936 #include <>
22937 _ACEOF
22938 rm -f conftest.$ac_objext
22939 if { (ac_try="$ac_compile"
22940 case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22943 esac
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945 (eval "$ac_compile") 2>conftest.er1
22946 ac_status=$?
22947 grep -v '^ *+' conftest.er1 >conftest.err
22948 rm -f conftest.er1
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest.$ac_objext; then
22955 ac_header_compiler=yes
22956 else
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 ac_header_compiler=no
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22965 echo "${ECHO_T}$ac_header_compiler" >&6; }
22967 # Is the header present?
22968 { echo "$as_me:$LINENO: checking presence" >&5
22969 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22970 cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h. */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22976 #include <>
22977 _ACEOF
22978 if { (ac_try="$ac_cpp conftest.$ac_ext"
22979 case "(($ac_try" in
22980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981 *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22985 ac_status=$?
22986 grep -v '^ *+' conftest.er1 >conftest.err
22987 rm -f conftest.er1
22988 cat conftest.err >&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } >/dev/null && {
22991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22992 test ! -s conftest.err
22993 }; then
22994 ac_header_preproc=yes
22995 else
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22999 ac_header_preproc=no
23002 rm -f conftest.err conftest.$ac_ext
23003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23004 echo "${ECHO_T}$ac_header_preproc" >&6; }
23006 # So? What about this header?
23007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23008 yes:no: )
23009 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23010 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23011 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23012 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23013 ac_header_preproc=yes
23015 no:yes:* )
23016 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23017 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23018 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23019 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23020 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23021 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23022 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23023 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23024 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23025 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23026 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23027 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23028 ( cat <<\_ASBOX
23029 ## ------------------------------- ##
23030 ## Report this to www.asterisk.org ##
23031 ## ------------------------------- ##
23032 _ASBOX
23033 ) | sed "s/^/$as_me: WARNING: /" >&2
23035 esac
23036 { echo "$as_me:$LINENO: checking for " >&5
23037 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23038 if test "${ac_cv_header_+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041 ac_cv_header_=$ac_header_preproc
23043 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23044 echo "${ECHO_T}$ac_cv_header_" >&6; }
23047 if test $ac_cv_header_ = yes; then
23048 EXPL_HEADER_FOUND=1
23049 else
23050 EXPL_HEADER_FOUND=0
23054 CPPFLAGS="${saved_cppflags}"
23056 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
23057 EXPL_LIB=""
23058 EXPL_INCLUDE=""
23059 else
23060 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23061 EXPL_LIB=""
23063 PBX_EXPL=1
23064 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23066 cat >>confdefs.h <<_ACEOF
23067 #define HAVE_EXPL 1
23068 _ACEOF
23071 cat >>confdefs.h <<_ACEOF
23072 #define HAVE_EXPL_VERSION
23073 _ACEOF
23080 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
23081 pbxlibdir=""
23082 # if --with-LOGL=DIR has been specified, use it.
23083 if test "x${LOGL_DIR}" != "x"; then
23084 if test -d ${LOGL_DIR}/lib; then
23085 pbxlibdir="-L${LOGL_DIR}/lib"
23086 else
23087 pbxlibdir="-L${LOGL_DIR}"
23090 pbxfuncname="logl"
23091 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23092 AST_LOGL_FOUND=yes
23093 else
23094 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23095 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23096 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23097 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100 ac_check_lib_save_LIBS=$LIBS
23101 LIBS="-lm ${pbxlibdir} $LIBS"
23102 cat >conftest.$ac_ext <<_ACEOF
23103 /* confdefs.h. */
23104 _ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h. */
23109 /* Override any GCC internal prototype to avoid an error.
23110 Use char because int might match the return type of a GCC
23111 builtin and then its argument prototype would still apply. */
23112 #ifdef __cplusplus
23113 extern "C"
23114 #endif
23115 char ${pbxfuncname} ();
23117 main ()
23119 return ${pbxfuncname} ();
23121 return 0;
23123 _ACEOF
23124 rm -f conftest.$ac_objext conftest$ac_exeext
23125 if { (ac_try="$ac_link"
23126 case "(($ac_try" in
23127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23128 *) ac_try_echo=$ac_try;;
23129 esac
23130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23131 (eval "$ac_link") 2>conftest.er1
23132 ac_status=$?
23133 grep -v '^ *+' conftest.er1 >conftest.err
23134 rm -f conftest.er1
23135 cat conftest.err >&5
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); } && {
23138 test -z "$ac_c_werror_flag" ||
23139 test ! -s conftest.err
23140 } && test -s conftest$ac_exeext &&
23141 $as_test_x conftest$ac_exeext; then
23142 eval "$as_ac_Lib=yes"
23143 else
23144 echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 eval "$as_ac_Lib=no"
23150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23151 conftest$ac_exeext conftest.$ac_ext
23152 LIBS=$ac_check_lib_save_LIBS
23154 ac_res=`eval echo '${'$as_ac_Lib'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23157 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23158 AST_LOGL_FOUND=yes
23159 else
23160 AST_LOGL_FOUND=no
23165 # now check for the header.
23166 if test "${AST_LOGL_FOUND}" = "yes"; then
23167 LOGL_LIB="${pbxlibdir} -lm "
23168 # if --with-LOGL=DIR has been specified, use it.
23169 if test "x${LOGL_DIR}" != "x"; then
23170 LOGL_INCLUDE="-I${LOGL_DIR}/include"
23172 LOGL_INCLUDE="${LOGL_INCLUDE} "
23173 if test "x" = "x" ; then # no header, assume found
23174 LOGL_HEADER_FOUND="1"
23175 else # check for the header
23176 saved_cppflags="${CPPFLAGS}"
23177 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE}"
23178 if test "${ac_cv_header_+set}" = set; then
23179 { echo "$as_me:$LINENO: checking for " >&5
23180 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23181 if test "${ac_cv_header_+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23184 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23185 echo "${ECHO_T}$ac_cv_header_" >&6; }
23186 else
23187 # Is the header compilable?
23188 { echo "$as_me:$LINENO: checking usability" >&5
23189 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h. */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23196 $ac_includes_default
23197 #include <>
23198 _ACEOF
23199 rm -f conftest.$ac_objext
23200 if { (ac_try="$ac_compile"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23204 esac
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_compile") 2>conftest.er1
23207 ac_status=$?
23208 grep -v '^ *+' conftest.er1 >conftest.err
23209 rm -f conftest.er1
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest.$ac_objext; then
23216 ac_header_compiler=yes
23217 else
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_header_compiler=no
23224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23226 echo "${ECHO_T}$ac_header_compiler" >&6; }
23228 # Is the header present?
23229 { echo "$as_me:$LINENO: checking presence" >&5
23230 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23231 cat >conftest.$ac_ext <<_ACEOF
23232 /* confdefs.h. */
23233 _ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 #include <>
23238 _ACEOF
23239 if { (ac_try="$ac_cpp conftest.$ac_ext"
23240 case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23246 ac_status=$?
23247 grep -v '^ *+' conftest.er1 >conftest.err
23248 rm -f conftest.er1
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } >/dev/null && {
23252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23253 test ! -s conftest.err
23254 }; then
23255 ac_header_preproc=yes
23256 else
23257 echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23260 ac_header_preproc=no
23263 rm -f conftest.err conftest.$ac_ext
23264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23265 echo "${ECHO_T}$ac_header_preproc" >&6; }
23267 # So? What about this header?
23268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23269 yes:no: )
23270 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23271 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23272 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23273 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23274 ac_header_preproc=yes
23276 no:yes:* )
23277 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23278 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23279 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23280 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23281 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23282 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23283 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23284 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23285 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23286 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23287 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23288 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23289 ( cat <<\_ASBOX
23290 ## ------------------------------- ##
23291 ## Report this to www.asterisk.org ##
23292 ## ------------------------------- ##
23293 _ASBOX
23294 ) | sed "s/^/$as_me: WARNING: /" >&2
23296 esac
23297 { echo "$as_me:$LINENO: checking for " >&5
23298 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23299 if test "${ac_cv_header_+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302 ac_cv_header_=$ac_header_preproc
23304 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23305 echo "${ECHO_T}$ac_cv_header_" >&6; }
23308 if test $ac_cv_header_ = yes; then
23309 LOGL_HEADER_FOUND=1
23310 else
23311 LOGL_HEADER_FOUND=0
23315 CPPFLAGS="${saved_cppflags}"
23317 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
23318 LOGL_LIB=""
23319 LOGL_INCLUDE=""
23320 else
23321 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23322 LOGL_LIB=""
23324 PBX_LOGL=1
23325 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23327 cat >>confdefs.h <<_ACEOF
23328 #define HAVE_LOGL 1
23329 _ACEOF
23332 cat >>confdefs.h <<_ACEOF
23333 #define HAVE_LOGL_VERSION
23334 _ACEOF
23341 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
23342 pbxlibdir=""
23343 # if --with-REMAINDERL=DIR has been specified, use it.
23344 if test "x${REMAINDERL_DIR}" != "x"; then
23345 if test -d ${REMAINDERL_DIR}/lib; then
23346 pbxlibdir="-L${REMAINDERL_DIR}/lib"
23347 else
23348 pbxlibdir="-L${REMAINDERL_DIR}"
23351 pbxfuncname="remainderl"
23352 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23353 AST_REMAINDERL_FOUND=yes
23354 else
23355 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23356 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23357 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23358 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361 ac_check_lib_save_LIBS=$LIBS
23362 LIBS="-lm ${pbxlibdir} $LIBS"
23363 cat >conftest.$ac_ext <<_ACEOF
23364 /* confdefs.h. */
23365 _ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h. */
23370 /* Override any GCC internal prototype to avoid an error.
23371 Use char because int might match the return type of a GCC
23372 builtin and then its argument prototype would still apply. */
23373 #ifdef __cplusplus
23374 extern "C"
23375 #endif
23376 char ${pbxfuncname} ();
23378 main ()
23380 return ${pbxfuncname} ();
23382 return 0;
23384 _ACEOF
23385 rm -f conftest.$ac_objext conftest$ac_exeext
23386 if { (ac_try="$ac_link"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23390 esac
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_link") 2>conftest.er1
23393 ac_status=$?
23394 grep -v '^ *+' conftest.er1 >conftest.err
23395 rm -f conftest.er1
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest$ac_exeext &&
23402 $as_test_x conftest$ac_exeext; then
23403 eval "$as_ac_Lib=yes"
23404 else
23405 echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23408 eval "$as_ac_Lib=no"
23411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23412 conftest$ac_exeext conftest.$ac_ext
23413 LIBS=$ac_check_lib_save_LIBS
23415 ac_res=`eval echo '${'$as_ac_Lib'}'`
23416 { echo "$as_me:$LINENO: result: $ac_res" >&5
23417 echo "${ECHO_T}$ac_res" >&6; }
23418 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23419 AST_REMAINDERL_FOUND=yes
23420 else
23421 AST_REMAINDERL_FOUND=no
23426 # now check for the header.
23427 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
23428 REMAINDERL_LIB="${pbxlibdir} -lm "
23429 # if --with-REMAINDERL=DIR has been specified, use it.
23430 if test "x${REMAINDERL_DIR}" != "x"; then
23431 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
23433 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
23434 if test "x" = "x" ; then # no header, assume found
23435 REMAINDERL_HEADER_FOUND="1"
23436 else # check for the header
23437 saved_cppflags="${CPPFLAGS}"
23438 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE}"
23439 if test "${ac_cv_header_+set}" = set; then
23440 { echo "$as_me:$LINENO: checking for " >&5
23441 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23442 if test "${ac_cv_header_+set}" = set; then
23443 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23446 echo "${ECHO_T}$ac_cv_header_" >&6; }
23447 else
23448 # Is the header compilable?
23449 { echo "$as_me:$LINENO: checking usability" >&5
23450 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23451 cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h. */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 $ac_includes_default
23458 #include <>
23459 _ACEOF
23460 rm -f conftest.$ac_objext
23461 if { (ac_try="$ac_compile"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477 ac_header_compiler=yes
23478 else
23479 echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_header_compiler=no
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23487 echo "${ECHO_T}$ac_header_compiler" >&6; }
23489 # Is the header present?
23490 { echo "$as_me:$LINENO: checking presence" >&5
23491 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23492 cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h. */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 #include <>
23499 _ACEOF
23500 if { (ac_try="$ac_cpp conftest.$ac_ext"
23501 case "(($ac_try" in
23502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23503 *) ac_try_echo=$ac_try;;
23504 esac
23505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23507 ac_status=$?
23508 grep -v '^ *+' conftest.er1 >conftest.err
23509 rm -f conftest.er1
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } >/dev/null && {
23513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23514 test ! -s conftest.err
23515 }; then
23516 ac_header_preproc=yes
23517 else
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_header_preproc=no
23524 rm -f conftest.err conftest.$ac_ext
23525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23526 echo "${ECHO_T}$ac_header_preproc" >&6; }
23528 # So? What about this header?
23529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23530 yes:no: )
23531 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23532 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23533 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23534 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23535 ac_header_preproc=yes
23537 no:yes:* )
23538 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23539 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23540 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23541 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23542 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23543 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23544 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23545 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23546 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23547 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23548 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23549 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23550 ( cat <<\_ASBOX
23551 ## ------------------------------- ##
23552 ## Report this to www.asterisk.org ##
23553 ## ------------------------------- ##
23554 _ASBOX
23555 ) | sed "s/^/$as_me: WARNING: /" >&2
23557 esac
23558 { echo "$as_me:$LINENO: checking for " >&5
23559 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23560 if test "${ac_cv_header_+set}" = set; then
23561 echo $ECHO_N "(cached) $ECHO_C" >&6
23562 else
23563 ac_cv_header_=$ac_header_preproc
23565 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23566 echo "${ECHO_T}$ac_cv_header_" >&6; }
23569 if test $ac_cv_header_ = yes; then
23570 REMAINDERL_HEADER_FOUND=1
23571 else
23572 REMAINDERL_HEADER_FOUND=0
23576 CPPFLAGS="${saved_cppflags}"
23578 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23579 REMAINDERL_LIB=""
23580 REMAINDERL_INCLUDE=""
23581 else
23582 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23583 REMAINDERL_LIB=""
23585 PBX_REMAINDERL=1
23586 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23588 cat >>confdefs.h <<_ACEOF
23589 #define HAVE_REMAINDERL 1
23590 _ACEOF
23593 cat >>confdefs.h <<_ACEOF
23594 #define HAVE_REMAINDERL_VERSION
23595 _ACEOF
23602 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23603 pbxlibdir=""
23604 # if --with-FMODL=DIR has been specified, use it.
23605 if test "x${FMODL_DIR}" != "x"; then
23606 if test -d ${FMODL_DIR}/lib; then
23607 pbxlibdir="-L${FMODL_DIR}/lib"
23608 else
23609 pbxlibdir="-L${FMODL_DIR}"
23612 pbxfuncname="fmodl"
23613 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23614 AST_FMODL_FOUND=yes
23615 else
23616 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23617 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23618 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23619 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23620 echo $ECHO_N "(cached) $ECHO_C" >&6
23621 else
23622 ac_check_lib_save_LIBS=$LIBS
23623 LIBS="-lm ${pbxlibdir} $LIBS"
23624 cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h. */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23631 /* Override any GCC internal prototype to avoid an error.
23632 Use char because int might match the return type of a GCC
23633 builtin and then its argument prototype would still apply. */
23634 #ifdef __cplusplus
23635 extern "C"
23636 #endif
23637 char ${pbxfuncname} ();
23639 main ()
23641 return ${pbxfuncname} ();
23643 return 0;
23645 _ACEOF
23646 rm -f conftest.$ac_objext conftest$ac_exeext
23647 if { (ac_try="$ac_link"
23648 case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23651 esac
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_link") 2>conftest.er1
23654 ac_status=$?
23655 grep -v '^ *+' conftest.er1 >conftest.err
23656 rm -f conftest.er1
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } && {
23660 test -z "$ac_c_werror_flag" ||
23661 test ! -s conftest.err
23662 } && test -s conftest$ac_exeext &&
23663 $as_test_x conftest$ac_exeext; then
23664 eval "$as_ac_Lib=yes"
23665 else
23666 echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23669 eval "$as_ac_Lib=no"
23672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23673 conftest$ac_exeext conftest.$ac_ext
23674 LIBS=$ac_check_lib_save_LIBS
23676 ac_res=`eval echo '${'$as_ac_Lib'}'`
23677 { echo "$as_me:$LINENO: result: $ac_res" >&5
23678 echo "${ECHO_T}$ac_res" >&6; }
23679 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23680 AST_FMODL_FOUND=yes
23681 else
23682 AST_FMODL_FOUND=no
23687 # now check for the header.
23688 if test "${AST_FMODL_FOUND}" = "yes"; then
23689 FMODL_LIB="${pbxlibdir} -lm "
23690 # if --with-FMODL=DIR has been specified, use it.
23691 if test "x${FMODL_DIR}" != "x"; then
23692 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23694 FMODL_INCLUDE="${FMODL_INCLUDE} "
23695 if test "x" = "x" ; then # no header, assume found
23696 FMODL_HEADER_FOUND="1"
23697 else # check for the header
23698 saved_cppflags="${CPPFLAGS}"
23699 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE}"
23700 if test "${ac_cv_header_+set}" = set; then
23701 { echo "$as_me:$LINENO: checking for " >&5
23702 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23703 if test "${ac_cv_header_+set}" = set; then
23704 echo $ECHO_N "(cached) $ECHO_C" >&6
23706 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23707 echo "${ECHO_T}$ac_cv_header_" >&6; }
23708 else
23709 # Is the header compilable?
23710 { echo "$as_me:$LINENO: checking usability" >&5
23711 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23712 cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h. */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 $ac_includes_default
23719 #include <>
23720 _ACEOF
23721 rm -f conftest.$ac_objext
23722 if { (ac_try="$ac_compile"
23723 case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23726 esac
23727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23728 (eval "$ac_compile") 2>conftest.er1
23729 ac_status=$?
23730 grep -v '^ *+' conftest.er1 >conftest.err
23731 rm -f conftest.er1
23732 cat conftest.err >&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } && {
23735 test -z "$ac_c_werror_flag" ||
23736 test ! -s conftest.err
23737 } && test -s conftest.$ac_objext; then
23738 ac_header_compiler=yes
23739 else
23740 echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23743 ac_header_compiler=no
23746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23748 echo "${ECHO_T}$ac_header_compiler" >&6; }
23750 # Is the header present?
23751 { echo "$as_me:$LINENO: checking presence" >&5
23752 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23753 cat >conftest.$ac_ext <<_ACEOF
23754 /* confdefs.h. */
23755 _ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23759 #include <>
23760 _ACEOF
23761 if { (ac_try="$ac_cpp conftest.$ac_ext"
23762 case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23765 esac
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23768 ac_status=$?
23769 grep -v '^ *+' conftest.er1 >conftest.err
23770 rm -f conftest.er1
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } >/dev/null && {
23774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 }; then
23777 ac_header_preproc=yes
23778 else
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 ac_header_preproc=no
23785 rm -f conftest.err conftest.$ac_ext
23786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23787 echo "${ECHO_T}$ac_header_preproc" >&6; }
23789 # So? What about this header?
23790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23791 yes:no: )
23792 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23793 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23794 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23795 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23796 ac_header_preproc=yes
23798 no:yes:* )
23799 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23800 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23801 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23802 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23803 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23804 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23805 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23806 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23807 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23808 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23809 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23810 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23811 ( cat <<\_ASBOX
23812 ## ------------------------------- ##
23813 ## Report this to www.asterisk.org ##
23814 ## ------------------------------- ##
23815 _ASBOX
23816 ) | sed "s/^/$as_me: WARNING: /" >&2
23818 esac
23819 { echo "$as_me:$LINENO: checking for " >&5
23820 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23821 if test "${ac_cv_header_+set}" = set; then
23822 echo $ECHO_N "(cached) $ECHO_C" >&6
23823 else
23824 ac_cv_header_=$ac_header_preproc
23826 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23827 echo "${ECHO_T}$ac_cv_header_" >&6; }
23830 if test $ac_cv_header_ = yes; then
23831 FMODL_HEADER_FOUND=1
23832 else
23833 FMODL_HEADER_FOUND=0
23837 CPPFLAGS="${saved_cppflags}"
23839 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23840 FMODL_LIB=""
23841 FMODL_INCLUDE=""
23842 else
23843 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23844 FMODL_LIB=""
23846 PBX_FMODL=1
23847 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23849 cat >>confdefs.h <<_ACEOF
23850 #define HAVE_FMODL 1
23851 _ACEOF
23854 cat >>confdefs.h <<_ACEOF
23855 #define HAVE_FMODL_VERSION
23856 _ACEOF
23863 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23864 pbxlibdir=""
23865 # if --with-ROUNDL=DIR has been specified, use it.
23866 if test "x${ROUNDL_DIR}" != "x"; then
23867 if test -d ${ROUNDL_DIR}/lib; then
23868 pbxlibdir="-L${ROUNDL_DIR}/lib"
23869 else
23870 pbxlibdir="-L${ROUNDL_DIR}"
23873 pbxfuncname="roundl"
23874 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23875 AST_ROUNDL_FOUND=yes
23876 else
23877 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23878 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23879 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23880 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23881 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 else
23883 ac_check_lib_save_LIBS=$LIBS
23884 LIBS="-lm ${pbxlibdir} $LIBS"
23885 cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h. */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23892 /* Override any GCC internal prototype to avoid an error.
23893 Use char because int might match the return type of a GCC
23894 builtin and then its argument prototype would still apply. */
23895 #ifdef __cplusplus
23896 extern "C"
23897 #endif
23898 char ${pbxfuncname} ();
23900 main ()
23902 return ${pbxfuncname} ();
23904 return 0;
23906 _ACEOF
23907 rm -f conftest.$ac_objext conftest$ac_exeext
23908 if { (ac_try="$ac_link"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912 esac
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_link") 2>conftest.er1
23915 ac_status=$?
23916 grep -v '^ *+' conftest.er1 >conftest.err
23917 rm -f conftest.er1
23918 cat conftest.err >&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } && {
23921 test -z "$ac_c_werror_flag" ||
23922 test ! -s conftest.err
23923 } && test -s conftest$ac_exeext &&
23924 $as_test_x conftest$ac_exeext; then
23925 eval "$as_ac_Lib=yes"
23926 else
23927 echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 eval "$as_ac_Lib=no"
23933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23934 conftest$ac_exeext conftest.$ac_ext
23935 LIBS=$ac_check_lib_save_LIBS
23937 ac_res=`eval echo '${'$as_ac_Lib'}'`
23938 { echo "$as_me:$LINENO: result: $ac_res" >&5
23939 echo "${ECHO_T}$ac_res" >&6; }
23940 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23941 AST_ROUNDL_FOUND=yes
23942 else
23943 AST_ROUNDL_FOUND=no
23948 # now check for the header.
23949 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23950 ROUNDL_LIB="${pbxlibdir} -lm "
23951 # if --with-ROUNDL=DIR has been specified, use it.
23952 if test "x${ROUNDL_DIR}" != "x"; then
23953 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23955 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23956 if test "x" = "x" ; then # no header, assume found
23957 ROUNDL_HEADER_FOUND="1"
23958 else # check for the header
23959 saved_cppflags="${CPPFLAGS}"
23960 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE}"
23961 if test "${ac_cv_header_+set}" = set; then
23962 { echo "$as_me:$LINENO: checking for " >&5
23963 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23964 if test "${ac_cv_header_+set}" = set; then
23965 echo $ECHO_N "(cached) $ECHO_C" >&6
23967 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23968 echo "${ECHO_T}$ac_cv_header_" >&6; }
23969 else
23970 # Is the header compilable?
23971 { echo "$as_me:$LINENO: checking usability" >&5
23972 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23973 cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h. */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23979 $ac_includes_default
23980 #include <>
23981 _ACEOF
23982 rm -f conftest.$ac_objext
23983 if { (ac_try="$ac_compile"
23984 case "(($ac_try" in
23985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986 *) ac_try_echo=$ac_try;;
23987 esac
23988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23989 (eval "$ac_compile") 2>conftest.er1
23990 ac_status=$?
23991 grep -v '^ *+' conftest.er1 >conftest.err
23992 rm -f conftest.er1
23993 cat conftest.err >&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } && {
23996 test -z "$ac_c_werror_flag" ||
23997 test ! -s conftest.err
23998 } && test -s conftest.$ac_objext; then
23999 ac_header_compiler=yes
24000 else
24001 echo "$as_me: failed program was:" >&5
24002 sed 's/^/| /' conftest.$ac_ext >&5
24004 ac_header_compiler=no
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24009 echo "${ECHO_T}$ac_header_compiler" >&6; }
24011 # Is the header present?
24012 { echo "$as_me:$LINENO: checking presence" >&5
24013 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24014 cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h. */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h. */
24020 #include <>
24021 _ACEOF
24022 if { (ac_try="$ac_cpp conftest.$ac_ext"
24023 case "(($ac_try" in
24024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24025 *) ac_try_echo=$ac_try;;
24026 esac
24027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24029 ac_status=$?
24030 grep -v '^ *+' conftest.er1 >conftest.err
24031 rm -f conftest.er1
24032 cat conftest.err >&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } >/dev/null && {
24035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24036 test ! -s conftest.err
24037 }; then
24038 ac_header_preproc=yes
24039 else
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24043 ac_header_preproc=no
24046 rm -f conftest.err conftest.$ac_ext
24047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24048 echo "${ECHO_T}$ac_header_preproc" >&6; }
24050 # So? What about this header?
24051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24052 yes:no: )
24053 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24054 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24055 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24056 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24057 ac_header_preproc=yes
24059 no:yes:* )
24060 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24061 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24062 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24063 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24064 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24065 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24066 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24067 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24068 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24069 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24070 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24071 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24072 ( cat <<\_ASBOX
24073 ## ------------------------------- ##
24074 ## Report this to www.asterisk.org ##
24075 ## ------------------------------- ##
24076 _ASBOX
24077 ) | sed "s/^/$as_me: WARNING: /" >&2
24079 esac
24080 { echo "$as_me:$LINENO: checking for " >&5
24081 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24082 if test "${ac_cv_header_+set}" = set; then
24083 echo $ECHO_N "(cached) $ECHO_C" >&6
24084 else
24085 ac_cv_header_=$ac_header_preproc
24087 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24088 echo "${ECHO_T}$ac_cv_header_" >&6; }
24091 if test $ac_cv_header_ = yes; then
24092 ROUNDL_HEADER_FOUND=1
24093 else
24094 ROUNDL_HEADER_FOUND=0
24098 CPPFLAGS="${saved_cppflags}"
24100 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
24101 ROUNDL_LIB=""
24102 ROUNDL_INCLUDE=""
24103 else
24104 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24105 ROUNDL_LIB=""
24107 PBX_ROUNDL=1
24108 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24110 cat >>confdefs.h <<_ACEOF
24111 #define HAVE_ROUNDL 1
24112 _ACEOF
24115 cat >>confdefs.h <<_ACEOF
24116 #define HAVE_ROUNDL_VERSION
24117 _ACEOF
24124 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
24125 pbxlibdir=""
24126 # if --with-TRUNCL=DIR has been specified, use it.
24127 if test "x${TRUNCL_DIR}" != "x"; then
24128 if test -d ${TRUNCL_DIR}/lib; then
24129 pbxlibdir="-L${TRUNCL_DIR}/lib"
24130 else
24131 pbxlibdir="-L${TRUNCL_DIR}"
24134 pbxfuncname="truncl"
24135 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24136 AST_TRUNCL_FOUND=yes
24137 else
24138 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24139 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24140 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24141 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24142 echo $ECHO_N "(cached) $ECHO_C" >&6
24143 else
24144 ac_check_lib_save_LIBS=$LIBS
24145 LIBS="-lm ${pbxlibdir} $LIBS"
24146 cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h. */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24153 /* Override any GCC internal prototype to avoid an error.
24154 Use char because int might match the return type of a GCC
24155 builtin and then its argument prototype would still apply. */
24156 #ifdef __cplusplus
24157 extern "C"
24158 #endif
24159 char ${pbxfuncname} ();
24161 main ()
24163 return ${pbxfuncname} ();
24165 return 0;
24167 _ACEOF
24168 rm -f conftest.$ac_objext conftest$ac_exeext
24169 if { (ac_try="$ac_link"
24170 case "(($ac_try" in
24171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172 *) ac_try_echo=$ac_try;;
24173 esac
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175 (eval "$ac_link") 2>conftest.er1
24176 ac_status=$?
24177 grep -v '^ *+' conftest.er1 >conftest.err
24178 rm -f conftest.er1
24179 cat conftest.err >&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } && {
24182 test -z "$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24184 } && test -s conftest$ac_exeext &&
24185 $as_test_x conftest$ac_exeext; then
24186 eval "$as_ac_Lib=yes"
24187 else
24188 echo "$as_me: failed program was:" >&5
24189 sed 's/^/| /' conftest.$ac_ext >&5
24191 eval "$as_ac_Lib=no"
24194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24195 conftest$ac_exeext conftest.$ac_ext
24196 LIBS=$ac_check_lib_save_LIBS
24198 ac_res=`eval echo '${'$as_ac_Lib'}'`
24199 { echo "$as_me:$LINENO: result: $ac_res" >&5
24200 echo "${ECHO_T}$ac_res" >&6; }
24201 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24202 AST_TRUNCL_FOUND=yes
24203 else
24204 AST_TRUNCL_FOUND=no
24209 # now check for the header.
24210 if test "${AST_TRUNCL_FOUND}" = "yes"; then
24211 TRUNCL_LIB="${pbxlibdir} -lm "
24212 # if --with-TRUNCL=DIR has been specified, use it.
24213 if test "x${TRUNCL_DIR}" != "x"; then
24214 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
24216 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
24217 if test "x" = "x" ; then # no header, assume found
24218 TRUNCL_HEADER_FOUND="1"
24219 else # check for the header
24220 saved_cppflags="${CPPFLAGS}"
24221 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE}"
24222 if test "${ac_cv_header_+set}" = set; then
24223 { echo "$as_me:$LINENO: checking for " >&5
24224 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24225 if test "${ac_cv_header_+set}" = set; then
24226 echo $ECHO_N "(cached) $ECHO_C" >&6
24228 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24229 echo "${ECHO_T}$ac_cv_header_" >&6; }
24230 else
24231 # Is the header compilable?
24232 { echo "$as_me:$LINENO: checking usability" >&5
24233 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24234 cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h. */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 $ac_includes_default
24241 #include <>
24242 _ACEOF
24243 rm -f conftest.$ac_objext
24244 if { (ac_try="$ac_compile"
24245 case "(($ac_try" in
24246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247 *) ac_try_echo=$ac_try;;
24248 esac
24249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24250 (eval "$ac_compile") 2>conftest.er1
24251 ac_status=$?
24252 grep -v '^ *+' conftest.er1 >conftest.err
24253 rm -f conftest.er1
24254 cat conftest.err >&5
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); } && {
24257 test -z "$ac_c_werror_flag" ||
24258 test ! -s conftest.err
24259 } && test -s conftest.$ac_objext; then
24260 ac_header_compiler=yes
24261 else
24262 echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24265 ac_header_compiler=no
24268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24270 echo "${ECHO_T}$ac_header_compiler" >&6; }
24272 # Is the header present?
24273 { echo "$as_me:$LINENO: checking presence" >&5
24274 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24275 cat >conftest.$ac_ext <<_ACEOF
24276 /* confdefs.h. */
24277 _ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h. */
24281 #include <>
24282 _ACEOF
24283 if { (ac_try="$ac_cpp conftest.$ac_ext"
24284 case "(($ac_try" in
24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24287 esac
24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24290 ac_status=$?
24291 grep -v '^ *+' conftest.er1 >conftest.err
24292 rm -f conftest.er1
24293 cat conftest.err >&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } >/dev/null && {
24296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 }; then
24299 ac_header_preproc=yes
24300 else
24301 echo "$as_me: failed program was:" >&5
24302 sed 's/^/| /' conftest.$ac_ext >&5
24304 ac_header_preproc=no
24307 rm -f conftest.err conftest.$ac_ext
24308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24309 echo "${ECHO_T}$ac_header_preproc" >&6; }
24311 # So? What about this header?
24312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24313 yes:no: )
24314 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24315 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24316 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24317 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24318 ac_header_preproc=yes
24320 no:yes:* )
24321 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24322 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24323 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24324 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24325 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24326 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24327 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24328 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24329 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24330 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24331 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24332 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24333 ( cat <<\_ASBOX
24334 ## ------------------------------- ##
24335 ## Report this to www.asterisk.org ##
24336 ## ------------------------------- ##
24337 _ASBOX
24338 ) | sed "s/^/$as_me: WARNING: /" >&2
24340 esac
24341 { echo "$as_me:$LINENO: checking for " >&5
24342 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24343 if test "${ac_cv_header_+set}" = set; then
24344 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 else
24346 ac_cv_header_=$ac_header_preproc
24348 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24349 echo "${ECHO_T}$ac_cv_header_" >&6; }
24352 if test $ac_cv_header_ = yes; then
24353 TRUNCL_HEADER_FOUND=1
24354 else
24355 TRUNCL_HEADER_FOUND=0
24359 CPPFLAGS="${saved_cppflags}"
24361 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
24362 TRUNCL_LIB=""
24363 TRUNCL_INCLUDE=""
24364 else
24365 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24366 TRUNCL_LIB=""
24368 PBX_TRUNCL=1
24369 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24371 cat >>confdefs.h <<_ACEOF
24372 #define HAVE_TRUNCL 1
24373 _ACEOF
24376 cat >>confdefs.h <<_ACEOF
24377 #define HAVE_TRUNCL_VERSION
24378 _ACEOF
24385 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
24386 pbxlibdir=""
24387 # if --with-STRTOLD=DIR has been specified, use it.
24388 if test "x${STRTOLD_DIR}" != "x"; then
24389 if test -d ${STRTOLD_DIR}/lib; then
24390 pbxlibdir="-L${STRTOLD_DIR}/lib"
24391 else
24392 pbxlibdir="-L${STRTOLD_DIR}"
24395 pbxfuncname="strtold"
24396 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24397 AST_STRTOLD_FOUND=yes
24398 else
24399 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
24400 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
24401 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
24402 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24403 echo $ECHO_N "(cached) $ECHO_C" >&6
24404 else
24405 ac_check_lib_save_LIBS=$LIBS
24406 LIBS="-lc ${pbxlibdir} $LIBS"
24407 cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h. */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h. */
24414 /* Override any GCC internal prototype to avoid an error.
24415 Use char because int might match the return type of a GCC
24416 builtin and then its argument prototype would still apply. */
24417 #ifdef __cplusplus
24418 extern "C"
24419 #endif
24420 char ${pbxfuncname} ();
24422 main ()
24424 return ${pbxfuncname} ();
24426 return 0;
24428 _ACEOF
24429 rm -f conftest.$ac_objext conftest$ac_exeext
24430 if { (ac_try="$ac_link"
24431 case "(($ac_try" in
24432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433 *) ac_try_echo=$ac_try;;
24434 esac
24435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24436 (eval "$ac_link") 2>conftest.er1
24437 ac_status=$?
24438 grep -v '^ *+' conftest.er1 >conftest.err
24439 rm -f conftest.er1
24440 cat conftest.err >&5
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); } && {
24443 test -z "$ac_c_werror_flag" ||
24444 test ! -s conftest.err
24445 } && test -s conftest$ac_exeext &&
24446 $as_test_x conftest$ac_exeext; then
24447 eval "$as_ac_Lib=yes"
24448 else
24449 echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24452 eval "$as_ac_Lib=no"
24455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24456 conftest$ac_exeext conftest.$ac_ext
24457 LIBS=$ac_check_lib_save_LIBS
24459 ac_res=`eval echo '${'$as_ac_Lib'}'`
24460 { echo "$as_me:$LINENO: result: $ac_res" >&5
24461 echo "${ECHO_T}$ac_res" >&6; }
24462 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24463 AST_STRTOLD_FOUND=yes
24464 else
24465 AST_STRTOLD_FOUND=no
24470 # now check for the header.
24471 if test "${AST_STRTOLD_FOUND}" = "yes"; then
24472 STRTOLD_LIB="${pbxlibdir} -lc "
24473 # if --with-STRTOLD=DIR has been specified, use it.
24474 if test "x${STRTOLD_DIR}" != "x"; then
24475 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
24477 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
24478 if test "xstdlib.h" = "x" ; then # no header, assume found
24479 STRTOLD_HEADER_FOUND="1"
24480 else # check for the header
24481 saved_cppflags="${CPPFLAGS}"
24482 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE}"
24483 if test "${ac_cv_header_stdlib_h+set}" = set; then
24484 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24485 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24486 if test "${ac_cv_header_stdlib_h+set}" = set; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24489 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24490 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24491 else
24492 # Is the header compilable?
24493 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
24494 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
24495 cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h. */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 $ac_includes_default
24502 #include <stdlib.h>
24503 _ACEOF
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24509 esac
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24512 ac_status=$?
24513 grep -v '^ *+' conftest.er1 >conftest.err
24514 rm -f conftest.er1
24515 cat conftest.err >&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_header_compiler=yes
24522 else
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_header_compiler=no
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24531 echo "${ECHO_T}$ac_header_compiler" >&6; }
24533 # Is the header present?
24534 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24535 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24536 cat >conftest.$ac_ext <<_ACEOF
24537 /* confdefs.h. */
24538 _ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24542 #include <stdlib.h>
24543 _ACEOF
24544 if { (ac_try="$ac_cpp conftest.$ac_ext"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24548 esac
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24551 ac_status=$?
24552 grep -v '^ *+' conftest.er1 >conftest.err
24553 rm -f conftest.er1
24554 cat conftest.err >&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); } >/dev/null && {
24557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24558 test ! -s conftest.err
24559 }; then
24560 ac_header_preproc=yes
24561 else
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24565 ac_header_preproc=no
24568 rm -f conftest.err conftest.$ac_ext
24569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24570 echo "${ECHO_T}$ac_header_preproc" >&6; }
24572 # So? What about this header?
24573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24574 yes:no: )
24575 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24576 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24577 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24578 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24579 ac_header_preproc=yes
24581 no:yes:* )
24582 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24583 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24584 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24585 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24586 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24587 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24588 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24589 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24590 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24591 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24592 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24593 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24594 ( cat <<\_ASBOX
24595 ## ------------------------------- ##
24596 ## Report this to www.asterisk.org ##
24597 ## ------------------------------- ##
24598 _ASBOX
24599 ) | sed "s/^/$as_me: WARNING: /" >&2
24601 esac
24602 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24603 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24604 if test "${ac_cv_header_stdlib_h+set}" = set; then
24605 echo $ECHO_N "(cached) $ECHO_C" >&6
24606 else
24607 ac_cv_header_stdlib_h=$ac_header_preproc
24609 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24610 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24613 if test $ac_cv_header_stdlib_h = yes; then
24614 STRTOLD_HEADER_FOUND=1
24615 else
24616 STRTOLD_HEADER_FOUND=0
24620 CPPFLAGS="${saved_cppflags}"
24622 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24623 STRTOLD_LIB=""
24624 STRTOLD_INCLUDE=""
24625 else
24626 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24627 STRTOLD_LIB=""
24629 PBX_STRTOLD=1
24630 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24632 cat >>confdefs.h <<_ACEOF
24633 #define HAVE_STRTOLD 1
24634 _ACEOF
24637 cat >>confdefs.h <<_ACEOF
24638 #define HAVE_STRTOLD_VERSION
24639 _ACEOF
24646 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24647 pbxlibdir=""
24648 # if --with-FLOORL=DIR has been specified, use it.
24649 if test "x${FLOORL_DIR}" != "x"; then
24650 if test -d ${FLOORL_DIR}/lib; then
24651 pbxlibdir="-L${FLOORL_DIR}/lib"
24652 else
24653 pbxlibdir="-L${FLOORL_DIR}"
24656 pbxfuncname="floorl"
24657 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24658 AST_FLOORL_FOUND=yes
24659 else
24660 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24661 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24662 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24663 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24664 echo $ECHO_N "(cached) $ECHO_C" >&6
24665 else
24666 ac_check_lib_save_LIBS=$LIBS
24667 LIBS="-lm ${pbxlibdir} $LIBS"
24668 cat >conftest.$ac_ext <<_ACEOF
24669 /* confdefs.h. */
24670 _ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h. */
24675 /* Override any GCC internal prototype to avoid an error.
24676 Use char because int might match the return type of a GCC
24677 builtin and then its argument prototype would still apply. */
24678 #ifdef __cplusplus
24679 extern "C"
24680 #endif
24681 char ${pbxfuncname} ();
24683 main ()
24685 return ${pbxfuncname} ();
24687 return 0;
24689 _ACEOF
24690 rm -f conftest.$ac_objext conftest$ac_exeext
24691 if { (ac_try="$ac_link"
24692 case "(($ac_try" in
24693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694 *) ac_try_echo=$ac_try;;
24695 esac
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697 (eval "$ac_link") 2>conftest.er1
24698 ac_status=$?
24699 grep -v '^ *+' conftest.er1 >conftest.err
24700 rm -f conftest.er1
24701 cat conftest.err >&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); } && {
24704 test -z "$ac_c_werror_flag" ||
24705 test ! -s conftest.err
24706 } && test -s conftest$ac_exeext &&
24707 $as_test_x conftest$ac_exeext; then
24708 eval "$as_ac_Lib=yes"
24709 else
24710 echo "$as_me: failed program was:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24713 eval "$as_ac_Lib=no"
24716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24717 conftest$ac_exeext conftest.$ac_ext
24718 LIBS=$ac_check_lib_save_LIBS
24720 ac_res=`eval echo '${'$as_ac_Lib'}'`
24721 { echo "$as_me:$LINENO: result: $ac_res" >&5
24722 echo "${ECHO_T}$ac_res" >&6; }
24723 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24724 AST_FLOORL_FOUND=yes
24725 else
24726 AST_FLOORL_FOUND=no
24731 # now check for the header.
24732 if test "${AST_FLOORL_FOUND}" = "yes"; then
24733 FLOORL_LIB="${pbxlibdir} -lm "
24734 # if --with-FLOORL=DIR has been specified, use it.
24735 if test "x${FLOORL_DIR}" != "x"; then
24736 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24738 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24739 if test "x" = "x" ; then # no header, assume found
24740 FLOORL_HEADER_FOUND="1"
24741 else # check for the header
24742 saved_cppflags="${CPPFLAGS}"
24743 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE}"
24744 if test "${ac_cv_header_+set}" = set; then
24745 { echo "$as_me:$LINENO: checking for " >&5
24746 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24747 if test "${ac_cv_header_+set}" = set; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24750 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24751 echo "${ECHO_T}$ac_cv_header_" >&6; }
24752 else
24753 # Is the header compilable?
24754 { echo "$as_me:$LINENO: checking usability" >&5
24755 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24756 cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h. */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 $ac_includes_default
24763 #include <>
24764 _ACEOF
24765 rm -f conftest.$ac_objext
24766 if { (ac_try="$ac_compile"
24767 case "(($ac_try" in
24768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769 *) ac_try_echo=$ac_try;;
24770 esac
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772 (eval "$ac_compile") 2>conftest.er1
24773 ac_status=$?
24774 grep -v '^ *+' conftest.er1 >conftest.err
24775 rm -f conftest.er1
24776 cat conftest.err >&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } && {
24779 test -z "$ac_c_werror_flag" ||
24780 test ! -s conftest.err
24781 } && test -s conftest.$ac_objext; then
24782 ac_header_compiler=yes
24783 else
24784 echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24787 ac_header_compiler=no
24790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24792 echo "${ECHO_T}$ac_header_compiler" >&6; }
24794 # Is the header present?
24795 { echo "$as_me:$LINENO: checking presence" >&5
24796 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24797 cat >conftest.$ac_ext <<_ACEOF
24798 /* confdefs.h. */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 #include <>
24804 _ACEOF
24805 if { (ac_try="$ac_cpp conftest.$ac_ext"
24806 case "(($ac_try" in
24807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808 *) ac_try_echo=$ac_try;;
24809 esac
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24812 ac_status=$?
24813 grep -v '^ *+' conftest.er1 >conftest.err
24814 rm -f conftest.er1
24815 cat conftest.err >&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); } >/dev/null && {
24818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24819 test ! -s conftest.err
24820 }; then
24821 ac_header_preproc=yes
24822 else
24823 echo "$as_me: failed program was:" >&5
24824 sed 's/^/| /' conftest.$ac_ext >&5
24826 ac_header_preproc=no
24829 rm -f conftest.err conftest.$ac_ext
24830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24831 echo "${ECHO_T}$ac_header_preproc" >&6; }
24833 # So? What about this header?
24834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24835 yes:no: )
24836 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24837 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24838 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24839 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24840 ac_header_preproc=yes
24842 no:yes:* )
24843 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24844 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24845 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24846 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24847 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24848 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24849 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24850 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24851 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24852 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24853 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24854 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24855 ( cat <<\_ASBOX
24856 ## ------------------------------- ##
24857 ## Report this to www.asterisk.org ##
24858 ## ------------------------------- ##
24859 _ASBOX
24860 ) | sed "s/^/$as_me: WARNING: /" >&2
24862 esac
24863 { echo "$as_me:$LINENO: checking for " >&5
24864 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24865 if test "${ac_cv_header_+set}" = set; then
24866 echo $ECHO_N "(cached) $ECHO_C" >&6
24867 else
24868 ac_cv_header_=$ac_header_preproc
24870 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24871 echo "${ECHO_T}$ac_cv_header_" >&6; }
24874 if test $ac_cv_header_ = yes; then
24875 FLOORL_HEADER_FOUND=1
24876 else
24877 FLOORL_HEADER_FOUND=0
24881 CPPFLAGS="${saved_cppflags}"
24883 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24884 FLOORL_LIB=""
24885 FLOORL_INCLUDE=""
24886 else
24887 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24888 FLOORL_LIB=""
24890 PBX_FLOORL=1
24891 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24893 cat >>confdefs.h <<_ACEOF
24894 #define HAVE_FLOORL 1
24895 _ACEOF
24898 cat >>confdefs.h <<_ACEOF
24899 #define HAVE_FLOORL_VERSION
24900 _ACEOF
24907 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24908 pbxlibdir=""
24909 # if --with-CEILL=DIR has been specified, use it.
24910 if test "x${CEILL_DIR}" != "x"; then
24911 if test -d ${CEILL_DIR}/lib; then
24912 pbxlibdir="-L${CEILL_DIR}/lib"
24913 else
24914 pbxlibdir="-L${CEILL_DIR}"
24917 pbxfuncname="ceill"
24918 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24919 AST_CEILL_FOUND=yes
24920 else
24921 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24922 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24923 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24924 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24925 echo $ECHO_N "(cached) $ECHO_C" >&6
24926 else
24927 ac_check_lib_save_LIBS=$LIBS
24928 LIBS="-lm ${pbxlibdir} $LIBS"
24929 cat >conftest.$ac_ext <<_ACEOF
24930 /* confdefs.h. */
24931 _ACEOF
24932 cat confdefs.h >>conftest.$ac_ext
24933 cat >>conftest.$ac_ext <<_ACEOF
24934 /* end confdefs.h. */
24936 /* Override any GCC internal prototype to avoid an error.
24937 Use char because int might match the return type of a GCC
24938 builtin and then its argument prototype would still apply. */
24939 #ifdef __cplusplus
24940 extern "C"
24941 #endif
24942 char ${pbxfuncname} ();
24944 main ()
24946 return ${pbxfuncname} ();
24948 return 0;
24950 _ACEOF
24951 rm -f conftest.$ac_objext conftest$ac_exeext
24952 if { (ac_try="$ac_link"
24953 case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24956 esac
24957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958 (eval "$ac_link") 2>conftest.er1
24959 ac_status=$?
24960 grep -v '^ *+' conftest.er1 >conftest.err
24961 rm -f conftest.er1
24962 cat conftest.err >&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } && {
24965 test -z "$ac_c_werror_flag" ||
24966 test ! -s conftest.err
24967 } && test -s conftest$ac_exeext &&
24968 $as_test_x conftest$ac_exeext; then
24969 eval "$as_ac_Lib=yes"
24970 else
24971 echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24974 eval "$as_ac_Lib=no"
24977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24978 conftest$ac_exeext conftest.$ac_ext
24979 LIBS=$ac_check_lib_save_LIBS
24981 ac_res=`eval echo '${'$as_ac_Lib'}'`
24982 { echo "$as_me:$LINENO: result: $ac_res" >&5
24983 echo "${ECHO_T}$ac_res" >&6; }
24984 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24985 AST_CEILL_FOUND=yes
24986 else
24987 AST_CEILL_FOUND=no
24992 # now check for the header.
24993 if test "${AST_CEILL_FOUND}" = "yes"; then
24994 CEILL_LIB="${pbxlibdir} -lm "
24995 # if --with-CEILL=DIR has been specified, use it.
24996 if test "x${CEILL_DIR}" != "x"; then
24997 CEILL_INCLUDE="-I${CEILL_DIR}/include"
24999 CEILL_INCLUDE="${CEILL_INCLUDE} "
25000 if test "x" = "x" ; then # no header, assume found
25001 CEILL_HEADER_FOUND="1"
25002 else # check for the header
25003 saved_cppflags="${CPPFLAGS}"
25004 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE}"
25005 if test "${ac_cv_header_+set}" = set; then
25006 { echo "$as_me:$LINENO: checking for " >&5
25007 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25008 if test "${ac_cv_header_+set}" = set; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
25011 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25012 echo "${ECHO_T}$ac_cv_header_" >&6; }
25013 else
25014 # Is the header compilable?
25015 { echo "$as_me:$LINENO: checking usability" >&5
25016 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25017 cat >conftest.$ac_ext <<_ACEOF
25018 /* confdefs.h. */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25023 $ac_includes_default
25024 #include <>
25025 _ACEOF
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_compile") 2>conftest.er1
25034 ac_status=$?
25035 grep -v '^ *+' conftest.er1 >conftest.err
25036 rm -f conftest.er1
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest.$ac_objext; then
25043 ac_header_compiler=yes
25044 else
25045 echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25048 ac_header_compiler=no
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25053 echo "${ECHO_T}$ac_header_compiler" >&6; }
25055 # Is the header present?
25056 { echo "$as_me:$LINENO: checking presence" >&5
25057 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25058 cat >conftest.$ac_ext <<_ACEOF
25059 /* confdefs.h. */
25060 _ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h. */
25064 #include <>
25065 _ACEOF
25066 if { (ac_try="$ac_cpp conftest.$ac_ext"
25067 case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25070 esac
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25073 ac_status=$?
25074 grep -v '^ *+' conftest.er1 >conftest.err
25075 rm -f conftest.er1
25076 cat conftest.err >&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } >/dev/null && {
25079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25081 }; then
25082 ac_header_preproc=yes
25083 else
25084 echo "$as_me: failed program was:" >&5
25085 sed 's/^/| /' conftest.$ac_ext >&5
25087 ac_header_preproc=no
25090 rm -f conftest.err conftest.$ac_ext
25091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25092 echo "${ECHO_T}$ac_header_preproc" >&6; }
25094 # So? What about this header?
25095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25096 yes:no: )
25097 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25098 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25099 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25100 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25101 ac_header_preproc=yes
25103 no:yes:* )
25104 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25105 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25106 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25107 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25108 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25109 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25110 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25111 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25112 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25113 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25114 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25115 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25116 ( cat <<\_ASBOX
25117 ## ------------------------------- ##
25118 ## Report this to www.asterisk.org ##
25119 ## ------------------------------- ##
25120 _ASBOX
25121 ) | sed "s/^/$as_me: WARNING: /" >&2
25123 esac
25124 { echo "$as_me:$LINENO: checking for " >&5
25125 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25126 if test "${ac_cv_header_+set}" = set; then
25127 echo $ECHO_N "(cached) $ECHO_C" >&6
25128 else
25129 ac_cv_header_=$ac_header_preproc
25131 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25132 echo "${ECHO_T}$ac_cv_header_" >&6; }
25135 if test $ac_cv_header_ = yes; then
25136 CEILL_HEADER_FOUND=1
25137 else
25138 CEILL_HEADER_FOUND=0
25142 CPPFLAGS="${saved_cppflags}"
25144 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
25145 CEILL_LIB=""
25146 CEILL_INCLUDE=""
25147 else
25148 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25149 CEILL_LIB=""
25151 PBX_CEILL=1
25152 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25154 cat >>confdefs.h <<_ACEOF
25155 #define HAVE_CEILL 1
25156 _ACEOF
25159 cat >>confdefs.h <<_ACEOF
25160 #define HAVE_CEILL_VERSION
25161 _ACEOF
25168 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
25169 pbxlibdir=""
25170 # if --with-EXP2=DIR has been specified, use it.
25171 if test "x${EXP2_DIR}" != "x"; then
25172 if test -d ${EXP2_DIR}/lib; then
25173 pbxlibdir="-L${EXP2_DIR}/lib"
25174 else
25175 pbxlibdir="-L${EXP2_DIR}"
25178 pbxfuncname="exp2"
25179 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25180 AST_EXP2_FOUND=yes
25181 else
25182 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25183 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25184 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25185 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25186 echo $ECHO_N "(cached) $ECHO_C" >&6
25187 else
25188 ac_check_lib_save_LIBS=$LIBS
25189 LIBS="-lm ${pbxlibdir} $LIBS"
25190 cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h. */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25197 /* Override any GCC internal prototype to avoid an error.
25198 Use char because int might match the return type of a GCC
25199 builtin and then its argument prototype would still apply. */
25200 #ifdef __cplusplus
25201 extern "C"
25202 #endif
25203 char ${pbxfuncname} ();
25205 main ()
25207 return ${pbxfuncname} ();
25209 return 0;
25211 _ACEOF
25212 rm -f conftest.$ac_objext conftest$ac_exeext
25213 if { (ac_try="$ac_link"
25214 case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_link") 2>conftest.er1
25220 ac_status=$?
25221 grep -v '^ *+' conftest.er1 >conftest.err
25222 rm -f conftest.er1
25223 cat conftest.err >&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } && {
25226 test -z "$ac_c_werror_flag" ||
25227 test ! -s conftest.err
25228 } && test -s conftest$ac_exeext &&
25229 $as_test_x conftest$ac_exeext; then
25230 eval "$as_ac_Lib=yes"
25231 else
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 eval "$as_ac_Lib=no"
25238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25239 conftest$ac_exeext conftest.$ac_ext
25240 LIBS=$ac_check_lib_save_LIBS
25242 ac_res=`eval echo '${'$as_ac_Lib'}'`
25243 { echo "$as_me:$LINENO: result: $ac_res" >&5
25244 echo "${ECHO_T}$ac_res" >&6; }
25245 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25246 AST_EXP2_FOUND=yes
25247 else
25248 AST_EXP2_FOUND=no
25253 # now check for the header.
25254 if test "${AST_EXP2_FOUND}" = "yes"; then
25255 EXP2_LIB="${pbxlibdir} -lm "
25256 # if --with-EXP2=DIR has been specified, use it.
25257 if test "x${EXP2_DIR}" != "x"; then
25258 EXP2_INCLUDE="-I${EXP2_DIR}/include"
25260 EXP2_INCLUDE="${EXP2_INCLUDE} "
25261 if test "x" = "x" ; then # no header, assume found
25262 EXP2_HEADER_FOUND="1"
25263 else # check for the header
25264 saved_cppflags="${CPPFLAGS}"
25265 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE}"
25266 if test "${ac_cv_header_+set}" = set; then
25267 { echo "$as_me:$LINENO: checking for " >&5
25268 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25269 if test "${ac_cv_header_+set}" = set; then
25270 echo $ECHO_N "(cached) $ECHO_C" >&6
25272 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25273 echo "${ECHO_T}$ac_cv_header_" >&6; }
25274 else
25275 # Is the header compilable?
25276 { echo "$as_me:$LINENO: checking usability" >&5
25277 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25278 cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h. */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25284 $ac_includes_default
25285 #include <>
25286 _ACEOF
25287 rm -f conftest.$ac_objext
25288 if { (ac_try="$ac_compile"
25289 case "(($ac_try" in
25290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291 *) ac_try_echo=$ac_try;;
25292 esac
25293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25294 (eval "$ac_compile") 2>conftest.er1
25295 ac_status=$?
25296 grep -v '^ *+' conftest.er1 >conftest.err
25297 rm -f conftest.er1
25298 cat conftest.err >&5
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); } && {
25301 test -z "$ac_c_werror_flag" ||
25302 test ! -s conftest.err
25303 } && test -s conftest.$ac_objext; then
25304 ac_header_compiler=yes
25305 else
25306 echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25309 ac_header_compiler=no
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25314 echo "${ECHO_T}$ac_header_compiler" >&6; }
25316 # Is the header present?
25317 { echo "$as_me:$LINENO: checking presence" >&5
25318 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25319 cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h. */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h. */
25325 #include <>
25326 _ACEOF
25327 if { (ac_try="$ac_cpp conftest.$ac_ext"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25334 ac_status=$?
25335 grep -v '^ *+' conftest.er1 >conftest.err
25336 rm -f conftest.er1
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } >/dev/null && {
25340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 }; then
25343 ac_header_preproc=yes
25344 else
25345 echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25348 ac_header_preproc=no
25351 rm -f conftest.err conftest.$ac_ext
25352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25353 echo "${ECHO_T}$ac_header_preproc" >&6; }
25355 # So? What about this header?
25356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25357 yes:no: )
25358 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25359 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25360 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25361 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25362 ac_header_preproc=yes
25364 no:yes:* )
25365 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25366 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25368 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25370 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25371 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25372 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25373 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25374 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25375 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25376 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25377 ( cat <<\_ASBOX
25378 ## ------------------------------- ##
25379 ## Report this to www.asterisk.org ##
25380 ## ------------------------------- ##
25381 _ASBOX
25382 ) | sed "s/^/$as_me: WARNING: /" >&2
25384 esac
25385 { echo "$as_me:$LINENO: checking for " >&5
25386 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25387 if test "${ac_cv_header_+set}" = set; then
25388 echo $ECHO_N "(cached) $ECHO_C" >&6
25389 else
25390 ac_cv_header_=$ac_header_preproc
25392 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25393 echo "${ECHO_T}$ac_cv_header_" >&6; }
25396 if test $ac_cv_header_ = yes; then
25397 EXP2_HEADER_FOUND=1
25398 else
25399 EXP2_HEADER_FOUND=0
25403 CPPFLAGS="${saved_cppflags}"
25405 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
25406 EXP2_LIB=""
25407 EXP2_INCLUDE=""
25408 else
25409 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25410 EXP2_LIB=""
25412 PBX_EXP2=1
25413 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25415 cat >>confdefs.h <<_ACEOF
25416 #define HAVE_EXP2 1
25417 _ACEOF
25420 cat >>confdefs.h <<_ACEOF
25421 #define HAVE_EXP2_VERSION
25422 _ACEOF
25429 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
25430 pbxlibdir=""
25431 # if --with-LOG2=DIR has been specified, use it.
25432 if test "x${LOG2_DIR}" != "x"; then
25433 if test -d ${LOG2_DIR}/lib; then
25434 pbxlibdir="-L${LOG2_DIR}/lib"
25435 else
25436 pbxlibdir="-L${LOG2_DIR}"
25439 pbxfuncname="log2"
25440 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25441 AST_LOG2_FOUND=yes
25442 else
25443 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25444 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25445 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25446 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25447 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 else
25449 ac_check_lib_save_LIBS=$LIBS
25450 LIBS="-lm ${pbxlibdir} $LIBS"
25451 cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h. */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25458 /* Override any GCC internal prototype to avoid an error.
25459 Use char because int might match the return type of a GCC
25460 builtin and then its argument prototype would still apply. */
25461 #ifdef __cplusplus
25462 extern "C"
25463 #endif
25464 char ${pbxfuncname} ();
25466 main ()
25468 return ${pbxfuncname} ();
25470 return 0;
25472 _ACEOF
25473 rm -f conftest.$ac_objext conftest$ac_exeext
25474 if { (ac_try="$ac_link"
25475 case "(($ac_try" in
25476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25477 *) ac_try_echo=$ac_try;;
25478 esac
25479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25480 (eval "$ac_link") 2>conftest.er1
25481 ac_status=$?
25482 grep -v '^ *+' conftest.er1 >conftest.err
25483 rm -f conftest.er1
25484 cat conftest.err >&5
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); } && {
25487 test -z "$ac_c_werror_flag" ||
25488 test ! -s conftest.err
25489 } && test -s conftest$ac_exeext &&
25490 $as_test_x conftest$ac_exeext; then
25491 eval "$as_ac_Lib=yes"
25492 else
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25496 eval "$as_ac_Lib=no"
25499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25500 conftest$ac_exeext conftest.$ac_ext
25501 LIBS=$ac_check_lib_save_LIBS
25503 ac_res=`eval echo '${'$as_ac_Lib'}'`
25504 { echo "$as_me:$LINENO: result: $ac_res" >&5
25505 echo "${ECHO_T}$ac_res" >&6; }
25506 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25507 AST_LOG2_FOUND=yes
25508 else
25509 AST_LOG2_FOUND=no
25514 # now check for the header.
25515 if test "${AST_LOG2_FOUND}" = "yes"; then
25516 LOG2_LIB="${pbxlibdir} -lm "
25517 # if --with-LOG2=DIR has been specified, use it.
25518 if test "x${LOG2_DIR}" != "x"; then
25519 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25521 LOG2_INCLUDE="${LOG2_INCLUDE} "
25522 if test "x" = "x" ; then # no header, assume found
25523 LOG2_HEADER_FOUND="1"
25524 else # check for the header
25525 saved_cppflags="${CPPFLAGS}"
25526 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE}"
25527 if test "${ac_cv_header_+set}" = set; then
25528 { echo "$as_me:$LINENO: checking for " >&5
25529 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25530 if test "${ac_cv_header_+set}" = set; then
25531 echo $ECHO_N "(cached) $ECHO_C" >&6
25533 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25534 echo "${ECHO_T}$ac_cv_header_" >&6; }
25535 else
25536 # Is the header compilable?
25537 { echo "$as_me:$LINENO: checking usability" >&5
25538 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25539 cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h. */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 $ac_includes_default
25546 #include <>
25547 _ACEOF
25548 rm -f conftest.$ac_objext
25549 if { (ac_try="$ac_compile"
25550 case "(($ac_try" in
25551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552 *) ac_try_echo=$ac_try;;
25553 esac
25554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25555 (eval "$ac_compile") 2>conftest.er1
25556 ac_status=$?
25557 grep -v '^ *+' conftest.er1 >conftest.err
25558 rm -f conftest.er1
25559 cat conftest.err >&5
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); } && {
25562 test -z "$ac_c_werror_flag" ||
25563 test ! -s conftest.err
25564 } && test -s conftest.$ac_objext; then
25565 ac_header_compiler=yes
25566 else
25567 echo "$as_me: failed program was:" >&5
25568 sed 's/^/| /' conftest.$ac_ext >&5
25570 ac_header_compiler=no
25573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25575 echo "${ECHO_T}$ac_header_compiler" >&6; }
25577 # Is the header present?
25578 { echo "$as_me:$LINENO: checking presence" >&5
25579 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25580 cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h. */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h. */
25586 #include <>
25587 _ACEOF
25588 if { (ac_try="$ac_cpp conftest.$ac_ext"
25589 case "(($ac_try" in
25590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25592 esac
25593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25595 ac_status=$?
25596 grep -v '^ *+' conftest.er1 >conftest.err
25597 rm -f conftest.er1
25598 cat conftest.err >&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } >/dev/null && {
25601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25602 test ! -s conftest.err
25603 }; then
25604 ac_header_preproc=yes
25605 else
25606 echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25609 ac_header_preproc=no
25612 rm -f conftest.err conftest.$ac_ext
25613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25614 echo "${ECHO_T}$ac_header_preproc" >&6; }
25616 # So? What about this header?
25617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25618 yes:no: )
25619 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25620 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25621 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25622 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25623 ac_header_preproc=yes
25625 no:yes:* )
25626 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25627 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25628 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25629 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25630 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25631 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25632 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25633 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25634 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25635 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25636 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25637 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25638 ( cat <<\_ASBOX
25639 ## ------------------------------- ##
25640 ## Report this to www.asterisk.org ##
25641 ## ------------------------------- ##
25642 _ASBOX
25643 ) | sed "s/^/$as_me: WARNING: /" >&2
25645 esac
25646 { echo "$as_me:$LINENO: checking for " >&5
25647 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25648 if test "${ac_cv_header_+set}" = set; then
25649 echo $ECHO_N "(cached) $ECHO_C" >&6
25650 else
25651 ac_cv_header_=$ac_header_preproc
25653 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25654 echo "${ECHO_T}$ac_cv_header_" >&6; }
25657 if test $ac_cv_header_ = yes; then
25658 LOG2_HEADER_FOUND=1
25659 else
25660 LOG2_HEADER_FOUND=0
25664 CPPFLAGS="${saved_cppflags}"
25666 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25667 LOG2_LIB=""
25668 LOG2_INCLUDE=""
25669 else
25670 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25671 LOG2_LIB=""
25673 PBX_LOG2=1
25674 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25676 cat >>confdefs.h <<_ACEOF
25677 #define HAVE_LOG2 1
25678 _ACEOF
25681 cat >>confdefs.h <<_ACEOF
25682 #define HAVE_LOG2_VERSION
25683 _ACEOF
25690 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25691 pbxlibdir=""
25692 # if --with-EXP10=DIR has been specified, use it.
25693 if test "x${EXP10_DIR}" != "x"; then
25694 if test -d ${EXP10_DIR}/lib; then
25695 pbxlibdir="-L${EXP10_DIR}/lib"
25696 else
25697 pbxlibdir="-L${EXP10_DIR}"
25700 pbxfuncname="exp10"
25701 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25702 AST_EXP10_FOUND=yes
25703 else
25704 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25705 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25706 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25707 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25709 else
25710 ac_check_lib_save_LIBS=$LIBS
25711 LIBS="-lm ${pbxlibdir} $LIBS"
25712 cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h. */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25719 /* Override any GCC internal prototype to avoid an error.
25720 Use char because int might match the return type of a GCC
25721 builtin and then its argument prototype would still apply. */
25722 #ifdef __cplusplus
25723 extern "C"
25724 #endif
25725 char ${pbxfuncname} ();
25727 main ()
25729 return ${pbxfuncname} ();
25731 return 0;
25733 _ACEOF
25734 rm -f conftest.$ac_objext conftest$ac_exeext
25735 if { (ac_try="$ac_link"
25736 case "(($ac_try" in
25737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25738 *) ac_try_echo=$ac_try;;
25739 esac
25740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25741 (eval "$ac_link") 2>conftest.er1
25742 ac_status=$?
25743 grep -v '^ *+' conftest.er1 >conftest.err
25744 rm -f conftest.er1
25745 cat conftest.err >&5
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); } && {
25748 test -z "$ac_c_werror_flag" ||
25749 test ! -s conftest.err
25750 } && test -s conftest$ac_exeext &&
25751 $as_test_x conftest$ac_exeext; then
25752 eval "$as_ac_Lib=yes"
25753 else
25754 echo "$as_me: failed program was:" >&5
25755 sed 's/^/| /' conftest.$ac_ext >&5
25757 eval "$as_ac_Lib=no"
25760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25761 conftest$ac_exeext conftest.$ac_ext
25762 LIBS=$ac_check_lib_save_LIBS
25764 ac_res=`eval echo '${'$as_ac_Lib'}'`
25765 { echo "$as_me:$LINENO: result: $ac_res" >&5
25766 echo "${ECHO_T}$ac_res" >&6; }
25767 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25768 AST_EXP10_FOUND=yes
25769 else
25770 AST_EXP10_FOUND=no
25775 # now check for the header.
25776 if test "${AST_EXP10_FOUND}" = "yes"; then
25777 EXP10_LIB="${pbxlibdir} -lm "
25778 # if --with-EXP10=DIR has been specified, use it.
25779 if test "x${EXP10_DIR}" != "x"; then
25780 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25782 EXP10_INCLUDE="${EXP10_INCLUDE} "
25783 if test "x" = "x" ; then # no header, assume found
25784 EXP10_HEADER_FOUND="1"
25785 else # check for the header
25786 saved_cppflags="${CPPFLAGS}"
25787 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE}"
25788 if test "${ac_cv_header_+set}" = set; then
25789 { echo "$as_me:$LINENO: checking for " >&5
25790 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25791 if test "${ac_cv_header_+set}" = set; then
25792 echo $ECHO_N "(cached) $ECHO_C" >&6
25794 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25795 echo "${ECHO_T}$ac_cv_header_" >&6; }
25796 else
25797 # Is the header compilable?
25798 { echo "$as_me:$LINENO: checking usability" >&5
25799 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25800 cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h. */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25806 $ac_includes_default
25807 #include <>
25808 _ACEOF
25809 rm -f conftest.$ac_objext
25810 if { (ac_try="$ac_compile"
25811 case "(($ac_try" in
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813 *) ac_try_echo=$ac_try;;
25814 esac
25815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816 (eval "$ac_compile") 2>conftest.er1
25817 ac_status=$?
25818 grep -v '^ *+' conftest.er1 >conftest.err
25819 rm -f conftest.er1
25820 cat conftest.err >&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } && {
25823 test -z "$ac_c_werror_flag" ||
25824 test ! -s conftest.err
25825 } && test -s conftest.$ac_objext; then
25826 ac_header_compiler=yes
25827 else
25828 echo "$as_me: failed program was:" >&5
25829 sed 's/^/| /' conftest.$ac_ext >&5
25831 ac_header_compiler=no
25834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25836 echo "${ECHO_T}$ac_header_compiler" >&6; }
25838 # Is the header present?
25839 { echo "$as_me:$LINENO: checking presence" >&5
25840 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25841 cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h. */
25843 _ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 #include <>
25848 _ACEOF
25849 if { (ac_try="$ac_cpp conftest.$ac_ext"
25850 case "(($ac_try" in
25851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852 *) ac_try_echo=$ac_try;;
25853 esac
25854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25856 ac_status=$?
25857 grep -v '^ *+' conftest.er1 >conftest.err
25858 rm -f conftest.er1
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); } >/dev/null && {
25862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25863 test ! -s conftest.err
25864 }; then
25865 ac_header_preproc=yes
25866 else
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_header_preproc=no
25873 rm -f conftest.err conftest.$ac_ext
25874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25875 echo "${ECHO_T}$ac_header_preproc" >&6; }
25877 # So? What about this header?
25878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25879 yes:no: )
25880 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25881 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25882 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25883 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25884 ac_header_preproc=yes
25886 no:yes:* )
25887 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25888 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25890 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25891 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25892 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25893 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25894 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25895 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25896 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25897 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25898 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25899 ( cat <<\_ASBOX
25900 ## ------------------------------- ##
25901 ## Report this to www.asterisk.org ##
25902 ## ------------------------------- ##
25903 _ASBOX
25904 ) | sed "s/^/$as_me: WARNING: /" >&2
25906 esac
25907 { echo "$as_me:$LINENO: checking for " >&5
25908 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25909 if test "${ac_cv_header_+set}" = set; then
25910 echo $ECHO_N "(cached) $ECHO_C" >&6
25911 else
25912 ac_cv_header_=$ac_header_preproc
25914 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25915 echo "${ECHO_T}$ac_cv_header_" >&6; }
25918 if test $ac_cv_header_ = yes; then
25919 EXP10_HEADER_FOUND=1
25920 else
25921 EXP10_HEADER_FOUND=0
25925 CPPFLAGS="${saved_cppflags}"
25927 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25928 EXP10_LIB=""
25929 EXP10_INCLUDE=""
25930 else
25931 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25932 EXP10_LIB=""
25934 PBX_EXP10=1
25935 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25937 cat >>confdefs.h <<_ACEOF
25938 #define HAVE_EXP10 1
25939 _ACEOF
25942 cat >>confdefs.h <<_ACEOF
25943 #define HAVE_EXP10_VERSION
25944 _ACEOF
25951 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25952 pbxlibdir=""
25953 # if --with-LOG10=DIR has been specified, use it.
25954 if test "x${LOG10_DIR}" != "x"; then
25955 if test -d ${LOG10_DIR}/lib; then
25956 pbxlibdir="-L${LOG10_DIR}/lib"
25957 else
25958 pbxlibdir="-L${LOG10_DIR}"
25961 pbxfuncname="log10"
25962 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25963 AST_LOG10_FOUND=yes
25964 else
25965 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25966 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25967 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25968 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25969 echo $ECHO_N "(cached) $ECHO_C" >&6
25970 else
25971 ac_check_lib_save_LIBS=$LIBS
25972 LIBS="-lm ${pbxlibdir} $LIBS"
25973 cat >conftest.$ac_ext <<_ACEOF
25974 /* confdefs.h. */
25975 _ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h. */
25980 /* Override any GCC internal prototype to avoid an error.
25981 Use char because int might match the return type of a GCC
25982 builtin and then its argument prototype would still apply. */
25983 #ifdef __cplusplus
25984 extern "C"
25985 #endif
25986 char ${pbxfuncname} ();
25988 main ()
25990 return ${pbxfuncname} ();
25992 return 0;
25994 _ACEOF
25995 rm -f conftest.$ac_objext conftest$ac_exeext
25996 if { (ac_try="$ac_link"
25997 case "(($ac_try" in
25998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25999 *) ac_try_echo=$ac_try;;
26000 esac
26001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26002 (eval "$ac_link") 2>conftest.er1
26003 ac_status=$?
26004 grep -v '^ *+' conftest.er1 >conftest.err
26005 rm -f conftest.er1
26006 cat conftest.err >&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } && {
26009 test -z "$ac_c_werror_flag" ||
26010 test ! -s conftest.err
26011 } && test -s conftest$ac_exeext &&
26012 $as_test_x conftest$ac_exeext; then
26013 eval "$as_ac_Lib=yes"
26014 else
26015 echo "$as_me: failed program was:" >&5
26016 sed 's/^/| /' conftest.$ac_ext >&5
26018 eval "$as_ac_Lib=no"
26021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26022 conftest$ac_exeext conftest.$ac_ext
26023 LIBS=$ac_check_lib_save_LIBS
26025 ac_res=`eval echo '${'$as_ac_Lib'}'`
26026 { echo "$as_me:$LINENO: result: $ac_res" >&5
26027 echo "${ECHO_T}$ac_res" >&6; }
26028 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26029 AST_LOG10_FOUND=yes
26030 else
26031 AST_LOG10_FOUND=no
26036 # now check for the header.
26037 if test "${AST_LOG10_FOUND}" = "yes"; then
26038 LOG10_LIB="${pbxlibdir} -lm "
26039 # if --with-LOG10=DIR has been specified, use it.
26040 if test "x${LOG10_DIR}" != "x"; then
26041 LOG10_INCLUDE="-I${LOG10_DIR}/include"
26043 LOG10_INCLUDE="${LOG10_INCLUDE} "
26044 if test "x" = "x" ; then # no header, assume found
26045 LOG10_HEADER_FOUND="1"
26046 else # check for the header
26047 saved_cppflags="${CPPFLAGS}"
26048 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE}"
26049 if test "${ac_cv_header_+set}" = set; then
26050 { echo "$as_me:$LINENO: checking for " >&5
26051 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26052 if test "${ac_cv_header_+set}" = set; then
26053 echo $ECHO_N "(cached) $ECHO_C" >&6
26055 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26056 echo "${ECHO_T}$ac_cv_header_" >&6; }
26057 else
26058 # Is the header compilable?
26059 { echo "$as_me:$LINENO: checking usability" >&5
26060 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26061 cat >conftest.$ac_ext <<_ACEOF
26062 /* confdefs.h. */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26067 $ac_includes_default
26068 #include <>
26069 _ACEOF
26070 rm -f conftest.$ac_objext
26071 if { (ac_try="$ac_compile"
26072 case "(($ac_try" in
26073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074 *) ac_try_echo=$ac_try;;
26075 esac
26076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26077 (eval "$ac_compile") 2>conftest.er1
26078 ac_status=$?
26079 grep -v '^ *+' conftest.er1 >conftest.err
26080 rm -f conftest.er1
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } && {
26084 test -z "$ac_c_werror_flag" ||
26085 test ! -s conftest.err
26086 } && test -s conftest.$ac_objext; then
26087 ac_header_compiler=yes
26088 else
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26092 ac_header_compiler=no
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26097 echo "${ECHO_T}$ac_header_compiler" >&6; }
26099 # Is the header present?
26100 { echo "$as_me:$LINENO: checking presence" >&5
26101 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26102 cat >conftest.$ac_ext <<_ACEOF
26103 /* confdefs.h. */
26104 _ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h. */
26108 #include <>
26109 _ACEOF
26110 if { (ac_try="$ac_cpp conftest.$ac_ext"
26111 case "(($ac_try" in
26112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26113 *) ac_try_echo=$ac_try;;
26114 esac
26115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26117 ac_status=$?
26118 grep -v '^ *+' conftest.er1 >conftest.err
26119 rm -f conftest.er1
26120 cat conftest.err >&5
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); } >/dev/null && {
26123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26124 test ! -s conftest.err
26125 }; then
26126 ac_header_preproc=yes
26127 else
26128 echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26131 ac_header_preproc=no
26134 rm -f conftest.err conftest.$ac_ext
26135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26136 echo "${ECHO_T}$ac_header_preproc" >&6; }
26138 # So? What about this header?
26139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26140 yes:no: )
26141 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26142 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26143 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26144 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26145 ac_header_preproc=yes
26147 no:yes:* )
26148 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26149 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26150 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26151 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26152 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26153 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26154 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26155 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26156 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26157 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26158 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26159 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26160 ( cat <<\_ASBOX
26161 ## ------------------------------- ##
26162 ## Report this to www.asterisk.org ##
26163 ## ------------------------------- ##
26164 _ASBOX
26165 ) | sed "s/^/$as_me: WARNING: /" >&2
26167 esac
26168 { echo "$as_me:$LINENO: checking for " >&5
26169 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26170 if test "${ac_cv_header_+set}" = set; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26172 else
26173 ac_cv_header_=$ac_header_preproc
26175 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26176 echo "${ECHO_T}$ac_cv_header_" >&6; }
26179 if test $ac_cv_header_ = yes; then
26180 LOG10_HEADER_FOUND=1
26181 else
26182 LOG10_HEADER_FOUND=0
26186 CPPFLAGS="${saved_cppflags}"
26188 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
26189 LOG10_LIB=""
26190 LOG10_INCLUDE=""
26191 else
26192 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26193 LOG10_LIB=""
26195 PBX_LOG10=1
26196 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26198 cat >>confdefs.h <<_ACEOF
26199 #define HAVE_LOG10 1
26200 _ACEOF
26203 cat >>confdefs.h <<_ACEOF
26204 #define HAVE_LOG10_VERSION
26205 _ACEOF
26212 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
26213 pbxlibdir=""
26214 # if --with-SIN=DIR has been specified, use it.
26215 if test "x${SIN_DIR}" != "x"; then
26216 if test -d ${SIN_DIR}/lib; then
26217 pbxlibdir="-L${SIN_DIR}/lib"
26218 else
26219 pbxlibdir="-L${SIN_DIR}"
26222 pbxfuncname="sin"
26223 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26224 AST_SIN_FOUND=yes
26225 else
26226 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26227 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26228 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26229 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232 ac_check_lib_save_LIBS=$LIBS
26233 LIBS="-lm ${pbxlibdir} $LIBS"
26234 cat >conftest.$ac_ext <<_ACEOF
26235 /* confdefs.h. */
26236 _ACEOF
26237 cat confdefs.h >>conftest.$ac_ext
26238 cat >>conftest.$ac_ext <<_ACEOF
26239 /* end confdefs.h. */
26241 /* Override any GCC internal prototype to avoid an error.
26242 Use char because int might match the return type of a GCC
26243 builtin and then its argument prototype would still apply. */
26244 #ifdef __cplusplus
26245 extern "C"
26246 #endif
26247 char ${pbxfuncname} ();
26249 main ()
26251 return ${pbxfuncname} ();
26253 return 0;
26255 _ACEOF
26256 rm -f conftest.$ac_objext conftest$ac_exeext
26257 if { (ac_try="$ac_link"
26258 case "(($ac_try" in
26259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26260 *) ac_try_echo=$ac_try;;
26261 esac
26262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26263 (eval "$ac_link") 2>conftest.er1
26264 ac_status=$?
26265 grep -v '^ *+' conftest.er1 >conftest.err
26266 rm -f conftest.er1
26267 cat conftest.err >&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } && {
26270 test -z "$ac_c_werror_flag" ||
26271 test ! -s conftest.err
26272 } && test -s conftest$ac_exeext &&
26273 $as_test_x conftest$ac_exeext; then
26274 eval "$as_ac_Lib=yes"
26275 else
26276 echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26279 eval "$as_ac_Lib=no"
26282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26283 conftest$ac_exeext conftest.$ac_ext
26284 LIBS=$ac_check_lib_save_LIBS
26286 ac_res=`eval echo '${'$as_ac_Lib'}'`
26287 { echo "$as_me:$LINENO: result: $ac_res" >&5
26288 echo "${ECHO_T}$ac_res" >&6; }
26289 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26290 AST_SIN_FOUND=yes
26291 else
26292 AST_SIN_FOUND=no
26297 # now check for the header.
26298 if test "${AST_SIN_FOUND}" = "yes"; then
26299 SIN_LIB="${pbxlibdir} -lm "
26300 # if --with-SIN=DIR has been specified, use it.
26301 if test "x${SIN_DIR}" != "x"; then
26302 SIN_INCLUDE="-I${SIN_DIR}/include"
26304 SIN_INCLUDE="${SIN_INCLUDE} "
26305 if test "x" = "x" ; then # no header, assume found
26306 SIN_HEADER_FOUND="1"
26307 else # check for the header
26308 saved_cppflags="${CPPFLAGS}"
26309 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE}"
26310 if test "${ac_cv_header_+set}" = set; then
26311 { echo "$as_me:$LINENO: checking for " >&5
26312 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26313 if test "${ac_cv_header_+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26316 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26317 echo "${ECHO_T}$ac_cv_header_" >&6; }
26318 else
26319 # Is the header compilable?
26320 { echo "$as_me:$LINENO: checking usability" >&5
26321 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26322 cat >conftest.$ac_ext <<_ACEOF
26323 /* confdefs.h. */
26324 _ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h. */
26328 $ac_includes_default
26329 #include <>
26330 _ACEOF
26331 rm -f conftest.$ac_objext
26332 if { (ac_try="$ac_compile"
26333 case "(($ac_try" in
26334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335 *) ac_try_echo=$ac_try;;
26336 esac
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338 (eval "$ac_compile") 2>conftest.er1
26339 ac_status=$?
26340 grep -v '^ *+' conftest.er1 >conftest.err
26341 rm -f conftest.er1
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } && {
26345 test -z "$ac_c_werror_flag" ||
26346 test ! -s conftest.err
26347 } && test -s conftest.$ac_objext; then
26348 ac_header_compiler=yes
26349 else
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 ac_header_compiler=no
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26358 echo "${ECHO_T}$ac_header_compiler" >&6; }
26360 # Is the header present?
26361 { echo "$as_me:$LINENO: checking presence" >&5
26362 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26363 cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h. */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h. */
26369 #include <>
26370 _ACEOF
26371 if { (ac_try="$ac_cpp conftest.$ac_ext"
26372 case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375 esac
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26378 ac_status=$?
26379 grep -v '^ *+' conftest.er1 >conftest.err
26380 rm -f conftest.er1
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); } >/dev/null && {
26384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26385 test ! -s conftest.err
26386 }; then
26387 ac_header_preproc=yes
26388 else
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26392 ac_header_preproc=no
26395 rm -f conftest.err conftest.$ac_ext
26396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26397 echo "${ECHO_T}$ac_header_preproc" >&6; }
26399 # So? What about this header?
26400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26401 yes:no: )
26402 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26403 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26404 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26405 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26406 ac_header_preproc=yes
26408 no:yes:* )
26409 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26410 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26412 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26413 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26414 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26415 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26416 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26417 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26418 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26419 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26420 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26421 ( cat <<\_ASBOX
26422 ## ------------------------------- ##
26423 ## Report this to www.asterisk.org ##
26424 ## ------------------------------- ##
26425 _ASBOX
26426 ) | sed "s/^/$as_me: WARNING: /" >&2
26428 esac
26429 { echo "$as_me:$LINENO: checking for " >&5
26430 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26431 if test "${ac_cv_header_+set}" = set; then
26432 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 else
26434 ac_cv_header_=$ac_header_preproc
26436 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26437 echo "${ECHO_T}$ac_cv_header_" >&6; }
26440 if test $ac_cv_header_ = yes; then
26441 SIN_HEADER_FOUND=1
26442 else
26443 SIN_HEADER_FOUND=0
26447 CPPFLAGS="${saved_cppflags}"
26449 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
26450 SIN_LIB=""
26451 SIN_INCLUDE=""
26452 else
26453 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26454 SIN_LIB=""
26456 PBX_SIN=1
26457 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26459 cat >>confdefs.h <<_ACEOF
26460 #define HAVE_SIN 1
26461 _ACEOF
26464 cat >>confdefs.h <<_ACEOF
26465 #define HAVE_SIN_VERSION
26466 _ACEOF
26473 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
26474 pbxlibdir=""
26475 # if --with-COS=DIR has been specified, use it.
26476 if test "x${COS_DIR}" != "x"; then
26477 if test -d ${COS_DIR}/lib; then
26478 pbxlibdir="-L${COS_DIR}/lib"
26479 else
26480 pbxlibdir="-L${COS_DIR}"
26483 pbxfuncname="cos"
26484 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26485 AST_COS_FOUND=yes
26486 else
26487 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26488 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26489 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26490 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26491 echo $ECHO_N "(cached) $ECHO_C" >&6
26492 else
26493 ac_check_lib_save_LIBS=$LIBS
26494 LIBS="-lm ${pbxlibdir} $LIBS"
26495 cat >conftest.$ac_ext <<_ACEOF
26496 /* confdefs.h. */
26497 _ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h. */
26502 /* Override any GCC internal prototype to avoid an error.
26503 Use char because int might match the return type of a GCC
26504 builtin and then its argument prototype would still apply. */
26505 #ifdef __cplusplus
26506 extern "C"
26507 #endif
26508 char ${pbxfuncname} ();
26510 main ()
26512 return ${pbxfuncname} ();
26514 return 0;
26516 _ACEOF
26517 rm -f conftest.$ac_objext conftest$ac_exeext
26518 if { (ac_try="$ac_link"
26519 case "(($ac_try" in
26520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521 *) ac_try_echo=$ac_try;;
26522 esac
26523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26524 (eval "$ac_link") 2>conftest.er1
26525 ac_status=$?
26526 grep -v '^ *+' conftest.er1 >conftest.err
26527 rm -f conftest.er1
26528 cat conftest.err >&5
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } && {
26531 test -z "$ac_c_werror_flag" ||
26532 test ! -s conftest.err
26533 } && test -s conftest$ac_exeext &&
26534 $as_test_x conftest$ac_exeext; then
26535 eval "$as_ac_Lib=yes"
26536 else
26537 echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26540 eval "$as_ac_Lib=no"
26543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26544 conftest$ac_exeext conftest.$ac_ext
26545 LIBS=$ac_check_lib_save_LIBS
26547 ac_res=`eval echo '${'$as_ac_Lib'}'`
26548 { echo "$as_me:$LINENO: result: $ac_res" >&5
26549 echo "${ECHO_T}$ac_res" >&6; }
26550 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26551 AST_COS_FOUND=yes
26552 else
26553 AST_COS_FOUND=no
26558 # now check for the header.
26559 if test "${AST_COS_FOUND}" = "yes"; then
26560 COS_LIB="${pbxlibdir} -lm "
26561 # if --with-COS=DIR has been specified, use it.
26562 if test "x${COS_DIR}" != "x"; then
26563 COS_INCLUDE="-I${COS_DIR}/include"
26565 COS_INCLUDE="${COS_INCLUDE} "
26566 if test "x" = "x" ; then # no header, assume found
26567 COS_HEADER_FOUND="1"
26568 else # check for the header
26569 saved_cppflags="${CPPFLAGS}"
26570 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE}"
26571 if test "${ac_cv_header_+set}" = set; then
26572 { echo "$as_me:$LINENO: checking for " >&5
26573 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26574 if test "${ac_cv_header_+set}" = set; then
26575 echo $ECHO_N "(cached) $ECHO_C" >&6
26577 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26578 echo "${ECHO_T}$ac_cv_header_" >&6; }
26579 else
26580 # Is the header compilable?
26581 { echo "$as_me:$LINENO: checking usability" >&5
26582 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26583 cat >conftest.$ac_ext <<_ACEOF
26584 /* confdefs.h. */
26585 _ACEOF
26586 cat confdefs.h >>conftest.$ac_ext
26587 cat >>conftest.$ac_ext <<_ACEOF
26588 /* end confdefs.h. */
26589 $ac_includes_default
26590 #include <>
26591 _ACEOF
26592 rm -f conftest.$ac_objext
26593 if { (ac_try="$ac_compile"
26594 case "(($ac_try" in
26595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596 *) ac_try_echo=$ac_try;;
26597 esac
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599 (eval "$ac_compile") 2>conftest.er1
26600 ac_status=$?
26601 grep -v '^ *+' conftest.er1 >conftest.err
26602 rm -f conftest.er1
26603 cat conftest.err >&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } && {
26606 test -z "$ac_c_werror_flag" ||
26607 test ! -s conftest.err
26608 } && test -s conftest.$ac_objext; then
26609 ac_header_compiler=yes
26610 else
26611 echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26614 ac_header_compiler=no
26617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26619 echo "${ECHO_T}$ac_header_compiler" >&6; }
26621 # Is the header present?
26622 { echo "$as_me:$LINENO: checking presence" >&5
26623 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26624 cat >conftest.$ac_ext <<_ACEOF
26625 /* confdefs.h. */
26626 _ACEOF
26627 cat confdefs.h >>conftest.$ac_ext
26628 cat >>conftest.$ac_ext <<_ACEOF
26629 /* end confdefs.h. */
26630 #include <>
26631 _ACEOF
26632 if { (ac_try="$ac_cpp conftest.$ac_ext"
26633 case "(($ac_try" in
26634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635 *) ac_try_echo=$ac_try;;
26636 esac
26637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26639 ac_status=$?
26640 grep -v '^ *+' conftest.er1 >conftest.err
26641 rm -f conftest.er1
26642 cat conftest.err >&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } >/dev/null && {
26645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26646 test ! -s conftest.err
26647 }; then
26648 ac_header_preproc=yes
26649 else
26650 echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26653 ac_header_preproc=no
26656 rm -f conftest.err conftest.$ac_ext
26657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26658 echo "${ECHO_T}$ac_header_preproc" >&6; }
26660 # So? What about this header?
26661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26662 yes:no: )
26663 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26664 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26665 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26666 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26667 ac_header_preproc=yes
26669 no:yes:* )
26670 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26671 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26672 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26673 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26674 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26675 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26676 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26677 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26678 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26679 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26681 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26682 ( cat <<\_ASBOX
26683 ## ------------------------------- ##
26684 ## Report this to www.asterisk.org ##
26685 ## ------------------------------- ##
26686 _ASBOX
26687 ) | sed "s/^/$as_me: WARNING: /" >&2
26689 esac
26690 { echo "$as_me:$LINENO: checking for " >&5
26691 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26692 if test "${ac_cv_header_+set}" = set; then
26693 echo $ECHO_N "(cached) $ECHO_C" >&6
26694 else
26695 ac_cv_header_=$ac_header_preproc
26697 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26698 echo "${ECHO_T}$ac_cv_header_" >&6; }
26701 if test $ac_cv_header_ = yes; then
26702 COS_HEADER_FOUND=1
26703 else
26704 COS_HEADER_FOUND=0
26708 CPPFLAGS="${saved_cppflags}"
26710 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26711 COS_LIB=""
26712 COS_INCLUDE=""
26713 else
26714 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26715 COS_LIB=""
26717 PBX_COS=1
26718 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26720 cat >>confdefs.h <<_ACEOF
26721 #define HAVE_COS 1
26722 _ACEOF
26725 cat >>confdefs.h <<_ACEOF
26726 #define HAVE_COS_VERSION
26727 _ACEOF
26734 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26735 pbxlibdir=""
26736 # if --with-TAN=DIR has been specified, use it.
26737 if test "x${TAN_DIR}" != "x"; then
26738 if test -d ${TAN_DIR}/lib; then
26739 pbxlibdir="-L${TAN_DIR}/lib"
26740 else
26741 pbxlibdir="-L${TAN_DIR}"
26744 pbxfuncname="tan"
26745 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26746 AST_TAN_FOUND=yes
26747 else
26748 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26749 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26750 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26751 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26752 echo $ECHO_N "(cached) $ECHO_C" >&6
26753 else
26754 ac_check_lib_save_LIBS=$LIBS
26755 LIBS="-lm ${pbxlibdir} $LIBS"
26756 cat >conftest.$ac_ext <<_ACEOF
26757 /* confdefs.h. */
26758 _ACEOF
26759 cat confdefs.h >>conftest.$ac_ext
26760 cat >>conftest.$ac_ext <<_ACEOF
26761 /* end confdefs.h. */
26763 /* Override any GCC internal prototype to avoid an error.
26764 Use char because int might match the return type of a GCC
26765 builtin and then its argument prototype would still apply. */
26766 #ifdef __cplusplus
26767 extern "C"
26768 #endif
26769 char ${pbxfuncname} ();
26771 main ()
26773 return ${pbxfuncname} ();
26775 return 0;
26777 _ACEOF
26778 rm -f conftest.$ac_objext conftest$ac_exeext
26779 if { (ac_try="$ac_link"
26780 case "(($ac_try" in
26781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782 *) ac_try_echo=$ac_try;;
26783 esac
26784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26785 (eval "$ac_link") 2>conftest.er1
26786 ac_status=$?
26787 grep -v '^ *+' conftest.er1 >conftest.err
26788 rm -f conftest.er1
26789 cat conftest.err >&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } && {
26792 test -z "$ac_c_werror_flag" ||
26793 test ! -s conftest.err
26794 } && test -s conftest$ac_exeext &&
26795 $as_test_x conftest$ac_exeext; then
26796 eval "$as_ac_Lib=yes"
26797 else
26798 echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26801 eval "$as_ac_Lib=no"
26804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26805 conftest$ac_exeext conftest.$ac_ext
26806 LIBS=$ac_check_lib_save_LIBS
26808 ac_res=`eval echo '${'$as_ac_Lib'}'`
26809 { echo "$as_me:$LINENO: result: $ac_res" >&5
26810 echo "${ECHO_T}$ac_res" >&6; }
26811 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26812 AST_TAN_FOUND=yes
26813 else
26814 AST_TAN_FOUND=no
26819 # now check for the header.
26820 if test "${AST_TAN_FOUND}" = "yes"; then
26821 TAN_LIB="${pbxlibdir} -lm "
26822 # if --with-TAN=DIR has been specified, use it.
26823 if test "x${TAN_DIR}" != "x"; then
26824 TAN_INCLUDE="-I${TAN_DIR}/include"
26826 TAN_INCLUDE="${TAN_INCLUDE} "
26827 if test "x" = "x" ; then # no header, assume found
26828 TAN_HEADER_FOUND="1"
26829 else # check for the header
26830 saved_cppflags="${CPPFLAGS}"
26831 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE}"
26832 if test "${ac_cv_header_+set}" = set; then
26833 { echo "$as_me:$LINENO: checking for " >&5
26834 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26835 if test "${ac_cv_header_+set}" = set; then
26836 echo $ECHO_N "(cached) $ECHO_C" >&6
26838 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26839 echo "${ECHO_T}$ac_cv_header_" >&6; }
26840 else
26841 # Is the header compilable?
26842 { echo "$as_me:$LINENO: checking usability" >&5
26843 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26844 cat >conftest.$ac_ext <<_ACEOF
26845 /* confdefs.h. */
26846 _ACEOF
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h. */
26850 $ac_includes_default
26851 #include <>
26852 _ACEOF
26853 rm -f conftest.$ac_objext
26854 if { (ac_try="$ac_compile"
26855 case "(($ac_try" in
26856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26857 *) ac_try_echo=$ac_try;;
26858 esac
26859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26860 (eval "$ac_compile") 2>conftest.er1
26861 ac_status=$?
26862 grep -v '^ *+' conftest.er1 >conftest.err
26863 rm -f conftest.er1
26864 cat conftest.err >&5
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); } && {
26867 test -z "$ac_c_werror_flag" ||
26868 test ! -s conftest.err
26869 } && test -s conftest.$ac_objext; then
26870 ac_header_compiler=yes
26871 else
26872 echo "$as_me: failed program was:" >&5
26873 sed 's/^/| /' conftest.$ac_ext >&5
26875 ac_header_compiler=no
26878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26880 echo "${ECHO_T}$ac_header_compiler" >&6; }
26882 # Is the header present?
26883 { echo "$as_me:$LINENO: checking presence" >&5
26884 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26885 cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h. */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891 #include <>
26892 _ACEOF
26893 if { (ac_try="$ac_cpp conftest.$ac_ext"
26894 case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26897 esac
26898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26900 ac_status=$?
26901 grep -v '^ *+' conftest.er1 >conftest.err
26902 rm -f conftest.er1
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } >/dev/null && {
26906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26907 test ! -s conftest.err
26908 }; then
26909 ac_header_preproc=yes
26910 else
26911 echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26914 ac_header_preproc=no
26917 rm -f conftest.err conftest.$ac_ext
26918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26919 echo "${ECHO_T}$ac_header_preproc" >&6; }
26921 # So? What about this header?
26922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26923 yes:no: )
26924 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26925 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26926 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26927 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26928 ac_header_preproc=yes
26930 no:yes:* )
26931 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26932 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26933 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26934 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26935 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26936 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26937 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26938 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26939 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26940 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26941 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26942 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26943 ( cat <<\_ASBOX
26944 ## ------------------------------- ##
26945 ## Report this to www.asterisk.org ##
26946 ## ------------------------------- ##
26947 _ASBOX
26948 ) | sed "s/^/$as_me: WARNING: /" >&2
26950 esac
26951 { echo "$as_me:$LINENO: checking for " >&5
26952 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26953 if test "${ac_cv_header_+set}" = set; then
26954 echo $ECHO_N "(cached) $ECHO_C" >&6
26955 else
26956 ac_cv_header_=$ac_header_preproc
26958 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26959 echo "${ECHO_T}$ac_cv_header_" >&6; }
26962 if test $ac_cv_header_ = yes; then
26963 TAN_HEADER_FOUND=1
26964 else
26965 TAN_HEADER_FOUND=0
26969 CPPFLAGS="${saved_cppflags}"
26971 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
26972 TAN_LIB=""
26973 TAN_INCLUDE=""
26974 else
26975 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26976 TAN_LIB=""
26978 PBX_TAN=1
26979 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26981 cat >>confdefs.h <<_ACEOF
26982 #define HAVE_TAN 1
26983 _ACEOF
26986 cat >>confdefs.h <<_ACEOF
26987 #define HAVE_TAN_VERSION
26988 _ACEOF
26995 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
26996 pbxlibdir=""
26997 # if --with-ASIN=DIR has been specified, use it.
26998 if test "x${ASIN_DIR}" != "x"; then
26999 if test -d ${ASIN_DIR}/lib; then
27000 pbxlibdir="-L${ASIN_DIR}/lib"
27001 else
27002 pbxlibdir="-L${ASIN_DIR}"
27005 pbxfuncname="asin"
27006 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27007 AST_ASIN_FOUND=yes
27008 else
27009 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27010 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27011 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27012 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27013 echo $ECHO_N "(cached) $ECHO_C" >&6
27014 else
27015 ac_check_lib_save_LIBS=$LIBS
27016 LIBS="-lm ${pbxlibdir} $LIBS"
27017 cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h. */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h. */
27024 /* Override any GCC internal prototype to avoid an error.
27025 Use char because int might match the return type of a GCC
27026 builtin and then its argument prototype would still apply. */
27027 #ifdef __cplusplus
27028 extern "C"
27029 #endif
27030 char ${pbxfuncname} ();
27032 main ()
27034 return ${pbxfuncname} ();
27036 return 0;
27038 _ACEOF
27039 rm -f conftest.$ac_objext conftest$ac_exeext
27040 if { (ac_try="$ac_link"
27041 case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27044 esac
27045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046 (eval "$ac_link") 2>conftest.er1
27047 ac_status=$?
27048 grep -v '^ *+' conftest.er1 >conftest.err
27049 rm -f conftest.er1
27050 cat conftest.err >&5
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); } && {
27053 test -z "$ac_c_werror_flag" ||
27054 test ! -s conftest.err
27055 } && test -s conftest$ac_exeext &&
27056 $as_test_x conftest$ac_exeext; then
27057 eval "$as_ac_Lib=yes"
27058 else
27059 echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27062 eval "$as_ac_Lib=no"
27065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27066 conftest$ac_exeext conftest.$ac_ext
27067 LIBS=$ac_check_lib_save_LIBS
27069 ac_res=`eval echo '${'$as_ac_Lib'}'`
27070 { echo "$as_me:$LINENO: result: $ac_res" >&5
27071 echo "${ECHO_T}$ac_res" >&6; }
27072 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27073 AST_ASIN_FOUND=yes
27074 else
27075 AST_ASIN_FOUND=no
27080 # now check for the header.
27081 if test "${AST_ASIN_FOUND}" = "yes"; then
27082 ASIN_LIB="${pbxlibdir} -lm "
27083 # if --with-ASIN=DIR has been specified, use it.
27084 if test "x${ASIN_DIR}" != "x"; then
27085 ASIN_INCLUDE="-I${ASIN_DIR}/include"
27087 ASIN_INCLUDE="${ASIN_INCLUDE} "
27088 if test "x" = "x" ; then # no header, assume found
27089 ASIN_HEADER_FOUND="1"
27090 else # check for the header
27091 saved_cppflags="${CPPFLAGS}"
27092 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE}"
27093 if test "${ac_cv_header_+set}" = set; then
27094 { echo "$as_me:$LINENO: checking for " >&5
27095 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27096 if test "${ac_cv_header_+set}" = set; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27099 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27100 echo "${ECHO_T}$ac_cv_header_" >&6; }
27101 else
27102 # Is the header compilable?
27103 { echo "$as_me:$LINENO: checking usability" >&5
27104 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27105 cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h. */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27111 $ac_includes_default
27112 #include <>
27113 _ACEOF
27114 rm -f conftest.$ac_objext
27115 if { (ac_try="$ac_compile"
27116 case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27119 esac
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_compile") 2>conftest.er1
27122 ac_status=$?
27123 grep -v '^ *+' conftest.er1 >conftest.err
27124 rm -f conftest.er1
27125 cat conftest.err >&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); } && {
27128 test -z "$ac_c_werror_flag" ||
27129 test ! -s conftest.err
27130 } && test -s conftest.$ac_objext; then
27131 ac_header_compiler=yes
27132 else
27133 echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27136 ac_header_compiler=no
27139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27141 echo "${ECHO_T}$ac_header_compiler" >&6; }
27143 # Is the header present?
27144 { echo "$as_me:$LINENO: checking presence" >&5
27145 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27146 cat >conftest.$ac_ext <<_ACEOF
27147 /* confdefs.h. */
27148 _ACEOF
27149 cat confdefs.h >>conftest.$ac_ext
27150 cat >>conftest.$ac_ext <<_ACEOF
27151 /* end confdefs.h. */
27152 #include <>
27153 _ACEOF
27154 if { (ac_try="$ac_cpp conftest.$ac_ext"
27155 case "(($ac_try" in
27156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27157 *) ac_try_echo=$ac_try;;
27158 esac
27159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27161 ac_status=$?
27162 grep -v '^ *+' conftest.er1 >conftest.err
27163 rm -f conftest.er1
27164 cat conftest.err >&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } >/dev/null && {
27167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27168 test ! -s conftest.err
27169 }; then
27170 ac_header_preproc=yes
27171 else
27172 echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27175 ac_header_preproc=no
27178 rm -f conftest.err conftest.$ac_ext
27179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27180 echo "${ECHO_T}$ac_header_preproc" >&6; }
27182 # So? What about this header?
27183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27184 yes:no: )
27185 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27186 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27187 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27188 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27189 ac_header_preproc=yes
27191 no:yes:* )
27192 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27193 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27195 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27197 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27198 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27199 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27200 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27201 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27202 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27203 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27204 ( cat <<\_ASBOX
27205 ## ------------------------------- ##
27206 ## Report this to www.asterisk.org ##
27207 ## ------------------------------- ##
27208 _ASBOX
27209 ) | sed "s/^/$as_me: WARNING: /" >&2
27211 esac
27212 { echo "$as_me:$LINENO: checking for " >&5
27213 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27214 if test "${ac_cv_header_+set}" = set; then
27215 echo $ECHO_N "(cached) $ECHO_C" >&6
27216 else
27217 ac_cv_header_=$ac_header_preproc
27219 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27220 echo "${ECHO_T}$ac_cv_header_" >&6; }
27223 if test $ac_cv_header_ = yes; then
27224 ASIN_HEADER_FOUND=1
27225 else
27226 ASIN_HEADER_FOUND=0
27230 CPPFLAGS="${saved_cppflags}"
27232 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
27233 ASIN_LIB=""
27234 ASIN_INCLUDE=""
27235 else
27236 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27237 ASIN_LIB=""
27239 PBX_ASIN=1
27240 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27242 cat >>confdefs.h <<_ACEOF
27243 #define HAVE_ASIN 1
27244 _ACEOF
27247 cat >>confdefs.h <<_ACEOF
27248 #define HAVE_ASIN_VERSION
27249 _ACEOF
27256 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
27257 pbxlibdir=""
27258 # if --with-ACOS=DIR has been specified, use it.
27259 if test "x${ACOS_DIR}" != "x"; then
27260 if test -d ${ACOS_DIR}/lib; then
27261 pbxlibdir="-L${ACOS_DIR}/lib"
27262 else
27263 pbxlibdir="-L${ACOS_DIR}"
27266 pbxfuncname="acos"
27267 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27268 AST_ACOS_FOUND=yes
27269 else
27270 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27271 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27272 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27273 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
27275 else
27276 ac_check_lib_save_LIBS=$LIBS
27277 LIBS="-lm ${pbxlibdir} $LIBS"
27278 cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h. */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27285 /* Override any GCC internal prototype to avoid an error.
27286 Use char because int might match the return type of a GCC
27287 builtin and then its argument prototype would still apply. */
27288 #ifdef __cplusplus
27289 extern "C"
27290 #endif
27291 char ${pbxfuncname} ();
27293 main ()
27295 return ${pbxfuncname} ();
27297 return 0;
27299 _ACEOF
27300 rm -f conftest.$ac_objext conftest$ac_exeext
27301 if { (ac_try="$ac_link"
27302 case "(($ac_try" in
27303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27304 *) ac_try_echo=$ac_try;;
27305 esac
27306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27307 (eval "$ac_link") 2>conftest.er1
27308 ac_status=$?
27309 grep -v '^ *+' conftest.er1 >conftest.err
27310 rm -f conftest.er1
27311 cat conftest.err >&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } && {
27314 test -z "$ac_c_werror_flag" ||
27315 test ! -s conftest.err
27316 } && test -s conftest$ac_exeext &&
27317 $as_test_x conftest$ac_exeext; then
27318 eval "$as_ac_Lib=yes"
27319 else
27320 echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27323 eval "$as_ac_Lib=no"
27326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27327 conftest$ac_exeext conftest.$ac_ext
27328 LIBS=$ac_check_lib_save_LIBS
27330 ac_res=`eval echo '${'$as_ac_Lib'}'`
27331 { echo "$as_me:$LINENO: result: $ac_res" >&5
27332 echo "${ECHO_T}$ac_res" >&6; }
27333 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27334 AST_ACOS_FOUND=yes
27335 else
27336 AST_ACOS_FOUND=no
27341 # now check for the header.
27342 if test "${AST_ACOS_FOUND}" = "yes"; then
27343 ACOS_LIB="${pbxlibdir} -lm "
27344 # if --with-ACOS=DIR has been specified, use it.
27345 if test "x${ACOS_DIR}" != "x"; then
27346 ACOS_INCLUDE="-I${ACOS_DIR}/include"
27348 ACOS_INCLUDE="${ACOS_INCLUDE} "
27349 if test "x" = "x" ; then # no header, assume found
27350 ACOS_HEADER_FOUND="1"
27351 else # check for the header
27352 saved_cppflags="${CPPFLAGS}"
27353 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE}"
27354 if test "${ac_cv_header_+set}" = set; then
27355 { echo "$as_me:$LINENO: checking for " >&5
27356 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27357 if test "${ac_cv_header_+set}" = set; then
27358 echo $ECHO_N "(cached) $ECHO_C" >&6
27360 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27361 echo "${ECHO_T}$ac_cv_header_" >&6; }
27362 else
27363 # Is the header compilable?
27364 { echo "$as_me:$LINENO: checking usability" >&5
27365 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27366 cat >conftest.$ac_ext <<_ACEOF
27367 /* confdefs.h. */
27368 _ACEOF
27369 cat confdefs.h >>conftest.$ac_ext
27370 cat >>conftest.$ac_ext <<_ACEOF
27371 /* end confdefs.h. */
27372 $ac_includes_default
27373 #include <>
27374 _ACEOF
27375 rm -f conftest.$ac_objext
27376 if { (ac_try="$ac_compile"
27377 case "(($ac_try" in
27378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27379 *) ac_try_echo=$ac_try;;
27380 esac
27381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27382 (eval "$ac_compile") 2>conftest.er1
27383 ac_status=$?
27384 grep -v '^ *+' conftest.er1 >conftest.err
27385 rm -f conftest.er1
27386 cat conftest.err >&5
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); } && {
27389 test -z "$ac_c_werror_flag" ||
27390 test ! -s conftest.err
27391 } && test -s conftest.$ac_objext; then
27392 ac_header_compiler=yes
27393 else
27394 echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27397 ac_header_compiler=no
27400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27402 echo "${ECHO_T}$ac_header_compiler" >&6; }
27404 # Is the header present?
27405 { echo "$as_me:$LINENO: checking presence" >&5
27406 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27407 cat >conftest.$ac_ext <<_ACEOF
27408 /* confdefs.h. */
27409 _ACEOF
27410 cat confdefs.h >>conftest.$ac_ext
27411 cat >>conftest.$ac_ext <<_ACEOF
27412 /* end confdefs.h. */
27413 #include <>
27414 _ACEOF
27415 if { (ac_try="$ac_cpp conftest.$ac_ext"
27416 case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27419 esac
27420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27422 ac_status=$?
27423 grep -v '^ *+' conftest.er1 >conftest.err
27424 rm -f conftest.er1
27425 cat conftest.err >&5
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); } >/dev/null && {
27428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27429 test ! -s conftest.err
27430 }; then
27431 ac_header_preproc=yes
27432 else
27433 echo "$as_me: failed program was:" >&5
27434 sed 's/^/| /' conftest.$ac_ext >&5
27436 ac_header_preproc=no
27439 rm -f conftest.err conftest.$ac_ext
27440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27441 echo "${ECHO_T}$ac_header_preproc" >&6; }
27443 # So? What about this header?
27444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27445 yes:no: )
27446 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27447 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27448 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27449 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27450 ac_header_preproc=yes
27452 no:yes:* )
27453 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27454 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27455 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27456 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27457 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27458 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27459 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27460 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27461 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27462 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27463 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27464 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27465 ( cat <<\_ASBOX
27466 ## ------------------------------- ##
27467 ## Report this to www.asterisk.org ##
27468 ## ------------------------------- ##
27469 _ASBOX
27470 ) | sed "s/^/$as_me: WARNING: /" >&2
27472 esac
27473 { echo "$as_me:$LINENO: checking for " >&5
27474 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27475 if test "${ac_cv_header_+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
27477 else
27478 ac_cv_header_=$ac_header_preproc
27480 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27481 echo "${ECHO_T}$ac_cv_header_" >&6; }
27484 if test $ac_cv_header_ = yes; then
27485 ACOS_HEADER_FOUND=1
27486 else
27487 ACOS_HEADER_FOUND=0
27491 CPPFLAGS="${saved_cppflags}"
27493 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
27494 ACOS_LIB=""
27495 ACOS_INCLUDE=""
27496 else
27497 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27498 ACOS_LIB=""
27500 PBX_ACOS=1
27501 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27503 cat >>confdefs.h <<_ACEOF
27504 #define HAVE_ACOS 1
27505 _ACEOF
27508 cat >>confdefs.h <<_ACEOF
27509 #define HAVE_ACOS_VERSION
27510 _ACEOF
27517 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27518 pbxlibdir=""
27519 # if --with-ATAN=DIR has been specified, use it.
27520 if test "x${ATAN_DIR}" != "x"; then
27521 if test -d ${ATAN_DIR}/lib; then
27522 pbxlibdir="-L${ATAN_DIR}/lib"
27523 else
27524 pbxlibdir="-L${ATAN_DIR}"
27527 pbxfuncname="atan"
27528 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27529 AST_ATAN_FOUND=yes
27530 else
27531 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27532 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27533 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27534 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27536 else
27537 ac_check_lib_save_LIBS=$LIBS
27538 LIBS="-lm ${pbxlibdir} $LIBS"
27539 cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h. */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h. */
27546 /* Override any GCC internal prototype to avoid an error.
27547 Use char because int might match the return type of a GCC
27548 builtin and then its argument prototype would still apply. */
27549 #ifdef __cplusplus
27550 extern "C"
27551 #endif
27552 char ${pbxfuncname} ();
27554 main ()
27556 return ${pbxfuncname} ();
27558 return 0;
27560 _ACEOF
27561 rm -f conftest.$ac_objext conftest$ac_exeext
27562 if { (ac_try="$ac_link"
27563 case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27566 esac
27567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_link") 2>conftest.er1
27569 ac_status=$?
27570 grep -v '^ *+' conftest.er1 >conftest.err
27571 rm -f conftest.er1
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); } && {
27575 test -z "$ac_c_werror_flag" ||
27576 test ! -s conftest.err
27577 } && test -s conftest$ac_exeext &&
27578 $as_test_x conftest$ac_exeext; then
27579 eval "$as_ac_Lib=yes"
27580 else
27581 echo "$as_me: failed program was:" >&5
27582 sed 's/^/| /' conftest.$ac_ext >&5
27584 eval "$as_ac_Lib=no"
27587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27588 conftest$ac_exeext conftest.$ac_ext
27589 LIBS=$ac_check_lib_save_LIBS
27591 ac_res=`eval echo '${'$as_ac_Lib'}'`
27592 { echo "$as_me:$LINENO: result: $ac_res" >&5
27593 echo "${ECHO_T}$ac_res" >&6; }
27594 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27595 AST_ATAN_FOUND=yes
27596 else
27597 AST_ATAN_FOUND=no
27602 # now check for the header.
27603 if test "${AST_ATAN_FOUND}" = "yes"; then
27604 ATAN_LIB="${pbxlibdir} -lm "
27605 # if --with-ATAN=DIR has been specified, use it.
27606 if test "x${ATAN_DIR}" != "x"; then
27607 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27609 ATAN_INCLUDE="${ATAN_INCLUDE} "
27610 if test "x" = "x" ; then # no header, assume found
27611 ATAN_HEADER_FOUND="1"
27612 else # check for the header
27613 saved_cppflags="${CPPFLAGS}"
27614 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE}"
27615 if test "${ac_cv_header_+set}" = set; then
27616 { echo "$as_me:$LINENO: checking for " >&5
27617 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27618 if test "${ac_cv_header_+set}" = set; then
27619 echo $ECHO_N "(cached) $ECHO_C" >&6
27621 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27622 echo "${ECHO_T}$ac_cv_header_" >&6; }
27623 else
27624 # Is the header compilable?
27625 { echo "$as_me:$LINENO: checking usability" >&5
27626 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27627 cat >conftest.$ac_ext <<_ACEOF
27628 /* confdefs.h. */
27629 _ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 $ac_includes_default
27634 #include <>
27635 _ACEOF
27636 rm -f conftest.$ac_objext
27637 if { (ac_try="$ac_compile"
27638 case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_compile") 2>conftest.er1
27644 ac_status=$?
27645 grep -v '^ *+' conftest.er1 >conftest.err
27646 rm -f conftest.er1
27647 cat conftest.err >&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); } && {
27650 test -z "$ac_c_werror_flag" ||
27651 test ! -s conftest.err
27652 } && test -s conftest.$ac_objext; then
27653 ac_header_compiler=yes
27654 else
27655 echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27658 ac_header_compiler=no
27661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27663 echo "${ECHO_T}$ac_header_compiler" >&6; }
27665 # Is the header present?
27666 { echo "$as_me:$LINENO: checking presence" >&5
27667 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27668 cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h. */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27674 #include <>
27675 _ACEOF
27676 if { (ac_try="$ac_cpp conftest.$ac_ext"
27677 case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27680 esac
27681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27683 ac_status=$?
27684 grep -v '^ *+' conftest.er1 >conftest.err
27685 rm -f conftest.er1
27686 cat conftest.err >&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } >/dev/null && {
27689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27690 test ! -s conftest.err
27691 }; then
27692 ac_header_preproc=yes
27693 else
27694 echo "$as_me: failed program was:" >&5
27695 sed 's/^/| /' conftest.$ac_ext >&5
27697 ac_header_preproc=no
27700 rm -f conftest.err conftest.$ac_ext
27701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27702 echo "${ECHO_T}$ac_header_preproc" >&6; }
27704 # So? What about this header?
27705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27706 yes:no: )
27707 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27708 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27709 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27710 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27711 ac_header_preproc=yes
27713 no:yes:* )
27714 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27715 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27716 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27717 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27718 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27719 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27720 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27721 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27722 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27723 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27724 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27725 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27726 ( cat <<\_ASBOX
27727 ## ------------------------------- ##
27728 ## Report this to www.asterisk.org ##
27729 ## ------------------------------- ##
27730 _ASBOX
27731 ) | sed "s/^/$as_me: WARNING: /" >&2
27733 esac
27734 { echo "$as_me:$LINENO: checking for " >&5
27735 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27736 if test "${ac_cv_header_+set}" = set; then
27737 echo $ECHO_N "(cached) $ECHO_C" >&6
27738 else
27739 ac_cv_header_=$ac_header_preproc
27741 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27742 echo "${ECHO_T}$ac_cv_header_" >&6; }
27745 if test $ac_cv_header_ = yes; then
27746 ATAN_HEADER_FOUND=1
27747 else
27748 ATAN_HEADER_FOUND=0
27752 CPPFLAGS="${saved_cppflags}"
27754 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27755 ATAN_LIB=""
27756 ATAN_INCLUDE=""
27757 else
27758 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27759 ATAN_LIB=""
27761 PBX_ATAN=1
27762 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27764 cat >>confdefs.h <<_ACEOF
27765 #define HAVE_ATAN 1
27766 _ACEOF
27769 cat >>confdefs.h <<_ACEOF
27770 #define HAVE_ATAN_VERSION
27771 _ACEOF
27778 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27779 pbxlibdir=""
27780 # if --with-ATAN2=DIR has been specified, use it.
27781 if test "x${ATAN2_DIR}" != "x"; then
27782 if test -d ${ATAN2_DIR}/lib; then
27783 pbxlibdir="-L${ATAN2_DIR}/lib"
27784 else
27785 pbxlibdir="-L${ATAN2_DIR}"
27788 pbxfuncname="atan2"
27789 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27790 AST_ATAN2_FOUND=yes
27791 else
27792 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27793 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27794 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27795 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27797 else
27798 ac_check_lib_save_LIBS=$LIBS
27799 LIBS="-lm ${pbxlibdir} $LIBS"
27800 cat >conftest.$ac_ext <<_ACEOF
27801 /* confdefs.h. */
27802 _ACEOF
27803 cat confdefs.h >>conftest.$ac_ext
27804 cat >>conftest.$ac_ext <<_ACEOF
27805 /* end confdefs.h. */
27807 /* Override any GCC internal prototype to avoid an error.
27808 Use char because int might match the return type of a GCC
27809 builtin and then its argument prototype would still apply. */
27810 #ifdef __cplusplus
27811 extern "C"
27812 #endif
27813 char ${pbxfuncname} ();
27815 main ()
27817 return ${pbxfuncname} ();
27819 return 0;
27821 _ACEOF
27822 rm -f conftest.$ac_objext conftest$ac_exeext
27823 if { (ac_try="$ac_link"
27824 case "(($ac_try" in
27825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826 *) ac_try_echo=$ac_try;;
27827 esac
27828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829 (eval "$ac_link") 2>conftest.er1
27830 ac_status=$?
27831 grep -v '^ *+' conftest.er1 >conftest.err
27832 rm -f conftest.er1
27833 cat conftest.err >&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); } && {
27836 test -z "$ac_c_werror_flag" ||
27837 test ! -s conftest.err
27838 } && test -s conftest$ac_exeext &&
27839 $as_test_x conftest$ac_exeext; then
27840 eval "$as_ac_Lib=yes"
27841 else
27842 echo "$as_me: failed program was:" >&5
27843 sed 's/^/| /' conftest.$ac_ext >&5
27845 eval "$as_ac_Lib=no"
27848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27849 conftest$ac_exeext conftest.$ac_ext
27850 LIBS=$ac_check_lib_save_LIBS
27852 ac_res=`eval echo '${'$as_ac_Lib'}'`
27853 { echo "$as_me:$LINENO: result: $ac_res" >&5
27854 echo "${ECHO_T}$ac_res" >&6; }
27855 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27856 AST_ATAN2_FOUND=yes
27857 else
27858 AST_ATAN2_FOUND=no
27863 # now check for the header.
27864 if test "${AST_ATAN2_FOUND}" = "yes"; then
27865 ATAN2_LIB="${pbxlibdir} -lm "
27866 # if --with-ATAN2=DIR has been specified, use it.
27867 if test "x${ATAN2_DIR}" != "x"; then
27868 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27870 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27871 if test "x" = "x" ; then # no header, assume found
27872 ATAN2_HEADER_FOUND="1"
27873 else # check for the header
27874 saved_cppflags="${CPPFLAGS}"
27875 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE}"
27876 if test "${ac_cv_header_+set}" = set; then
27877 { echo "$as_me:$LINENO: checking for " >&5
27878 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27879 if test "${ac_cv_header_+set}" = set; then
27880 echo $ECHO_N "(cached) $ECHO_C" >&6
27882 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27883 echo "${ECHO_T}$ac_cv_header_" >&6; }
27884 else
27885 # Is the header compilable?
27886 { echo "$as_me:$LINENO: checking usability" >&5
27887 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27888 cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h. */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h. */
27894 $ac_includes_default
27895 #include <>
27896 _ACEOF
27897 rm -f conftest.$ac_objext
27898 if { (ac_try="$ac_compile"
27899 case "(($ac_try" in
27900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27901 *) ac_try_echo=$ac_try;;
27902 esac
27903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27904 (eval "$ac_compile") 2>conftest.er1
27905 ac_status=$?
27906 grep -v '^ *+' conftest.er1 >conftest.err
27907 rm -f conftest.er1
27908 cat conftest.err >&5
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); } && {
27911 test -z "$ac_c_werror_flag" ||
27912 test ! -s conftest.err
27913 } && test -s conftest.$ac_objext; then
27914 ac_header_compiler=yes
27915 else
27916 echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27919 ac_header_compiler=no
27922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27924 echo "${ECHO_T}$ac_header_compiler" >&6; }
27926 # Is the header present?
27927 { echo "$as_me:$LINENO: checking presence" >&5
27928 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27929 cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h. */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h. */
27935 #include <>
27936 _ACEOF
27937 if { (ac_try="$ac_cpp conftest.$ac_ext"
27938 case "(($ac_try" in
27939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940 *) ac_try_echo=$ac_try;;
27941 esac
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27944 ac_status=$?
27945 grep -v '^ *+' conftest.er1 >conftest.err
27946 rm -f conftest.er1
27947 cat conftest.err >&5
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } >/dev/null && {
27950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27951 test ! -s conftest.err
27952 }; then
27953 ac_header_preproc=yes
27954 else
27955 echo "$as_me: failed program was:" >&5
27956 sed 's/^/| /' conftest.$ac_ext >&5
27958 ac_header_preproc=no
27961 rm -f conftest.err conftest.$ac_ext
27962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27963 echo "${ECHO_T}$ac_header_preproc" >&6; }
27965 # So? What about this header?
27966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27967 yes:no: )
27968 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27969 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27970 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27971 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27972 ac_header_preproc=yes
27974 no:yes:* )
27975 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27976 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27977 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27978 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27979 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27980 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27981 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27982 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27983 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27984 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27985 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27986 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27987 ( cat <<\_ASBOX
27988 ## ------------------------------- ##
27989 ## Report this to www.asterisk.org ##
27990 ## ------------------------------- ##
27991 _ASBOX
27992 ) | sed "s/^/$as_me: WARNING: /" >&2
27994 esac
27995 { echo "$as_me:$LINENO: checking for " >&5
27996 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27997 if test "${ac_cv_header_+set}" = set; then
27998 echo $ECHO_N "(cached) $ECHO_C" >&6
27999 else
28000 ac_cv_header_=$ac_header_preproc
28002 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28003 echo "${ECHO_T}$ac_cv_header_" >&6; }
28006 if test $ac_cv_header_ = yes; then
28007 ATAN2_HEADER_FOUND=1
28008 else
28009 ATAN2_HEADER_FOUND=0
28013 CPPFLAGS="${saved_cppflags}"
28015 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
28016 ATAN2_LIB=""
28017 ATAN2_INCLUDE=""
28018 else
28019 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28020 ATAN2_LIB=""
28022 PBX_ATAN2=1
28023 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28025 cat >>confdefs.h <<_ACEOF
28026 #define HAVE_ATAN2 1
28027 _ACEOF
28030 cat >>confdefs.h <<_ACEOF
28031 #define HAVE_ATAN2_VERSION
28032 _ACEOF
28039 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
28040 pbxlibdir=""
28041 # if --with-POW=DIR has been specified, use it.
28042 if test "x${POW_DIR}" != "x"; then
28043 if test -d ${POW_DIR}/lib; then
28044 pbxlibdir="-L${POW_DIR}/lib"
28045 else
28046 pbxlibdir="-L${POW_DIR}"
28049 pbxfuncname="pow"
28050 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28051 AST_POW_FOUND=yes
28052 else
28053 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28054 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28055 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28056 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28057 echo $ECHO_N "(cached) $ECHO_C" >&6
28058 else
28059 ac_check_lib_save_LIBS=$LIBS
28060 LIBS="-lm ${pbxlibdir} $LIBS"
28061 cat >conftest.$ac_ext <<_ACEOF
28062 /* confdefs.h. */
28063 _ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h. */
28068 /* Override any GCC internal prototype to avoid an error.
28069 Use char because int might match the return type of a GCC
28070 builtin and then its argument prototype would still apply. */
28071 #ifdef __cplusplus
28072 extern "C"
28073 #endif
28074 char ${pbxfuncname} ();
28076 main ()
28078 return ${pbxfuncname} ();
28080 return 0;
28082 _ACEOF
28083 rm -f conftest.$ac_objext conftest$ac_exeext
28084 if { (ac_try="$ac_link"
28085 case "(($ac_try" in
28086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087 *) ac_try_echo=$ac_try;;
28088 esac
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090 (eval "$ac_link") 2>conftest.er1
28091 ac_status=$?
28092 grep -v '^ *+' conftest.er1 >conftest.err
28093 rm -f conftest.er1
28094 cat conftest.err >&5
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); } && {
28097 test -z "$ac_c_werror_flag" ||
28098 test ! -s conftest.err
28099 } && test -s conftest$ac_exeext &&
28100 $as_test_x conftest$ac_exeext; then
28101 eval "$as_ac_Lib=yes"
28102 else
28103 echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28106 eval "$as_ac_Lib=no"
28109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28110 conftest$ac_exeext conftest.$ac_ext
28111 LIBS=$ac_check_lib_save_LIBS
28113 ac_res=`eval echo '${'$as_ac_Lib'}'`
28114 { echo "$as_me:$LINENO: result: $ac_res" >&5
28115 echo "${ECHO_T}$ac_res" >&6; }
28116 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28117 AST_POW_FOUND=yes
28118 else
28119 AST_POW_FOUND=no
28124 # now check for the header.
28125 if test "${AST_POW_FOUND}" = "yes"; then
28126 POW_LIB="${pbxlibdir} -lm "
28127 # if --with-POW=DIR has been specified, use it.
28128 if test "x${POW_DIR}" != "x"; then
28129 POW_INCLUDE="-I${POW_DIR}/include"
28131 POW_INCLUDE="${POW_INCLUDE} "
28132 if test "x" = "x" ; then # no header, assume found
28133 POW_HEADER_FOUND="1"
28134 else # check for the header
28135 saved_cppflags="${CPPFLAGS}"
28136 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE}"
28137 if test "${ac_cv_header_+set}" = set; then
28138 { echo "$as_me:$LINENO: checking for " >&5
28139 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28140 if test "${ac_cv_header_+set}" = set; then
28141 echo $ECHO_N "(cached) $ECHO_C" >&6
28143 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28144 echo "${ECHO_T}$ac_cv_header_" >&6; }
28145 else
28146 # Is the header compilable?
28147 { echo "$as_me:$LINENO: checking usability" >&5
28148 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28149 cat >conftest.$ac_ext <<_ACEOF
28150 /* confdefs.h. */
28151 _ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h. */
28155 $ac_includes_default
28156 #include <>
28157 _ACEOF
28158 rm -f conftest.$ac_objext
28159 if { (ac_try="$ac_compile"
28160 case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_compile") 2>conftest.er1
28166 ac_status=$?
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } && {
28172 test -z "$ac_c_werror_flag" ||
28173 test ! -s conftest.err
28174 } && test -s conftest.$ac_objext; then
28175 ac_header_compiler=yes
28176 else
28177 echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28180 ac_header_compiler=no
28183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28185 echo "${ECHO_T}$ac_header_compiler" >&6; }
28187 # Is the header present?
28188 { echo "$as_me:$LINENO: checking presence" >&5
28189 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28190 cat >conftest.$ac_ext <<_ACEOF
28191 /* confdefs.h. */
28192 _ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h. */
28196 #include <>
28197 _ACEOF
28198 if { (ac_try="$ac_cpp conftest.$ac_ext"
28199 case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28202 esac
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28205 ac_status=$?
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } >/dev/null && {
28211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28212 test ! -s conftest.err
28213 }; then
28214 ac_header_preproc=yes
28215 else
28216 echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219 ac_header_preproc=no
28222 rm -f conftest.err conftest.$ac_ext
28223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28224 echo "${ECHO_T}$ac_header_preproc" >&6; }
28226 # So? What about this header?
28227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28228 yes:no: )
28229 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28230 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28231 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28232 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28233 ac_header_preproc=yes
28235 no:yes:* )
28236 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28237 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28238 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28239 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28240 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28241 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28242 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28243 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28244 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28245 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28246 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28247 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28248 ( cat <<\_ASBOX
28249 ## ------------------------------- ##
28250 ## Report this to www.asterisk.org ##
28251 ## ------------------------------- ##
28252 _ASBOX
28253 ) | sed "s/^/$as_me: WARNING: /" >&2
28255 esac
28256 { echo "$as_me:$LINENO: checking for " >&5
28257 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28258 if test "${ac_cv_header_+set}" = set; then
28259 echo $ECHO_N "(cached) $ECHO_C" >&6
28260 else
28261 ac_cv_header_=$ac_header_preproc
28263 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28264 echo "${ECHO_T}$ac_cv_header_" >&6; }
28267 if test $ac_cv_header_ = yes; then
28268 POW_HEADER_FOUND=1
28269 else
28270 POW_HEADER_FOUND=0
28274 CPPFLAGS="${saved_cppflags}"
28276 if test "x${POW_HEADER_FOUND}" = "x0" ; then
28277 POW_LIB=""
28278 POW_INCLUDE=""
28279 else
28280 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28281 POW_LIB=""
28283 PBX_POW=1
28284 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28286 cat >>confdefs.h <<_ACEOF
28287 #define HAVE_POW 1
28288 _ACEOF
28291 cat >>confdefs.h <<_ACEOF
28292 #define HAVE_POW_VERSION
28293 _ACEOF
28300 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
28301 pbxlibdir=""
28302 # if --with-SQRT=DIR has been specified, use it.
28303 if test "x${SQRT_DIR}" != "x"; then
28304 if test -d ${SQRT_DIR}/lib; then
28305 pbxlibdir="-L${SQRT_DIR}/lib"
28306 else
28307 pbxlibdir="-L${SQRT_DIR}"
28310 pbxfuncname="sqrt"
28311 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28312 AST_SQRT_FOUND=yes
28313 else
28314 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28315 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28316 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28317 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28319 else
28320 ac_check_lib_save_LIBS=$LIBS
28321 LIBS="-lm ${pbxlibdir} $LIBS"
28322 cat >conftest.$ac_ext <<_ACEOF
28323 /* confdefs.h. */
28324 _ACEOF
28325 cat confdefs.h >>conftest.$ac_ext
28326 cat >>conftest.$ac_ext <<_ACEOF
28327 /* end confdefs.h. */
28329 /* Override any GCC internal prototype to avoid an error.
28330 Use char because int might match the return type of a GCC
28331 builtin and then its argument prototype would still apply. */
28332 #ifdef __cplusplus
28333 extern "C"
28334 #endif
28335 char ${pbxfuncname} ();
28337 main ()
28339 return ${pbxfuncname} ();
28341 return 0;
28343 _ACEOF
28344 rm -f conftest.$ac_objext conftest$ac_exeext
28345 if { (ac_try="$ac_link"
28346 case "(($ac_try" in
28347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28348 *) ac_try_echo=$ac_try;;
28349 esac
28350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28351 (eval "$ac_link") 2>conftest.er1
28352 ac_status=$?
28353 grep -v '^ *+' conftest.er1 >conftest.err
28354 rm -f conftest.er1
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } && {
28358 test -z "$ac_c_werror_flag" ||
28359 test ! -s conftest.err
28360 } && test -s conftest$ac_exeext &&
28361 $as_test_x conftest$ac_exeext; then
28362 eval "$as_ac_Lib=yes"
28363 else
28364 echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28367 eval "$as_ac_Lib=no"
28370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28371 conftest$ac_exeext conftest.$ac_ext
28372 LIBS=$ac_check_lib_save_LIBS
28374 ac_res=`eval echo '${'$as_ac_Lib'}'`
28375 { echo "$as_me:$LINENO: result: $ac_res" >&5
28376 echo "${ECHO_T}$ac_res" >&6; }
28377 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28378 AST_SQRT_FOUND=yes
28379 else
28380 AST_SQRT_FOUND=no
28385 # now check for the header.
28386 if test "${AST_SQRT_FOUND}" = "yes"; then
28387 SQRT_LIB="${pbxlibdir} -lm "
28388 # if --with-SQRT=DIR has been specified, use it.
28389 if test "x${SQRT_DIR}" != "x"; then
28390 SQRT_INCLUDE="-I${SQRT_DIR}/include"
28392 SQRT_INCLUDE="${SQRT_INCLUDE} "
28393 if test "x" = "x" ; then # no header, assume found
28394 SQRT_HEADER_FOUND="1"
28395 else # check for the header
28396 saved_cppflags="${CPPFLAGS}"
28397 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE}"
28398 if test "${ac_cv_header_+set}" = set; then
28399 { echo "$as_me:$LINENO: checking for " >&5
28400 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28401 if test "${ac_cv_header_+set}" = set; then
28402 echo $ECHO_N "(cached) $ECHO_C" >&6
28404 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28405 echo "${ECHO_T}$ac_cv_header_" >&6; }
28406 else
28407 # Is the header compilable?
28408 { echo "$as_me:$LINENO: checking usability" >&5
28409 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28410 cat >conftest.$ac_ext <<_ACEOF
28411 /* confdefs.h. */
28412 _ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h. */
28416 $ac_includes_default
28417 #include <>
28418 _ACEOF
28419 rm -f conftest.$ac_objext
28420 if { (ac_try="$ac_compile"
28421 case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28424 esac
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_compile") 2>conftest.er1
28427 ac_status=$?
28428 grep -v '^ *+' conftest.er1 >conftest.err
28429 rm -f conftest.er1
28430 cat conftest.err >&5
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } && {
28433 test -z "$ac_c_werror_flag" ||
28434 test ! -s conftest.err
28435 } && test -s conftest.$ac_objext; then
28436 ac_header_compiler=yes
28437 else
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28441 ac_header_compiler=no
28444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28446 echo "${ECHO_T}$ac_header_compiler" >&6; }
28448 # Is the header present?
28449 { echo "$as_me:$LINENO: checking presence" >&5
28450 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28451 cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h. */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28457 #include <>
28458 _ACEOF
28459 if { (ac_try="$ac_cpp conftest.$ac_ext"
28460 case "(($ac_try" in
28461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462 *) ac_try_echo=$ac_try;;
28463 esac
28464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28466 ac_status=$?
28467 grep -v '^ *+' conftest.er1 >conftest.err
28468 rm -f conftest.er1
28469 cat conftest.err >&5
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } >/dev/null && {
28472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28473 test ! -s conftest.err
28474 }; then
28475 ac_header_preproc=yes
28476 else
28477 echo "$as_me: failed program was:" >&5
28478 sed 's/^/| /' conftest.$ac_ext >&5
28480 ac_header_preproc=no
28483 rm -f conftest.err conftest.$ac_ext
28484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28485 echo "${ECHO_T}$ac_header_preproc" >&6; }
28487 # So? What about this header?
28488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28489 yes:no: )
28490 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28491 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28492 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28493 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28494 ac_header_preproc=yes
28496 no:yes:* )
28497 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28498 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28499 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28500 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28501 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28502 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28503 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28504 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28505 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28506 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28507 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28508 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28509 ( cat <<\_ASBOX
28510 ## ------------------------------- ##
28511 ## Report this to www.asterisk.org ##
28512 ## ------------------------------- ##
28513 _ASBOX
28514 ) | sed "s/^/$as_me: WARNING: /" >&2
28516 esac
28517 { echo "$as_me:$LINENO: checking for " >&5
28518 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28519 if test "${ac_cv_header_+set}" = set; then
28520 echo $ECHO_N "(cached) $ECHO_C" >&6
28521 else
28522 ac_cv_header_=$ac_header_preproc
28524 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28525 echo "${ECHO_T}$ac_cv_header_" >&6; }
28528 if test $ac_cv_header_ = yes; then
28529 SQRT_HEADER_FOUND=1
28530 else
28531 SQRT_HEADER_FOUND=0
28535 CPPFLAGS="${saved_cppflags}"
28537 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28538 SQRT_LIB=""
28539 SQRT_INCLUDE=""
28540 else
28541 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28542 SQRT_LIB=""
28544 PBX_SQRT=1
28545 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28547 cat >>confdefs.h <<_ACEOF
28548 #define HAVE_SQRT 1
28549 _ACEOF
28552 cat >>confdefs.h <<_ACEOF
28553 #define HAVE_SQRT_VERSION
28554 _ACEOF
28561 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28562 pbxlibdir=""
28563 # if --with-RINT=DIR has been specified, use it.
28564 if test "x${RINT_DIR}" != "x"; then
28565 if test -d ${RINT_DIR}/lib; then
28566 pbxlibdir="-L${RINT_DIR}/lib"
28567 else
28568 pbxlibdir="-L${RINT_DIR}"
28571 pbxfuncname="rint"
28572 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28573 AST_RINT_FOUND=yes
28574 else
28575 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28576 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28577 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28578 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28580 else
28581 ac_check_lib_save_LIBS=$LIBS
28582 LIBS="-lm ${pbxlibdir} $LIBS"
28583 cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h. */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28590 /* Override any GCC internal prototype to avoid an error.
28591 Use char because int might match the return type of a GCC
28592 builtin and then its argument prototype would still apply. */
28593 #ifdef __cplusplus
28594 extern "C"
28595 #endif
28596 char ${pbxfuncname} ();
28598 main ()
28600 return ${pbxfuncname} ();
28602 return 0;
28604 _ACEOF
28605 rm -f conftest.$ac_objext conftest$ac_exeext
28606 if { (ac_try="$ac_link"
28607 case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28610 esac
28611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612 (eval "$ac_link") 2>conftest.er1
28613 ac_status=$?
28614 grep -v '^ *+' conftest.er1 >conftest.err
28615 rm -f conftest.er1
28616 cat conftest.err >&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); } && {
28619 test -z "$ac_c_werror_flag" ||
28620 test ! -s conftest.err
28621 } && test -s conftest$ac_exeext &&
28622 $as_test_x conftest$ac_exeext; then
28623 eval "$as_ac_Lib=yes"
28624 else
28625 echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 eval "$as_ac_Lib=no"
28631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28632 conftest$ac_exeext conftest.$ac_ext
28633 LIBS=$ac_check_lib_save_LIBS
28635 ac_res=`eval echo '${'$as_ac_Lib'}'`
28636 { echo "$as_me:$LINENO: result: $ac_res" >&5
28637 echo "${ECHO_T}$ac_res" >&6; }
28638 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28639 AST_RINT_FOUND=yes
28640 else
28641 AST_RINT_FOUND=no
28646 # now check for the header.
28647 if test "${AST_RINT_FOUND}" = "yes"; then
28648 RINT_LIB="${pbxlibdir} -lm "
28649 # if --with-RINT=DIR has been specified, use it.
28650 if test "x${RINT_DIR}" != "x"; then
28651 RINT_INCLUDE="-I${RINT_DIR}/include"
28653 RINT_INCLUDE="${RINT_INCLUDE} "
28654 if test "x" = "x" ; then # no header, assume found
28655 RINT_HEADER_FOUND="1"
28656 else # check for the header
28657 saved_cppflags="${CPPFLAGS}"
28658 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE}"
28659 if test "${ac_cv_header_+set}" = set; then
28660 { echo "$as_me:$LINENO: checking for " >&5
28661 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28662 if test "${ac_cv_header_+set}" = set; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28665 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28666 echo "${ECHO_T}$ac_cv_header_" >&6; }
28667 else
28668 # Is the header compilable?
28669 { echo "$as_me:$LINENO: checking usability" >&5
28670 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28671 cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h. */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h. */
28677 $ac_includes_default
28678 #include <>
28679 _ACEOF
28680 rm -f conftest.$ac_objext
28681 if { (ac_try="$ac_compile"
28682 case "(($ac_try" in
28683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684 *) ac_try_echo=$ac_try;;
28685 esac
28686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687 (eval "$ac_compile") 2>conftest.er1
28688 ac_status=$?
28689 grep -v '^ *+' conftest.er1 >conftest.err
28690 rm -f conftest.er1
28691 cat conftest.err >&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } && {
28694 test -z "$ac_c_werror_flag" ||
28695 test ! -s conftest.err
28696 } && test -s conftest.$ac_objext; then
28697 ac_header_compiler=yes
28698 else
28699 echo "$as_me: failed program was:" >&5
28700 sed 's/^/| /' conftest.$ac_ext >&5
28702 ac_header_compiler=no
28705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28707 echo "${ECHO_T}$ac_header_compiler" >&6; }
28709 # Is the header present?
28710 { echo "$as_me:$LINENO: checking presence" >&5
28711 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28712 cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h. */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h. */
28718 #include <>
28719 _ACEOF
28720 if { (ac_try="$ac_cpp conftest.$ac_ext"
28721 case "(($ac_try" in
28722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723 *) ac_try_echo=$ac_try;;
28724 esac
28725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28727 ac_status=$?
28728 grep -v '^ *+' conftest.er1 >conftest.err
28729 rm -f conftest.er1
28730 cat conftest.err >&5
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); } >/dev/null && {
28733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28734 test ! -s conftest.err
28735 }; then
28736 ac_header_preproc=yes
28737 else
28738 echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28741 ac_header_preproc=no
28744 rm -f conftest.err conftest.$ac_ext
28745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28746 echo "${ECHO_T}$ac_header_preproc" >&6; }
28748 # So? What about this header?
28749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28750 yes:no: )
28751 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28752 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28753 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28754 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28755 ac_header_preproc=yes
28757 no:yes:* )
28758 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28759 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28760 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28761 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28762 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28763 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28764 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28765 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28766 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28767 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28768 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28769 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28770 ( cat <<\_ASBOX
28771 ## ------------------------------- ##
28772 ## Report this to www.asterisk.org ##
28773 ## ------------------------------- ##
28774 _ASBOX
28775 ) | sed "s/^/$as_me: WARNING: /" >&2
28777 esac
28778 { echo "$as_me:$LINENO: checking for " >&5
28779 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28780 if test "${ac_cv_header_+set}" = set; then
28781 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 else
28783 ac_cv_header_=$ac_header_preproc
28785 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28786 echo "${ECHO_T}$ac_cv_header_" >&6; }
28789 if test $ac_cv_header_ = yes; then
28790 RINT_HEADER_FOUND=1
28791 else
28792 RINT_HEADER_FOUND=0
28796 CPPFLAGS="${saved_cppflags}"
28798 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28799 RINT_LIB=""
28800 RINT_INCLUDE=""
28801 else
28802 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28803 RINT_LIB=""
28805 PBX_RINT=1
28806 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28808 cat >>confdefs.h <<_ACEOF
28809 #define HAVE_RINT 1
28810 _ACEOF
28813 cat >>confdefs.h <<_ACEOF
28814 #define HAVE_RINT_VERSION
28815 _ACEOF
28822 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28823 pbxlibdir=""
28824 # if --with-EXP=DIR has been specified, use it.
28825 if test "x${EXP_DIR}" != "x"; then
28826 if test -d ${EXP_DIR}/lib; then
28827 pbxlibdir="-L${EXP_DIR}/lib"
28828 else
28829 pbxlibdir="-L${EXP_DIR}"
28832 pbxfuncname="exp"
28833 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28834 AST_EXP_FOUND=yes
28835 else
28836 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28837 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28838 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28839 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28840 echo $ECHO_N "(cached) $ECHO_C" >&6
28841 else
28842 ac_check_lib_save_LIBS=$LIBS
28843 LIBS="-lm ${pbxlibdir} $LIBS"
28844 cat >conftest.$ac_ext <<_ACEOF
28845 /* confdefs.h. */
28846 _ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h. */
28851 /* Override any GCC internal prototype to avoid an error.
28852 Use char because int might match the return type of a GCC
28853 builtin and then its argument prototype would still apply. */
28854 #ifdef __cplusplus
28855 extern "C"
28856 #endif
28857 char ${pbxfuncname} ();
28859 main ()
28861 return ${pbxfuncname} ();
28863 return 0;
28865 _ACEOF
28866 rm -f conftest.$ac_objext conftest$ac_exeext
28867 if { (ac_try="$ac_link"
28868 case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28871 esac
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_link") 2>conftest.er1
28874 ac_status=$?
28875 grep -v '^ *+' conftest.er1 >conftest.err
28876 rm -f conftest.er1
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } && {
28880 test -z "$ac_c_werror_flag" ||
28881 test ! -s conftest.err
28882 } && test -s conftest$ac_exeext &&
28883 $as_test_x conftest$ac_exeext; then
28884 eval "$as_ac_Lib=yes"
28885 else
28886 echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28889 eval "$as_ac_Lib=no"
28892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28893 conftest$ac_exeext conftest.$ac_ext
28894 LIBS=$ac_check_lib_save_LIBS
28896 ac_res=`eval echo '${'$as_ac_Lib'}'`
28897 { echo "$as_me:$LINENO: result: $ac_res" >&5
28898 echo "${ECHO_T}$ac_res" >&6; }
28899 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28900 AST_EXP_FOUND=yes
28901 else
28902 AST_EXP_FOUND=no
28907 # now check for the header.
28908 if test "${AST_EXP_FOUND}" = "yes"; then
28909 EXP_LIB="${pbxlibdir} -lm "
28910 # if --with-EXP=DIR has been specified, use it.
28911 if test "x${EXP_DIR}" != "x"; then
28912 EXP_INCLUDE="-I${EXP_DIR}/include"
28914 EXP_INCLUDE="${EXP_INCLUDE} "
28915 if test "x" = "x" ; then # no header, assume found
28916 EXP_HEADER_FOUND="1"
28917 else # check for the header
28918 saved_cppflags="${CPPFLAGS}"
28919 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE}"
28920 if test "${ac_cv_header_+set}" = set; then
28921 { echo "$as_me:$LINENO: checking for " >&5
28922 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28923 if test "${ac_cv_header_+set}" = set; then
28924 echo $ECHO_N "(cached) $ECHO_C" >&6
28926 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28927 echo "${ECHO_T}$ac_cv_header_" >&6; }
28928 else
28929 # Is the header compilable?
28930 { echo "$as_me:$LINENO: checking usability" >&5
28931 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28932 cat >conftest.$ac_ext <<_ACEOF
28933 /* confdefs.h. */
28934 _ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h. */
28938 $ac_includes_default
28939 #include <>
28940 _ACEOF
28941 rm -f conftest.$ac_objext
28942 if { (ac_try="$ac_compile"
28943 case "(($ac_try" in
28944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28945 *) ac_try_echo=$ac_try;;
28946 esac
28947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28948 (eval "$ac_compile") 2>conftest.er1
28949 ac_status=$?
28950 grep -v '^ *+' conftest.er1 >conftest.err
28951 rm -f conftest.er1
28952 cat conftest.err >&5
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); } && {
28955 test -z "$ac_c_werror_flag" ||
28956 test ! -s conftest.err
28957 } && test -s conftest.$ac_objext; then
28958 ac_header_compiler=yes
28959 else
28960 echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28963 ac_header_compiler=no
28966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28968 echo "${ECHO_T}$ac_header_compiler" >&6; }
28970 # Is the header present?
28971 { echo "$as_me:$LINENO: checking presence" >&5
28972 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28973 cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h. */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h. */
28979 #include <>
28980 _ACEOF
28981 if { (ac_try="$ac_cpp conftest.$ac_ext"
28982 case "(($ac_try" in
28983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 *) ac_try_echo=$ac_try;;
28985 esac
28986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28988 ac_status=$?
28989 grep -v '^ *+' conftest.er1 >conftest.err
28990 rm -f conftest.er1
28991 cat conftest.err >&5
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); } >/dev/null && {
28994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28995 test ! -s conftest.err
28996 }; then
28997 ac_header_preproc=yes
28998 else
28999 echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29002 ac_header_preproc=no
29005 rm -f conftest.err conftest.$ac_ext
29006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29007 echo "${ECHO_T}$ac_header_preproc" >&6; }
29009 # So? What about this header?
29010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29011 yes:no: )
29012 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29013 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29014 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29015 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29016 ac_header_preproc=yes
29018 no:yes:* )
29019 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29020 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29021 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29022 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29023 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29024 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29025 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29026 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29027 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29028 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29029 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29030 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29031 ( cat <<\_ASBOX
29032 ## ------------------------------- ##
29033 ## Report this to www.asterisk.org ##
29034 ## ------------------------------- ##
29035 _ASBOX
29036 ) | sed "s/^/$as_me: WARNING: /" >&2
29038 esac
29039 { echo "$as_me:$LINENO: checking for " >&5
29040 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29041 if test "${ac_cv_header_+set}" = set; then
29042 echo $ECHO_N "(cached) $ECHO_C" >&6
29043 else
29044 ac_cv_header_=$ac_header_preproc
29046 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29047 echo "${ECHO_T}$ac_cv_header_" >&6; }
29050 if test $ac_cv_header_ = yes; then
29051 EXP_HEADER_FOUND=1
29052 else
29053 EXP_HEADER_FOUND=0
29057 CPPFLAGS="${saved_cppflags}"
29059 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
29060 EXP_LIB=""
29061 EXP_INCLUDE=""
29062 else
29063 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29064 EXP_LIB=""
29066 PBX_EXP=1
29067 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29069 cat >>confdefs.h <<_ACEOF
29070 #define HAVE_EXP 1
29071 _ACEOF
29074 cat >>confdefs.h <<_ACEOF
29075 #define HAVE_EXP_VERSION
29076 _ACEOF
29083 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
29084 pbxlibdir=""
29085 # if --with-LOG=DIR has been specified, use it.
29086 if test "x${LOG_DIR}" != "x"; then
29087 if test -d ${LOG_DIR}/lib; then
29088 pbxlibdir="-L${LOG_DIR}/lib"
29089 else
29090 pbxlibdir="-L${LOG_DIR}"
29093 pbxfuncname="log"
29094 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29095 AST_LOG_FOUND=yes
29096 else
29097 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29098 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29099 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29100 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29101 echo $ECHO_N "(cached) $ECHO_C" >&6
29102 else
29103 ac_check_lib_save_LIBS=$LIBS
29104 LIBS="-lm ${pbxlibdir} $LIBS"
29105 cat >conftest.$ac_ext <<_ACEOF
29106 /* confdefs.h. */
29107 _ACEOF
29108 cat confdefs.h >>conftest.$ac_ext
29109 cat >>conftest.$ac_ext <<_ACEOF
29110 /* end confdefs.h. */
29112 /* Override any GCC internal prototype to avoid an error.
29113 Use char because int might match the return type of a GCC
29114 builtin and then its argument prototype would still apply. */
29115 #ifdef __cplusplus
29116 extern "C"
29117 #endif
29118 char ${pbxfuncname} ();
29120 main ()
29122 return ${pbxfuncname} ();
29124 return 0;
29126 _ACEOF
29127 rm -f conftest.$ac_objext conftest$ac_exeext
29128 if { (ac_try="$ac_link"
29129 case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29132 esac
29133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134 (eval "$ac_link") 2>conftest.er1
29135 ac_status=$?
29136 grep -v '^ *+' conftest.er1 >conftest.err
29137 rm -f conftest.er1
29138 cat conftest.err >&5
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); } && {
29141 test -z "$ac_c_werror_flag" ||
29142 test ! -s conftest.err
29143 } && test -s conftest$ac_exeext &&
29144 $as_test_x conftest$ac_exeext; then
29145 eval "$as_ac_Lib=yes"
29146 else
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29150 eval "$as_ac_Lib=no"
29153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29154 conftest$ac_exeext conftest.$ac_ext
29155 LIBS=$ac_check_lib_save_LIBS
29157 ac_res=`eval echo '${'$as_ac_Lib'}'`
29158 { echo "$as_me:$LINENO: result: $ac_res" >&5
29159 echo "${ECHO_T}$ac_res" >&6; }
29160 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29161 AST_LOG_FOUND=yes
29162 else
29163 AST_LOG_FOUND=no
29168 # now check for the header.
29169 if test "${AST_LOG_FOUND}" = "yes"; then
29170 LOG_LIB="${pbxlibdir} -lm "
29171 # if --with-LOG=DIR has been specified, use it.
29172 if test "x${LOG_DIR}" != "x"; then
29173 LOG_INCLUDE="-I${LOG_DIR}/include"
29175 LOG_INCLUDE="${LOG_INCLUDE} "
29176 if test "x" = "x" ; then # no header, assume found
29177 LOG_HEADER_FOUND="1"
29178 else # check for the header
29179 saved_cppflags="${CPPFLAGS}"
29180 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE}"
29181 if test "${ac_cv_header_+set}" = set; then
29182 { echo "$as_me:$LINENO: checking for " >&5
29183 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29184 if test "${ac_cv_header_+set}" = set; then
29185 echo $ECHO_N "(cached) $ECHO_C" >&6
29187 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29188 echo "${ECHO_T}$ac_cv_header_" >&6; }
29189 else
29190 # Is the header compilable?
29191 { echo "$as_me:$LINENO: checking usability" >&5
29192 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29193 cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h. */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29199 $ac_includes_default
29200 #include <>
29201 _ACEOF
29202 rm -f conftest.$ac_objext
29203 if { (ac_try="$ac_compile"
29204 case "(($ac_try" in
29205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29206 *) ac_try_echo=$ac_try;;
29207 esac
29208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29209 (eval "$ac_compile") 2>conftest.er1
29210 ac_status=$?
29211 grep -v '^ *+' conftest.er1 >conftest.err
29212 rm -f conftest.er1
29213 cat conftest.err >&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } && {
29216 test -z "$ac_c_werror_flag" ||
29217 test ! -s conftest.err
29218 } && test -s conftest.$ac_objext; then
29219 ac_header_compiler=yes
29220 else
29221 echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29224 ac_header_compiler=no
29227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29229 echo "${ECHO_T}$ac_header_compiler" >&6; }
29231 # Is the header present?
29232 { echo "$as_me:$LINENO: checking presence" >&5
29233 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29234 cat >conftest.$ac_ext <<_ACEOF
29235 /* confdefs.h. */
29236 _ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29240 #include <>
29241 _ACEOF
29242 if { (ac_try="$ac_cpp conftest.$ac_ext"
29243 case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29249 ac_status=$?
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } >/dev/null && {
29255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29256 test ! -s conftest.err
29257 }; then
29258 ac_header_preproc=yes
29259 else
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29263 ac_header_preproc=no
29266 rm -f conftest.err conftest.$ac_ext
29267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29268 echo "${ECHO_T}$ac_header_preproc" >&6; }
29270 # So? What about this header?
29271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29272 yes:no: )
29273 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29274 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29275 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29276 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29277 ac_header_preproc=yes
29279 no:yes:* )
29280 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29281 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29282 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29283 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29284 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29285 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29286 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29287 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29288 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29289 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29290 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29291 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29292 ( cat <<\_ASBOX
29293 ## ------------------------------- ##
29294 ## Report this to www.asterisk.org ##
29295 ## ------------------------------- ##
29296 _ASBOX
29297 ) | sed "s/^/$as_me: WARNING: /" >&2
29299 esac
29300 { echo "$as_me:$LINENO: checking for " >&5
29301 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29302 if test "${ac_cv_header_+set}" = set; then
29303 echo $ECHO_N "(cached) $ECHO_C" >&6
29304 else
29305 ac_cv_header_=$ac_header_preproc
29307 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29308 echo "${ECHO_T}$ac_cv_header_" >&6; }
29311 if test $ac_cv_header_ = yes; then
29312 LOG_HEADER_FOUND=1
29313 else
29314 LOG_HEADER_FOUND=0
29318 CPPFLAGS="${saved_cppflags}"
29320 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
29321 LOG_LIB=""
29322 LOG_INCLUDE=""
29323 else
29324 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29325 LOG_LIB=""
29327 PBX_LOG=1
29328 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29330 cat >>confdefs.h <<_ACEOF
29331 #define HAVE_LOG 1
29332 _ACEOF
29335 cat >>confdefs.h <<_ACEOF
29336 #define HAVE_LOG_VERSION
29337 _ACEOF
29344 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
29345 pbxlibdir=""
29346 # if --with-REMAINDER=DIR has been specified, use it.
29347 if test "x${REMAINDER_DIR}" != "x"; then
29348 if test -d ${REMAINDER_DIR}/lib; then
29349 pbxlibdir="-L${REMAINDER_DIR}/lib"
29350 else
29351 pbxlibdir="-L${REMAINDER_DIR}"
29354 pbxfuncname="remainder"
29355 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29356 AST_REMAINDER_FOUND=yes
29357 else
29358 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29359 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29360 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29361 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29362 echo $ECHO_N "(cached) $ECHO_C" >&6
29363 else
29364 ac_check_lib_save_LIBS=$LIBS
29365 LIBS="-lm ${pbxlibdir} $LIBS"
29366 cat >conftest.$ac_ext <<_ACEOF
29367 /* confdefs.h. */
29368 _ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29373 /* Override any GCC internal prototype to avoid an error.
29374 Use char because int might match the return type of a GCC
29375 builtin and then its argument prototype would still apply. */
29376 #ifdef __cplusplus
29377 extern "C"
29378 #endif
29379 char ${pbxfuncname} ();
29381 main ()
29383 return ${pbxfuncname} ();
29385 return 0;
29387 _ACEOF
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (ac_try="$ac_link"
29390 case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29393 esac
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_link") 2>conftest.er1
29396 ac_status=$?
29397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } && {
29402 test -z "$ac_c_werror_flag" ||
29403 test ! -s conftest.err
29404 } && test -s conftest$ac_exeext &&
29405 $as_test_x conftest$ac_exeext; then
29406 eval "$as_ac_Lib=yes"
29407 else
29408 echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29411 eval "$as_ac_Lib=no"
29414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29415 conftest$ac_exeext conftest.$ac_ext
29416 LIBS=$ac_check_lib_save_LIBS
29418 ac_res=`eval echo '${'$as_ac_Lib'}'`
29419 { echo "$as_me:$LINENO: result: $ac_res" >&5
29420 echo "${ECHO_T}$ac_res" >&6; }
29421 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29422 AST_REMAINDER_FOUND=yes
29423 else
29424 AST_REMAINDER_FOUND=no
29429 # now check for the header.
29430 if test "${AST_REMAINDER_FOUND}" = "yes"; then
29431 REMAINDER_LIB="${pbxlibdir} -lm "
29432 # if --with-REMAINDER=DIR has been specified, use it.
29433 if test "x${REMAINDER_DIR}" != "x"; then
29434 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
29436 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
29437 if test "x" = "x" ; then # no header, assume found
29438 REMAINDER_HEADER_FOUND="1"
29439 else # check for the header
29440 saved_cppflags="${CPPFLAGS}"
29441 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE}"
29442 if test "${ac_cv_header_+set}" = set; then
29443 { echo "$as_me:$LINENO: checking for " >&5
29444 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29445 if test "${ac_cv_header_+set}" = set; then
29446 echo $ECHO_N "(cached) $ECHO_C" >&6
29448 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29449 echo "${ECHO_T}$ac_cv_header_" >&6; }
29450 else
29451 # Is the header compilable?
29452 { echo "$as_me:$LINENO: checking usability" >&5
29453 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29454 cat >conftest.$ac_ext <<_ACEOF
29455 /* confdefs.h. */
29456 _ACEOF
29457 cat confdefs.h >>conftest.$ac_ext
29458 cat >>conftest.$ac_ext <<_ACEOF
29459 /* end confdefs.h. */
29460 $ac_includes_default
29461 #include <>
29462 _ACEOF
29463 rm -f conftest.$ac_objext
29464 if { (ac_try="$ac_compile"
29465 case "(($ac_try" in
29466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467 *) ac_try_echo=$ac_try;;
29468 esac
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470 (eval "$ac_compile") 2>conftest.er1
29471 ac_status=$?
29472 grep -v '^ *+' conftest.er1 >conftest.err
29473 rm -f conftest.er1
29474 cat conftest.err >&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); } && {
29477 test -z "$ac_c_werror_flag" ||
29478 test ! -s conftest.err
29479 } && test -s conftest.$ac_objext; then
29480 ac_header_compiler=yes
29481 else
29482 echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29485 ac_header_compiler=no
29488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29490 echo "${ECHO_T}$ac_header_compiler" >&6; }
29492 # Is the header present?
29493 { echo "$as_me:$LINENO: checking presence" >&5
29494 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29495 cat >conftest.$ac_ext <<_ACEOF
29496 /* confdefs.h. */
29497 _ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h. */
29501 #include <>
29502 _ACEOF
29503 if { (ac_try="$ac_cpp conftest.$ac_ext"
29504 case "(($ac_try" in
29505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506 *) ac_try_echo=$ac_try;;
29507 esac
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29510 ac_status=$?
29511 grep -v '^ *+' conftest.er1 >conftest.err
29512 rm -f conftest.er1
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } >/dev/null && {
29516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29517 test ! -s conftest.err
29518 }; then
29519 ac_header_preproc=yes
29520 else
29521 echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29524 ac_header_preproc=no
29527 rm -f conftest.err conftest.$ac_ext
29528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29529 echo "${ECHO_T}$ac_header_preproc" >&6; }
29531 # So? What about this header?
29532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29533 yes:no: )
29534 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29535 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29536 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29537 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29538 ac_header_preproc=yes
29540 no:yes:* )
29541 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29542 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29543 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29544 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29545 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29546 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29547 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29548 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29550 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29551 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29552 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29553 ( cat <<\_ASBOX
29554 ## ------------------------------- ##
29555 ## Report this to www.asterisk.org ##
29556 ## ------------------------------- ##
29557 _ASBOX
29558 ) | sed "s/^/$as_me: WARNING: /" >&2
29560 esac
29561 { echo "$as_me:$LINENO: checking for " >&5
29562 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29563 if test "${ac_cv_header_+set}" = set; then
29564 echo $ECHO_N "(cached) $ECHO_C" >&6
29565 else
29566 ac_cv_header_=$ac_header_preproc
29568 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29569 echo "${ECHO_T}$ac_cv_header_" >&6; }
29572 if test $ac_cv_header_ = yes; then
29573 REMAINDER_HEADER_FOUND=1
29574 else
29575 REMAINDER_HEADER_FOUND=0
29579 CPPFLAGS="${saved_cppflags}"
29581 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29582 REMAINDER_LIB=""
29583 REMAINDER_INCLUDE=""
29584 else
29585 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29586 REMAINDER_LIB=""
29588 PBX_REMAINDER=1
29589 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29591 cat >>confdefs.h <<_ACEOF
29592 #define HAVE_REMAINDER 1
29593 _ACEOF
29596 cat >>confdefs.h <<_ACEOF
29597 #define HAVE_REMAINDER_VERSION
29598 _ACEOF
29605 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29606 pbxlibdir=""
29607 # if --with-FMOD=DIR has been specified, use it.
29608 if test "x${FMOD_DIR}" != "x"; then
29609 if test -d ${FMOD_DIR}/lib; then
29610 pbxlibdir="-L${FMOD_DIR}/lib"
29611 else
29612 pbxlibdir="-L${FMOD_DIR}"
29615 pbxfuncname="fmod"
29616 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29617 AST_FMOD_FOUND=yes
29618 else
29619 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29620 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29621 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29622 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29623 echo $ECHO_N "(cached) $ECHO_C" >&6
29624 else
29625 ac_check_lib_save_LIBS=$LIBS
29626 LIBS="-lm ${pbxlibdir} $LIBS"
29627 cat >conftest.$ac_ext <<_ACEOF
29628 /* confdefs.h. */
29629 _ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h. */
29634 /* Override any GCC internal prototype to avoid an error.
29635 Use char because int might match the return type of a GCC
29636 builtin and then its argument prototype would still apply. */
29637 #ifdef __cplusplus
29638 extern "C"
29639 #endif
29640 char ${pbxfuncname} ();
29642 main ()
29644 return ${pbxfuncname} ();
29646 return 0;
29648 _ACEOF
29649 rm -f conftest.$ac_objext conftest$ac_exeext
29650 if { (ac_try="$ac_link"
29651 case "(($ac_try" in
29652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653 *) ac_try_echo=$ac_try;;
29654 esac
29655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656 (eval "$ac_link") 2>conftest.er1
29657 ac_status=$?
29658 grep -v '^ *+' conftest.er1 >conftest.err
29659 rm -f conftest.er1
29660 cat conftest.err >&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } && {
29663 test -z "$ac_c_werror_flag" ||
29664 test ! -s conftest.err
29665 } && test -s conftest$ac_exeext &&
29666 $as_test_x conftest$ac_exeext; then
29667 eval "$as_ac_Lib=yes"
29668 else
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 eval "$as_ac_Lib=no"
29675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29676 conftest$ac_exeext conftest.$ac_ext
29677 LIBS=$ac_check_lib_save_LIBS
29679 ac_res=`eval echo '${'$as_ac_Lib'}'`
29680 { echo "$as_me:$LINENO: result: $ac_res" >&5
29681 echo "${ECHO_T}$ac_res" >&6; }
29682 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29683 AST_FMOD_FOUND=yes
29684 else
29685 AST_FMOD_FOUND=no
29690 # now check for the header.
29691 if test "${AST_FMOD_FOUND}" = "yes"; then
29692 FMOD_LIB="${pbxlibdir} -lm "
29693 # if --with-FMOD=DIR has been specified, use it.
29694 if test "x${FMOD_DIR}" != "x"; then
29695 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29697 FMOD_INCLUDE="${FMOD_INCLUDE} "
29698 if test "x" = "x" ; then # no header, assume found
29699 FMOD_HEADER_FOUND="1"
29700 else # check for the header
29701 saved_cppflags="${CPPFLAGS}"
29702 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE}"
29703 if test "${ac_cv_header_+set}" = set; then
29704 { echo "$as_me:$LINENO: checking for " >&5
29705 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29706 if test "${ac_cv_header_+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29709 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29710 echo "${ECHO_T}$ac_cv_header_" >&6; }
29711 else
29712 # Is the header compilable?
29713 { echo "$as_me:$LINENO: checking usability" >&5
29714 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29715 cat >conftest.$ac_ext <<_ACEOF
29716 /* confdefs.h. */
29717 _ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h. */
29721 $ac_includes_default
29722 #include <>
29723 _ACEOF
29724 rm -f conftest.$ac_objext
29725 if { (ac_try="$ac_compile"
29726 case "(($ac_try" in
29727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728 *) ac_try_echo=$ac_try;;
29729 esac
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731 (eval "$ac_compile") 2>conftest.er1
29732 ac_status=$?
29733 grep -v '^ *+' conftest.er1 >conftest.err
29734 rm -f conftest.er1
29735 cat conftest.err >&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); } && {
29738 test -z "$ac_c_werror_flag" ||
29739 test ! -s conftest.err
29740 } && test -s conftest.$ac_objext; then
29741 ac_header_compiler=yes
29742 else
29743 echo "$as_me: failed program was:" >&5
29744 sed 's/^/| /' conftest.$ac_ext >&5
29746 ac_header_compiler=no
29749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29751 echo "${ECHO_T}$ac_header_compiler" >&6; }
29753 # Is the header present?
29754 { echo "$as_me:$LINENO: checking presence" >&5
29755 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29756 cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h. */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h. */
29762 #include <>
29763 _ACEOF
29764 if { (ac_try="$ac_cpp conftest.$ac_ext"
29765 case "(($ac_try" in
29766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29768 esac
29769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29771 ac_status=$?
29772 grep -v '^ *+' conftest.er1 >conftest.err
29773 rm -f conftest.er1
29774 cat conftest.err >&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); } >/dev/null && {
29777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29778 test ! -s conftest.err
29779 }; then
29780 ac_header_preproc=yes
29781 else
29782 echo "$as_me: failed program was:" >&5
29783 sed 's/^/| /' conftest.$ac_ext >&5
29785 ac_header_preproc=no
29788 rm -f conftest.err conftest.$ac_ext
29789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29790 echo "${ECHO_T}$ac_header_preproc" >&6; }
29792 # So? What about this header?
29793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29794 yes:no: )
29795 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29796 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29797 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29798 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29799 ac_header_preproc=yes
29801 no:yes:* )
29802 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29803 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29804 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29805 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29806 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29807 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29808 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29809 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29810 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29811 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29812 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29813 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29814 ( cat <<\_ASBOX
29815 ## ------------------------------- ##
29816 ## Report this to www.asterisk.org ##
29817 ## ------------------------------- ##
29818 _ASBOX
29819 ) | sed "s/^/$as_me: WARNING: /" >&2
29821 esac
29822 { echo "$as_me:$LINENO: checking for " >&5
29823 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29824 if test "${ac_cv_header_+set}" = set; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29826 else
29827 ac_cv_header_=$ac_header_preproc
29829 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29830 echo "${ECHO_T}$ac_cv_header_" >&6; }
29833 if test $ac_cv_header_ = yes; then
29834 FMOD_HEADER_FOUND=1
29835 else
29836 FMOD_HEADER_FOUND=0
29840 CPPFLAGS="${saved_cppflags}"
29842 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29843 FMOD_LIB=""
29844 FMOD_INCLUDE=""
29845 else
29846 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29847 FMOD_LIB=""
29849 PBX_FMOD=1
29850 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29852 cat >>confdefs.h <<_ACEOF
29853 #define HAVE_FMOD 1
29854 _ACEOF
29857 cat >>confdefs.h <<_ACEOF
29858 #define HAVE_FMOD_VERSION
29859 _ACEOF
29866 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29867 pbxlibdir=""
29868 # if --with-ROUND=DIR has been specified, use it.
29869 if test "x${ROUND_DIR}" != "x"; then
29870 if test -d ${ROUND_DIR}/lib; then
29871 pbxlibdir="-L${ROUND_DIR}/lib"
29872 else
29873 pbxlibdir="-L${ROUND_DIR}"
29876 pbxfuncname="round"
29877 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29878 AST_ROUND_FOUND=yes
29879 else
29880 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29881 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29882 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29883 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29884 echo $ECHO_N "(cached) $ECHO_C" >&6
29885 else
29886 ac_check_lib_save_LIBS=$LIBS
29887 LIBS="-lm ${pbxlibdir} $LIBS"
29888 cat >conftest.$ac_ext <<_ACEOF
29889 /* confdefs.h. */
29890 _ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h. */
29895 /* Override any GCC internal prototype to avoid an error.
29896 Use char because int might match the return type of a GCC
29897 builtin and then its argument prototype would still apply. */
29898 #ifdef __cplusplus
29899 extern "C"
29900 #endif
29901 char ${pbxfuncname} ();
29903 main ()
29905 return ${pbxfuncname} ();
29907 return 0;
29909 _ACEOF
29910 rm -f conftest.$ac_objext conftest$ac_exeext
29911 if { (ac_try="$ac_link"
29912 case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29915 esac
29916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_link") 2>conftest.er1
29918 ac_status=$?
29919 grep -v '^ *+' conftest.er1 >conftest.err
29920 rm -f conftest.er1
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); } && {
29924 test -z "$ac_c_werror_flag" ||
29925 test ! -s conftest.err
29926 } && test -s conftest$ac_exeext &&
29927 $as_test_x conftest$ac_exeext; then
29928 eval "$as_ac_Lib=yes"
29929 else
29930 echo "$as_me: failed program was:" >&5
29931 sed 's/^/| /' conftest.$ac_ext >&5
29933 eval "$as_ac_Lib=no"
29936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29937 conftest$ac_exeext conftest.$ac_ext
29938 LIBS=$ac_check_lib_save_LIBS
29940 ac_res=`eval echo '${'$as_ac_Lib'}'`
29941 { echo "$as_me:$LINENO: result: $ac_res" >&5
29942 echo "${ECHO_T}$ac_res" >&6; }
29943 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29944 AST_ROUND_FOUND=yes
29945 else
29946 AST_ROUND_FOUND=no
29951 # now check for the header.
29952 if test "${AST_ROUND_FOUND}" = "yes"; then
29953 ROUND_LIB="${pbxlibdir} -lm "
29954 # if --with-ROUND=DIR has been specified, use it.
29955 if test "x${ROUND_DIR}" != "x"; then
29956 ROUND_INCLUDE="-I${ROUND_DIR}/include"
29958 ROUND_INCLUDE="${ROUND_INCLUDE} "
29959 if test "x" = "x" ; then # no header, assume found
29960 ROUND_HEADER_FOUND="1"
29961 else # check for the header
29962 saved_cppflags="${CPPFLAGS}"
29963 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE}"
29964 if test "${ac_cv_header_+set}" = set; then
29965 { echo "$as_me:$LINENO: checking for " >&5
29966 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29967 if test "${ac_cv_header_+set}" = set; then
29968 echo $ECHO_N "(cached) $ECHO_C" >&6
29970 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29971 echo "${ECHO_T}$ac_cv_header_" >&6; }
29972 else
29973 # Is the header compilable?
29974 { echo "$as_me:$LINENO: checking usability" >&5
29975 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29976 cat >conftest.$ac_ext <<_ACEOF
29977 /* confdefs.h. */
29978 _ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h. */
29982 $ac_includes_default
29983 #include <>
29984 _ACEOF
29985 rm -f conftest.$ac_objext
29986 if { (ac_try="$ac_compile"
29987 case "(($ac_try" in
29988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989 *) ac_try_echo=$ac_try;;
29990 esac
29991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992 (eval "$ac_compile") 2>conftest.er1
29993 ac_status=$?
29994 grep -v '^ *+' conftest.er1 >conftest.err
29995 rm -f conftest.er1
29996 cat conftest.err >&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); } && {
29999 test -z "$ac_c_werror_flag" ||
30000 test ! -s conftest.err
30001 } && test -s conftest.$ac_objext; then
30002 ac_header_compiler=yes
30003 else
30004 echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30007 ac_header_compiler=no
30010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30012 echo "${ECHO_T}$ac_header_compiler" >&6; }
30014 # Is the header present?
30015 { echo "$as_me:$LINENO: checking presence" >&5
30016 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30017 cat >conftest.$ac_ext <<_ACEOF
30018 /* confdefs.h. */
30019 _ACEOF
30020 cat confdefs.h >>conftest.$ac_ext
30021 cat >>conftest.$ac_ext <<_ACEOF
30022 /* end confdefs.h. */
30023 #include <>
30024 _ACEOF
30025 if { (ac_try="$ac_cpp conftest.$ac_ext"
30026 case "(($ac_try" in
30027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30028 *) ac_try_echo=$ac_try;;
30029 esac
30030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30032 ac_status=$?
30033 grep -v '^ *+' conftest.er1 >conftest.err
30034 rm -f conftest.er1
30035 cat conftest.err >&5
30036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); } >/dev/null && {
30038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30039 test ! -s conftest.err
30040 }; then
30041 ac_header_preproc=yes
30042 else
30043 echo "$as_me: failed program was:" >&5
30044 sed 's/^/| /' conftest.$ac_ext >&5
30046 ac_header_preproc=no
30049 rm -f conftest.err conftest.$ac_ext
30050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30051 echo "${ECHO_T}$ac_header_preproc" >&6; }
30053 # So? What about this header?
30054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30055 yes:no: )
30056 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30057 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30058 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30059 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30060 ac_header_preproc=yes
30062 no:yes:* )
30063 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30064 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30065 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30066 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30067 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30068 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30069 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30070 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30071 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30072 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30073 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30074 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30075 ( cat <<\_ASBOX
30076 ## ------------------------------- ##
30077 ## Report this to www.asterisk.org ##
30078 ## ------------------------------- ##
30079 _ASBOX
30080 ) | sed "s/^/$as_me: WARNING: /" >&2
30082 esac
30083 { echo "$as_me:$LINENO: checking for " >&5
30084 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30085 if test "${ac_cv_header_+set}" = set; then
30086 echo $ECHO_N "(cached) $ECHO_C" >&6
30087 else
30088 ac_cv_header_=$ac_header_preproc
30090 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30091 echo "${ECHO_T}$ac_cv_header_" >&6; }
30094 if test $ac_cv_header_ = yes; then
30095 ROUND_HEADER_FOUND=1
30096 else
30097 ROUND_HEADER_FOUND=0
30101 CPPFLAGS="${saved_cppflags}"
30103 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
30104 ROUND_LIB=""
30105 ROUND_INCLUDE=""
30106 else
30107 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30108 ROUND_LIB=""
30110 PBX_ROUND=1
30111 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30113 cat >>confdefs.h <<_ACEOF
30114 #define HAVE_ROUND 1
30115 _ACEOF
30118 cat >>confdefs.h <<_ACEOF
30119 #define HAVE_ROUND_VERSION
30120 _ACEOF
30127 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
30128 pbxlibdir=""
30129 # if --with-TRUNC=DIR has been specified, use it.
30130 if test "x${TRUNC_DIR}" != "x"; then
30131 if test -d ${TRUNC_DIR}/lib; then
30132 pbxlibdir="-L${TRUNC_DIR}/lib"
30133 else
30134 pbxlibdir="-L${TRUNC_DIR}"
30137 pbxfuncname="trunc"
30138 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30139 AST_TRUNC_FOUND=yes
30140 else
30141 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30142 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30143 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30144 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30145 echo $ECHO_N "(cached) $ECHO_C" >&6
30146 else
30147 ac_check_lib_save_LIBS=$LIBS
30148 LIBS="-lm ${pbxlibdir} $LIBS"
30149 cat >conftest.$ac_ext <<_ACEOF
30150 /* confdefs.h. */
30151 _ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h. */
30156 /* Override any GCC internal prototype to avoid an error.
30157 Use char because int might match the return type of a GCC
30158 builtin and then its argument prototype would still apply. */
30159 #ifdef __cplusplus
30160 extern "C"
30161 #endif
30162 char ${pbxfuncname} ();
30164 main ()
30166 return ${pbxfuncname} ();
30168 return 0;
30170 _ACEOF
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (ac_try="$ac_link"
30173 case "(($ac_try" in
30174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175 *) ac_try_echo=$ac_try;;
30176 esac
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178 (eval "$ac_link") 2>conftest.er1
30179 ac_status=$?
30180 grep -v '^ *+' conftest.er1 >conftest.err
30181 rm -f conftest.er1
30182 cat conftest.err >&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } && {
30185 test -z "$ac_c_werror_flag" ||
30186 test ! -s conftest.err
30187 } && test -s conftest$ac_exeext &&
30188 $as_test_x conftest$ac_exeext; then
30189 eval "$as_ac_Lib=yes"
30190 else
30191 echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30194 eval "$as_ac_Lib=no"
30197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30198 conftest$ac_exeext conftest.$ac_ext
30199 LIBS=$ac_check_lib_save_LIBS
30201 ac_res=`eval echo '${'$as_ac_Lib'}'`
30202 { echo "$as_me:$LINENO: result: $ac_res" >&5
30203 echo "${ECHO_T}$ac_res" >&6; }
30204 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30205 AST_TRUNC_FOUND=yes
30206 else
30207 AST_TRUNC_FOUND=no
30212 # now check for the header.
30213 if test "${AST_TRUNC_FOUND}" = "yes"; then
30214 TRUNC_LIB="${pbxlibdir} -lm "
30215 # if --with-TRUNC=DIR has been specified, use it.
30216 if test "x${TRUNC_DIR}" != "x"; then
30217 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
30219 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
30220 if test "x" = "x" ; then # no header, assume found
30221 TRUNC_HEADER_FOUND="1"
30222 else # check for the header
30223 saved_cppflags="${CPPFLAGS}"
30224 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE}"
30225 if test "${ac_cv_header_+set}" = set; then
30226 { echo "$as_me:$LINENO: checking for " >&5
30227 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30228 if test "${ac_cv_header_+set}" = set; then
30229 echo $ECHO_N "(cached) $ECHO_C" >&6
30231 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30232 echo "${ECHO_T}$ac_cv_header_" >&6; }
30233 else
30234 # Is the header compilable?
30235 { echo "$as_me:$LINENO: checking usability" >&5
30236 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30237 cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h. */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30243 $ac_includes_default
30244 #include <>
30245 _ACEOF
30246 rm -f conftest.$ac_objext
30247 if { (ac_try="$ac_compile"
30248 case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30251 esac
30252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253 (eval "$ac_compile") 2>conftest.er1
30254 ac_status=$?
30255 grep -v '^ *+' conftest.er1 >conftest.err
30256 rm -f conftest.er1
30257 cat conftest.err >&5
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); } && {
30260 test -z "$ac_c_werror_flag" ||
30261 test ! -s conftest.err
30262 } && test -s conftest.$ac_objext; then
30263 ac_header_compiler=yes
30264 else
30265 echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30268 ac_header_compiler=no
30271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30273 echo "${ECHO_T}$ac_header_compiler" >&6; }
30275 # Is the header present?
30276 { echo "$as_me:$LINENO: checking presence" >&5
30277 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30278 cat >conftest.$ac_ext <<_ACEOF
30279 /* confdefs.h. */
30280 _ACEOF
30281 cat confdefs.h >>conftest.$ac_ext
30282 cat >>conftest.$ac_ext <<_ACEOF
30283 /* end confdefs.h. */
30284 #include <>
30285 _ACEOF
30286 if { (ac_try="$ac_cpp conftest.$ac_ext"
30287 case "(($ac_try" in
30288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289 *) ac_try_echo=$ac_try;;
30290 esac
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30293 ac_status=$?
30294 grep -v '^ *+' conftest.er1 >conftest.err
30295 rm -f conftest.er1
30296 cat conftest.err >&5
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); } >/dev/null && {
30299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30300 test ! -s conftest.err
30301 }; then
30302 ac_header_preproc=yes
30303 else
30304 echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30307 ac_header_preproc=no
30310 rm -f conftest.err conftest.$ac_ext
30311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30312 echo "${ECHO_T}$ac_header_preproc" >&6; }
30314 # So? What about this header?
30315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30316 yes:no: )
30317 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30318 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30319 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30320 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30321 ac_header_preproc=yes
30323 no:yes:* )
30324 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30325 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30326 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30327 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30328 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30329 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30330 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30331 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30332 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30333 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30334 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30335 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30336 ( cat <<\_ASBOX
30337 ## ------------------------------- ##
30338 ## Report this to www.asterisk.org ##
30339 ## ------------------------------- ##
30340 _ASBOX
30341 ) | sed "s/^/$as_me: WARNING: /" >&2
30343 esac
30344 { echo "$as_me:$LINENO: checking for " >&5
30345 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30346 if test "${ac_cv_header_+set}" = set; then
30347 echo $ECHO_N "(cached) $ECHO_C" >&6
30348 else
30349 ac_cv_header_=$ac_header_preproc
30351 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30352 echo "${ECHO_T}$ac_cv_header_" >&6; }
30355 if test $ac_cv_header_ = yes; then
30356 TRUNC_HEADER_FOUND=1
30357 else
30358 TRUNC_HEADER_FOUND=0
30362 CPPFLAGS="${saved_cppflags}"
30364 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
30365 TRUNC_LIB=""
30366 TRUNC_INCLUDE=""
30367 else
30368 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30369 TRUNC_LIB=""
30371 PBX_TRUNC=1
30372 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30374 cat >>confdefs.h <<_ACEOF
30375 #define HAVE_TRUNC 1
30376 _ACEOF
30379 cat >>confdefs.h <<_ACEOF
30380 #define HAVE_TRUNC_VERSION
30381 _ACEOF
30388 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
30389 pbxlibdir=""
30390 # if --with-STRTOD=DIR has been specified, use it.
30391 if test "x${STRTOD_DIR}" != "x"; then
30392 if test -d ${STRTOD_DIR}/lib; then
30393 pbxlibdir="-L${STRTOD_DIR}/lib"
30394 else
30395 pbxlibdir="-L${STRTOD_DIR}"
30398 pbxfuncname="strtod"
30399 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30400 AST_STRTOD_FOUND=yes
30401 else
30402 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
30403 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
30404 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
30405 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407 else
30408 ac_check_lib_save_LIBS=$LIBS
30409 LIBS="-lc ${pbxlibdir} $LIBS"
30410 cat >conftest.$ac_ext <<_ACEOF
30411 /* confdefs.h. */
30412 _ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h. */
30417 /* Override any GCC internal prototype to avoid an error.
30418 Use char because int might match the return type of a GCC
30419 builtin and then its argument prototype would still apply. */
30420 #ifdef __cplusplus
30421 extern "C"
30422 #endif
30423 char ${pbxfuncname} ();
30425 main ()
30427 return ${pbxfuncname} ();
30429 return 0;
30431 _ACEOF
30432 rm -f conftest.$ac_objext conftest$ac_exeext
30433 if { (ac_try="$ac_link"
30434 case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30437 esac
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_link") 2>conftest.er1
30440 ac_status=$?
30441 grep -v '^ *+' conftest.er1 >conftest.err
30442 rm -f conftest.er1
30443 cat conftest.err >&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); } && {
30446 test -z "$ac_c_werror_flag" ||
30447 test ! -s conftest.err
30448 } && test -s conftest$ac_exeext &&
30449 $as_test_x conftest$ac_exeext; then
30450 eval "$as_ac_Lib=yes"
30451 else
30452 echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30455 eval "$as_ac_Lib=no"
30458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30459 conftest$ac_exeext conftest.$ac_ext
30460 LIBS=$ac_check_lib_save_LIBS
30462 ac_res=`eval echo '${'$as_ac_Lib'}'`
30463 { echo "$as_me:$LINENO: result: $ac_res" >&5
30464 echo "${ECHO_T}$ac_res" >&6; }
30465 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30466 AST_STRTOD_FOUND=yes
30467 else
30468 AST_STRTOD_FOUND=no
30473 # now check for the header.
30474 if test "${AST_STRTOD_FOUND}" = "yes"; then
30475 STRTOD_LIB="${pbxlibdir} -lc "
30476 # if --with-STRTOD=DIR has been specified, use it.
30477 if test "x${STRTOD_DIR}" != "x"; then
30478 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
30480 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
30481 if test "xstdlib.h" = "x" ; then # no header, assume found
30482 STRTOD_HEADER_FOUND="1"
30483 else # check for the header
30484 saved_cppflags="${CPPFLAGS}"
30485 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE}"
30486 if test "${ac_cv_header_stdlib_h+set}" = set; then
30487 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30488 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30489 if test "${ac_cv_header_stdlib_h+set}" = set; then
30490 echo $ECHO_N "(cached) $ECHO_C" >&6
30492 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30493 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30494 else
30495 # Is the header compilable?
30496 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
30497 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
30498 cat >conftest.$ac_ext <<_ACEOF
30499 /* confdefs.h. */
30500 _ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h. */
30504 $ac_includes_default
30505 #include <stdlib.h>
30506 _ACEOF
30507 rm -f conftest.$ac_objext
30508 if { (ac_try="$ac_compile"
30509 case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30512 esac
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_compile") 2>conftest.er1
30515 ac_status=$?
30516 grep -v '^ *+' conftest.er1 >conftest.err
30517 rm -f conftest.er1
30518 cat conftest.err >&5
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); } && {
30521 test -z "$ac_c_werror_flag" ||
30522 test ! -s conftest.err
30523 } && test -s conftest.$ac_objext; then
30524 ac_header_compiler=yes
30525 else
30526 echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30529 ac_header_compiler=no
30532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30534 echo "${ECHO_T}$ac_header_compiler" >&6; }
30536 # Is the header present?
30537 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30538 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30539 cat >conftest.$ac_ext <<_ACEOF
30540 /* confdefs.h. */
30541 _ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h. */
30545 #include <stdlib.h>
30546 _ACEOF
30547 if { (ac_try="$ac_cpp conftest.$ac_ext"
30548 case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30551 esac
30552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30554 ac_status=$?
30555 grep -v '^ *+' conftest.er1 >conftest.err
30556 rm -f conftest.er1
30557 cat conftest.err >&5
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); } >/dev/null && {
30560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30561 test ! -s conftest.err
30562 }; then
30563 ac_header_preproc=yes
30564 else
30565 echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30568 ac_header_preproc=no
30571 rm -f conftest.err conftest.$ac_ext
30572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30573 echo "${ECHO_T}$ac_header_preproc" >&6; }
30575 # So? What about this header?
30576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30577 yes:no: )
30578 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30579 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30580 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30581 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30582 ac_header_preproc=yes
30584 no:yes:* )
30585 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30586 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30587 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30588 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30589 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30590 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30591 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30592 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30593 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30594 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30595 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30596 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30597 ( cat <<\_ASBOX
30598 ## ------------------------------- ##
30599 ## Report this to www.asterisk.org ##
30600 ## ------------------------------- ##
30601 _ASBOX
30602 ) | sed "s/^/$as_me: WARNING: /" >&2
30604 esac
30605 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30606 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30607 if test "${ac_cv_header_stdlib_h+set}" = set; then
30608 echo $ECHO_N "(cached) $ECHO_C" >&6
30609 else
30610 ac_cv_header_stdlib_h=$ac_header_preproc
30612 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30613 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30616 if test $ac_cv_header_stdlib_h = yes; then
30617 STRTOD_HEADER_FOUND=1
30618 else
30619 STRTOD_HEADER_FOUND=0
30623 CPPFLAGS="${saved_cppflags}"
30625 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30626 STRTOD_LIB=""
30627 STRTOD_INCLUDE=""
30628 else
30629 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30630 STRTOD_LIB=""
30632 PBX_STRTOD=1
30633 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30635 cat >>confdefs.h <<_ACEOF
30636 #define HAVE_STRTOD 1
30637 _ACEOF
30640 cat >>confdefs.h <<_ACEOF
30641 #define HAVE_STRTOD_VERSION
30642 _ACEOF
30649 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30650 pbxlibdir=""
30651 # if --with-FLOOR=DIR has been specified, use it.
30652 if test "x${FLOOR_DIR}" != "x"; then
30653 if test -d ${FLOOR_DIR}/lib; then
30654 pbxlibdir="-L${FLOOR_DIR}/lib"
30655 else
30656 pbxlibdir="-L${FLOOR_DIR}"
30659 pbxfuncname="floor"
30660 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30661 AST_FLOOR_FOUND=yes
30662 else
30663 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30664 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30665 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30666 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30667 echo $ECHO_N "(cached) $ECHO_C" >&6
30668 else
30669 ac_check_lib_save_LIBS=$LIBS
30670 LIBS="-lm ${pbxlibdir} $LIBS"
30671 cat >conftest.$ac_ext <<_ACEOF
30672 /* confdefs.h. */
30673 _ACEOF
30674 cat confdefs.h >>conftest.$ac_ext
30675 cat >>conftest.$ac_ext <<_ACEOF
30676 /* end confdefs.h. */
30678 /* Override any GCC internal prototype to avoid an error.
30679 Use char because int might match the return type of a GCC
30680 builtin and then its argument prototype would still apply. */
30681 #ifdef __cplusplus
30682 extern "C"
30683 #endif
30684 char ${pbxfuncname} ();
30686 main ()
30688 return ${pbxfuncname} ();
30690 return 0;
30692 _ACEOF
30693 rm -f conftest.$ac_objext conftest$ac_exeext
30694 if { (ac_try="$ac_link"
30695 case "(($ac_try" in
30696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697 *) ac_try_echo=$ac_try;;
30698 esac
30699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700 (eval "$ac_link") 2>conftest.er1
30701 ac_status=$?
30702 grep -v '^ *+' conftest.er1 >conftest.err
30703 rm -f conftest.er1
30704 cat conftest.err >&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); } && {
30707 test -z "$ac_c_werror_flag" ||
30708 test ! -s conftest.err
30709 } && test -s conftest$ac_exeext &&
30710 $as_test_x conftest$ac_exeext; then
30711 eval "$as_ac_Lib=yes"
30712 else
30713 echo "$as_me: failed program was:" >&5
30714 sed 's/^/| /' conftest.$ac_ext >&5
30716 eval "$as_ac_Lib=no"
30719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30720 conftest$ac_exeext conftest.$ac_ext
30721 LIBS=$ac_check_lib_save_LIBS
30723 ac_res=`eval echo '${'$as_ac_Lib'}'`
30724 { echo "$as_me:$LINENO: result: $ac_res" >&5
30725 echo "${ECHO_T}$ac_res" >&6; }
30726 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30727 AST_FLOOR_FOUND=yes
30728 else
30729 AST_FLOOR_FOUND=no
30734 # now check for the header.
30735 if test "${AST_FLOOR_FOUND}" = "yes"; then
30736 FLOOR_LIB="${pbxlibdir} -lm "
30737 # if --with-FLOOR=DIR has been specified, use it.
30738 if test "x${FLOOR_DIR}" != "x"; then
30739 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30741 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30742 if test "x" = "x" ; then # no header, assume found
30743 FLOOR_HEADER_FOUND="1"
30744 else # check for the header
30745 saved_cppflags="${CPPFLAGS}"
30746 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE}"
30747 if test "${ac_cv_header_+set}" = set; then
30748 { echo "$as_me:$LINENO: checking for " >&5
30749 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30750 if test "${ac_cv_header_+set}" = set; then
30751 echo $ECHO_N "(cached) $ECHO_C" >&6
30753 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30754 echo "${ECHO_T}$ac_cv_header_" >&6; }
30755 else
30756 # Is the header compilable?
30757 { echo "$as_me:$LINENO: checking usability" >&5
30758 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30759 cat >conftest.$ac_ext <<_ACEOF
30760 /* confdefs.h. */
30761 _ACEOF
30762 cat confdefs.h >>conftest.$ac_ext
30763 cat >>conftest.$ac_ext <<_ACEOF
30764 /* end confdefs.h. */
30765 $ac_includes_default
30766 #include <>
30767 _ACEOF
30768 rm -f conftest.$ac_objext
30769 if { (ac_try="$ac_compile"
30770 case "(($ac_try" in
30771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772 *) ac_try_echo=$ac_try;;
30773 esac
30774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775 (eval "$ac_compile") 2>conftest.er1
30776 ac_status=$?
30777 grep -v '^ *+' conftest.er1 >conftest.err
30778 rm -f conftest.er1
30779 cat conftest.err >&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); } && {
30782 test -z "$ac_c_werror_flag" ||
30783 test ! -s conftest.err
30784 } && test -s conftest.$ac_objext; then
30785 ac_header_compiler=yes
30786 else
30787 echo "$as_me: failed program was:" >&5
30788 sed 's/^/| /' conftest.$ac_ext >&5
30790 ac_header_compiler=no
30793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30795 echo "${ECHO_T}$ac_header_compiler" >&6; }
30797 # Is the header present?
30798 { echo "$as_me:$LINENO: checking presence" >&5
30799 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30800 cat >conftest.$ac_ext <<_ACEOF
30801 /* confdefs.h. */
30802 _ACEOF
30803 cat confdefs.h >>conftest.$ac_ext
30804 cat >>conftest.$ac_ext <<_ACEOF
30805 /* end confdefs.h. */
30806 #include <>
30807 _ACEOF
30808 if { (ac_try="$ac_cpp conftest.$ac_ext"
30809 case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30815 ac_status=$?
30816 grep -v '^ *+' conftest.er1 >conftest.err
30817 rm -f conftest.er1
30818 cat conftest.err >&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } >/dev/null && {
30821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30822 test ! -s conftest.err
30823 }; then
30824 ac_header_preproc=yes
30825 else
30826 echo "$as_me: failed program was:" >&5
30827 sed 's/^/| /' conftest.$ac_ext >&5
30829 ac_header_preproc=no
30832 rm -f conftest.err conftest.$ac_ext
30833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30834 echo "${ECHO_T}$ac_header_preproc" >&6; }
30836 # So? What about this header?
30837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30838 yes:no: )
30839 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30840 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30841 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30842 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30843 ac_header_preproc=yes
30845 no:yes:* )
30846 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30847 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30848 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30849 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30850 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30851 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30853 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30854 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30855 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30856 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30857 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30858 ( cat <<\_ASBOX
30859 ## ------------------------------- ##
30860 ## Report this to www.asterisk.org ##
30861 ## ------------------------------- ##
30862 _ASBOX
30863 ) | sed "s/^/$as_me: WARNING: /" >&2
30865 esac
30866 { echo "$as_me:$LINENO: checking for " >&5
30867 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30868 if test "${ac_cv_header_+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30870 else
30871 ac_cv_header_=$ac_header_preproc
30873 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30874 echo "${ECHO_T}$ac_cv_header_" >&6; }
30877 if test $ac_cv_header_ = yes; then
30878 FLOOR_HEADER_FOUND=1
30879 else
30880 FLOOR_HEADER_FOUND=0
30884 CPPFLAGS="${saved_cppflags}"
30886 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30887 FLOOR_LIB=""
30888 FLOOR_INCLUDE=""
30889 else
30890 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30891 FLOOR_LIB=""
30893 PBX_FLOOR=1
30894 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30896 cat >>confdefs.h <<_ACEOF
30897 #define HAVE_FLOOR 1
30898 _ACEOF
30901 cat >>confdefs.h <<_ACEOF
30902 #define HAVE_FLOOR_VERSION
30903 _ACEOF
30910 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30911 pbxlibdir=""
30912 # if --with-CEIL=DIR has been specified, use it.
30913 if test "x${CEIL_DIR}" != "x"; then
30914 if test -d ${CEIL_DIR}/lib; then
30915 pbxlibdir="-L${CEIL_DIR}/lib"
30916 else
30917 pbxlibdir="-L${CEIL_DIR}"
30920 pbxfuncname="ceil"
30921 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30922 AST_CEIL_FOUND=yes
30923 else
30924 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30925 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30926 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30927 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30928 echo $ECHO_N "(cached) $ECHO_C" >&6
30929 else
30930 ac_check_lib_save_LIBS=$LIBS
30931 LIBS="-lm ${pbxlibdir} $LIBS"
30932 cat >conftest.$ac_ext <<_ACEOF
30933 /* confdefs.h. */
30934 _ACEOF
30935 cat confdefs.h >>conftest.$ac_ext
30936 cat >>conftest.$ac_ext <<_ACEOF
30937 /* end confdefs.h. */
30939 /* Override any GCC internal prototype to avoid an error.
30940 Use char because int might match the return type of a GCC
30941 builtin and then its argument prototype would still apply. */
30942 #ifdef __cplusplus
30943 extern "C"
30944 #endif
30945 char ${pbxfuncname} ();
30947 main ()
30949 return ${pbxfuncname} ();
30951 return 0;
30953 _ACEOF
30954 rm -f conftest.$ac_objext conftest$ac_exeext
30955 if { (ac_try="$ac_link"
30956 case "(($ac_try" in
30957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30958 *) ac_try_echo=$ac_try;;
30959 esac
30960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30961 (eval "$ac_link") 2>conftest.er1
30962 ac_status=$?
30963 grep -v '^ *+' conftest.er1 >conftest.err
30964 rm -f conftest.er1
30965 cat conftest.err >&5
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); } && {
30968 test -z "$ac_c_werror_flag" ||
30969 test ! -s conftest.err
30970 } && test -s conftest$ac_exeext &&
30971 $as_test_x conftest$ac_exeext; then
30972 eval "$as_ac_Lib=yes"
30973 else
30974 echo "$as_me: failed program was:" >&5
30975 sed 's/^/| /' conftest.$ac_ext >&5
30977 eval "$as_ac_Lib=no"
30980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30981 conftest$ac_exeext conftest.$ac_ext
30982 LIBS=$ac_check_lib_save_LIBS
30984 ac_res=`eval echo '${'$as_ac_Lib'}'`
30985 { echo "$as_me:$LINENO: result: $ac_res" >&5
30986 echo "${ECHO_T}$ac_res" >&6; }
30987 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30988 AST_CEIL_FOUND=yes
30989 else
30990 AST_CEIL_FOUND=no
30995 # now check for the header.
30996 if test "${AST_CEIL_FOUND}" = "yes"; then
30997 CEIL_LIB="${pbxlibdir} -lm "
30998 # if --with-CEIL=DIR has been specified, use it.
30999 if test "x${CEIL_DIR}" != "x"; then
31000 CEIL_INCLUDE="-I${CEIL_DIR}/include"
31002 CEIL_INCLUDE="${CEIL_INCLUDE} "
31003 if test "x" = "x" ; then # no header, assume found
31004 CEIL_HEADER_FOUND="1"
31005 else # check for the header
31006 saved_cppflags="${CPPFLAGS}"
31007 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE}"
31008 if test "${ac_cv_header_+set}" = set; then
31009 { echo "$as_me:$LINENO: checking for " >&5
31010 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31011 if test "${ac_cv_header_+set}" = set; then
31012 echo $ECHO_N "(cached) $ECHO_C" >&6
31014 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31015 echo "${ECHO_T}$ac_cv_header_" >&6; }
31016 else
31017 # Is the header compilable?
31018 { echo "$as_me:$LINENO: checking usability" >&5
31019 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31020 cat >conftest.$ac_ext <<_ACEOF
31021 /* confdefs.h. */
31022 _ACEOF
31023 cat confdefs.h >>conftest.$ac_ext
31024 cat >>conftest.$ac_ext <<_ACEOF
31025 /* end confdefs.h. */
31026 $ac_includes_default
31027 #include <>
31028 _ACEOF
31029 rm -f conftest.$ac_objext
31030 if { (ac_try="$ac_compile"
31031 case "(($ac_try" in
31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033 *) ac_try_echo=$ac_try;;
31034 esac
31035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036 (eval "$ac_compile") 2>conftest.er1
31037 ac_status=$?
31038 grep -v '^ *+' conftest.er1 >conftest.err
31039 rm -f conftest.er1
31040 cat conftest.err >&5
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); } && {
31043 test -z "$ac_c_werror_flag" ||
31044 test ! -s conftest.err
31045 } && test -s conftest.$ac_objext; then
31046 ac_header_compiler=yes
31047 else
31048 echo "$as_me: failed program was:" >&5
31049 sed 's/^/| /' conftest.$ac_ext >&5
31051 ac_header_compiler=no
31054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31056 echo "${ECHO_T}$ac_header_compiler" >&6; }
31058 # Is the header present?
31059 { echo "$as_me:$LINENO: checking presence" >&5
31060 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31061 cat >conftest.$ac_ext <<_ACEOF
31062 /* confdefs.h. */
31063 _ACEOF
31064 cat confdefs.h >>conftest.$ac_ext
31065 cat >>conftest.$ac_ext <<_ACEOF
31066 /* end confdefs.h. */
31067 #include <>
31068 _ACEOF
31069 if { (ac_try="$ac_cpp conftest.$ac_ext"
31070 case "(($ac_try" in
31071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31072 *) ac_try_echo=$ac_try;;
31073 esac
31074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31076 ac_status=$?
31077 grep -v '^ *+' conftest.er1 >conftest.err
31078 rm -f conftest.er1
31079 cat conftest.err >&5
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); } >/dev/null && {
31082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31083 test ! -s conftest.err
31084 }; then
31085 ac_header_preproc=yes
31086 else
31087 echo "$as_me: failed program was:" >&5
31088 sed 's/^/| /' conftest.$ac_ext >&5
31090 ac_header_preproc=no
31093 rm -f conftest.err conftest.$ac_ext
31094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31095 echo "${ECHO_T}$ac_header_preproc" >&6; }
31097 # So? What about this header?
31098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31099 yes:no: )
31100 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31101 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31102 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31103 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31104 ac_header_preproc=yes
31106 no:yes:* )
31107 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31108 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31109 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31110 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31111 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31112 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31113 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31114 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31115 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31116 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31117 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31118 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31119 ( cat <<\_ASBOX
31120 ## ------------------------------- ##
31121 ## Report this to www.asterisk.org ##
31122 ## ------------------------------- ##
31123 _ASBOX
31124 ) | sed "s/^/$as_me: WARNING: /" >&2
31126 esac
31127 { echo "$as_me:$LINENO: checking for " >&5
31128 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31129 if test "${ac_cv_header_+set}" = set; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31131 else
31132 ac_cv_header_=$ac_header_preproc
31134 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31135 echo "${ECHO_T}$ac_cv_header_" >&6; }
31138 if test $ac_cv_header_ = yes; then
31139 CEIL_HEADER_FOUND=1
31140 else
31141 CEIL_HEADER_FOUND=0
31145 CPPFLAGS="${saved_cppflags}"
31147 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
31148 CEIL_LIB=""
31149 CEIL_INCLUDE=""
31150 else
31151 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31152 CEIL_LIB=""
31154 PBX_CEIL=1
31155 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31157 cat >>confdefs.h <<_ACEOF
31158 #define HAVE_CEIL 1
31159 _ACEOF
31162 cat >>confdefs.h <<_ACEOF
31163 #define HAVE_CEIL_VERSION
31164 _ACEOF
31172 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
31173 if test "xgetifaddrs() support" != "x"; then
31174 { echo "$as_me:$LINENO: checking for getifaddrs() support" >&5
31175 echo $ECHO_N "checking for getifaddrs() support... $ECHO_C" >&6; }
31176 else
31177 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
31178 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
31180 saved_cppflags="${CPPFLAGS}"
31181 if test "x${GETIFADDRS_DIR}" != "x"; then
31182 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
31184 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
31186 cat >conftest.$ac_ext <<_ACEOF
31187 /* confdefs.h. */
31188 _ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h. */
31192 #include <ifaddrs.h>
31194 main ()
31196 struct ifaddrs *p; getifaddrs(&p);
31199 return 0;
31201 _ACEOF
31202 rm -f conftest.$ac_objext
31203 if { (ac_try="$ac_compile"
31204 case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31207 esac
31208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31209 (eval "$ac_compile") 2>conftest.er1
31210 ac_status=$?
31211 grep -v '^ *+' conftest.er1 >conftest.err
31212 rm -f conftest.er1
31213 cat conftest.err >&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } && {
31216 test -z "$ac_c_werror_flag" ||
31217 test ! -s conftest.err
31218 } && test -s conftest.$ac_objext; then
31219 { echo "$as_me:$LINENO: result: yes" >&5
31220 echo "${ECHO_T}yes" >&6; }
31221 PBX_GETIFADDRS=1
31223 cat >>confdefs.h <<\_ACEOF
31224 #define HAVE_GETIFADDRS 1
31225 _ACEOF
31228 cat >>confdefs.h <<\_ACEOF
31229 #define HAVE_GETIFADDRS_VERSION
31230 _ACEOF
31233 else
31234 echo "$as_me: failed program was:" >&5
31235 sed 's/^/| /' conftest.$ac_ext >&5
31237 { echo "$as_me:$LINENO: result: no" >&5
31238 echo "${ECHO_T}no" >&6; }
31242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31243 CPPFLAGS="${saved_cppflags}"
31247 GSM_INTERNAL="yes"
31249 GSM_SYSTEM="yes"
31250 if test "${USE_GSM}" != "no"; then
31251 if test "${GSM_DIR}" = "internal"; then
31252 GSM_SYSTEM="no"
31253 elif test "${GSM_DIR}" != ""; then
31254 GSM_INTERNAL="no"
31256 if test "${GSM_SYSTEM}" = "yes"; then
31257 gsmlibdir=""
31258 if test "x${GSM_DIR}" != "x"; then
31259 if test -d ${GSM_DIR}/lib; then
31260 gsmlibdir="-L${GSM_DIR}/lib"
31261 else
31262 gsmlibdir="-L${GSM_DIR}"
31265 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
31266 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
31267 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
31268 echo $ECHO_N "(cached) $ECHO_C" >&6
31269 else
31270 ac_check_lib_save_LIBS=$LIBS
31271 LIBS="-lgsm ${gsmlibdir} $LIBS"
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. */
31279 /* Override any GCC internal prototype to avoid an error.
31280 Use char because int might match the return type of a GCC
31281 builtin and then its argument prototype would still apply. */
31282 #ifdef __cplusplus
31283 extern "C"
31284 #endif
31285 char gsm_create ();
31287 main ()
31289 return gsm_create ();
31291 return 0;
31293 _ACEOF
31294 rm -f conftest.$ac_objext conftest$ac_exeext
31295 if { (ac_try="$ac_link"
31296 case "(($ac_try" in
31297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298 *) ac_try_echo=$ac_try;;
31299 esac
31300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31301 (eval "$ac_link") 2>conftest.er1
31302 ac_status=$?
31303 grep -v '^ *+' conftest.er1 >conftest.err
31304 rm -f conftest.er1
31305 cat conftest.err >&5
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } && {
31308 test -z "$ac_c_werror_flag" ||
31309 test ! -s conftest.err
31310 } && test -s conftest$ac_exeext &&
31311 $as_test_x conftest$ac_exeext; then
31312 ac_cv_lib_gsm_gsm_create=yes
31313 else
31314 echo "$as_me: failed program was:" >&5
31315 sed 's/^/| /' conftest.$ac_ext >&5
31317 ac_cv_lib_gsm_gsm_create=no
31320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31321 conftest$ac_exeext conftest.$ac_ext
31322 LIBS=$ac_check_lib_save_LIBS
31324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
31325 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
31326 if test $ac_cv_lib_gsm_gsm_create = yes; then
31328 cat >>confdefs.h <<_ACEOF
31329 #define HAVE_GSM 1
31330 _ACEOF
31334 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
31335 if test "x${GSM_DIR}" != "x" ; then
31336 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
31337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31338 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31339 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31341 echo $ECHO_N "(cached) $ECHO_C" >&6
31343 ac_res=`eval echo '${'$as_ac_Header'}'`
31344 { echo "$as_me:$LINENO: result: $ac_res" >&5
31345 echo "${ECHO_T}$ac_res" >&6; }
31346 else
31347 # Is the header compilable?
31348 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
31349 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
31350 cat >conftest.$ac_ext <<_ACEOF
31351 /* confdefs.h. */
31352 _ACEOF
31353 cat confdefs.h >>conftest.$ac_ext
31354 cat >>conftest.$ac_ext <<_ACEOF
31355 /* end confdefs.h. */
31356 $ac_includes_default
31357 #include <${GSM_DIR}/include/gsm.h>
31358 _ACEOF
31359 rm -f conftest.$ac_objext
31360 if { (ac_try="$ac_compile"
31361 case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31364 esac
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_compile") 2>conftest.er1
31367 ac_status=$?
31368 grep -v '^ *+' conftest.er1 >conftest.err
31369 rm -f conftest.er1
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); } && {
31373 test -z "$ac_c_werror_flag" ||
31374 test ! -s conftest.err
31375 } && test -s conftest.$ac_objext; then
31376 ac_header_compiler=yes
31377 else
31378 echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31381 ac_header_compiler=no
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31386 echo "${ECHO_T}$ac_header_compiler" >&6; }
31388 # Is the header present?
31389 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
31390 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
31391 cat >conftest.$ac_ext <<_ACEOF
31392 /* confdefs.h. */
31393 _ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h. */
31397 #include <${GSM_DIR}/include/gsm.h>
31398 _ACEOF
31399 if { (ac_try="$ac_cpp conftest.$ac_ext"
31400 case "(($ac_try" in
31401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402 *) ac_try_echo=$ac_try;;
31403 esac
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31406 ac_status=$?
31407 grep -v '^ *+' conftest.er1 >conftest.err
31408 rm -f conftest.er1
31409 cat conftest.err >&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); } >/dev/null && {
31412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31413 test ! -s conftest.err
31414 }; then
31415 ac_header_preproc=yes
31416 else
31417 echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31420 ac_header_preproc=no
31423 rm -f conftest.err conftest.$ac_ext
31424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31425 echo "${ECHO_T}$ac_header_preproc" >&6; }
31427 # So? What about this header?
31428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31429 yes:no: )
31430 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31431 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31432 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
31433 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
31434 ac_header_preproc=yes
31436 no:yes:* )
31437 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
31438 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
31439 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
31440 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
31441 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
31442 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
31443 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31444 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31445 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
31446 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
31447 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
31448 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
31449 ( cat <<\_ASBOX
31450 ## ------------------------------- ##
31451 ## Report this to www.asterisk.org ##
31452 ## ------------------------------- ##
31453 _ASBOX
31454 ) | sed "s/^/$as_me: WARNING: /" >&2
31456 esac
31457 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31458 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31460 echo $ECHO_N "(cached) $ECHO_C" >&6
31461 else
31462 eval "$as_ac_Header=\$ac_header_preproc"
31464 ac_res=`eval echo '${'$as_ac_Header'}'`
31465 { echo "$as_me:$LINENO: result: $ac_res" >&5
31466 echo "${ECHO_T}$ac_res" >&6; }
31469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31470 GSM_HEADER_FOUND=1
31471 else
31472 GSM_HEADER_FOUND=0
31476 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
31477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31478 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31479 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31481 echo $ECHO_N "(cached) $ECHO_C" >&6
31483 ac_res=`eval echo '${'$as_ac_Header'}'`
31484 { echo "$as_me:$LINENO: result: $ac_res" >&5
31485 echo "${ECHO_T}$ac_res" >&6; }
31486 else
31487 # Is the header compilable?
31488 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
31489 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
31490 cat >conftest.$ac_ext <<_ACEOF
31491 /* confdefs.h. */
31492 _ACEOF
31493 cat confdefs.h >>conftest.$ac_ext
31494 cat >>conftest.$ac_ext <<_ACEOF
31495 /* end confdefs.h. */
31496 $ac_includes_default
31497 #include <${GSM_DIR}/include/gsm/gsm.h>
31498 _ACEOF
31499 rm -f conftest.$ac_objext
31500 if { (ac_try="$ac_compile"
31501 case "(($ac_try" in
31502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31503 *) ac_try_echo=$ac_try;;
31504 esac
31505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31506 (eval "$ac_compile") 2>conftest.er1
31507 ac_status=$?
31508 grep -v '^ *+' conftest.er1 >conftest.err
31509 rm -f conftest.er1
31510 cat conftest.err >&5
31511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); } && {
31513 test -z "$ac_c_werror_flag" ||
31514 test ! -s conftest.err
31515 } && test -s conftest.$ac_objext; then
31516 ac_header_compiler=yes
31517 else
31518 echo "$as_me: failed program was:" >&5
31519 sed 's/^/| /' conftest.$ac_ext >&5
31521 ac_header_compiler=no
31524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31526 echo "${ECHO_T}$ac_header_compiler" >&6; }
31528 # Is the header present?
31529 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31530 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31531 cat >conftest.$ac_ext <<_ACEOF
31532 /* confdefs.h. */
31533 _ACEOF
31534 cat confdefs.h >>conftest.$ac_ext
31535 cat >>conftest.$ac_ext <<_ACEOF
31536 /* end confdefs.h. */
31537 #include <${GSM_DIR}/include/gsm/gsm.h>
31538 _ACEOF
31539 if { (ac_try="$ac_cpp conftest.$ac_ext"
31540 case "(($ac_try" in
31541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31542 *) ac_try_echo=$ac_try;;
31543 esac
31544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31546 ac_status=$?
31547 grep -v '^ *+' conftest.er1 >conftest.err
31548 rm -f conftest.er1
31549 cat conftest.err >&5
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); } >/dev/null && {
31552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31553 test ! -s conftest.err
31554 }; then
31555 ac_header_preproc=yes
31556 else
31557 echo "$as_me: failed program was:" >&5
31558 sed 's/^/| /' conftest.$ac_ext >&5
31560 ac_header_preproc=no
31563 rm -f conftest.err conftest.$ac_ext
31564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31565 echo "${ECHO_T}$ac_header_preproc" >&6; }
31567 # So? What about this header?
31568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31569 yes:no: )
31570 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31571 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31572 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31573 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31574 ac_header_preproc=yes
31576 no:yes:* )
31577 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31578 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31579 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31580 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31581 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31582 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31583 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31584 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31585 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31586 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31587 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31588 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31589 ( cat <<\_ASBOX
31590 ## ------------------------------- ##
31591 ## Report this to www.asterisk.org ##
31592 ## ------------------------------- ##
31593 _ASBOX
31594 ) | sed "s/^/$as_me: WARNING: /" >&2
31596 esac
31597 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31598 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31600 echo $ECHO_N "(cached) $ECHO_C" >&6
31601 else
31602 eval "$as_ac_Header=\$ac_header_preproc"
31604 ac_res=`eval echo '${'$as_ac_Header'}'`
31605 { echo "$as_me:$LINENO: result: $ac_res" >&5
31606 echo "${ECHO_T}$ac_res" >&6; }
31609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31610 GSM_GSM_HEADER_FOUND=1
31611 else
31612 GSM_GSM_HEADER_FOUND=0
31616 else
31617 if test "${ac_cv_header_gsm_h+set}" = set; then
31618 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31619 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31620 if test "${ac_cv_header_gsm_h+set}" = set; then
31621 echo $ECHO_N "(cached) $ECHO_C" >&6
31623 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31624 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31625 else
31626 # Is the header compilable?
31627 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31628 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31629 cat >conftest.$ac_ext <<_ACEOF
31630 /* confdefs.h. */
31631 _ACEOF
31632 cat confdefs.h >>conftest.$ac_ext
31633 cat >>conftest.$ac_ext <<_ACEOF
31634 /* end confdefs.h. */
31635 $ac_includes_default
31636 #include <gsm.h>
31637 _ACEOF
31638 rm -f conftest.$ac_objext
31639 if { (ac_try="$ac_compile"
31640 case "(($ac_try" in
31641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31642 *) ac_try_echo=$ac_try;;
31643 esac
31644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31645 (eval "$ac_compile") 2>conftest.er1
31646 ac_status=$?
31647 grep -v '^ *+' conftest.er1 >conftest.err
31648 rm -f conftest.er1
31649 cat conftest.err >&5
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); } && {
31652 test -z "$ac_c_werror_flag" ||
31653 test ! -s conftest.err
31654 } && test -s conftest.$ac_objext; then
31655 ac_header_compiler=yes
31656 else
31657 echo "$as_me: failed program was:" >&5
31658 sed 's/^/| /' conftest.$ac_ext >&5
31660 ac_header_compiler=no
31663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31665 echo "${ECHO_T}$ac_header_compiler" >&6; }
31667 # Is the header present?
31668 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31669 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31670 cat >conftest.$ac_ext <<_ACEOF
31671 /* confdefs.h. */
31672 _ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31676 #include <gsm.h>
31677 _ACEOF
31678 if { (ac_try="$ac_cpp conftest.$ac_ext"
31679 case "(($ac_try" in
31680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681 *) ac_try_echo=$ac_try;;
31682 esac
31683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31685 ac_status=$?
31686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } >/dev/null && {
31691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31692 test ! -s conftest.err
31693 }; then
31694 ac_header_preproc=yes
31695 else
31696 echo "$as_me: failed program was:" >&5
31697 sed 's/^/| /' conftest.$ac_ext >&5
31699 ac_header_preproc=no
31702 rm -f conftest.err conftest.$ac_ext
31703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31704 echo "${ECHO_T}$ac_header_preproc" >&6; }
31706 # So? What about this header?
31707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31708 yes:no: )
31709 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31710 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31711 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31712 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31713 ac_header_preproc=yes
31715 no:yes:* )
31716 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31717 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31718 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31719 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31720 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31721 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31722 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31723 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31724 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31725 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31726 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31727 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31728 ( cat <<\_ASBOX
31729 ## ------------------------------- ##
31730 ## Report this to www.asterisk.org ##
31731 ## ------------------------------- ##
31732 _ASBOX
31733 ) | sed "s/^/$as_me: WARNING: /" >&2
31735 esac
31736 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31737 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31738 if test "${ac_cv_header_gsm_h+set}" = set; then
31739 echo $ECHO_N "(cached) $ECHO_C" >&6
31740 else
31741 ac_cv_header_gsm_h=$ac_header_preproc
31743 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31744 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31747 if test $ac_cv_header_gsm_h = yes; then
31748 GSM_HEADER_FOUND=1
31749 else
31750 GSM_HEADER_FOUND=0
31754 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31755 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31756 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31757 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31760 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31761 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31762 else
31763 # Is the header compilable?
31764 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31765 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31766 cat >conftest.$ac_ext <<_ACEOF
31767 /* confdefs.h. */
31768 _ACEOF
31769 cat confdefs.h >>conftest.$ac_ext
31770 cat >>conftest.$ac_ext <<_ACEOF
31771 /* end confdefs.h. */
31772 $ac_includes_default
31773 #include <gsm/gsm.h>
31774 _ACEOF
31775 rm -f conftest.$ac_objext
31776 if { (ac_try="$ac_compile"
31777 case "(($ac_try" in
31778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779 *) ac_try_echo=$ac_try;;
31780 esac
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782 (eval "$ac_compile") 2>conftest.er1
31783 ac_status=$?
31784 grep -v '^ *+' conftest.er1 >conftest.err
31785 rm -f conftest.er1
31786 cat conftest.err >&5
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); } && {
31789 test -z "$ac_c_werror_flag" ||
31790 test ! -s conftest.err
31791 } && test -s conftest.$ac_objext; then
31792 ac_header_compiler=yes
31793 else
31794 echo "$as_me: failed program was:" >&5
31795 sed 's/^/| /' conftest.$ac_ext >&5
31797 ac_header_compiler=no
31800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31802 echo "${ECHO_T}$ac_header_compiler" >&6; }
31804 # Is the header present?
31805 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31806 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31807 cat >conftest.$ac_ext <<_ACEOF
31808 /* confdefs.h. */
31809 _ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h. */
31813 #include <gsm/gsm.h>
31814 _ACEOF
31815 if { (ac_try="$ac_cpp conftest.$ac_ext"
31816 case "(($ac_try" in
31817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31818 *) ac_try_echo=$ac_try;;
31819 esac
31820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31822 ac_status=$?
31823 grep -v '^ *+' conftest.er1 >conftest.err
31824 rm -f conftest.er1
31825 cat conftest.err >&5
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); } >/dev/null && {
31828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31829 test ! -s conftest.err
31830 }; then
31831 ac_header_preproc=yes
31832 else
31833 echo "$as_me: failed program was:" >&5
31834 sed 's/^/| /' conftest.$ac_ext >&5
31836 ac_header_preproc=no
31839 rm -f conftest.err conftest.$ac_ext
31840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31841 echo "${ECHO_T}$ac_header_preproc" >&6; }
31843 # So? What about this header?
31844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31845 yes:no: )
31846 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31847 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31848 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31849 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31850 ac_header_preproc=yes
31852 no:yes:* )
31853 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31854 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31855 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31856 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31857 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31858 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31859 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31860 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31861 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31862 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31863 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31864 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31865 ( cat <<\_ASBOX
31866 ## ------------------------------- ##
31867 ## Report this to www.asterisk.org ##
31868 ## ------------------------------- ##
31869 _ASBOX
31870 ) | sed "s/^/$as_me: WARNING: /" >&2
31872 esac
31873 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31874 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31875 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31877 else
31878 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31880 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31881 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31884 if test $ac_cv_header_gsm_gsm_h = yes; then
31885 GSM_GSM_HEADER_FOUND=1
31886 else
31887 GSM_GSM_HEADER_FOUND=0
31892 if test "${GSM_HEADER_FOUND}" = "0" ; then
31893 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31894 if test "x${GSM_MANDATORY}" = "xyes" ; then
31895 { echo "$as_me:$LINENO: ***" >&5
31896 echo "$as_me: ***" >&6;}
31897 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31898 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31899 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31900 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31901 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31902 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31903 exit 1
31907 GSM_OK=0
31908 if test "${GSM_HEADER_FOUND}" = "1" ; then
31910 cat >>confdefs.h <<_ACEOF
31911 #define HAVE_GSM_HEADER 1
31912 _ACEOF
31914 GSM_OK=1
31915 else
31916 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31918 cat >>confdefs.h <<_ACEOF
31919 #define HAVE_GSM_GSM_HEADER 1
31920 _ACEOF
31922 GSM_OK=1
31925 if test "${GSM_OK}" = "1" ; then
31926 GSM_LIB="-lgsm"
31927 if test "x${GSM_DIR}" != "x"; then
31928 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31929 GSM_INCLUDE="-I${GSM_DIR}/include"
31931 PBX_GSM=1
31932 GSM_INTERNAL="no"
31936 if test "${GSM_INTERNAL}" = "yes"; then
31937 PBX_GSM=1
31939 cat >>confdefs.h <<_ACEOF
31940 #define HAVE_GSM_HEADER 1
31941 _ACEOF
31946 if test "${host_os}" != "linux-gnu" ; then
31948 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31949 pbxlibdir=""
31950 # if --with-ICONV=DIR has been specified, use it.
31951 if test "x${ICONV_DIR}" != "x"; then
31952 if test -d ${ICONV_DIR}/lib; then
31953 pbxlibdir="-L${ICONV_DIR}/lib"
31954 else
31955 pbxlibdir="-L${ICONV_DIR}"
31958 pbxfuncname="iconv_open"
31959 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31960 AST_ICONV_FOUND=yes
31961 else
31962 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
31963 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
31964 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
31965 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31967 else
31968 ac_check_lib_save_LIBS=$LIBS
31969 LIBS="-liconv ${pbxlibdir} $LIBS"
31970 cat >conftest.$ac_ext <<_ACEOF
31971 /* confdefs.h. */
31972 _ACEOF
31973 cat confdefs.h >>conftest.$ac_ext
31974 cat >>conftest.$ac_ext <<_ACEOF
31975 /* end confdefs.h. */
31977 /* Override any GCC internal prototype to avoid an error.
31978 Use char because int might match the return type of a GCC
31979 builtin and then its argument prototype would still apply. */
31980 #ifdef __cplusplus
31981 extern "C"
31982 #endif
31983 char ${pbxfuncname} ();
31985 main ()
31987 return ${pbxfuncname} ();
31989 return 0;
31991 _ACEOF
31992 rm -f conftest.$ac_objext conftest$ac_exeext
31993 if { (ac_try="$ac_link"
31994 case "(($ac_try" in
31995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31996 *) ac_try_echo=$ac_try;;
31997 esac
31998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31999 (eval "$ac_link") 2>conftest.er1
32000 ac_status=$?
32001 grep -v '^ *+' conftest.er1 >conftest.err
32002 rm -f conftest.er1
32003 cat conftest.err >&5
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); } && {
32006 test -z "$ac_c_werror_flag" ||
32007 test ! -s conftest.err
32008 } && test -s conftest$ac_exeext &&
32009 $as_test_x conftest$ac_exeext; then
32010 eval "$as_ac_Lib=yes"
32011 else
32012 echo "$as_me: failed program was:" >&5
32013 sed 's/^/| /' conftest.$ac_ext >&5
32015 eval "$as_ac_Lib=no"
32018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32019 conftest$ac_exeext conftest.$ac_ext
32020 LIBS=$ac_check_lib_save_LIBS
32022 ac_res=`eval echo '${'$as_ac_Lib'}'`
32023 { echo "$as_me:$LINENO: result: $ac_res" >&5
32024 echo "${ECHO_T}$ac_res" >&6; }
32025 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32026 AST_ICONV_FOUND=yes
32027 else
32028 AST_ICONV_FOUND=no
32033 # now check for the header.
32034 if test "${AST_ICONV_FOUND}" = "yes"; then
32035 ICONV_LIB="${pbxlibdir} -liconv "
32036 # if --with-ICONV=DIR has been specified, use it.
32037 if test "x${ICONV_DIR}" != "x"; then
32038 ICONV_INCLUDE="-I${ICONV_DIR}/include"
32040 ICONV_INCLUDE="${ICONV_INCLUDE} "
32041 if test "xiconv.h" = "x" ; then # no header, assume found
32042 ICONV_HEADER_FOUND="1"
32043 else # check for the header
32044 saved_cppflags="${CPPFLAGS}"
32045 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
32046 if test "${ac_cv_header_iconv_h+set}" = set; then
32047 { echo "$as_me:$LINENO: checking for iconv.h" >&5
32048 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
32049 if test "${ac_cv_header_iconv_h+set}" = set; then
32050 echo $ECHO_N "(cached) $ECHO_C" >&6
32052 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32053 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
32054 else
32055 # Is the header compilable?
32056 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
32057 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
32058 cat >conftest.$ac_ext <<_ACEOF
32059 /* confdefs.h. */
32060 _ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h. */
32064 $ac_includes_default
32065 #include <iconv.h>
32066 _ACEOF
32067 rm -f conftest.$ac_objext
32068 if { (ac_try="$ac_compile"
32069 case "(($ac_try" in
32070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32071 *) ac_try_echo=$ac_try;;
32072 esac
32073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32074 (eval "$ac_compile") 2>conftest.er1
32075 ac_status=$?
32076 grep -v '^ *+' conftest.er1 >conftest.err
32077 rm -f conftest.er1
32078 cat conftest.err >&5
32079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080 (exit $ac_status); } && {
32081 test -z "$ac_c_werror_flag" ||
32082 test ! -s conftest.err
32083 } && test -s conftest.$ac_objext; then
32084 ac_header_compiler=yes
32085 else
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32089 ac_header_compiler=no
32092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32094 echo "${ECHO_T}$ac_header_compiler" >&6; }
32096 # Is the header present?
32097 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
32098 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
32099 cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h. */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h. */
32105 #include <iconv.h>
32106 _ACEOF
32107 if { (ac_try="$ac_cpp conftest.$ac_ext"
32108 case "(($ac_try" in
32109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110 *) ac_try_echo=$ac_try;;
32111 esac
32112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32114 ac_status=$?
32115 grep -v '^ *+' conftest.er1 >conftest.err
32116 rm -f conftest.er1
32117 cat conftest.err >&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } >/dev/null && {
32120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32121 test ! -s conftest.err
32122 }; then
32123 ac_header_preproc=yes
32124 else
32125 echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.$ac_ext >&5
32128 ac_header_preproc=no
32131 rm -f conftest.err conftest.$ac_ext
32132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32133 echo "${ECHO_T}$ac_header_preproc" >&6; }
32135 # So? What about this header?
32136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32137 yes:no: )
32138 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
32139 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32140 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
32141 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
32142 ac_header_preproc=yes
32144 no:yes:* )
32145 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
32146 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
32147 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
32148 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
32149 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
32150 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
32151 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
32152 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
32153 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
32154 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
32155 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
32156 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
32157 ( cat <<\_ASBOX
32158 ## ------------------------------- ##
32159 ## Report this to www.asterisk.org ##
32160 ## ------------------------------- ##
32161 _ASBOX
32162 ) | sed "s/^/$as_me: WARNING: /" >&2
32164 esac
32165 { echo "$as_me:$LINENO: checking for iconv.h" >&5
32166 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
32167 if test "${ac_cv_header_iconv_h+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32169 else
32170 ac_cv_header_iconv_h=$ac_header_preproc
32172 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32173 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
32176 if test $ac_cv_header_iconv_h = yes; then
32177 ICONV_HEADER_FOUND=1
32178 else
32179 ICONV_HEADER_FOUND=0
32183 CPPFLAGS="${saved_cppflags}"
32185 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
32186 ICONV_LIB=""
32187 ICONV_INCLUDE=""
32188 else
32189 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32190 ICONV_LIB=""
32192 PBX_ICONV=1
32193 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32195 cat >>confdefs.h <<_ACEOF
32196 #define HAVE_ICONV 1
32197 _ACEOF
32200 cat >>confdefs.h <<_ACEOF
32201 #define HAVE_ICONV_VERSION
32202 _ACEOF
32208 else
32209 PBX_ICONV=1
32213 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
32214 pbxlibdir=""
32215 # if --with-IKSEMEL=DIR has been specified, use it.
32216 if test "x${IKSEMEL_DIR}" != "x"; then
32217 if test -d ${IKSEMEL_DIR}/lib; then
32218 pbxlibdir="-L${IKSEMEL_DIR}/lib"
32219 else
32220 pbxlibdir="-L${IKSEMEL_DIR}"
32223 pbxfuncname="iks_start_sasl"
32224 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32225 AST_IKSEMEL_FOUND=yes
32226 else
32227 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
32228 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
32229 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
32230 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32231 echo $ECHO_N "(cached) $ECHO_C" >&6
32232 else
32233 ac_check_lib_save_LIBS=$LIBS
32234 LIBS="-liksemel ${pbxlibdir} $LIBS"
32235 cat >conftest.$ac_ext <<_ACEOF
32236 /* confdefs.h. */
32237 _ACEOF
32238 cat confdefs.h >>conftest.$ac_ext
32239 cat >>conftest.$ac_ext <<_ACEOF
32240 /* end confdefs.h. */
32242 /* Override any GCC internal prototype to avoid an error.
32243 Use char because int might match the return type of a GCC
32244 builtin and then its argument prototype would still apply. */
32245 #ifdef __cplusplus
32246 extern "C"
32247 #endif
32248 char ${pbxfuncname} ();
32250 main ()
32252 return ${pbxfuncname} ();
32254 return 0;
32256 _ACEOF
32257 rm -f conftest.$ac_objext conftest$ac_exeext
32258 if { (ac_try="$ac_link"
32259 case "(($ac_try" in
32260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261 *) ac_try_echo=$ac_try;;
32262 esac
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264 (eval "$ac_link") 2>conftest.er1
32265 ac_status=$?
32266 grep -v '^ *+' conftest.er1 >conftest.err
32267 rm -f conftest.er1
32268 cat conftest.err >&5
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); } && {
32271 test -z "$ac_c_werror_flag" ||
32272 test ! -s conftest.err
32273 } && test -s conftest$ac_exeext &&
32274 $as_test_x conftest$ac_exeext; then
32275 eval "$as_ac_Lib=yes"
32276 else
32277 echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32280 eval "$as_ac_Lib=no"
32283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32284 conftest$ac_exeext conftest.$ac_ext
32285 LIBS=$ac_check_lib_save_LIBS
32287 ac_res=`eval echo '${'$as_ac_Lib'}'`
32288 { echo "$as_me:$LINENO: result: $ac_res" >&5
32289 echo "${ECHO_T}$ac_res" >&6; }
32290 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32291 AST_IKSEMEL_FOUND=yes
32292 else
32293 AST_IKSEMEL_FOUND=no
32298 # now check for the header.
32299 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
32300 IKSEMEL_LIB="${pbxlibdir} -liksemel "
32301 # if --with-IKSEMEL=DIR has been specified, use it.
32302 if test "x${IKSEMEL_DIR}" != "x"; then
32303 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
32305 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
32306 if test "xiksemel.h" = "x" ; then # no header, assume found
32307 IKSEMEL_HEADER_FOUND="1"
32308 else # check for the header
32309 saved_cppflags="${CPPFLAGS}"
32310 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
32311 if test "${ac_cv_header_iksemel_h+set}" = set; then
32312 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32313 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32314 if test "${ac_cv_header_iksemel_h+set}" = set; then
32315 echo $ECHO_N "(cached) $ECHO_C" >&6
32317 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32318 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32319 else
32320 # Is the header compilable?
32321 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
32322 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
32323 cat >conftest.$ac_ext <<_ACEOF
32324 /* confdefs.h. */
32325 _ACEOF
32326 cat confdefs.h >>conftest.$ac_ext
32327 cat >>conftest.$ac_ext <<_ACEOF
32328 /* end confdefs.h. */
32329 $ac_includes_default
32330 #include <iksemel.h>
32331 _ACEOF
32332 rm -f conftest.$ac_objext
32333 if { (ac_try="$ac_compile"
32334 case "(($ac_try" in
32335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336 *) ac_try_echo=$ac_try;;
32337 esac
32338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339 (eval "$ac_compile") 2>conftest.er1
32340 ac_status=$?
32341 grep -v '^ *+' conftest.er1 >conftest.err
32342 rm -f conftest.er1
32343 cat conftest.err >&5
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); } && {
32346 test -z "$ac_c_werror_flag" ||
32347 test ! -s conftest.err
32348 } && test -s conftest.$ac_objext; then
32349 ac_header_compiler=yes
32350 else
32351 echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32354 ac_header_compiler=no
32357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32359 echo "${ECHO_T}$ac_header_compiler" >&6; }
32361 # Is the header present?
32362 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
32363 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
32364 cat >conftest.$ac_ext <<_ACEOF
32365 /* confdefs.h. */
32366 _ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h. */
32370 #include <iksemel.h>
32371 _ACEOF
32372 if { (ac_try="$ac_cpp conftest.$ac_ext"
32373 case "(($ac_try" in
32374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375 *) ac_try_echo=$ac_try;;
32376 esac
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32379 ac_status=$?
32380 grep -v '^ *+' conftest.er1 >conftest.err
32381 rm -f conftest.er1
32382 cat conftest.err >&5
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); } >/dev/null && {
32385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32386 test ! -s conftest.err
32387 }; then
32388 ac_header_preproc=yes
32389 else
32390 echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32393 ac_header_preproc=no
32396 rm -f conftest.err conftest.$ac_ext
32397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32398 echo "${ECHO_T}$ac_header_preproc" >&6; }
32400 # So? What about this header?
32401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32402 yes:no: )
32403 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
32404 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32405 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
32406 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
32407 ac_header_preproc=yes
32409 no:yes:* )
32410 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
32411 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
32412 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
32413 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
32414 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
32415 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
32416 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
32417 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
32418 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
32419 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
32420 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
32421 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
32422 ( cat <<\_ASBOX
32423 ## ------------------------------- ##
32424 ## Report this to www.asterisk.org ##
32425 ## ------------------------------- ##
32426 _ASBOX
32427 ) | sed "s/^/$as_me: WARNING: /" >&2
32429 esac
32430 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32431 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32432 if test "${ac_cv_header_iksemel_h+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32434 else
32435 ac_cv_header_iksemel_h=$ac_header_preproc
32437 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32438 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32441 if test $ac_cv_header_iksemel_h = yes; then
32442 IKSEMEL_HEADER_FOUND=1
32443 else
32444 IKSEMEL_HEADER_FOUND=0
32448 CPPFLAGS="${saved_cppflags}"
32450 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
32451 IKSEMEL_LIB=""
32452 IKSEMEL_INCLUDE=""
32453 else
32454 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32455 IKSEMEL_LIB=""
32457 PBX_IKSEMEL=1
32458 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32460 cat >>confdefs.h <<_ACEOF
32461 #define HAVE_IKSEMEL 1
32462 _ACEOF
32465 cat >>confdefs.h <<_ACEOF
32466 #define HAVE_IKSEMEL_VERSION
32467 _ACEOF
32474 if test "${USE_IMAP_TK}" != "no"; then
32475 saved_cppflags="${CPPFLAGS}"
32476 saved_libs="${LIBS}"
32477 switch_to_system_on_failure="no"
32478 if test "${IMAP_TK_DIR}" = ""; then
32479 IMAP_TK_DIR=`pwd`"/../imap-2004g"
32480 switch_to_system_on_failure="yes"
32482 if test "${IMAP_TK_DIR}" != "system"; then
32483 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
32484 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
32485 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
32486 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
32488 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
32489 imap_include="-I${IMAP_TK_DIR}/c-client"
32490 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32491 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32492 cat >conftest.$ac_ext <<_ACEOF
32493 /* confdefs.h. */
32494 _ACEOF
32495 cat confdefs.h >>conftest.$ac_ext
32496 cat >>conftest.$ac_ext <<_ACEOF
32497 /* end confdefs.h. */
32498 #include "c-client.h"
32499 void mm_searched (MAILSTREAM *stream,unsigned long number)
32502 void mm_exists (MAILSTREAM *stream,unsigned long number)
32505 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32508 void mm_flags (MAILSTREAM *stream,unsigned long number)
32511 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32514 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32517 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32520 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32523 void mm_log (char *string,long errflg)
32526 void mm_dlog (char *string)
32529 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32532 void mm_critical (MAILSTREAM *stream)
32535 void mm_nocritical (MAILSTREAM *stream)
32538 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32541 void mm_fatal (char *string)
32545 main ()
32548 MAILSTREAM *foo = mail_open(NULL, "", 0);
32552 return 0;
32554 _ACEOF
32555 rm -f conftest.$ac_objext conftest$ac_exeext
32556 if { (ac_try="$ac_link"
32557 case "(($ac_try" in
32558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559 *) ac_try_echo=$ac_try;;
32560 esac
32561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562 (eval "$ac_link") 2>conftest.er1
32563 ac_status=$?
32564 grep -v '^ *+' conftest.er1 >conftest.err
32565 rm -f conftest.er1
32566 cat conftest.err >&5
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); } && {
32569 test -z "$ac_c_werror_flag" ||
32570 test ! -s conftest.err
32571 } && test -s conftest$ac_exeext &&
32572 $as_test_x conftest$ac_exeext; then
32573 ac_cv_imap_tk="yes"
32574 else
32575 echo "$as_me: failed program was:" >&5
32576 sed 's/^/| /' conftest.$ac_ext >&5
32578 ac_cv_imap_tk="no"
32582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32583 conftest$ac_exeext conftest.$ac_ext
32584 if test "${ac_cv_imap_tk}" = "yes"; then
32585 cat >conftest.$ac_ext <<_ACEOF
32586 /* confdefs.h. */
32587 _ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32591 #include "c-client.h"
32592 void mm_searched (MAILSTREAM *stream,unsigned long number)
32595 void mm_exists (MAILSTREAM *stream,unsigned long number)
32598 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32601 void mm_flags (MAILSTREAM *stream,unsigned long number)
32604 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32607 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32610 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32613 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32616 void mm_log (char *string,long errflg)
32619 void mm_dlog (char *string)
32622 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32625 void mm_critical (MAILSTREAM *stream)
32628 void mm_nocritical (MAILSTREAM *stream)
32631 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32634 void mm_fatal (char *string)
32638 main ()
32641 long check = mail_expunge_full(NULL, "", 0);
32645 return 0;
32647 _ACEOF
32648 rm -f conftest.$ac_objext conftest$ac_exeext
32649 if { (ac_try="$ac_link"
32650 case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32653 esac
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_link") 2>conftest.er1
32656 ac_status=$?
32657 grep -v '^ *+' conftest.er1 >conftest.err
32658 rm -f conftest.er1
32659 cat conftest.err >&5
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); } && {
32662 test -z "$ac_c_werror_flag" ||
32663 test ! -s conftest.err
32664 } && test -s conftest$ac_exeext &&
32665 $as_test_x conftest$ac_exeext; then
32666 ac_cv_imap_tk2006="yes"
32667 else
32668 echo "$as_me: failed program was:" >&5
32669 sed 's/^/| /' conftest.$ac_ext >&5
32671 ac_cv_imap_tk2006="no"
32675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32676 conftest$ac_exeext conftest.$ac_ext
32678 CPPFLAGS="${saved_cppflags}"
32679 LIBS="${saved_libs}"
32680 if test "${ac_cv_imap_tk}" = "no"; then
32681 { echo "$as_me:$LINENO: result: no" >&5
32682 echo "${ECHO_T}no" >&6; }
32683 if test "${switch_to_system_on_failure}" = "yes"; then
32684 IMAP_TK_DIR="system"
32685 else #This means they specified a directory. Search for a package installation there too
32686 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32687 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32688 CPPFLAGS="${saved_cppflags}"
32689 LIBS="${saved_libs}"
32690 imap_include="-I${IMAP_TK_DIR}/include"
32691 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32692 imap_libs="-lc-client"
32693 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32694 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32695 cat >conftest.$ac_ext <<_ACEOF
32696 /* confdefs.h. */
32697 _ACEOF
32698 cat confdefs.h >>conftest.$ac_ext
32699 cat >>conftest.$ac_ext <<_ACEOF
32700 /* end confdefs.h. */
32701 #include "c-client.h"
32702 void mm_searched (MAILSTREAM *stream,unsigned long number)
32705 void mm_exists (MAILSTREAM *stream,unsigned long number)
32708 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32711 void mm_flags (MAILSTREAM *stream,unsigned long number)
32714 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32717 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32720 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32723 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32726 void mm_log (char *string,long errflg)
32729 void mm_dlog (char *string)
32732 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32735 void mm_critical (MAILSTREAM *stream)
32738 void mm_nocritical (MAILSTREAM *stream)
32741 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32744 void mm_fatal (char *string)
32748 main ()
32751 MAILSTREAM *foo = mail_open(NULL, "", 0);
32755 return 0;
32757 _ACEOF
32758 rm -f conftest.$ac_objext conftest$ac_exeext
32759 if { (ac_try="$ac_link"
32760 case "(($ac_try" in
32761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32762 *) ac_try_echo=$ac_try;;
32763 esac
32764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32765 (eval "$ac_link") 2>conftest.er1
32766 ac_status=$?
32767 grep -v '^ *+' conftest.er1 >conftest.err
32768 rm -f conftest.er1
32769 cat conftest.err >&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } && {
32772 test -z "$ac_c_werror_flag" ||
32773 test ! -s conftest.err
32774 } && test -s conftest$ac_exeext &&
32775 $as_test_x conftest$ac_exeext; then
32776 ac_cv_imap_tk="yes"
32777 else
32778 echo "$as_me: failed program was:" >&5
32779 sed 's/^/| /' conftest.$ac_ext >&5
32781 ac_cv_imap_tk="no"
32785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32786 conftest$ac_exeext conftest.$ac_ext
32787 if test "${ac_cv_imap_tk}" = "yes"; then
32788 cat >conftest.$ac_ext <<_ACEOF
32789 /* confdefs.h. */
32790 _ACEOF
32791 cat confdefs.h >>conftest.$ac_ext
32792 cat >>conftest.$ac_ext <<_ACEOF
32793 /* end confdefs.h. */
32794 #include "c-client.h"
32795 void mm_searched (MAILSTREAM *stream,unsigned long number)
32798 void mm_exists (MAILSTREAM *stream,unsigned long number)
32801 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32804 void mm_flags (MAILSTREAM *stream,unsigned long number)
32807 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32810 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32813 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32816 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32819 void mm_log (char *string,long errflg)
32822 void mm_dlog (char *string)
32825 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32828 void mm_critical (MAILSTREAM *stream)
32831 void mm_nocritical (MAILSTREAM *stream)
32834 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32837 void mm_fatal (char *string)
32841 main ()
32844 long check = mail_expunge_full(NULL, "", 0);
32848 return 0;
32850 _ACEOF
32851 rm -f conftest.$ac_objext conftest$ac_exeext
32852 if { (ac_try="$ac_link"
32853 case "(($ac_try" in
32854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855 *) ac_try_echo=$ac_try;;
32856 esac
32857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858 (eval "$ac_link") 2>conftest.er1
32859 ac_status=$?
32860 grep -v '^ *+' conftest.er1 >conftest.err
32861 rm -f conftest.er1
32862 cat conftest.err >&5
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); } && {
32865 test -z "$ac_c_werror_flag" ||
32866 test ! -s conftest.err
32867 } && test -s conftest$ac_exeext &&
32868 $as_test_x conftest$ac_exeext; then
32869 ac_cv_imap_tk2006="yes"
32870 else
32871 echo "$as_me: failed program was:" >&5
32872 sed 's/^/| /' conftest.$ac_ext >&5
32874 ac_cv_imap_tk2006="no"
32878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32879 conftest$ac_exeext conftest.$ac_ext
32884 if test "${IMAP_TK_DIR}" = "system"; then
32885 #We will enter here if user specified "system" or if any of above checks failed
32886 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32887 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32888 CPPFLAGS="${saved_cppflags}"
32889 LIBS="${saved_libs}"
32890 imap_ldflags=""
32891 imap_libs="-lc-client"
32892 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32893 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32894 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32895 cat >conftest.$ac_ext <<_ACEOF
32896 /* confdefs.h. */
32897 _ACEOF
32898 cat confdefs.h >>conftest.$ac_ext
32899 cat >>conftest.$ac_ext <<_ACEOF
32900 /* end confdefs.h. */
32901 #include <stdio.h>
32902 #include <imap/c-client.h>
32903 void mm_searched (MAILSTREAM *stream,unsigned long number)
32906 void mm_exists (MAILSTREAM *stream,unsigned long number)
32909 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32912 void mm_flags (MAILSTREAM *stream,unsigned long number)
32915 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32918 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32921 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32924 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32927 void mm_log (char *string,long errflg)
32930 void mm_dlog (char *string)
32933 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32936 void mm_critical (MAILSTREAM *stream)
32939 void mm_nocritical (MAILSTREAM *stream)
32942 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32945 void mm_fatal (char *string)
32949 main ()
32952 MAILSTREAM *foo = mail_open(NULL, "", 0);
32956 return 0;
32958 _ACEOF
32959 rm -f conftest.$ac_objext conftest$ac_exeext
32960 if { (ac_try="$ac_link"
32961 case "(($ac_try" in
32962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963 *) ac_try_echo=$ac_try;;
32964 esac
32965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966 (eval "$ac_link") 2>conftest.er1
32967 ac_status=$?
32968 grep -v '^ *+' conftest.er1 >conftest.err
32969 rm -f conftest.er1
32970 cat conftest.err >&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); } && {
32973 test -z "$ac_c_werror_flag" ||
32974 test ! -s conftest.err
32975 } && test -s conftest$ac_exeext &&
32976 $as_test_x conftest$ac_exeext; then
32977 ac_cv_imap_tk="yes"
32978 else
32979 echo "$as_me: failed program was:" >&5
32980 sed 's/^/| /' conftest.$ac_ext >&5
32982 ac_cv_imap_tk="no"
32986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32987 conftest$ac_exeext conftest.$ac_ext
32988 if test "${ac_cv_imap_tk}" = "yes"; then
32989 cat >conftest.$ac_ext <<_ACEOF
32990 /* confdefs.h. */
32991 _ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h. */
32995 #include <stdio.h>
32996 #include <imap/c-client.h>
32997 void mm_searched (MAILSTREAM *stream,unsigned long number)
33000 void mm_exists (MAILSTREAM *stream,unsigned long number)
33003 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33006 void mm_flags (MAILSTREAM *stream,unsigned long number)
33009 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33012 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33015 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33018 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33021 void mm_log (char *string,long errflg)
33024 void mm_dlog (char *string)
33027 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33030 void mm_critical (MAILSTREAM *stream)
33033 void mm_nocritical (MAILSTREAM *stream)
33036 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33039 void mm_fatal (char *string)
33043 main ()
33046 long check = mail_expunge_full(NULL, "", 0);
33050 return 0;
33052 _ACEOF
33053 rm -f conftest.$ac_objext conftest$ac_exeext
33054 if { (ac_try="$ac_link"
33055 case "(($ac_try" in
33056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057 *) ac_try_echo=$ac_try;;
33058 esac
33059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060 (eval "$ac_link") 2>conftest.er1
33061 ac_status=$?
33062 grep -v '^ *+' conftest.er1 >conftest.err
33063 rm -f conftest.er1
33064 cat conftest.err >&5
33065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33066 (exit $ac_status); } && {
33067 test -z "$ac_c_werror_flag" ||
33068 test ! -s conftest.err
33069 } && test -s conftest$ac_exeext &&
33070 $as_test_x conftest$ac_exeext; then
33071 ac_cv_imap_tk2006="yes"
33072 else
33073 echo "$as_me: failed program was:" >&5
33074 sed 's/^/| /' conftest.$ac_ext >&5
33076 ac_cv_imap_tk2006="no"
33080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33081 conftest$ac_exeext conftest.$ac_ext
33082 else #looking in imap directory didn't work, try c-client
33083 imap_ldflags=""
33084 imap_libs="-lc-client"
33085 imap_include="-DUSE_SYSTEM_CCLIENT"
33086 CPPFLAGS="${saved_cppflags}"
33087 LIBS="${saved_libs}"
33088 CPPFLAGS="${CPPFLAGS} ${imap_include}"
33089 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
33090 cat >conftest.$ac_ext <<_ACEOF
33091 /* confdefs.h. */
33092 _ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33096 #include <stdio.h>
33097 #include <c-client/c-client.h>
33098 void mm_searched (MAILSTREAM *stream,unsigned long number)
33101 void mm_exists (MAILSTREAM *stream,unsigned long number)
33104 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33107 void mm_flags (MAILSTREAM *stream,unsigned long number)
33110 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33113 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33116 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33119 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33122 void mm_log (char *string,long errflg)
33125 void mm_dlog (char *string)
33128 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33131 void mm_critical (MAILSTREAM *stream)
33134 void mm_nocritical (MAILSTREAM *stream)
33137 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33140 void mm_fatal (char *string)
33144 main ()
33147 MAILSTREAM *foo = mail_open(NULL, "", 0);
33151 return 0;
33153 _ACEOF
33154 rm -f conftest.$ac_objext conftest$ac_exeext
33155 if { (ac_try="$ac_link"
33156 case "(($ac_try" in
33157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33158 *) ac_try_echo=$ac_try;;
33159 esac
33160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33161 (eval "$ac_link") 2>conftest.er1
33162 ac_status=$?
33163 grep -v '^ *+' conftest.er1 >conftest.err
33164 rm -f conftest.er1
33165 cat conftest.err >&5
33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); } && {
33168 test -z "$ac_c_werror_flag" ||
33169 test ! -s conftest.err
33170 } && test -s conftest$ac_exeext &&
33171 $as_test_x conftest$ac_exeext; then
33172 ac_cv_imap_tk="yes"
33173 else
33174 echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33177 ac_cv_imap_tk="no"
33181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33182 conftest$ac_exeext conftest.$ac_ext
33183 if test "${ac_cv_imap_tk}" = "yes"; then
33184 cat >conftest.$ac_ext <<_ACEOF
33185 /* confdefs.h. */
33186 _ACEOF
33187 cat confdefs.h >>conftest.$ac_ext
33188 cat >>conftest.$ac_ext <<_ACEOF
33189 /* end confdefs.h. */
33190 #include <stdio.h>
33191 #include <c-client/c-client.h>
33192 void mm_searched (MAILSTREAM *stream,unsigned long number)
33195 void mm_exists (MAILSTREAM *stream,unsigned long number)
33198 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33201 void mm_flags (MAILSTREAM *stream,unsigned long number)
33204 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33207 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33210 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33213 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33216 void mm_log (char *string,long errflg)
33219 void mm_dlog (char *string)
33222 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33225 void mm_critical (MAILSTREAM *stream)
33228 void mm_nocritical (MAILSTREAM *stream)
33231 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33234 void mm_fatal (char *string)
33238 main ()
33241 long check = mail_expunge_full(NULL, "", 0);
33245 return 0;
33247 _ACEOF
33248 rm -f conftest.$ac_objext conftest$ac_exeext
33249 if { (ac_try="$ac_link"
33250 case "(($ac_try" in
33251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33252 *) ac_try_echo=$ac_try;;
33253 esac
33254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33255 (eval "$ac_link") 2>conftest.er1
33256 ac_status=$?
33257 grep -v '^ *+' conftest.er1 >conftest.err
33258 rm -f conftest.er1
33259 cat conftest.err >&5
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); } && {
33262 test -z "$ac_c_werror_flag" ||
33263 test ! -s conftest.err
33264 } && test -s conftest$ac_exeext &&
33265 $as_test_x conftest$ac_exeext; then
33266 ac_cv_imap_tk2006="yes"
33267 else
33268 echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33271 ac_cv_imap_tk2006="no"
33275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33276 conftest$ac_exeext conftest.$ac_ext
33280 if test "${ac_cv_imap_tk}" = "yes"; then
33281 { echo "$as_me:$LINENO: result: yes" >&5
33282 echo "${ECHO_T}yes" >&6; }
33283 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
33284 IMAP_TK_INCLUDE="${imap_include}"
33285 PBX_IMAP_TK=1
33287 cat >>confdefs.h <<\_ACEOF
33288 #define HAVE_IMAP_TK 1
33289 _ACEOF
33291 if test "${ac_cv_imap_tk2006}" = "yes"; then
33293 cat >>confdefs.h <<\_ACEOF
33294 #define HAVE_IMAP_TK2006 1
33295 _ACEOF
33298 else
33299 { echo "$as_me:$LINENO: result: no" >&5
33300 echo "${ECHO_T}no" >&6; }
33302 CPPFLAGS="${saved_cppflags}"
33303 LIBS="${saved_libs}"
33307 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
33308 pbxlibdir=""
33309 # if --with-JACK=DIR has been specified, use it.
33310 if test "x${JACK_DIR}" != "x"; then
33311 if test -d ${JACK_DIR}/lib; then
33312 pbxlibdir="-L${JACK_DIR}/lib"
33313 else
33314 pbxlibdir="-L${JACK_DIR}"
33317 pbxfuncname="jack_activate"
33318 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33319 AST_JACK_FOUND=yes
33320 else
33321 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
33322 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
33323 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
33324 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33325 echo $ECHO_N "(cached) $ECHO_C" >&6
33326 else
33327 ac_check_lib_save_LIBS=$LIBS
33328 LIBS="-ljack ${pbxlibdir} $LIBS"
33329 cat >conftest.$ac_ext <<_ACEOF
33330 /* confdefs.h. */
33331 _ACEOF
33332 cat confdefs.h >>conftest.$ac_ext
33333 cat >>conftest.$ac_ext <<_ACEOF
33334 /* end confdefs.h. */
33336 /* Override any GCC internal prototype to avoid an error.
33337 Use char because int might match the return type of a GCC
33338 builtin and then its argument prototype would still apply. */
33339 #ifdef __cplusplus
33340 extern "C"
33341 #endif
33342 char ${pbxfuncname} ();
33344 main ()
33346 return ${pbxfuncname} ();
33348 return 0;
33350 _ACEOF
33351 rm -f conftest.$ac_objext conftest$ac_exeext
33352 if { (ac_try="$ac_link"
33353 case "(($ac_try" in
33354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355 *) ac_try_echo=$ac_try;;
33356 esac
33357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33358 (eval "$ac_link") 2>conftest.er1
33359 ac_status=$?
33360 grep -v '^ *+' conftest.er1 >conftest.err
33361 rm -f conftest.er1
33362 cat conftest.err >&5
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); } && {
33365 test -z "$ac_c_werror_flag" ||
33366 test ! -s conftest.err
33367 } && test -s conftest$ac_exeext &&
33368 $as_test_x conftest$ac_exeext; then
33369 eval "$as_ac_Lib=yes"
33370 else
33371 echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.$ac_ext >&5
33374 eval "$as_ac_Lib=no"
33377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33378 conftest$ac_exeext conftest.$ac_ext
33379 LIBS=$ac_check_lib_save_LIBS
33381 ac_res=`eval echo '${'$as_ac_Lib'}'`
33382 { echo "$as_me:$LINENO: result: $ac_res" >&5
33383 echo "${ECHO_T}$ac_res" >&6; }
33384 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33385 AST_JACK_FOUND=yes
33386 else
33387 AST_JACK_FOUND=no
33392 # now check for the header.
33393 if test "${AST_JACK_FOUND}" = "yes"; then
33394 JACK_LIB="${pbxlibdir} -ljack "
33395 # if --with-JACK=DIR has been specified, use it.
33396 if test "x${JACK_DIR}" != "x"; then
33397 JACK_INCLUDE="-I${JACK_DIR}/include"
33399 JACK_INCLUDE="${JACK_INCLUDE} "
33400 if test "xjack/jack.h" = "x" ; then # no header, assume found
33401 JACK_HEADER_FOUND="1"
33402 else # check for the header
33403 saved_cppflags="${CPPFLAGS}"
33404 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
33405 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33406 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33407 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33408 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33411 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33412 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33413 else
33414 # Is the header compilable?
33415 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
33416 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
33417 cat >conftest.$ac_ext <<_ACEOF
33418 /* confdefs.h. */
33419 _ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h. */
33423 $ac_includes_default
33424 #include <jack/jack.h>
33425 _ACEOF
33426 rm -f conftest.$ac_objext
33427 if { (ac_try="$ac_compile"
33428 case "(($ac_try" in
33429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33430 *) ac_try_echo=$ac_try;;
33431 esac
33432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33433 (eval "$ac_compile") 2>conftest.er1
33434 ac_status=$?
33435 grep -v '^ *+' conftest.er1 >conftest.err
33436 rm -f conftest.er1
33437 cat conftest.err >&5
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); } && {
33440 test -z "$ac_c_werror_flag" ||
33441 test ! -s conftest.err
33442 } && test -s conftest.$ac_objext; then
33443 ac_header_compiler=yes
33444 else
33445 echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33448 ac_header_compiler=no
33451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33453 echo "${ECHO_T}$ac_header_compiler" >&6; }
33455 # Is the header present?
33456 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
33457 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
33458 cat >conftest.$ac_ext <<_ACEOF
33459 /* confdefs.h. */
33460 _ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h. */
33464 #include <jack/jack.h>
33465 _ACEOF
33466 if { (ac_try="$ac_cpp conftest.$ac_ext"
33467 case "(($ac_try" in
33468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33469 *) ac_try_echo=$ac_try;;
33470 esac
33471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33473 ac_status=$?
33474 grep -v '^ *+' conftest.er1 >conftest.err
33475 rm -f conftest.er1
33476 cat conftest.err >&5
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); } >/dev/null && {
33479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33480 test ! -s conftest.err
33481 }; then
33482 ac_header_preproc=yes
33483 else
33484 echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33487 ac_header_preproc=no
33490 rm -f conftest.err conftest.$ac_ext
33491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33492 echo "${ECHO_T}$ac_header_preproc" >&6; }
33494 # So? What about this header?
33495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33496 yes:no: )
33497 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
33498 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33499 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
33500 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
33501 ac_header_preproc=yes
33503 no:yes:* )
33504 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
33505 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
33506 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
33507 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
33508 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
33509 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
33510 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
33511 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
33512 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
33513 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
33514 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
33515 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
33516 ( cat <<\_ASBOX
33517 ## ------------------------------- ##
33518 ## Report this to www.asterisk.org ##
33519 ## ------------------------------- ##
33520 _ASBOX
33521 ) | sed "s/^/$as_me: WARNING: /" >&2
33523 esac
33524 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33525 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33526 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33527 echo $ECHO_N "(cached) $ECHO_C" >&6
33528 else
33529 ac_cv_header_jack_jack_h=$ac_header_preproc
33531 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33532 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33535 if test $ac_cv_header_jack_jack_h = yes; then
33536 JACK_HEADER_FOUND=1
33537 else
33538 JACK_HEADER_FOUND=0
33542 CPPFLAGS="${saved_cppflags}"
33544 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33545 JACK_LIB=""
33546 JACK_INCLUDE=""
33547 else
33548 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33549 JACK_LIB=""
33551 PBX_JACK=1
33552 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33554 cat >>confdefs.h <<_ACEOF
33555 #define HAVE_JACK 1
33556 _ACEOF
33559 cat >>confdefs.h <<_ACEOF
33560 #define HAVE_JACK_VERSION
33561 _ACEOF
33568 # Needed by unixodbc
33570 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33571 pbxlibdir=""
33572 # if --with-LTDL=DIR has been specified, use it.
33573 if test "x${LTDL_DIR}" != "x"; then
33574 if test -d ${LTDL_DIR}/lib; then
33575 pbxlibdir="-L${LTDL_DIR}/lib"
33576 else
33577 pbxlibdir="-L${LTDL_DIR}"
33580 pbxfuncname="lt_dlinit"
33581 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33582 AST_LTDL_FOUND=yes
33583 else
33584 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33585 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33586 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33587 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33588 echo $ECHO_N "(cached) $ECHO_C" >&6
33589 else
33590 ac_check_lib_save_LIBS=$LIBS
33591 LIBS="-lltdl ${pbxlibdir} $LIBS"
33592 cat >conftest.$ac_ext <<_ACEOF
33593 /* confdefs.h. */
33594 _ACEOF
33595 cat confdefs.h >>conftest.$ac_ext
33596 cat >>conftest.$ac_ext <<_ACEOF
33597 /* end confdefs.h. */
33599 /* Override any GCC internal prototype to avoid an error.
33600 Use char because int might match the return type of a GCC
33601 builtin and then its argument prototype would still apply. */
33602 #ifdef __cplusplus
33603 extern "C"
33604 #endif
33605 char ${pbxfuncname} ();
33607 main ()
33609 return ${pbxfuncname} ();
33611 return 0;
33613 _ACEOF
33614 rm -f conftest.$ac_objext conftest$ac_exeext
33615 if { (ac_try="$ac_link"
33616 case "(($ac_try" in
33617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33618 *) ac_try_echo=$ac_try;;
33619 esac
33620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33621 (eval "$ac_link") 2>conftest.er1
33622 ac_status=$?
33623 grep -v '^ *+' conftest.er1 >conftest.err
33624 rm -f conftest.er1
33625 cat conftest.err >&5
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); } && {
33628 test -z "$ac_c_werror_flag" ||
33629 test ! -s conftest.err
33630 } && test -s conftest$ac_exeext &&
33631 $as_test_x conftest$ac_exeext; then
33632 eval "$as_ac_Lib=yes"
33633 else
33634 echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33637 eval "$as_ac_Lib=no"
33640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33641 conftest$ac_exeext conftest.$ac_ext
33642 LIBS=$ac_check_lib_save_LIBS
33644 ac_res=`eval echo '${'$as_ac_Lib'}'`
33645 { echo "$as_me:$LINENO: result: $ac_res" >&5
33646 echo "${ECHO_T}$ac_res" >&6; }
33647 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33648 AST_LTDL_FOUND=yes
33649 else
33650 AST_LTDL_FOUND=no
33655 # now check for the header.
33656 if test "${AST_LTDL_FOUND}" = "yes"; then
33657 LTDL_LIB="${pbxlibdir} -lltdl "
33658 # if --with-LTDL=DIR has been specified, use it.
33659 if test "x${LTDL_DIR}" != "x"; then
33660 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33662 LTDL_INCLUDE="${LTDL_INCLUDE} "
33663 if test "xltdl.h" = "x" ; then # no header, assume found
33664 LTDL_HEADER_FOUND="1"
33665 else # check for the header
33666 saved_cppflags="${CPPFLAGS}"
33667 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
33668 if test "${ac_cv_header_ltdl_h+set}" = set; then
33669 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33670 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33671 if test "${ac_cv_header_ltdl_h+set}" = set; then
33672 echo $ECHO_N "(cached) $ECHO_C" >&6
33674 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33675 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33676 else
33677 # Is the header compilable?
33678 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33679 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33680 cat >conftest.$ac_ext <<_ACEOF
33681 /* confdefs.h. */
33682 _ACEOF
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h. */
33686 $ac_includes_default
33687 #include <ltdl.h>
33688 _ACEOF
33689 rm -f conftest.$ac_objext
33690 if { (ac_try="$ac_compile"
33691 case "(($ac_try" in
33692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33693 *) ac_try_echo=$ac_try;;
33694 esac
33695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33696 (eval "$ac_compile") 2>conftest.er1
33697 ac_status=$?
33698 grep -v '^ *+' conftest.er1 >conftest.err
33699 rm -f conftest.er1
33700 cat conftest.err >&5
33701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702 (exit $ac_status); } && {
33703 test -z "$ac_c_werror_flag" ||
33704 test ! -s conftest.err
33705 } && test -s conftest.$ac_objext; then
33706 ac_header_compiler=yes
33707 else
33708 echo "$as_me: failed program was:" >&5
33709 sed 's/^/| /' conftest.$ac_ext >&5
33711 ac_header_compiler=no
33714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33716 echo "${ECHO_T}$ac_header_compiler" >&6; }
33718 # Is the header present?
33719 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33720 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33721 cat >conftest.$ac_ext <<_ACEOF
33722 /* confdefs.h. */
33723 _ACEOF
33724 cat confdefs.h >>conftest.$ac_ext
33725 cat >>conftest.$ac_ext <<_ACEOF
33726 /* end confdefs.h. */
33727 #include <ltdl.h>
33728 _ACEOF
33729 if { (ac_try="$ac_cpp conftest.$ac_ext"
33730 case "(($ac_try" in
33731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33732 *) ac_try_echo=$ac_try;;
33733 esac
33734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33736 ac_status=$?
33737 grep -v '^ *+' conftest.er1 >conftest.err
33738 rm -f conftest.er1
33739 cat conftest.err >&5
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); } >/dev/null && {
33742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33743 test ! -s conftest.err
33744 }; then
33745 ac_header_preproc=yes
33746 else
33747 echo "$as_me: failed program was:" >&5
33748 sed 's/^/| /' conftest.$ac_ext >&5
33750 ac_header_preproc=no
33753 rm -f conftest.err conftest.$ac_ext
33754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33755 echo "${ECHO_T}$ac_header_preproc" >&6; }
33757 # So? What about this header?
33758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33759 yes:no: )
33760 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33761 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33762 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33763 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33764 ac_header_preproc=yes
33766 no:yes:* )
33767 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33768 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33769 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33770 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33771 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33772 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33773 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33774 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33775 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33776 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33777 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33778 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33779 ( cat <<\_ASBOX
33780 ## ------------------------------- ##
33781 ## Report this to www.asterisk.org ##
33782 ## ------------------------------- ##
33783 _ASBOX
33784 ) | sed "s/^/$as_me: WARNING: /" >&2
33786 esac
33787 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33788 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33789 if test "${ac_cv_header_ltdl_h+set}" = set; then
33790 echo $ECHO_N "(cached) $ECHO_C" >&6
33791 else
33792 ac_cv_header_ltdl_h=$ac_header_preproc
33794 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33795 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33798 if test $ac_cv_header_ltdl_h = yes; then
33799 LTDL_HEADER_FOUND=1
33800 else
33801 LTDL_HEADER_FOUND=0
33805 CPPFLAGS="${saved_cppflags}"
33807 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33808 LTDL_LIB=""
33809 LTDL_INCLUDE=""
33810 else
33811 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33812 LTDL_LIB=""
33814 PBX_LTDL=1
33815 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33817 cat >>confdefs.h <<_ACEOF
33818 #define HAVE_LTDL 1
33819 _ACEOF
33822 cat >>confdefs.h <<_ACEOF
33823 #define HAVE_LTDL_VERSION
33824 _ACEOF
33832 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33833 pbxlibdir=""
33834 # if --with-LDAP=DIR has been specified, use it.
33835 if test "x${LDAP_DIR}" != "x"; then
33836 if test -d ${LDAP_DIR}/lib; then
33837 pbxlibdir="-L${LDAP_DIR}/lib"
33838 else
33839 pbxlibdir="-L${LDAP_DIR}"
33842 pbxfuncname="ldap_initialize"
33843 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33844 AST_LDAP_FOUND=yes
33845 else
33846 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33847 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33848 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33849 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33850 echo $ECHO_N "(cached) $ECHO_C" >&6
33851 else
33852 ac_check_lib_save_LIBS=$LIBS
33853 LIBS="-lldap ${pbxlibdir} $LIBS"
33854 cat >conftest.$ac_ext <<_ACEOF
33855 /* confdefs.h. */
33856 _ACEOF
33857 cat confdefs.h >>conftest.$ac_ext
33858 cat >>conftest.$ac_ext <<_ACEOF
33859 /* end confdefs.h. */
33861 /* Override any GCC internal prototype to avoid an error.
33862 Use char because int might match the return type of a GCC
33863 builtin and then its argument prototype would still apply. */
33864 #ifdef __cplusplus
33865 extern "C"
33866 #endif
33867 char ${pbxfuncname} ();
33869 main ()
33871 return ${pbxfuncname} ();
33873 return 0;
33875 _ACEOF
33876 rm -f conftest.$ac_objext conftest$ac_exeext
33877 if { (ac_try="$ac_link"
33878 case "(($ac_try" in
33879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33880 *) ac_try_echo=$ac_try;;
33881 esac
33882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33883 (eval "$ac_link") 2>conftest.er1
33884 ac_status=$?
33885 grep -v '^ *+' conftest.er1 >conftest.err
33886 rm -f conftest.er1
33887 cat conftest.err >&5
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); } && {
33890 test -z "$ac_c_werror_flag" ||
33891 test ! -s conftest.err
33892 } && test -s conftest$ac_exeext &&
33893 $as_test_x conftest$ac_exeext; then
33894 eval "$as_ac_Lib=yes"
33895 else
33896 echo "$as_me: failed program was:" >&5
33897 sed 's/^/| /' conftest.$ac_ext >&5
33899 eval "$as_ac_Lib=no"
33902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33903 conftest$ac_exeext conftest.$ac_ext
33904 LIBS=$ac_check_lib_save_LIBS
33906 ac_res=`eval echo '${'$as_ac_Lib'}'`
33907 { echo "$as_me:$LINENO: result: $ac_res" >&5
33908 echo "${ECHO_T}$ac_res" >&6; }
33909 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33910 AST_LDAP_FOUND=yes
33911 else
33912 AST_LDAP_FOUND=no
33917 # now check for the header.
33918 if test "${AST_LDAP_FOUND}" = "yes"; then
33919 LDAP_LIB="${pbxlibdir} -lldap "
33920 # if --with-LDAP=DIR has been specified, use it.
33921 if test "x${LDAP_DIR}" != "x"; then
33922 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33924 LDAP_INCLUDE="${LDAP_INCLUDE} "
33925 if test "xldap.h" = "x" ; then # no header, assume found
33926 LDAP_HEADER_FOUND="1"
33927 else # check for the header
33928 saved_cppflags="${CPPFLAGS}"
33929 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
33930 if test "${ac_cv_header_ldap_h+set}" = set; then
33931 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33932 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33933 if test "${ac_cv_header_ldap_h+set}" = set; then
33934 echo $ECHO_N "(cached) $ECHO_C" >&6
33936 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33937 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33938 else
33939 # Is the header compilable?
33940 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33941 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33942 cat >conftest.$ac_ext <<_ACEOF
33943 /* confdefs.h. */
33944 _ACEOF
33945 cat confdefs.h >>conftest.$ac_ext
33946 cat >>conftest.$ac_ext <<_ACEOF
33947 /* end confdefs.h. */
33948 $ac_includes_default
33949 #include <ldap.h>
33950 _ACEOF
33951 rm -f conftest.$ac_objext
33952 if { (ac_try="$ac_compile"
33953 case "(($ac_try" in
33954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33955 *) ac_try_echo=$ac_try;;
33956 esac
33957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33958 (eval "$ac_compile") 2>conftest.er1
33959 ac_status=$?
33960 grep -v '^ *+' conftest.er1 >conftest.err
33961 rm -f conftest.er1
33962 cat conftest.err >&5
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); } && {
33965 test -z "$ac_c_werror_flag" ||
33966 test ! -s conftest.err
33967 } && test -s conftest.$ac_objext; then
33968 ac_header_compiler=yes
33969 else
33970 echo "$as_me: failed program was:" >&5
33971 sed 's/^/| /' conftest.$ac_ext >&5
33973 ac_header_compiler=no
33976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33978 echo "${ECHO_T}$ac_header_compiler" >&6; }
33980 # Is the header present?
33981 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
33982 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
33983 cat >conftest.$ac_ext <<_ACEOF
33984 /* confdefs.h. */
33985 _ACEOF
33986 cat confdefs.h >>conftest.$ac_ext
33987 cat >>conftest.$ac_ext <<_ACEOF
33988 /* end confdefs.h. */
33989 #include <ldap.h>
33990 _ACEOF
33991 if { (ac_try="$ac_cpp conftest.$ac_ext"
33992 case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33995 esac
33996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33998 ac_status=$?
33999 grep -v '^ *+' conftest.er1 >conftest.err
34000 rm -f conftest.er1
34001 cat conftest.err >&5
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); } >/dev/null && {
34004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34005 test ! -s conftest.err
34006 }; then
34007 ac_header_preproc=yes
34008 else
34009 echo "$as_me: failed program was:" >&5
34010 sed 's/^/| /' conftest.$ac_ext >&5
34012 ac_header_preproc=no
34015 rm -f conftest.err conftest.$ac_ext
34016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34017 echo "${ECHO_T}$ac_header_preproc" >&6; }
34019 # So? What about this header?
34020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34021 yes:no: )
34022 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
34023 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34024 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
34025 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
34026 ac_header_preproc=yes
34028 no:yes:* )
34029 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
34030 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
34031 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
34032 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
34033 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
34034 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
34035 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
34036 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
34037 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
34038 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
34039 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
34040 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
34041 ( cat <<\_ASBOX
34042 ## ------------------------------- ##
34043 ## Report this to www.asterisk.org ##
34044 ## ------------------------------- ##
34045 _ASBOX
34046 ) | sed "s/^/$as_me: WARNING: /" >&2
34048 esac
34049 { echo "$as_me:$LINENO: checking for ldap.h" >&5
34050 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
34051 if test "${ac_cv_header_ldap_h+set}" = set; then
34052 echo $ECHO_N "(cached) $ECHO_C" >&6
34053 else
34054 ac_cv_header_ldap_h=$ac_header_preproc
34056 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
34057 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
34060 if test $ac_cv_header_ldap_h = yes; then
34061 LDAP_HEADER_FOUND=1
34062 else
34063 LDAP_HEADER_FOUND=0
34067 CPPFLAGS="${saved_cppflags}"
34069 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
34070 LDAP_LIB=""
34071 LDAP_INCLUDE=""
34072 else
34073 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34074 LDAP_LIB=""
34076 PBX_LDAP=1
34077 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34079 cat >>confdefs.h <<_ACEOF
34080 #define HAVE_LDAP 1
34081 _ACEOF
34084 cat >>confdefs.h <<_ACEOF
34085 #define HAVE_LDAP_VERSION
34086 _ACEOF
34094 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
34095 pbxlibdir=""
34096 # if --with-MISDN=DIR has been specified, use it.
34097 if test "x${MISDN_DIR}" != "x"; then
34098 if test -d ${MISDN_DIR}/lib; then
34099 pbxlibdir="-L${MISDN_DIR}/lib"
34100 else
34101 pbxlibdir="-L${MISDN_DIR}"
34104 pbxfuncname="mISDN_open"
34105 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34106 AST_MISDN_FOUND=yes
34107 else
34108 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
34109 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
34110 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
34111 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34112 echo $ECHO_N "(cached) $ECHO_C" >&6
34113 else
34114 ac_check_lib_save_LIBS=$LIBS
34115 LIBS="-lmISDN ${pbxlibdir} $LIBS"
34116 cat >conftest.$ac_ext <<_ACEOF
34117 /* confdefs.h. */
34118 _ACEOF
34119 cat confdefs.h >>conftest.$ac_ext
34120 cat >>conftest.$ac_ext <<_ACEOF
34121 /* end confdefs.h. */
34123 /* Override any GCC internal prototype to avoid an error.
34124 Use char because int might match the return type of a GCC
34125 builtin and then its argument prototype would still apply. */
34126 #ifdef __cplusplus
34127 extern "C"
34128 #endif
34129 char ${pbxfuncname} ();
34131 main ()
34133 return ${pbxfuncname} ();
34135 return 0;
34137 _ACEOF
34138 rm -f conftest.$ac_objext conftest$ac_exeext
34139 if { (ac_try="$ac_link"
34140 case "(($ac_try" in
34141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34142 *) ac_try_echo=$ac_try;;
34143 esac
34144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34145 (eval "$ac_link") 2>conftest.er1
34146 ac_status=$?
34147 grep -v '^ *+' conftest.er1 >conftest.err
34148 rm -f conftest.er1
34149 cat conftest.err >&5
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); } && {
34152 test -z "$ac_c_werror_flag" ||
34153 test ! -s conftest.err
34154 } && test -s conftest$ac_exeext &&
34155 $as_test_x conftest$ac_exeext; then
34156 eval "$as_ac_Lib=yes"
34157 else
34158 echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34161 eval "$as_ac_Lib=no"
34164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34165 conftest$ac_exeext conftest.$ac_ext
34166 LIBS=$ac_check_lib_save_LIBS
34168 ac_res=`eval echo '${'$as_ac_Lib'}'`
34169 { echo "$as_me:$LINENO: result: $ac_res" >&5
34170 echo "${ECHO_T}$ac_res" >&6; }
34171 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34172 AST_MISDN_FOUND=yes
34173 else
34174 AST_MISDN_FOUND=no
34179 # now check for the header.
34180 if test "${AST_MISDN_FOUND}" = "yes"; then
34181 MISDN_LIB="${pbxlibdir} -lmISDN "
34182 # if --with-MISDN=DIR has been specified, use it.
34183 if test "x${MISDN_DIR}" != "x"; then
34184 MISDN_INCLUDE="-I${MISDN_DIR}/include"
34186 MISDN_INCLUDE="${MISDN_INCLUDE} "
34187 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
34188 MISDN_HEADER_FOUND="1"
34189 else # check for the header
34190 saved_cppflags="${CPPFLAGS}"
34191 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
34192 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34193 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34194 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34195 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34196 echo $ECHO_N "(cached) $ECHO_C" >&6
34198 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34199 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34200 else
34201 # Is the header compilable?
34202 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
34203 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
34204 cat >conftest.$ac_ext <<_ACEOF
34205 /* confdefs.h. */
34206 _ACEOF
34207 cat confdefs.h >>conftest.$ac_ext
34208 cat >>conftest.$ac_ext <<_ACEOF
34209 /* end confdefs.h. */
34210 $ac_includes_default
34211 #include <mISDNuser/mISDNlib.h>
34212 _ACEOF
34213 rm -f conftest.$ac_objext
34214 if { (ac_try="$ac_compile"
34215 case "(($ac_try" in
34216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34217 *) ac_try_echo=$ac_try;;
34218 esac
34219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34220 (eval "$ac_compile") 2>conftest.er1
34221 ac_status=$?
34222 grep -v '^ *+' conftest.er1 >conftest.err
34223 rm -f conftest.er1
34224 cat conftest.err >&5
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); } && {
34227 test -z "$ac_c_werror_flag" ||
34228 test ! -s conftest.err
34229 } && test -s conftest.$ac_objext; then
34230 ac_header_compiler=yes
34231 else
34232 echo "$as_me: failed program was:" >&5
34233 sed 's/^/| /' conftest.$ac_ext >&5
34235 ac_header_compiler=no
34238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34240 echo "${ECHO_T}$ac_header_compiler" >&6; }
34242 # Is the header present?
34243 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
34244 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
34245 cat >conftest.$ac_ext <<_ACEOF
34246 /* confdefs.h. */
34247 _ACEOF
34248 cat confdefs.h >>conftest.$ac_ext
34249 cat >>conftest.$ac_ext <<_ACEOF
34250 /* end confdefs.h. */
34251 #include <mISDNuser/mISDNlib.h>
34252 _ACEOF
34253 if { (ac_try="$ac_cpp conftest.$ac_ext"
34254 case "(($ac_try" in
34255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34256 *) ac_try_echo=$ac_try;;
34257 esac
34258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34260 ac_status=$?
34261 grep -v '^ *+' conftest.er1 >conftest.err
34262 rm -f conftest.er1
34263 cat conftest.err >&5
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); } >/dev/null && {
34266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34267 test ! -s conftest.err
34268 }; then
34269 ac_header_preproc=yes
34270 else
34271 echo "$as_me: failed program was:" >&5
34272 sed 's/^/| /' conftest.$ac_ext >&5
34274 ac_header_preproc=no
34277 rm -f conftest.err conftest.$ac_ext
34278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34279 echo "${ECHO_T}$ac_header_preproc" >&6; }
34281 # So? What about this header?
34282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34283 yes:no: )
34284 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34285 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34286 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
34287 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
34288 ac_header_preproc=yes
34290 no:yes:* )
34291 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
34292 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
34293 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
34294 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
34295 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
34296 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
34297 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
34298 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34299 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
34300 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
34301 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
34302 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
34303 ( cat <<\_ASBOX
34304 ## ------------------------------- ##
34305 ## Report this to www.asterisk.org ##
34306 ## ------------------------------- ##
34307 _ASBOX
34308 ) | sed "s/^/$as_me: WARNING: /" >&2
34310 esac
34311 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34312 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34313 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34314 echo $ECHO_N "(cached) $ECHO_C" >&6
34315 else
34316 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
34318 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34319 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34322 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
34323 MISDN_HEADER_FOUND=1
34324 else
34325 MISDN_HEADER_FOUND=0
34329 CPPFLAGS="${saved_cppflags}"
34331 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
34332 MISDN_LIB=""
34333 MISDN_INCLUDE=""
34334 else
34335 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34336 MISDN_LIB=""
34338 PBX_MISDN=1
34339 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34341 cat >>confdefs.h <<_ACEOF
34342 #define HAVE_MISDN 1
34343 _ACEOF
34346 cat >>confdefs.h <<_ACEOF
34347 #define HAVE_MISDN_VERSION
34348 _ACEOF
34355 if test "${PBX_MISDN}" = 1; then
34357 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
34358 pbxlibdir=""
34359 # if --with-ISDNNET=DIR has been specified, use it.
34360 if test "x${ISDNNET_DIR}" != "x"; then
34361 if test -d ${ISDNNET_DIR}/lib; then
34362 pbxlibdir="-L${ISDNNET_DIR}/lib"
34363 else
34364 pbxlibdir="-L${ISDNNET_DIR}"
34367 pbxfuncname="init_manager"
34368 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34369 AST_ISDNNET_FOUND=yes
34370 else
34371 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
34372 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
34373 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
34374 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34375 echo $ECHO_N "(cached) $ECHO_C" >&6
34376 else
34377 ac_check_lib_save_LIBS=$LIBS
34378 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
34379 cat >conftest.$ac_ext <<_ACEOF
34380 /* confdefs.h. */
34381 _ACEOF
34382 cat confdefs.h >>conftest.$ac_ext
34383 cat >>conftest.$ac_ext <<_ACEOF
34384 /* end confdefs.h. */
34386 /* Override any GCC internal prototype to avoid an error.
34387 Use char because int might match the return type of a GCC
34388 builtin and then its argument prototype would still apply. */
34389 #ifdef __cplusplus
34390 extern "C"
34391 #endif
34392 char ${pbxfuncname} ();
34394 main ()
34396 return ${pbxfuncname} ();
34398 return 0;
34400 _ACEOF
34401 rm -f conftest.$ac_objext conftest$ac_exeext
34402 if { (ac_try="$ac_link"
34403 case "(($ac_try" in
34404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34405 *) ac_try_echo=$ac_try;;
34406 esac
34407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34408 (eval "$ac_link") 2>conftest.er1
34409 ac_status=$?
34410 grep -v '^ *+' conftest.er1 >conftest.err
34411 rm -f conftest.er1
34412 cat conftest.err >&5
34413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414 (exit $ac_status); } && {
34415 test -z "$ac_c_werror_flag" ||
34416 test ! -s conftest.err
34417 } && test -s conftest$ac_exeext &&
34418 $as_test_x conftest$ac_exeext; then
34419 eval "$as_ac_Lib=yes"
34420 else
34421 echo "$as_me: failed program was:" >&5
34422 sed 's/^/| /' conftest.$ac_ext >&5
34424 eval "$as_ac_Lib=no"
34427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34428 conftest$ac_exeext conftest.$ac_ext
34429 LIBS=$ac_check_lib_save_LIBS
34431 ac_res=`eval echo '${'$as_ac_Lib'}'`
34432 { echo "$as_me:$LINENO: result: $ac_res" >&5
34433 echo "${ECHO_T}$ac_res" >&6; }
34434 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34435 AST_ISDNNET_FOUND=yes
34436 else
34437 AST_ISDNNET_FOUND=no
34442 # now check for the header.
34443 if test "${AST_ISDNNET_FOUND}" = "yes"; then
34444 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
34445 # if --with-ISDNNET=DIR has been specified, use it.
34446 if test "x${ISDNNET_DIR}" != "x"; then
34447 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
34449 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
34450 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
34451 ISDNNET_HEADER_FOUND="1"
34452 else # check for the header
34453 saved_cppflags="${CPPFLAGS}"
34454 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
34455 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34456 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34457 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34458 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34459 echo $ECHO_N "(cached) $ECHO_C" >&6
34461 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34462 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34463 else
34464 # Is the header compilable?
34465 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
34466 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
34467 cat >conftest.$ac_ext <<_ACEOF
34468 /* confdefs.h. */
34469 _ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h. */
34473 $ac_includes_default
34474 #include <mISDNuser/isdn_net.h>
34475 _ACEOF
34476 rm -f conftest.$ac_objext
34477 if { (ac_try="$ac_compile"
34478 case "(($ac_try" in
34479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34480 *) ac_try_echo=$ac_try;;
34481 esac
34482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34483 (eval "$ac_compile") 2>conftest.er1
34484 ac_status=$?
34485 grep -v '^ *+' conftest.er1 >conftest.err
34486 rm -f conftest.er1
34487 cat conftest.err >&5
34488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489 (exit $ac_status); } && {
34490 test -z "$ac_c_werror_flag" ||
34491 test ! -s conftest.err
34492 } && test -s conftest.$ac_objext; then
34493 ac_header_compiler=yes
34494 else
34495 echo "$as_me: failed program was:" >&5
34496 sed 's/^/| /' conftest.$ac_ext >&5
34498 ac_header_compiler=no
34501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34503 echo "${ECHO_T}$ac_header_compiler" >&6; }
34505 # Is the header present?
34506 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
34507 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
34508 cat >conftest.$ac_ext <<_ACEOF
34509 /* confdefs.h. */
34510 _ACEOF
34511 cat confdefs.h >>conftest.$ac_ext
34512 cat >>conftest.$ac_ext <<_ACEOF
34513 /* end confdefs.h. */
34514 #include <mISDNuser/isdn_net.h>
34515 _ACEOF
34516 if { (ac_try="$ac_cpp conftest.$ac_ext"
34517 case "(($ac_try" in
34518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34519 *) ac_try_echo=$ac_try;;
34520 esac
34521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34523 ac_status=$?
34524 grep -v '^ *+' conftest.er1 >conftest.err
34525 rm -f conftest.er1
34526 cat conftest.err >&5
34527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528 (exit $ac_status); } >/dev/null && {
34529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34530 test ! -s conftest.err
34531 }; then
34532 ac_header_preproc=yes
34533 else
34534 echo "$as_me: failed program was:" >&5
34535 sed 's/^/| /' conftest.$ac_ext >&5
34537 ac_header_preproc=no
34540 rm -f conftest.err conftest.$ac_ext
34541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34542 echo "${ECHO_T}$ac_header_preproc" >&6; }
34544 # So? What about this header?
34545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34546 yes:no: )
34547 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34548 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34549 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34550 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34551 ac_header_preproc=yes
34553 no:yes:* )
34554 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34555 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34556 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34557 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34558 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34559 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34560 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34561 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34562 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34563 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34564 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34565 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34566 ( cat <<\_ASBOX
34567 ## ------------------------------- ##
34568 ## Report this to www.asterisk.org ##
34569 ## ------------------------------- ##
34570 _ASBOX
34571 ) | sed "s/^/$as_me: WARNING: /" >&2
34573 esac
34574 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34575 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34576 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34578 else
34579 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34581 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34582 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34585 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34586 ISDNNET_HEADER_FOUND=1
34587 else
34588 ISDNNET_HEADER_FOUND=0
34592 CPPFLAGS="${saved_cppflags}"
34594 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34595 ISDNNET_LIB=""
34596 ISDNNET_INCLUDE=""
34597 else
34598 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34599 ISDNNET_LIB=""
34601 PBX_ISDNNET=1
34602 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34604 cat >>confdefs.h <<_ACEOF
34605 #define HAVE_ISDNNET 1
34606 _ACEOF
34609 cat >>confdefs.h <<_ACEOF
34610 #define HAVE_ISDNNET_VERSION
34611 _ACEOF
34618 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34619 pbxlibdir=""
34620 # if --with-SUPPSERV=DIR has been specified, use it.
34621 if test "x${SUPPSERV_DIR}" != "x"; then
34622 if test -d ${SUPPSERV_DIR}/lib; then
34623 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34624 else
34625 pbxlibdir="-L${SUPPSERV_DIR}"
34628 pbxfuncname="encodeFac"
34629 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34630 AST_SUPPSERV_FOUND=yes
34631 else
34632 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34633 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34634 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34635 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34636 echo $ECHO_N "(cached) $ECHO_C" >&6
34637 else
34638 ac_check_lib_save_LIBS=$LIBS
34639 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34640 cat >conftest.$ac_ext <<_ACEOF
34641 /* confdefs.h. */
34642 _ACEOF
34643 cat confdefs.h >>conftest.$ac_ext
34644 cat >>conftest.$ac_ext <<_ACEOF
34645 /* end confdefs.h. */
34647 /* Override any GCC internal prototype to avoid an error.
34648 Use char because int might match the return type of a GCC
34649 builtin and then its argument prototype would still apply. */
34650 #ifdef __cplusplus
34651 extern "C"
34652 #endif
34653 char ${pbxfuncname} ();
34655 main ()
34657 return ${pbxfuncname} ();
34659 return 0;
34661 _ACEOF
34662 rm -f conftest.$ac_objext conftest$ac_exeext
34663 if { (ac_try="$ac_link"
34664 case "(($ac_try" in
34665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34666 *) ac_try_echo=$ac_try;;
34667 esac
34668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34669 (eval "$ac_link") 2>conftest.er1
34670 ac_status=$?
34671 grep -v '^ *+' conftest.er1 >conftest.err
34672 rm -f conftest.er1
34673 cat conftest.err >&5
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); } && {
34676 test -z "$ac_c_werror_flag" ||
34677 test ! -s conftest.err
34678 } && test -s conftest$ac_exeext &&
34679 $as_test_x conftest$ac_exeext; then
34680 eval "$as_ac_Lib=yes"
34681 else
34682 echo "$as_me: failed program was:" >&5
34683 sed 's/^/| /' conftest.$ac_ext >&5
34685 eval "$as_ac_Lib=no"
34688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34689 conftest$ac_exeext conftest.$ac_ext
34690 LIBS=$ac_check_lib_save_LIBS
34692 ac_res=`eval echo '${'$as_ac_Lib'}'`
34693 { echo "$as_me:$LINENO: result: $ac_res" >&5
34694 echo "${ECHO_T}$ac_res" >&6; }
34695 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34696 AST_SUPPSERV_FOUND=yes
34697 else
34698 AST_SUPPSERV_FOUND=no
34703 # now check for the header.
34704 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34705 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34706 # if --with-SUPPSERV=DIR has been specified, use it.
34707 if test "x${SUPPSERV_DIR}" != "x"; then
34708 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34710 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34711 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34712 SUPPSERV_HEADER_FOUND="1"
34713 else # check for the header
34714 saved_cppflags="${CPPFLAGS}"
34715 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
34716 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34717 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34718 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34719 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34720 echo $ECHO_N "(cached) $ECHO_C" >&6
34722 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34723 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34724 else
34725 # Is the header compilable?
34726 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34727 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34728 cat >conftest.$ac_ext <<_ACEOF
34729 /* confdefs.h. */
34730 _ACEOF
34731 cat confdefs.h >>conftest.$ac_ext
34732 cat >>conftest.$ac_ext <<_ACEOF
34733 /* end confdefs.h. */
34734 $ac_includes_default
34735 #include <mISDNuser/suppserv.h>
34736 _ACEOF
34737 rm -f conftest.$ac_objext
34738 if { (ac_try="$ac_compile"
34739 case "(($ac_try" in
34740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34741 *) ac_try_echo=$ac_try;;
34742 esac
34743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34744 (eval "$ac_compile") 2>conftest.er1
34745 ac_status=$?
34746 grep -v '^ *+' conftest.er1 >conftest.err
34747 rm -f conftest.er1
34748 cat conftest.err >&5
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); } && {
34751 test -z "$ac_c_werror_flag" ||
34752 test ! -s conftest.err
34753 } && test -s conftest.$ac_objext; then
34754 ac_header_compiler=yes
34755 else
34756 echo "$as_me: failed program was:" >&5
34757 sed 's/^/| /' conftest.$ac_ext >&5
34759 ac_header_compiler=no
34762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34764 echo "${ECHO_T}$ac_header_compiler" >&6; }
34766 # Is the header present?
34767 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34768 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34769 cat >conftest.$ac_ext <<_ACEOF
34770 /* confdefs.h. */
34771 _ACEOF
34772 cat confdefs.h >>conftest.$ac_ext
34773 cat >>conftest.$ac_ext <<_ACEOF
34774 /* end confdefs.h. */
34775 #include <mISDNuser/suppserv.h>
34776 _ACEOF
34777 if { (ac_try="$ac_cpp conftest.$ac_ext"
34778 case "(($ac_try" in
34779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34780 *) ac_try_echo=$ac_try;;
34781 esac
34782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34784 ac_status=$?
34785 grep -v '^ *+' conftest.er1 >conftest.err
34786 rm -f conftest.er1
34787 cat conftest.err >&5
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); } >/dev/null && {
34790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34791 test ! -s conftest.err
34792 }; then
34793 ac_header_preproc=yes
34794 else
34795 echo "$as_me: failed program was:" >&5
34796 sed 's/^/| /' conftest.$ac_ext >&5
34798 ac_header_preproc=no
34801 rm -f conftest.err conftest.$ac_ext
34802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34803 echo "${ECHO_T}$ac_header_preproc" >&6; }
34805 # So? What about this header?
34806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34807 yes:no: )
34808 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34809 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34810 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34811 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34812 ac_header_preproc=yes
34814 no:yes:* )
34815 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34816 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34817 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34818 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34819 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34820 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34821 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34822 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34823 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34824 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34825 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34826 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34827 ( cat <<\_ASBOX
34828 ## ------------------------------- ##
34829 ## Report this to www.asterisk.org ##
34830 ## ------------------------------- ##
34831 _ASBOX
34832 ) | sed "s/^/$as_me: WARNING: /" >&2
34834 esac
34835 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34836 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34837 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34838 echo $ECHO_N "(cached) $ECHO_C" >&6
34839 else
34840 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34842 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34843 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34846 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34847 SUPPSERV_HEADER_FOUND=1
34848 else
34849 SUPPSERV_HEADER_FOUND=0
34853 CPPFLAGS="${saved_cppflags}"
34855 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34856 SUPPSERV_LIB=""
34857 SUPPSERV_INCLUDE=""
34858 else
34859 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34860 SUPPSERV_LIB=""
34862 PBX_SUPPSERV=1
34863 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34865 cat >>confdefs.h <<_ACEOF
34866 #define HAVE_SUPPSERV 1
34867 _ACEOF
34870 cat >>confdefs.h <<_ACEOF
34871 #define HAVE_SUPPSERV_VERSION
34872 _ACEOF
34879 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34880 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34881 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34882 saved_cppflags="${CPPFLAGS}"
34883 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34884 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34886 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34888 cat >conftest.$ac_ext <<_ACEOF
34889 /* confdefs.h. */
34890 _ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h. */
34894 #include <mISDNuser/suppserv.h>
34896 main ()
34898 #if defined(Fac_RESULT)
34899 int foo = 0;
34900 #else
34901 int foo = bar;
34902 #endif
34906 return 0;
34908 _ACEOF
34909 rm -f conftest.$ac_objext
34910 if { (ac_try="$ac_compile"
34911 case "(($ac_try" in
34912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34913 *) ac_try_echo=$ac_try;;
34914 esac
34915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34916 (eval "$ac_compile") 2>conftest.er1
34917 ac_status=$?
34918 grep -v '^ *+' conftest.er1 >conftest.err
34919 rm -f conftest.er1
34920 cat conftest.err >&5
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); } && {
34923 test -z "$ac_c_werror_flag" ||
34924 test ! -s conftest.err
34925 } && test -s conftest.$ac_objext; then
34926 { echo "$as_me:$LINENO: result: yes" >&5
34927 echo "${ECHO_T}yes" >&6; }
34928 PBX_MISDN_FAC_RESULT=1
34930 cat >>confdefs.h <<\_ACEOF
34931 #define HAVE_MISDN_FAC_RESULT 1
34932 _ACEOF
34935 cat >>confdefs.h <<\_ACEOF
34936 #define HAVE_MISDN_FAC_RESULT_VERSION
34937 _ACEOF
34940 else
34941 echo "$as_me: failed program was:" >&5
34942 sed 's/^/| /' conftest.$ac_ext >&5
34944 { echo "$as_me:$LINENO: result: no" >&5
34945 echo "${ECHO_T}no" >&6; }
34949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34950 CPPFLAGS="${saved_cppflags}"
34955 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34956 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
34957 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34958 saved_cppflags="${CPPFLAGS}"
34959 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
34960 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
34962 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
34964 cat >conftest.$ac_ext <<_ACEOF
34965 /* confdefs.h. */
34966 _ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h. */
34970 #include <mISDNuser/suppserv.h>
34972 main ()
34974 #if defined(Fac_ERROR)
34975 int foo = 0;
34976 #else
34977 int foo = bar;
34978 #endif
34982 return 0;
34984 _ACEOF
34985 rm -f conftest.$ac_objext
34986 if { (ac_try="$ac_compile"
34987 case "(($ac_try" in
34988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34989 *) ac_try_echo=$ac_try;;
34990 esac
34991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34992 (eval "$ac_compile") 2>conftest.er1
34993 ac_status=$?
34994 grep -v '^ *+' conftest.er1 >conftest.err
34995 rm -f conftest.er1
34996 cat conftest.err >&5
34997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34998 (exit $ac_status); } && {
34999 test -z "$ac_c_werror_flag" ||
35000 test ! -s conftest.err
35001 } && test -s conftest.$ac_objext; then
35002 { echo "$as_me:$LINENO: result: yes" >&5
35003 echo "${ECHO_T}yes" >&6; }
35004 PBX_MISDN_FAC_ERROR=1
35006 cat >>confdefs.h <<\_ACEOF
35007 #define HAVE_MISDN_FAC_ERROR 1
35008 _ACEOF
35011 cat >>confdefs.h <<\_ACEOF
35012 #define HAVE_MISDN_FAC_ERROR_VERSION
35013 _ACEOF
35016 else
35017 echo "$as_me: failed program was:" >&5
35018 sed 's/^/| /' conftest.$ac_ext >&5
35020 { echo "$as_me:$LINENO: result: no" >&5
35021 echo "${ECHO_T}no" >&6; }
35025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35026 CPPFLAGS="${saved_cppflags}"
35030 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35031 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
35032 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
35033 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35034 echo $ECHO_N "(cached) $ECHO_C" >&6
35036 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
35037 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
35038 else
35039 # Is the header compilable?
35040 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
35041 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
35042 cat >conftest.$ac_ext <<_ACEOF
35043 /* confdefs.h. */
35044 _ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h. */
35048 $ac_includes_default
35049 #include <linux/mISDNdsp.h>
35050 _ACEOF
35051 rm -f conftest.$ac_objext
35052 if { (ac_try="$ac_compile"
35053 case "(($ac_try" in
35054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35055 *) ac_try_echo=$ac_try;;
35056 esac
35057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35058 (eval "$ac_compile") 2>conftest.er1
35059 ac_status=$?
35060 grep -v '^ *+' conftest.er1 >conftest.err
35061 rm -f conftest.er1
35062 cat conftest.err >&5
35063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064 (exit $ac_status); } && {
35065 test -z "$ac_c_werror_flag" ||
35066 test ! -s conftest.err
35067 } && test -s conftest.$ac_objext; then
35068 ac_header_compiler=yes
35069 else
35070 echo "$as_me: failed program was:" >&5
35071 sed 's/^/| /' conftest.$ac_ext >&5
35073 ac_header_compiler=no
35076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35078 echo "${ECHO_T}$ac_header_compiler" >&6; }
35080 # Is the header present?
35081 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
35082 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
35083 cat >conftest.$ac_ext <<_ACEOF
35084 /* confdefs.h. */
35085 _ACEOF
35086 cat confdefs.h >>conftest.$ac_ext
35087 cat >>conftest.$ac_ext <<_ACEOF
35088 /* end confdefs.h. */
35089 #include <linux/mISDNdsp.h>
35090 _ACEOF
35091 if { (ac_try="$ac_cpp conftest.$ac_ext"
35092 case "(($ac_try" in
35093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35094 *) ac_try_echo=$ac_try;;
35095 esac
35096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35098 ac_status=$?
35099 grep -v '^ *+' conftest.er1 >conftest.err
35100 rm -f conftest.er1
35101 cat conftest.err >&5
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); } >/dev/null && {
35104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35105 test ! -s conftest.err
35106 }; then
35107 ac_header_preproc=yes
35108 else
35109 echo "$as_me: failed program was:" >&5
35110 sed 's/^/| /' conftest.$ac_ext >&5
35112 ac_header_preproc=no
35115 rm -f conftest.err conftest.$ac_ext
35116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35117 echo "${ECHO_T}$ac_header_preproc" >&6; }
35119 # So? What about this header?
35120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35121 yes:no: )
35122 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
35123 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35124 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
35125 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
35126 ac_header_preproc=yes
35128 no:yes:* )
35129 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
35130 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
35131 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
35132 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
35133 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
35134 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
35135 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
35136 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
35137 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
35138 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
35139 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
35140 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
35141 ( cat <<\_ASBOX
35142 ## ------------------------------- ##
35143 ## Report this to www.asterisk.org ##
35144 ## ------------------------------- ##
35145 _ASBOX
35146 ) | sed "s/^/$as_me: WARNING: /" >&2
35148 esac
35149 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
35150 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
35151 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35152 echo $ECHO_N "(cached) $ECHO_C" >&6
35153 else
35154 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
35156 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
35157 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
35160 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
35162 cat >>confdefs.h <<_ACEOF
35163 #define MISDN_1_2 1
35164 _ACEOF
35172 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
35173 pbxlibdir=""
35174 # if --with-NBS=DIR has been specified, use it.
35175 if test "x${NBS_DIR}" != "x"; then
35176 if test -d ${NBS_DIR}/lib; then
35177 pbxlibdir="-L${NBS_DIR}/lib"
35178 else
35179 pbxlibdir="-L${NBS_DIR}"
35182 pbxfuncname="nbs_connect"
35183 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35184 AST_NBS_FOUND=yes
35185 else
35186 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
35187 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
35188 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
35189 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35190 echo $ECHO_N "(cached) $ECHO_C" >&6
35191 else
35192 ac_check_lib_save_LIBS=$LIBS
35193 LIBS="-lnbs ${pbxlibdir} $LIBS"
35194 cat >conftest.$ac_ext <<_ACEOF
35195 /* confdefs.h. */
35196 _ACEOF
35197 cat confdefs.h >>conftest.$ac_ext
35198 cat >>conftest.$ac_ext <<_ACEOF
35199 /* end confdefs.h. */
35201 /* Override any GCC internal prototype to avoid an error.
35202 Use char because int might match the return type of a GCC
35203 builtin and then its argument prototype would still apply. */
35204 #ifdef __cplusplus
35205 extern "C"
35206 #endif
35207 char ${pbxfuncname} ();
35209 main ()
35211 return ${pbxfuncname} ();
35213 return 0;
35215 _ACEOF
35216 rm -f conftest.$ac_objext conftest$ac_exeext
35217 if { (ac_try="$ac_link"
35218 case "(($ac_try" in
35219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35220 *) ac_try_echo=$ac_try;;
35221 esac
35222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35223 (eval "$ac_link") 2>conftest.er1
35224 ac_status=$?
35225 grep -v '^ *+' conftest.er1 >conftest.err
35226 rm -f conftest.er1
35227 cat conftest.err >&5
35228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229 (exit $ac_status); } && {
35230 test -z "$ac_c_werror_flag" ||
35231 test ! -s conftest.err
35232 } && test -s conftest$ac_exeext &&
35233 $as_test_x conftest$ac_exeext; then
35234 eval "$as_ac_Lib=yes"
35235 else
35236 echo "$as_me: failed program was:" >&5
35237 sed 's/^/| /' conftest.$ac_ext >&5
35239 eval "$as_ac_Lib=no"
35242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35243 conftest$ac_exeext conftest.$ac_ext
35244 LIBS=$ac_check_lib_save_LIBS
35246 ac_res=`eval echo '${'$as_ac_Lib'}'`
35247 { echo "$as_me:$LINENO: result: $ac_res" >&5
35248 echo "${ECHO_T}$ac_res" >&6; }
35249 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35250 AST_NBS_FOUND=yes
35251 else
35252 AST_NBS_FOUND=no
35257 # now check for the header.
35258 if test "${AST_NBS_FOUND}" = "yes"; then
35259 NBS_LIB="${pbxlibdir} -lnbs "
35260 # if --with-NBS=DIR has been specified, use it.
35261 if test "x${NBS_DIR}" != "x"; then
35262 NBS_INCLUDE="-I${NBS_DIR}/include"
35264 NBS_INCLUDE="${NBS_INCLUDE} "
35265 if test "xnbs.h" = "x" ; then # no header, assume found
35266 NBS_HEADER_FOUND="1"
35267 else # check for the header
35268 saved_cppflags="${CPPFLAGS}"
35269 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
35270 if test "${ac_cv_header_nbs_h+set}" = set; then
35271 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35272 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35273 if test "${ac_cv_header_nbs_h+set}" = set; then
35274 echo $ECHO_N "(cached) $ECHO_C" >&6
35276 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35277 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35278 else
35279 # Is the header compilable?
35280 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
35281 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
35282 cat >conftest.$ac_ext <<_ACEOF
35283 /* confdefs.h. */
35284 _ACEOF
35285 cat confdefs.h >>conftest.$ac_ext
35286 cat >>conftest.$ac_ext <<_ACEOF
35287 /* end confdefs.h. */
35288 $ac_includes_default
35289 #include <nbs.h>
35290 _ACEOF
35291 rm -f conftest.$ac_objext
35292 if { (ac_try="$ac_compile"
35293 case "(($ac_try" in
35294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35295 *) ac_try_echo=$ac_try;;
35296 esac
35297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35298 (eval "$ac_compile") 2>conftest.er1
35299 ac_status=$?
35300 grep -v '^ *+' conftest.er1 >conftest.err
35301 rm -f conftest.er1
35302 cat conftest.err >&5
35303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304 (exit $ac_status); } && {
35305 test -z "$ac_c_werror_flag" ||
35306 test ! -s conftest.err
35307 } && test -s conftest.$ac_objext; then
35308 ac_header_compiler=yes
35309 else
35310 echo "$as_me: failed program was:" >&5
35311 sed 's/^/| /' conftest.$ac_ext >&5
35313 ac_header_compiler=no
35316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35318 echo "${ECHO_T}$ac_header_compiler" >&6; }
35320 # Is the header present?
35321 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
35322 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
35323 cat >conftest.$ac_ext <<_ACEOF
35324 /* confdefs.h. */
35325 _ACEOF
35326 cat confdefs.h >>conftest.$ac_ext
35327 cat >>conftest.$ac_ext <<_ACEOF
35328 /* end confdefs.h. */
35329 #include <nbs.h>
35330 _ACEOF
35331 if { (ac_try="$ac_cpp conftest.$ac_ext"
35332 case "(($ac_try" in
35333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35334 *) ac_try_echo=$ac_try;;
35335 esac
35336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35338 ac_status=$?
35339 grep -v '^ *+' conftest.er1 >conftest.err
35340 rm -f conftest.er1
35341 cat conftest.err >&5
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); } >/dev/null && {
35344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35345 test ! -s conftest.err
35346 }; then
35347 ac_header_preproc=yes
35348 else
35349 echo "$as_me: failed program was:" >&5
35350 sed 's/^/| /' conftest.$ac_ext >&5
35352 ac_header_preproc=no
35355 rm -f conftest.err conftest.$ac_ext
35356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35357 echo "${ECHO_T}$ac_header_preproc" >&6; }
35359 # So? What about this header?
35360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35361 yes:no: )
35362 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
35363 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35364 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
35365 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
35366 ac_header_preproc=yes
35368 no:yes:* )
35369 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
35370 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
35371 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
35372 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
35373 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
35374 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
35375 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
35376 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
35377 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
35378 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
35379 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
35380 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
35381 ( cat <<\_ASBOX
35382 ## ------------------------------- ##
35383 ## Report this to www.asterisk.org ##
35384 ## ------------------------------- ##
35385 _ASBOX
35386 ) | sed "s/^/$as_me: WARNING: /" >&2
35388 esac
35389 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35390 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35391 if test "${ac_cv_header_nbs_h+set}" = set; then
35392 echo $ECHO_N "(cached) $ECHO_C" >&6
35393 else
35394 ac_cv_header_nbs_h=$ac_header_preproc
35396 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35397 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35400 if test $ac_cv_header_nbs_h = yes; then
35401 NBS_HEADER_FOUND=1
35402 else
35403 NBS_HEADER_FOUND=0
35407 CPPFLAGS="${saved_cppflags}"
35409 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
35410 NBS_LIB=""
35411 NBS_INCLUDE=""
35412 else
35413 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35414 NBS_LIB=""
35416 PBX_NBS=1
35417 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35419 cat >>confdefs.h <<_ACEOF
35420 #define HAVE_NBS 1
35421 _ACEOF
35424 cat >>confdefs.h <<_ACEOF
35425 #define HAVE_NBS_VERSION
35426 _ACEOF
35434 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
35435 pbxlibdir=""
35436 # if --with-NCURSES=DIR has been specified, use it.
35437 if test "x${NCURSES_DIR}" != "x"; then
35438 if test -d ${NCURSES_DIR}/lib; then
35439 pbxlibdir="-L${NCURSES_DIR}/lib"
35440 else
35441 pbxlibdir="-L${NCURSES_DIR}"
35444 pbxfuncname="initscr"
35445 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35446 AST_NCURSES_FOUND=yes
35447 else
35448 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
35449 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
35450 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
35451 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35452 echo $ECHO_N "(cached) $ECHO_C" >&6
35453 else
35454 ac_check_lib_save_LIBS=$LIBS
35455 LIBS="-lncurses ${pbxlibdir} $LIBS"
35456 cat >conftest.$ac_ext <<_ACEOF
35457 /* confdefs.h. */
35458 _ACEOF
35459 cat confdefs.h >>conftest.$ac_ext
35460 cat >>conftest.$ac_ext <<_ACEOF
35461 /* end confdefs.h. */
35463 /* Override any GCC internal prototype to avoid an error.
35464 Use char because int might match the return type of a GCC
35465 builtin and then its argument prototype would still apply. */
35466 #ifdef __cplusplus
35467 extern "C"
35468 #endif
35469 char ${pbxfuncname} ();
35471 main ()
35473 return ${pbxfuncname} ();
35475 return 0;
35477 _ACEOF
35478 rm -f conftest.$ac_objext conftest$ac_exeext
35479 if { (ac_try="$ac_link"
35480 case "(($ac_try" in
35481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35482 *) ac_try_echo=$ac_try;;
35483 esac
35484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35485 (eval "$ac_link") 2>conftest.er1
35486 ac_status=$?
35487 grep -v '^ *+' conftest.er1 >conftest.err
35488 rm -f conftest.er1
35489 cat conftest.err >&5
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); } && {
35492 test -z "$ac_c_werror_flag" ||
35493 test ! -s conftest.err
35494 } && test -s conftest$ac_exeext &&
35495 $as_test_x conftest$ac_exeext; then
35496 eval "$as_ac_Lib=yes"
35497 else
35498 echo "$as_me: failed program was:" >&5
35499 sed 's/^/| /' conftest.$ac_ext >&5
35501 eval "$as_ac_Lib=no"
35504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35505 conftest$ac_exeext conftest.$ac_ext
35506 LIBS=$ac_check_lib_save_LIBS
35508 ac_res=`eval echo '${'$as_ac_Lib'}'`
35509 { echo "$as_me:$LINENO: result: $ac_res" >&5
35510 echo "${ECHO_T}$ac_res" >&6; }
35511 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35512 AST_NCURSES_FOUND=yes
35513 else
35514 AST_NCURSES_FOUND=no
35519 # now check for the header.
35520 if test "${AST_NCURSES_FOUND}" = "yes"; then
35521 NCURSES_LIB="${pbxlibdir} -lncurses "
35522 # if --with-NCURSES=DIR has been specified, use it.
35523 if test "x${NCURSES_DIR}" != "x"; then
35524 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35526 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35527 if test "xcurses.h" = "x" ; then # no header, assume found
35528 NCURSES_HEADER_FOUND="1"
35529 else # check for the header
35530 saved_cppflags="${CPPFLAGS}"
35531 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
35532 if test "${ac_cv_header_curses_h+set}" = set; then
35533 { echo "$as_me:$LINENO: checking for curses.h" >&5
35534 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35535 if test "${ac_cv_header_curses_h+set}" = set; then
35536 echo $ECHO_N "(cached) $ECHO_C" >&6
35538 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35539 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35540 else
35541 # Is the header compilable?
35542 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35543 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35544 cat >conftest.$ac_ext <<_ACEOF
35545 /* confdefs.h. */
35546 _ACEOF
35547 cat confdefs.h >>conftest.$ac_ext
35548 cat >>conftest.$ac_ext <<_ACEOF
35549 /* end confdefs.h. */
35550 $ac_includes_default
35551 #include <curses.h>
35552 _ACEOF
35553 rm -f conftest.$ac_objext
35554 if { (ac_try="$ac_compile"
35555 case "(($ac_try" in
35556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35557 *) ac_try_echo=$ac_try;;
35558 esac
35559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35560 (eval "$ac_compile") 2>conftest.er1
35561 ac_status=$?
35562 grep -v '^ *+' conftest.er1 >conftest.err
35563 rm -f conftest.er1
35564 cat conftest.err >&5
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); } && {
35567 test -z "$ac_c_werror_flag" ||
35568 test ! -s conftest.err
35569 } && test -s conftest.$ac_objext; then
35570 ac_header_compiler=yes
35571 else
35572 echo "$as_me: failed program was:" >&5
35573 sed 's/^/| /' conftest.$ac_ext >&5
35575 ac_header_compiler=no
35578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35580 echo "${ECHO_T}$ac_header_compiler" >&6; }
35582 # Is the header present?
35583 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35584 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35585 cat >conftest.$ac_ext <<_ACEOF
35586 /* confdefs.h. */
35587 _ACEOF
35588 cat confdefs.h >>conftest.$ac_ext
35589 cat >>conftest.$ac_ext <<_ACEOF
35590 /* end confdefs.h. */
35591 #include <curses.h>
35592 _ACEOF
35593 if { (ac_try="$ac_cpp conftest.$ac_ext"
35594 case "(($ac_try" in
35595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35596 *) ac_try_echo=$ac_try;;
35597 esac
35598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35600 ac_status=$?
35601 grep -v '^ *+' conftest.er1 >conftest.err
35602 rm -f conftest.er1
35603 cat conftest.err >&5
35604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35605 (exit $ac_status); } >/dev/null && {
35606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35607 test ! -s conftest.err
35608 }; then
35609 ac_header_preproc=yes
35610 else
35611 echo "$as_me: failed program was:" >&5
35612 sed 's/^/| /' conftest.$ac_ext >&5
35614 ac_header_preproc=no
35617 rm -f conftest.err conftest.$ac_ext
35618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35619 echo "${ECHO_T}$ac_header_preproc" >&6; }
35621 # So? What about this header?
35622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35623 yes:no: )
35624 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35625 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35626 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35627 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35628 ac_header_preproc=yes
35630 no:yes:* )
35631 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35632 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35633 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35634 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35635 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35636 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35637 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35638 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35639 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35640 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35641 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35642 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35643 ( cat <<\_ASBOX
35644 ## ------------------------------- ##
35645 ## Report this to www.asterisk.org ##
35646 ## ------------------------------- ##
35647 _ASBOX
35648 ) | sed "s/^/$as_me: WARNING: /" >&2
35650 esac
35651 { echo "$as_me:$LINENO: checking for curses.h" >&5
35652 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35653 if test "${ac_cv_header_curses_h+set}" = set; then
35654 echo $ECHO_N "(cached) $ECHO_C" >&6
35655 else
35656 ac_cv_header_curses_h=$ac_header_preproc
35658 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35659 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35662 if test $ac_cv_header_curses_h = yes; then
35663 NCURSES_HEADER_FOUND=1
35664 else
35665 NCURSES_HEADER_FOUND=0
35669 CPPFLAGS="${saved_cppflags}"
35671 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35672 NCURSES_LIB=""
35673 NCURSES_INCLUDE=""
35674 else
35675 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35676 NCURSES_LIB=""
35678 PBX_NCURSES=1
35679 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35681 cat >>confdefs.h <<_ACEOF
35682 #define HAVE_NCURSES 1
35683 _ACEOF
35686 cat >>confdefs.h <<_ACEOF
35687 #define HAVE_NCURSES_VERSION
35688 _ACEOF
35696 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35697 PBX_NETSNMP=0
35698 if test -n "$ac_tool_prefix"; then
35699 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35700 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35703 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35704 echo $ECHO_N "(cached) $ECHO_C" >&6
35705 else
35706 if test -n "$CONFIG_NETSNMP"; then
35707 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35708 else
35709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35710 for as_dir in $PATH
35712 IFS=$as_save_IFS
35713 test -z "$as_dir" && as_dir=.
35714 for ac_exec_ext in '' $ac_executable_extensions; do
35715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35716 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35718 break 2
35720 done
35721 done
35722 IFS=$as_save_IFS
35726 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35727 if test -n "$CONFIG_NETSNMP"; then
35728 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35729 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35730 else
35731 { echo "$as_me:$LINENO: result: no" >&5
35732 echo "${ECHO_T}no" >&6; }
35737 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35738 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35739 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35740 set dummy net-snmp-config; ac_word=$2
35741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35743 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35744 echo $ECHO_N "(cached) $ECHO_C" >&6
35745 else
35746 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35747 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35748 else
35749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35750 for as_dir in $PATH
35752 IFS=$as_save_IFS
35753 test -z "$as_dir" && as_dir=.
35754 for ac_exec_ext in '' $ac_executable_extensions; do
35755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35756 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35758 break 2
35760 done
35761 done
35762 IFS=$as_save_IFS
35766 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35767 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35768 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35769 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35770 else
35771 { echo "$as_me:$LINENO: result: no" >&5
35772 echo "${ECHO_T}no" >&6; }
35775 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35776 CONFIG_NETSNMP="No"
35777 else
35778 case $cross_compiling:$ac_tool_warned in
35779 yes:)
35780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35781 whose name does not start with the host triplet. If you think this
35782 configuration is useful to you, please write to autoconf@gnu.org." >&5
35783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35784 whose name does not start with the host triplet. If you think this
35785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35786 ac_tool_warned=yes ;;
35787 esac
35788 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35790 else
35791 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35794 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35795 if test x"" = x ; then A=--cflags ; else A="" ; fi
35796 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35797 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35798 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35799 if test x"#include <net-snmp/net-snmp-config.h>
35800 #include <net-snmp/net-snmp-includes.h>
35801 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35802 saved_cppflags="${CPPFLAGS}"
35803 if test "x${NETSNMP_DIR}" != "x"; then
35804 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35806 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35808 saved_ldflags="${LDFLAGS}"
35809 LDFLAGS="${NETSNMP_LIB}"
35811 cat >conftest.$ac_ext <<_ACEOF
35812 /* confdefs.h. */
35813 _ACEOF
35814 cat confdefs.h >>conftest.$ac_ext
35815 cat >>conftest.$ac_ext <<_ACEOF
35816 /* end confdefs.h. */
35817 #include <net-snmp/net-snmp-config.h>
35818 #include <net-snmp/net-snmp-includes.h>
35819 #include <net-snmp/agent/net-snmp-agent-includes.h>
35821 main ()
35823 int callback = snmp_register_callback(0, 0, NULL, NULL);
35826 return 0;
35828 _ACEOF
35829 rm -f conftest.$ac_objext conftest$ac_exeext
35830 if { (ac_try="$ac_link"
35831 case "(($ac_try" in
35832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35833 *) ac_try_echo=$ac_try;;
35834 esac
35835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35836 (eval "$ac_link") 2>conftest.er1
35837 ac_status=$?
35838 grep -v '^ *+' conftest.er1 >conftest.err
35839 rm -f conftest.er1
35840 cat conftest.err >&5
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); } && {
35843 test -z "$ac_c_werror_flag" ||
35844 test ! -s conftest.err
35845 } && test -s conftest$ac_exeext &&
35846 $as_test_x conftest$ac_exeext; then
35847 PBX_NETSNMP=1
35849 cat >>confdefs.h <<\_ACEOF
35850 #define HAVE_NETSNMP 1
35851 _ACEOF
35854 else
35855 echo "$as_me: failed program was:" >&5
35856 sed 's/^/| /' conftest.$ac_ext >&5
35862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35863 conftest$ac_exeext conftest.$ac_ext
35864 CPPFLAGS="${saved_cppflags}"
35865 LDFLAGS="${saved_ldflags}"
35866 else
35867 PBX_NETSNMP=1
35869 cat >>confdefs.h <<\_ACEOF
35870 #define HAVE_NETSNMP 1
35871 _ACEOF
35879 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35880 pbxlibdir=""
35881 # if --with-NEWT=DIR has been specified, use it.
35882 if test "x${NEWT_DIR}" != "x"; then
35883 if test -d ${NEWT_DIR}/lib; then
35884 pbxlibdir="-L${NEWT_DIR}/lib"
35885 else
35886 pbxlibdir="-L${NEWT_DIR}"
35889 pbxfuncname="newtBell"
35890 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35891 AST_NEWT_FOUND=yes
35892 else
35893 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35894 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35895 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35896 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35897 echo $ECHO_N "(cached) $ECHO_C" >&6
35898 else
35899 ac_check_lib_save_LIBS=$LIBS
35900 LIBS="-lnewt ${pbxlibdir} $LIBS"
35901 cat >conftest.$ac_ext <<_ACEOF
35902 /* confdefs.h. */
35903 _ACEOF
35904 cat confdefs.h >>conftest.$ac_ext
35905 cat >>conftest.$ac_ext <<_ACEOF
35906 /* end confdefs.h. */
35908 /* Override any GCC internal prototype to avoid an error.
35909 Use char because int might match the return type of a GCC
35910 builtin and then its argument prototype would still apply. */
35911 #ifdef __cplusplus
35912 extern "C"
35913 #endif
35914 char ${pbxfuncname} ();
35916 main ()
35918 return ${pbxfuncname} ();
35920 return 0;
35922 _ACEOF
35923 rm -f conftest.$ac_objext conftest$ac_exeext
35924 if { (ac_try="$ac_link"
35925 case "(($ac_try" in
35926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35927 *) ac_try_echo=$ac_try;;
35928 esac
35929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35930 (eval "$ac_link") 2>conftest.er1
35931 ac_status=$?
35932 grep -v '^ *+' conftest.er1 >conftest.err
35933 rm -f conftest.er1
35934 cat conftest.err >&5
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); } && {
35937 test -z "$ac_c_werror_flag" ||
35938 test ! -s conftest.err
35939 } && test -s conftest$ac_exeext &&
35940 $as_test_x conftest$ac_exeext; then
35941 eval "$as_ac_Lib=yes"
35942 else
35943 echo "$as_me: failed program was:" >&5
35944 sed 's/^/| /' conftest.$ac_ext >&5
35946 eval "$as_ac_Lib=no"
35949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35950 conftest$ac_exeext conftest.$ac_ext
35951 LIBS=$ac_check_lib_save_LIBS
35953 ac_res=`eval echo '${'$as_ac_Lib'}'`
35954 { echo "$as_me:$LINENO: result: $ac_res" >&5
35955 echo "${ECHO_T}$ac_res" >&6; }
35956 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35957 AST_NEWT_FOUND=yes
35958 else
35959 AST_NEWT_FOUND=no
35964 # now check for the header.
35965 if test "${AST_NEWT_FOUND}" = "yes"; then
35966 NEWT_LIB="${pbxlibdir} -lnewt "
35967 # if --with-NEWT=DIR has been specified, use it.
35968 if test "x${NEWT_DIR}" != "x"; then
35969 NEWT_INCLUDE="-I${NEWT_DIR}/include"
35971 NEWT_INCLUDE="${NEWT_INCLUDE} "
35972 if test "xnewt.h" = "x" ; then # no header, assume found
35973 NEWT_HEADER_FOUND="1"
35974 else # check for the header
35975 saved_cppflags="${CPPFLAGS}"
35976 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
35977 if test "${ac_cv_header_newt_h+set}" = set; then
35978 { echo "$as_me:$LINENO: checking for newt.h" >&5
35979 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35980 if test "${ac_cv_header_newt_h+set}" = set; then
35981 echo $ECHO_N "(cached) $ECHO_C" >&6
35983 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35984 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35985 else
35986 # Is the header compilable?
35987 { echo "$as_me:$LINENO: checking newt.h usability" >&5
35988 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
35989 cat >conftest.$ac_ext <<_ACEOF
35990 /* confdefs.h. */
35991 _ACEOF
35992 cat confdefs.h >>conftest.$ac_ext
35993 cat >>conftest.$ac_ext <<_ACEOF
35994 /* end confdefs.h. */
35995 $ac_includes_default
35996 #include <newt.h>
35997 _ACEOF
35998 rm -f conftest.$ac_objext
35999 if { (ac_try="$ac_compile"
36000 case "(($ac_try" in
36001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36002 *) ac_try_echo=$ac_try;;
36003 esac
36004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36005 (eval "$ac_compile") 2>conftest.er1
36006 ac_status=$?
36007 grep -v '^ *+' conftest.er1 >conftest.err
36008 rm -f conftest.er1
36009 cat conftest.err >&5
36010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011 (exit $ac_status); } && {
36012 test -z "$ac_c_werror_flag" ||
36013 test ! -s conftest.err
36014 } && test -s conftest.$ac_objext; then
36015 ac_header_compiler=yes
36016 else
36017 echo "$as_me: failed program was:" >&5
36018 sed 's/^/| /' conftest.$ac_ext >&5
36020 ac_header_compiler=no
36023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36025 echo "${ECHO_T}$ac_header_compiler" >&6; }
36027 # Is the header present?
36028 { echo "$as_me:$LINENO: checking newt.h presence" >&5
36029 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
36030 cat >conftest.$ac_ext <<_ACEOF
36031 /* confdefs.h. */
36032 _ACEOF
36033 cat confdefs.h >>conftest.$ac_ext
36034 cat >>conftest.$ac_ext <<_ACEOF
36035 /* end confdefs.h. */
36036 #include <newt.h>
36037 _ACEOF
36038 if { (ac_try="$ac_cpp conftest.$ac_ext"
36039 case "(($ac_try" in
36040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36041 *) ac_try_echo=$ac_try;;
36042 esac
36043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36045 ac_status=$?
36046 grep -v '^ *+' conftest.er1 >conftest.err
36047 rm -f conftest.er1
36048 cat conftest.err >&5
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); } >/dev/null && {
36051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36052 test ! -s conftest.err
36053 }; then
36054 ac_header_preproc=yes
36055 else
36056 echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36059 ac_header_preproc=no
36062 rm -f conftest.err conftest.$ac_ext
36063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36064 echo "${ECHO_T}$ac_header_preproc" >&6; }
36066 # So? What about this header?
36067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36068 yes:no: )
36069 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
36070 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36071 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
36072 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
36073 ac_header_preproc=yes
36075 no:yes:* )
36076 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
36077 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
36078 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
36079 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
36080 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
36081 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
36082 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
36083 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
36084 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
36085 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
36086 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
36087 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
36088 ( cat <<\_ASBOX
36089 ## ------------------------------- ##
36090 ## Report this to www.asterisk.org ##
36091 ## ------------------------------- ##
36092 _ASBOX
36093 ) | sed "s/^/$as_me: WARNING: /" >&2
36095 esac
36096 { echo "$as_me:$LINENO: checking for newt.h" >&5
36097 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
36098 if test "${ac_cv_header_newt_h+set}" = set; then
36099 echo $ECHO_N "(cached) $ECHO_C" >&6
36100 else
36101 ac_cv_header_newt_h=$ac_header_preproc
36103 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
36104 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
36107 if test $ac_cv_header_newt_h = yes; then
36108 NEWT_HEADER_FOUND=1
36109 else
36110 NEWT_HEADER_FOUND=0
36114 CPPFLAGS="${saved_cppflags}"
36116 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
36117 NEWT_LIB=""
36118 NEWT_INCLUDE=""
36119 else
36120 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36121 NEWT_LIB=""
36123 PBX_NEWT=1
36124 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36126 cat >>confdefs.h <<_ACEOF
36127 #define HAVE_NEWT 1
36128 _ACEOF
36131 cat >>confdefs.h <<_ACEOF
36132 #define HAVE_NEWT_VERSION
36133 _ACEOF
36141 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
36142 pbxlibdir=""
36143 # if --with-UNIXODBC=DIR has been specified, use it.
36144 if test "x${UNIXODBC_DIR}" != "x"; then
36145 if test -d ${UNIXODBC_DIR}/lib; then
36146 pbxlibdir="-L${UNIXODBC_DIR}/lib"
36147 else
36148 pbxlibdir="-L${UNIXODBC_DIR}"
36151 pbxfuncname="SQLConnect"
36152 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36153 AST_UNIXODBC_FOUND=yes
36154 else
36155 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
36156 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
36157 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
36158 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36159 echo $ECHO_N "(cached) $ECHO_C" >&6
36160 else
36161 ac_check_lib_save_LIBS=$LIBS
36162 LIBS="-lodbc ${pbxlibdir} $LIBS"
36163 cat >conftest.$ac_ext <<_ACEOF
36164 /* confdefs.h. */
36165 _ACEOF
36166 cat confdefs.h >>conftest.$ac_ext
36167 cat >>conftest.$ac_ext <<_ACEOF
36168 /* end confdefs.h. */
36170 /* Override any GCC internal prototype to avoid an error.
36171 Use char because int might match the return type of a GCC
36172 builtin and then its argument prototype would still apply. */
36173 #ifdef __cplusplus
36174 extern "C"
36175 #endif
36176 char ${pbxfuncname} ();
36178 main ()
36180 return ${pbxfuncname} ();
36182 return 0;
36184 _ACEOF
36185 rm -f conftest.$ac_objext conftest$ac_exeext
36186 if { (ac_try="$ac_link"
36187 case "(($ac_try" in
36188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36189 *) ac_try_echo=$ac_try;;
36190 esac
36191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36192 (eval "$ac_link") 2>conftest.er1
36193 ac_status=$?
36194 grep -v '^ *+' conftest.er1 >conftest.err
36195 rm -f conftest.er1
36196 cat conftest.err >&5
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); } && {
36199 test -z "$ac_c_werror_flag" ||
36200 test ! -s conftest.err
36201 } && test -s conftest$ac_exeext &&
36202 $as_test_x conftest$ac_exeext; then
36203 eval "$as_ac_Lib=yes"
36204 else
36205 echo "$as_me: failed program was:" >&5
36206 sed 's/^/| /' conftest.$ac_ext >&5
36208 eval "$as_ac_Lib=no"
36211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36212 conftest$ac_exeext conftest.$ac_ext
36213 LIBS=$ac_check_lib_save_LIBS
36215 ac_res=`eval echo '${'$as_ac_Lib'}'`
36216 { echo "$as_me:$LINENO: result: $ac_res" >&5
36217 echo "${ECHO_T}$ac_res" >&6; }
36218 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36219 AST_UNIXODBC_FOUND=yes
36220 else
36221 AST_UNIXODBC_FOUND=no
36226 # now check for the header.
36227 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
36228 UNIXODBC_LIB="${pbxlibdir} -lodbc "
36229 # if --with-UNIXODBC=DIR has been specified, use it.
36230 if test "x${UNIXODBC_DIR}" != "x"; then
36231 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
36233 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
36234 if test "xsql.h" = "x" ; then # no header, assume found
36235 UNIXODBC_HEADER_FOUND="1"
36236 else # check for the header
36237 saved_cppflags="${CPPFLAGS}"
36238 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
36239 if test "${ac_cv_header_sql_h+set}" = set; then
36240 { echo "$as_me:$LINENO: checking for sql.h" >&5
36241 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36242 if test "${ac_cv_header_sql_h+set}" = set; then
36243 echo $ECHO_N "(cached) $ECHO_C" >&6
36245 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36246 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36247 else
36248 # Is the header compilable?
36249 { echo "$as_me:$LINENO: checking sql.h usability" >&5
36250 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
36251 cat >conftest.$ac_ext <<_ACEOF
36252 /* confdefs.h. */
36253 _ACEOF
36254 cat confdefs.h >>conftest.$ac_ext
36255 cat >>conftest.$ac_ext <<_ACEOF
36256 /* end confdefs.h. */
36257 $ac_includes_default
36258 #include <sql.h>
36259 _ACEOF
36260 rm -f conftest.$ac_objext
36261 if { (ac_try="$ac_compile"
36262 case "(($ac_try" in
36263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36264 *) ac_try_echo=$ac_try;;
36265 esac
36266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36267 (eval "$ac_compile") 2>conftest.er1
36268 ac_status=$?
36269 grep -v '^ *+' conftest.er1 >conftest.err
36270 rm -f conftest.er1
36271 cat conftest.err >&5
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); } && {
36274 test -z "$ac_c_werror_flag" ||
36275 test ! -s conftest.err
36276 } && test -s conftest.$ac_objext; then
36277 ac_header_compiler=yes
36278 else
36279 echo "$as_me: failed program was:" >&5
36280 sed 's/^/| /' conftest.$ac_ext >&5
36282 ac_header_compiler=no
36285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36287 echo "${ECHO_T}$ac_header_compiler" >&6; }
36289 # Is the header present?
36290 { echo "$as_me:$LINENO: checking sql.h presence" >&5
36291 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
36292 cat >conftest.$ac_ext <<_ACEOF
36293 /* confdefs.h. */
36294 _ACEOF
36295 cat confdefs.h >>conftest.$ac_ext
36296 cat >>conftest.$ac_ext <<_ACEOF
36297 /* end confdefs.h. */
36298 #include <sql.h>
36299 _ACEOF
36300 if { (ac_try="$ac_cpp conftest.$ac_ext"
36301 case "(($ac_try" in
36302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36303 *) ac_try_echo=$ac_try;;
36304 esac
36305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36307 ac_status=$?
36308 grep -v '^ *+' conftest.er1 >conftest.err
36309 rm -f conftest.er1
36310 cat conftest.err >&5
36311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312 (exit $ac_status); } >/dev/null && {
36313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36314 test ! -s conftest.err
36315 }; then
36316 ac_header_preproc=yes
36317 else
36318 echo "$as_me: failed program was:" >&5
36319 sed 's/^/| /' conftest.$ac_ext >&5
36321 ac_header_preproc=no
36324 rm -f conftest.err conftest.$ac_ext
36325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36326 echo "${ECHO_T}$ac_header_preproc" >&6; }
36328 # So? What about this header?
36329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36330 yes:no: )
36331 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
36332 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36333 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
36334 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
36335 ac_header_preproc=yes
36337 no:yes:* )
36338 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
36339 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
36340 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
36341 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
36342 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
36343 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
36344 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
36345 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
36346 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
36347 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
36348 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
36349 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
36350 ( cat <<\_ASBOX
36351 ## ------------------------------- ##
36352 ## Report this to www.asterisk.org ##
36353 ## ------------------------------- ##
36354 _ASBOX
36355 ) | sed "s/^/$as_me: WARNING: /" >&2
36357 esac
36358 { echo "$as_me:$LINENO: checking for sql.h" >&5
36359 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36360 if test "${ac_cv_header_sql_h+set}" = set; then
36361 echo $ECHO_N "(cached) $ECHO_C" >&6
36362 else
36363 ac_cv_header_sql_h=$ac_header_preproc
36365 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36366 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36369 if test $ac_cv_header_sql_h = yes; then
36370 UNIXODBC_HEADER_FOUND=1
36371 else
36372 UNIXODBC_HEADER_FOUND=0
36376 CPPFLAGS="${saved_cppflags}"
36378 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
36379 UNIXODBC_LIB=""
36380 UNIXODBC_INCLUDE=""
36381 else
36382 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36383 UNIXODBC_LIB=""
36385 PBX_UNIXODBC=1
36386 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36388 cat >>confdefs.h <<_ACEOF
36389 #define HAVE_UNIXODBC 1
36390 _ACEOF
36393 cat >>confdefs.h <<_ACEOF
36394 #define HAVE_UNIXODBC_VERSION
36395 _ACEOF
36403 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
36404 pbxlibdir=""
36405 # if --with-OGG=DIR has been specified, use it.
36406 if test "x${OGG_DIR}" != "x"; then
36407 if test -d ${OGG_DIR}/lib; then
36408 pbxlibdir="-L${OGG_DIR}/lib"
36409 else
36410 pbxlibdir="-L${OGG_DIR}"
36413 pbxfuncname="ogg_sync_init"
36414 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36415 AST_OGG_FOUND=yes
36416 else
36417 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
36418 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
36419 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
36420 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36421 echo $ECHO_N "(cached) $ECHO_C" >&6
36422 else
36423 ac_check_lib_save_LIBS=$LIBS
36424 LIBS="-logg ${pbxlibdir} $LIBS"
36425 cat >conftest.$ac_ext <<_ACEOF
36426 /* confdefs.h. */
36427 _ACEOF
36428 cat confdefs.h >>conftest.$ac_ext
36429 cat >>conftest.$ac_ext <<_ACEOF
36430 /* end confdefs.h. */
36432 /* Override any GCC internal prototype to avoid an error.
36433 Use char because int might match the return type of a GCC
36434 builtin and then its argument prototype would still apply. */
36435 #ifdef __cplusplus
36436 extern "C"
36437 #endif
36438 char ${pbxfuncname} ();
36440 main ()
36442 return ${pbxfuncname} ();
36444 return 0;
36446 _ACEOF
36447 rm -f conftest.$ac_objext conftest$ac_exeext
36448 if { (ac_try="$ac_link"
36449 case "(($ac_try" in
36450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36451 *) ac_try_echo=$ac_try;;
36452 esac
36453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36454 (eval "$ac_link") 2>conftest.er1
36455 ac_status=$?
36456 grep -v '^ *+' conftest.er1 >conftest.err
36457 rm -f conftest.er1
36458 cat conftest.err >&5
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); } && {
36461 test -z "$ac_c_werror_flag" ||
36462 test ! -s conftest.err
36463 } && test -s conftest$ac_exeext &&
36464 $as_test_x conftest$ac_exeext; then
36465 eval "$as_ac_Lib=yes"
36466 else
36467 echo "$as_me: failed program was:" >&5
36468 sed 's/^/| /' conftest.$ac_ext >&5
36470 eval "$as_ac_Lib=no"
36473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36474 conftest$ac_exeext conftest.$ac_ext
36475 LIBS=$ac_check_lib_save_LIBS
36477 ac_res=`eval echo '${'$as_ac_Lib'}'`
36478 { echo "$as_me:$LINENO: result: $ac_res" >&5
36479 echo "${ECHO_T}$ac_res" >&6; }
36480 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36481 AST_OGG_FOUND=yes
36482 else
36483 AST_OGG_FOUND=no
36488 # now check for the header.
36489 if test "${AST_OGG_FOUND}" = "yes"; then
36490 OGG_LIB="${pbxlibdir} -logg "
36491 # if --with-OGG=DIR has been specified, use it.
36492 if test "x${OGG_DIR}" != "x"; then
36493 OGG_INCLUDE="-I${OGG_DIR}/include"
36495 OGG_INCLUDE="${OGG_INCLUDE} "
36496 if test "x" = "x" ; then # no header, assume found
36497 OGG_HEADER_FOUND="1"
36498 else # check for the header
36499 saved_cppflags="${CPPFLAGS}"
36500 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
36501 if test "${ac_cv_header_+set}" = set; then
36502 { echo "$as_me:$LINENO: checking for " >&5
36503 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36504 if test "${ac_cv_header_+set}" = set; then
36505 echo $ECHO_N "(cached) $ECHO_C" >&6
36507 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36508 echo "${ECHO_T}$ac_cv_header_" >&6; }
36509 else
36510 # Is the header compilable?
36511 { echo "$as_me:$LINENO: checking usability" >&5
36512 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
36513 cat >conftest.$ac_ext <<_ACEOF
36514 /* confdefs.h. */
36515 _ACEOF
36516 cat confdefs.h >>conftest.$ac_ext
36517 cat >>conftest.$ac_ext <<_ACEOF
36518 /* end confdefs.h. */
36519 $ac_includes_default
36520 #include <>
36521 _ACEOF
36522 rm -f conftest.$ac_objext
36523 if { (ac_try="$ac_compile"
36524 case "(($ac_try" in
36525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36526 *) ac_try_echo=$ac_try;;
36527 esac
36528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36529 (eval "$ac_compile") 2>conftest.er1
36530 ac_status=$?
36531 grep -v '^ *+' conftest.er1 >conftest.err
36532 rm -f conftest.er1
36533 cat conftest.err >&5
36534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36535 (exit $ac_status); } && {
36536 test -z "$ac_c_werror_flag" ||
36537 test ! -s conftest.err
36538 } && test -s conftest.$ac_objext; then
36539 ac_header_compiler=yes
36540 else
36541 echo "$as_me: failed program was:" >&5
36542 sed 's/^/| /' conftest.$ac_ext >&5
36544 ac_header_compiler=no
36547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36549 echo "${ECHO_T}$ac_header_compiler" >&6; }
36551 # Is the header present?
36552 { echo "$as_me:$LINENO: checking presence" >&5
36553 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36554 cat >conftest.$ac_ext <<_ACEOF
36555 /* confdefs.h. */
36556 _ACEOF
36557 cat confdefs.h >>conftest.$ac_ext
36558 cat >>conftest.$ac_ext <<_ACEOF
36559 /* end confdefs.h. */
36560 #include <>
36561 _ACEOF
36562 if { (ac_try="$ac_cpp conftest.$ac_ext"
36563 case "(($ac_try" in
36564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36565 *) ac_try_echo=$ac_try;;
36566 esac
36567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36569 ac_status=$?
36570 grep -v '^ *+' conftest.er1 >conftest.err
36571 rm -f conftest.er1
36572 cat conftest.err >&5
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); } >/dev/null && {
36575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36576 test ! -s conftest.err
36577 }; then
36578 ac_header_preproc=yes
36579 else
36580 echo "$as_me: failed program was:" >&5
36581 sed 's/^/| /' conftest.$ac_ext >&5
36583 ac_header_preproc=no
36586 rm -f conftest.err conftest.$ac_ext
36587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36588 echo "${ECHO_T}$ac_header_preproc" >&6; }
36590 # So? What about this header?
36591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36592 yes:no: )
36593 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36594 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36595 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36596 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36597 ac_header_preproc=yes
36599 no:yes:* )
36600 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36601 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36602 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36603 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36604 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36605 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36606 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36607 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36608 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36609 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36610 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36611 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36612 ( cat <<\_ASBOX
36613 ## ------------------------------- ##
36614 ## Report this to www.asterisk.org ##
36615 ## ------------------------------- ##
36616 _ASBOX
36617 ) | sed "s/^/$as_me: WARNING: /" >&2
36619 esac
36620 { echo "$as_me:$LINENO: checking for " >&5
36621 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36622 if test "${ac_cv_header_+set}" = set; then
36623 echo $ECHO_N "(cached) $ECHO_C" >&6
36624 else
36625 ac_cv_header_=$ac_header_preproc
36627 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36628 echo "${ECHO_T}$ac_cv_header_" >&6; }
36631 if test $ac_cv_header_ = yes; then
36632 OGG_HEADER_FOUND=1
36633 else
36634 OGG_HEADER_FOUND=0
36638 CPPFLAGS="${saved_cppflags}"
36640 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36641 OGG_LIB=""
36642 OGG_INCLUDE=""
36643 else
36644 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36645 OGG_LIB=""
36647 PBX_OGG=1
36648 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36650 cat >>confdefs.h <<_ACEOF
36651 #define HAVE_OGG 1
36652 _ACEOF
36655 cat >>confdefs.h <<_ACEOF
36656 #define HAVE_OGG_VERSION
36657 _ACEOF
36664 # Non-glibc platforms require libexecinfo for backtrace support
36666 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36667 pbxlibdir=""
36668 # if --with-BKTR=DIR has been specified, use it.
36669 if test "x${BKTR_DIR}" != "x"; then
36670 if test -d ${BKTR_DIR}/lib; then
36671 pbxlibdir="-L${BKTR_DIR}/lib"
36672 else
36673 pbxlibdir="-L${BKTR_DIR}"
36676 pbxfuncname="backtrace"
36677 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36678 AST_BKTR_FOUND=yes
36679 else
36680 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36681 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36682 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36683 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36684 echo $ECHO_N "(cached) $ECHO_C" >&6
36685 else
36686 ac_check_lib_save_LIBS=$LIBS
36687 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36688 cat >conftest.$ac_ext <<_ACEOF
36689 /* confdefs.h. */
36690 _ACEOF
36691 cat confdefs.h >>conftest.$ac_ext
36692 cat >>conftest.$ac_ext <<_ACEOF
36693 /* end confdefs.h. */
36695 /* Override any GCC internal prototype to avoid an error.
36696 Use char because int might match the return type of a GCC
36697 builtin and then its argument prototype would still apply. */
36698 #ifdef __cplusplus
36699 extern "C"
36700 #endif
36701 char ${pbxfuncname} ();
36703 main ()
36705 return ${pbxfuncname} ();
36707 return 0;
36709 _ACEOF
36710 rm -f conftest.$ac_objext conftest$ac_exeext
36711 if { (ac_try="$ac_link"
36712 case "(($ac_try" in
36713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36714 *) ac_try_echo=$ac_try;;
36715 esac
36716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36717 (eval "$ac_link") 2>conftest.er1
36718 ac_status=$?
36719 grep -v '^ *+' conftest.er1 >conftest.err
36720 rm -f conftest.er1
36721 cat conftest.err >&5
36722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36723 (exit $ac_status); } && {
36724 test -z "$ac_c_werror_flag" ||
36725 test ! -s conftest.err
36726 } && test -s conftest$ac_exeext &&
36727 $as_test_x conftest$ac_exeext; then
36728 eval "$as_ac_Lib=yes"
36729 else
36730 echo "$as_me: failed program was:" >&5
36731 sed 's/^/| /' conftest.$ac_ext >&5
36733 eval "$as_ac_Lib=no"
36736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36737 conftest$ac_exeext conftest.$ac_ext
36738 LIBS=$ac_check_lib_save_LIBS
36740 ac_res=`eval echo '${'$as_ac_Lib'}'`
36741 { echo "$as_me:$LINENO: result: $ac_res" >&5
36742 echo "${ECHO_T}$ac_res" >&6; }
36743 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36744 AST_BKTR_FOUND=yes
36745 else
36746 AST_BKTR_FOUND=no
36751 # now check for the header.
36752 if test "${AST_BKTR_FOUND}" = "yes"; then
36753 BKTR_LIB="${pbxlibdir} -lexecinfo "
36754 # if --with-BKTR=DIR has been specified, use it.
36755 if test "x${BKTR_DIR}" != "x"; then
36756 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36758 BKTR_INCLUDE="${BKTR_INCLUDE} "
36759 if test "xexecinfo.h" = "x" ; then # no header, assume found
36760 BKTR_HEADER_FOUND="1"
36761 else # check for the header
36762 saved_cppflags="${CPPFLAGS}"
36763 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
36764 if test "${ac_cv_header_execinfo_h+set}" = set; then
36765 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36766 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36767 if test "${ac_cv_header_execinfo_h+set}" = set; then
36768 echo $ECHO_N "(cached) $ECHO_C" >&6
36770 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36771 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36772 else
36773 # Is the header compilable?
36774 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36775 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36776 cat >conftest.$ac_ext <<_ACEOF
36777 /* confdefs.h. */
36778 _ACEOF
36779 cat confdefs.h >>conftest.$ac_ext
36780 cat >>conftest.$ac_ext <<_ACEOF
36781 /* end confdefs.h. */
36782 $ac_includes_default
36783 #include <execinfo.h>
36784 _ACEOF
36785 rm -f conftest.$ac_objext
36786 if { (ac_try="$ac_compile"
36787 case "(($ac_try" in
36788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36789 *) ac_try_echo=$ac_try;;
36790 esac
36791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36792 (eval "$ac_compile") 2>conftest.er1
36793 ac_status=$?
36794 grep -v '^ *+' conftest.er1 >conftest.err
36795 rm -f conftest.er1
36796 cat conftest.err >&5
36797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798 (exit $ac_status); } && {
36799 test -z "$ac_c_werror_flag" ||
36800 test ! -s conftest.err
36801 } && test -s conftest.$ac_objext; then
36802 ac_header_compiler=yes
36803 else
36804 echo "$as_me: failed program was:" >&5
36805 sed 's/^/| /' conftest.$ac_ext >&5
36807 ac_header_compiler=no
36810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36812 echo "${ECHO_T}$ac_header_compiler" >&6; }
36814 # Is the header present?
36815 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36816 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36817 cat >conftest.$ac_ext <<_ACEOF
36818 /* confdefs.h. */
36819 _ACEOF
36820 cat confdefs.h >>conftest.$ac_ext
36821 cat >>conftest.$ac_ext <<_ACEOF
36822 /* end confdefs.h. */
36823 #include <execinfo.h>
36824 _ACEOF
36825 if { (ac_try="$ac_cpp conftest.$ac_ext"
36826 case "(($ac_try" in
36827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36828 *) ac_try_echo=$ac_try;;
36829 esac
36830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36832 ac_status=$?
36833 grep -v '^ *+' conftest.er1 >conftest.err
36834 rm -f conftest.er1
36835 cat conftest.err >&5
36836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); } >/dev/null && {
36838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36839 test ! -s conftest.err
36840 }; then
36841 ac_header_preproc=yes
36842 else
36843 echo "$as_me: failed program was:" >&5
36844 sed 's/^/| /' conftest.$ac_ext >&5
36846 ac_header_preproc=no
36849 rm -f conftest.err conftest.$ac_ext
36850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36851 echo "${ECHO_T}$ac_header_preproc" >&6; }
36853 # So? What about this header?
36854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36855 yes:no: )
36856 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36857 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36858 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36859 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36860 ac_header_preproc=yes
36862 no:yes:* )
36863 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36864 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36865 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36866 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36867 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36868 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36869 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36870 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36871 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36872 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36873 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36874 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36875 ( cat <<\_ASBOX
36876 ## ------------------------------- ##
36877 ## Report this to www.asterisk.org ##
36878 ## ------------------------------- ##
36879 _ASBOX
36880 ) | sed "s/^/$as_me: WARNING: /" >&2
36882 esac
36883 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36884 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36885 if test "${ac_cv_header_execinfo_h+set}" = set; then
36886 echo $ECHO_N "(cached) $ECHO_C" >&6
36887 else
36888 ac_cv_header_execinfo_h=$ac_header_preproc
36890 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36891 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36894 if test $ac_cv_header_execinfo_h = yes; then
36895 BKTR_HEADER_FOUND=1
36896 else
36897 BKTR_HEADER_FOUND=0
36901 CPPFLAGS="${saved_cppflags}"
36903 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36904 BKTR_LIB=""
36905 BKTR_INCLUDE=""
36906 else
36907 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36908 BKTR_LIB=""
36910 PBX_BKTR=1
36911 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36913 cat >>confdefs.h <<_ACEOF
36914 #define HAVE_BKTR 1
36915 _ACEOF
36918 cat >>confdefs.h <<_ACEOF
36919 #define HAVE_BKTR_VERSION
36920 _ACEOF
36926 # Linux, however, has backtrace directly in glibc
36928 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36929 pbxlibdir=""
36930 # if --with-BKTR=DIR has been specified, use it.
36931 if test "x${BKTR_DIR}" != "x"; then
36932 if test -d ${BKTR_DIR}/lib; then
36933 pbxlibdir="-L${BKTR_DIR}/lib"
36934 else
36935 pbxlibdir="-L${BKTR_DIR}"
36938 pbxfuncname="backtrace"
36939 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36940 AST_BKTR_FOUND=yes
36941 else
36942 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36943 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36944 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36945 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36946 echo $ECHO_N "(cached) $ECHO_C" >&6
36947 else
36948 ac_check_lib_save_LIBS=$LIBS
36949 LIBS="-lc ${pbxlibdir} $LIBS"
36950 cat >conftest.$ac_ext <<_ACEOF
36951 /* confdefs.h. */
36952 _ACEOF
36953 cat confdefs.h >>conftest.$ac_ext
36954 cat >>conftest.$ac_ext <<_ACEOF
36955 /* end confdefs.h. */
36957 /* Override any GCC internal prototype to avoid an error.
36958 Use char because int might match the return type of a GCC
36959 builtin and then its argument prototype would still apply. */
36960 #ifdef __cplusplus
36961 extern "C"
36962 #endif
36963 char ${pbxfuncname} ();
36965 main ()
36967 return ${pbxfuncname} ();
36969 return 0;
36971 _ACEOF
36972 rm -f conftest.$ac_objext conftest$ac_exeext
36973 if { (ac_try="$ac_link"
36974 case "(($ac_try" in
36975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36976 *) ac_try_echo=$ac_try;;
36977 esac
36978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36979 (eval "$ac_link") 2>conftest.er1
36980 ac_status=$?
36981 grep -v '^ *+' conftest.er1 >conftest.err
36982 rm -f conftest.er1
36983 cat conftest.err >&5
36984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985 (exit $ac_status); } && {
36986 test -z "$ac_c_werror_flag" ||
36987 test ! -s conftest.err
36988 } && test -s conftest$ac_exeext &&
36989 $as_test_x conftest$ac_exeext; then
36990 eval "$as_ac_Lib=yes"
36991 else
36992 echo "$as_me: failed program was:" >&5
36993 sed 's/^/| /' conftest.$ac_ext >&5
36995 eval "$as_ac_Lib=no"
36998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36999 conftest$ac_exeext conftest.$ac_ext
37000 LIBS=$ac_check_lib_save_LIBS
37002 ac_res=`eval echo '${'$as_ac_Lib'}'`
37003 { echo "$as_me:$LINENO: result: $ac_res" >&5
37004 echo "${ECHO_T}$ac_res" >&6; }
37005 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37006 AST_BKTR_FOUND=yes
37007 else
37008 AST_BKTR_FOUND=no
37013 # now check for the header.
37014 if test "${AST_BKTR_FOUND}" = "yes"; then
37015 BKTR_LIB="${pbxlibdir} -lc "
37016 # if --with-BKTR=DIR has been specified, use it.
37017 if test "x${BKTR_DIR}" != "x"; then
37018 BKTR_INCLUDE="-I${BKTR_DIR}/include"
37020 BKTR_INCLUDE="${BKTR_INCLUDE} "
37021 if test "xexecinfo.h" = "x" ; then # no header, assume found
37022 BKTR_HEADER_FOUND="1"
37023 else # check for the header
37024 saved_cppflags="${CPPFLAGS}"
37025 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
37026 if test "${ac_cv_header_execinfo_h+set}" = set; then
37027 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
37028 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
37029 if test "${ac_cv_header_execinfo_h+set}" = set; then
37030 echo $ECHO_N "(cached) $ECHO_C" >&6
37032 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
37033 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
37034 else
37035 # Is the header compilable?
37036 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
37037 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
37038 cat >conftest.$ac_ext <<_ACEOF
37039 /* confdefs.h. */
37040 _ACEOF
37041 cat confdefs.h >>conftest.$ac_ext
37042 cat >>conftest.$ac_ext <<_ACEOF
37043 /* end confdefs.h. */
37044 $ac_includes_default
37045 #include <execinfo.h>
37046 _ACEOF
37047 rm -f conftest.$ac_objext
37048 if { (ac_try="$ac_compile"
37049 case "(($ac_try" in
37050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37051 *) ac_try_echo=$ac_try;;
37052 esac
37053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37054 (eval "$ac_compile") 2>conftest.er1
37055 ac_status=$?
37056 grep -v '^ *+' conftest.er1 >conftest.err
37057 rm -f conftest.er1
37058 cat conftest.err >&5
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); } && {
37061 test -z "$ac_c_werror_flag" ||
37062 test ! -s conftest.err
37063 } && test -s conftest.$ac_objext; then
37064 ac_header_compiler=yes
37065 else
37066 echo "$as_me: failed program was:" >&5
37067 sed 's/^/| /' conftest.$ac_ext >&5
37069 ac_header_compiler=no
37072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37074 echo "${ECHO_T}$ac_header_compiler" >&6; }
37076 # Is the header present?
37077 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
37078 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
37079 cat >conftest.$ac_ext <<_ACEOF
37080 /* confdefs.h. */
37081 _ACEOF
37082 cat confdefs.h >>conftest.$ac_ext
37083 cat >>conftest.$ac_ext <<_ACEOF
37084 /* end confdefs.h. */
37085 #include <execinfo.h>
37086 _ACEOF
37087 if { (ac_try="$ac_cpp conftest.$ac_ext"
37088 case "(($ac_try" in
37089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37090 *) ac_try_echo=$ac_try;;
37091 esac
37092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37094 ac_status=$?
37095 grep -v '^ *+' conftest.er1 >conftest.err
37096 rm -f conftest.er1
37097 cat conftest.err >&5
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); } >/dev/null && {
37100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37101 test ! -s conftest.err
37102 }; then
37103 ac_header_preproc=yes
37104 else
37105 echo "$as_me: failed program was:" >&5
37106 sed 's/^/| /' conftest.$ac_ext >&5
37108 ac_header_preproc=no
37111 rm -f conftest.err conftest.$ac_ext
37112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37113 echo "${ECHO_T}$ac_header_preproc" >&6; }
37115 # So? What about this header?
37116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37117 yes:no: )
37118 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
37119 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37120 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
37121 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
37122 ac_header_preproc=yes
37124 no:yes:* )
37125 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
37126 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
37127 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
37128 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
37129 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
37130 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
37131 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
37132 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
37133 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
37134 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
37135 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
37136 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
37137 ( cat <<\_ASBOX
37138 ## ------------------------------- ##
37139 ## Report this to www.asterisk.org ##
37140 ## ------------------------------- ##
37141 _ASBOX
37142 ) | sed "s/^/$as_me: WARNING: /" >&2
37144 esac
37145 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
37146 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
37147 if test "${ac_cv_header_execinfo_h+set}" = set; then
37148 echo $ECHO_N "(cached) $ECHO_C" >&6
37149 else
37150 ac_cv_header_execinfo_h=$ac_header_preproc
37152 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
37153 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
37156 if test $ac_cv_header_execinfo_h = yes; then
37157 BKTR_HEADER_FOUND=1
37158 else
37159 BKTR_HEADER_FOUND=0
37163 CPPFLAGS="${saved_cppflags}"
37165 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
37166 BKTR_LIB=""
37167 BKTR_INCLUDE=""
37168 else
37169 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37170 BKTR_LIB=""
37172 PBX_BKTR=1
37173 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37175 cat >>confdefs.h <<_ACEOF
37176 #define HAVE_BKTR 1
37177 _ACEOF
37180 cat >>confdefs.h <<_ACEOF
37181 #define HAVE_BKTR_VERSION
37182 _ACEOF
37189 # possible places for oss definitions
37191 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37192 pbxlibdir=""
37193 # if --with-OSS=DIR has been specified, use it.
37194 if test "x${OSS_DIR}" != "x"; then
37195 if test -d ${OSS_DIR}/lib; then
37196 pbxlibdir="-L${OSS_DIR}/lib"
37197 else
37198 pbxlibdir="-L${OSS_DIR}"
37201 pbxfuncname=""
37202 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37203 AST_OSS_FOUND=yes
37204 else
37205 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37206 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37207 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37208 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37209 echo $ECHO_N "(cached) $ECHO_C" >&6
37210 else
37211 ac_check_lib_save_LIBS=$LIBS
37212 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37213 cat >conftest.$ac_ext <<_ACEOF
37214 /* confdefs.h. */
37215 _ACEOF
37216 cat confdefs.h >>conftest.$ac_ext
37217 cat >>conftest.$ac_ext <<_ACEOF
37218 /* end confdefs.h. */
37220 /* Override any GCC internal prototype to avoid an error.
37221 Use char because int might match the return type of a GCC
37222 builtin and then its argument prototype would still apply. */
37223 #ifdef __cplusplus
37224 extern "C"
37225 #endif
37226 char ${pbxfuncname} ();
37228 main ()
37230 return ${pbxfuncname} ();
37232 return 0;
37234 _ACEOF
37235 rm -f conftest.$ac_objext conftest$ac_exeext
37236 if { (ac_try="$ac_link"
37237 case "(($ac_try" in
37238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37239 *) ac_try_echo=$ac_try;;
37240 esac
37241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37242 (eval "$ac_link") 2>conftest.er1
37243 ac_status=$?
37244 grep -v '^ *+' conftest.er1 >conftest.err
37245 rm -f conftest.er1
37246 cat conftest.err >&5
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); } && {
37249 test -z "$ac_c_werror_flag" ||
37250 test ! -s conftest.err
37251 } && test -s conftest$ac_exeext &&
37252 $as_test_x conftest$ac_exeext; then
37253 eval "$as_ac_Lib=yes"
37254 else
37255 echo "$as_me: failed program was:" >&5
37256 sed 's/^/| /' conftest.$ac_ext >&5
37258 eval "$as_ac_Lib=no"
37261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37262 conftest$ac_exeext conftest.$ac_ext
37263 LIBS=$ac_check_lib_save_LIBS
37265 ac_res=`eval echo '${'$as_ac_Lib'}'`
37266 { echo "$as_me:$LINENO: result: $ac_res" >&5
37267 echo "${ECHO_T}$ac_res" >&6; }
37268 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37269 AST_OSS_FOUND=yes
37270 else
37271 AST_OSS_FOUND=no
37276 # now check for the header.
37277 if test "${AST_OSS_FOUND}" = "yes"; then
37278 OSS_LIB="${pbxlibdir} -lossaudio "
37279 # if --with-OSS=DIR has been specified, use it.
37280 if test "x${OSS_DIR}" != "x"; then
37281 OSS_INCLUDE="-I${OSS_DIR}/include"
37283 OSS_INCLUDE="${OSS_INCLUDE} "
37284 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
37285 OSS_HEADER_FOUND="1"
37286 else # check for the header
37287 saved_cppflags="${CPPFLAGS}"
37288 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37289 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37290 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37291 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37292 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37293 echo $ECHO_N "(cached) $ECHO_C" >&6
37295 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37296 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37297 else
37298 # Is the header compilable?
37299 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
37300 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
37301 cat >conftest.$ac_ext <<_ACEOF
37302 /* confdefs.h. */
37303 _ACEOF
37304 cat confdefs.h >>conftest.$ac_ext
37305 cat >>conftest.$ac_ext <<_ACEOF
37306 /* end confdefs.h. */
37307 $ac_includes_default
37308 #include <linux/soundcard.h>
37309 _ACEOF
37310 rm -f conftest.$ac_objext
37311 if { (ac_try="$ac_compile"
37312 case "(($ac_try" in
37313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37314 *) ac_try_echo=$ac_try;;
37315 esac
37316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37317 (eval "$ac_compile") 2>conftest.er1
37318 ac_status=$?
37319 grep -v '^ *+' conftest.er1 >conftest.err
37320 rm -f conftest.er1
37321 cat conftest.err >&5
37322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323 (exit $ac_status); } && {
37324 test -z "$ac_c_werror_flag" ||
37325 test ! -s conftest.err
37326 } && test -s conftest.$ac_objext; then
37327 ac_header_compiler=yes
37328 else
37329 echo "$as_me: failed program was:" >&5
37330 sed 's/^/| /' conftest.$ac_ext >&5
37332 ac_header_compiler=no
37335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37337 echo "${ECHO_T}$ac_header_compiler" >&6; }
37339 # Is the header present?
37340 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
37341 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
37342 cat >conftest.$ac_ext <<_ACEOF
37343 /* confdefs.h. */
37344 _ACEOF
37345 cat confdefs.h >>conftest.$ac_ext
37346 cat >>conftest.$ac_ext <<_ACEOF
37347 /* end confdefs.h. */
37348 #include <linux/soundcard.h>
37349 _ACEOF
37350 if { (ac_try="$ac_cpp conftest.$ac_ext"
37351 case "(($ac_try" in
37352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37353 *) ac_try_echo=$ac_try;;
37354 esac
37355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37357 ac_status=$?
37358 grep -v '^ *+' conftest.er1 >conftest.err
37359 rm -f conftest.er1
37360 cat conftest.err >&5
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); } >/dev/null && {
37363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37364 test ! -s conftest.err
37365 }; then
37366 ac_header_preproc=yes
37367 else
37368 echo "$as_me: failed program was:" >&5
37369 sed 's/^/| /' conftest.$ac_ext >&5
37371 ac_header_preproc=no
37374 rm -f conftest.err conftest.$ac_ext
37375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37376 echo "${ECHO_T}$ac_header_preproc" >&6; }
37378 # So? What about this header?
37379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37380 yes:no: )
37381 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37382 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37383 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
37384 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
37385 ac_header_preproc=yes
37387 no:yes:* )
37388 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
37389 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
37390 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
37391 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
37392 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
37393 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
37394 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37395 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37396 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
37397 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
37398 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
37399 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
37400 ( cat <<\_ASBOX
37401 ## ------------------------------- ##
37402 ## Report this to www.asterisk.org ##
37403 ## ------------------------------- ##
37404 _ASBOX
37405 ) | sed "s/^/$as_me: WARNING: /" >&2
37407 esac
37408 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37409 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37410 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37411 echo $ECHO_N "(cached) $ECHO_C" >&6
37412 else
37413 ac_cv_header_linux_soundcard_h=$ac_header_preproc
37415 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37416 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37419 if test $ac_cv_header_linux_soundcard_h = yes; then
37420 OSS_HEADER_FOUND=1
37421 else
37422 OSS_HEADER_FOUND=0
37426 CPPFLAGS="${saved_cppflags}"
37428 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37429 OSS_LIB=""
37430 OSS_INCLUDE=""
37431 else
37432 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37433 OSS_LIB=""
37435 PBX_OSS=1
37436 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37438 cat >>confdefs.h <<_ACEOF
37439 #define HAVE_OSS 1
37440 _ACEOF
37443 cat >>confdefs.h <<_ACEOF
37444 #define HAVE_OSS_VERSION
37445 _ACEOF
37452 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37453 pbxlibdir=""
37454 # if --with-OSS=DIR has been specified, use it.
37455 if test "x${OSS_DIR}" != "x"; then
37456 if test -d ${OSS_DIR}/lib; then
37457 pbxlibdir="-L${OSS_DIR}/lib"
37458 else
37459 pbxlibdir="-L${OSS_DIR}"
37462 pbxfuncname=""
37463 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37464 AST_OSS_FOUND=yes
37465 else
37466 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37467 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37468 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37469 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37470 echo $ECHO_N "(cached) $ECHO_C" >&6
37471 else
37472 ac_check_lib_save_LIBS=$LIBS
37473 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37474 cat >conftest.$ac_ext <<_ACEOF
37475 /* confdefs.h. */
37476 _ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h. */
37481 /* Override any GCC internal prototype to avoid an error.
37482 Use char because int might match the return type of a GCC
37483 builtin and then its argument prototype would still apply. */
37484 #ifdef __cplusplus
37485 extern "C"
37486 #endif
37487 char ${pbxfuncname} ();
37489 main ()
37491 return ${pbxfuncname} ();
37493 return 0;
37495 _ACEOF
37496 rm -f conftest.$ac_objext conftest$ac_exeext
37497 if { (ac_try="$ac_link"
37498 case "(($ac_try" in
37499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37500 *) ac_try_echo=$ac_try;;
37501 esac
37502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37503 (eval "$ac_link") 2>conftest.er1
37504 ac_status=$?
37505 grep -v '^ *+' conftest.er1 >conftest.err
37506 rm -f conftest.er1
37507 cat conftest.err >&5
37508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509 (exit $ac_status); } && {
37510 test -z "$ac_c_werror_flag" ||
37511 test ! -s conftest.err
37512 } && test -s conftest$ac_exeext &&
37513 $as_test_x conftest$ac_exeext; then
37514 eval "$as_ac_Lib=yes"
37515 else
37516 echo "$as_me: failed program was:" >&5
37517 sed 's/^/| /' conftest.$ac_ext >&5
37519 eval "$as_ac_Lib=no"
37522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37523 conftest$ac_exeext conftest.$ac_ext
37524 LIBS=$ac_check_lib_save_LIBS
37526 ac_res=`eval echo '${'$as_ac_Lib'}'`
37527 { echo "$as_me:$LINENO: result: $ac_res" >&5
37528 echo "${ECHO_T}$ac_res" >&6; }
37529 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37530 AST_OSS_FOUND=yes
37531 else
37532 AST_OSS_FOUND=no
37537 # now check for the header.
37538 if test "${AST_OSS_FOUND}" = "yes"; then
37539 OSS_LIB="${pbxlibdir} -lossaudio "
37540 # if --with-OSS=DIR has been specified, use it.
37541 if test "x${OSS_DIR}" != "x"; then
37542 OSS_INCLUDE="-I${OSS_DIR}/include"
37544 OSS_INCLUDE="${OSS_INCLUDE} "
37545 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37546 OSS_HEADER_FOUND="1"
37547 else # check for the header
37548 saved_cppflags="${CPPFLAGS}"
37549 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37550 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37551 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37552 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37553 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37554 echo $ECHO_N "(cached) $ECHO_C" >&6
37556 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37557 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37558 else
37559 # Is the header compilable?
37560 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37561 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37562 cat >conftest.$ac_ext <<_ACEOF
37563 /* confdefs.h. */
37564 _ACEOF
37565 cat confdefs.h >>conftest.$ac_ext
37566 cat >>conftest.$ac_ext <<_ACEOF
37567 /* end confdefs.h. */
37568 $ac_includes_default
37569 #include <sys/soundcard.h>
37570 _ACEOF
37571 rm -f conftest.$ac_objext
37572 if { (ac_try="$ac_compile"
37573 case "(($ac_try" in
37574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37575 *) ac_try_echo=$ac_try;;
37576 esac
37577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37578 (eval "$ac_compile") 2>conftest.er1
37579 ac_status=$?
37580 grep -v '^ *+' conftest.er1 >conftest.err
37581 rm -f conftest.er1
37582 cat conftest.err >&5
37583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584 (exit $ac_status); } && {
37585 test -z "$ac_c_werror_flag" ||
37586 test ! -s conftest.err
37587 } && test -s conftest.$ac_objext; then
37588 ac_header_compiler=yes
37589 else
37590 echo "$as_me: failed program was:" >&5
37591 sed 's/^/| /' conftest.$ac_ext >&5
37593 ac_header_compiler=no
37596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37598 echo "${ECHO_T}$ac_header_compiler" >&6; }
37600 # Is the header present?
37601 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37602 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37603 cat >conftest.$ac_ext <<_ACEOF
37604 /* confdefs.h. */
37605 _ACEOF
37606 cat confdefs.h >>conftest.$ac_ext
37607 cat >>conftest.$ac_ext <<_ACEOF
37608 /* end confdefs.h. */
37609 #include <sys/soundcard.h>
37610 _ACEOF
37611 if { (ac_try="$ac_cpp conftest.$ac_ext"
37612 case "(($ac_try" in
37613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37614 *) ac_try_echo=$ac_try;;
37615 esac
37616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37618 ac_status=$?
37619 grep -v '^ *+' conftest.er1 >conftest.err
37620 rm -f conftest.er1
37621 cat conftest.err >&5
37622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623 (exit $ac_status); } >/dev/null && {
37624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37625 test ! -s conftest.err
37626 }; then
37627 ac_header_preproc=yes
37628 else
37629 echo "$as_me: failed program was:" >&5
37630 sed 's/^/| /' conftest.$ac_ext >&5
37632 ac_header_preproc=no
37635 rm -f conftest.err conftest.$ac_ext
37636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37637 echo "${ECHO_T}$ac_header_preproc" >&6; }
37639 # So? What about this header?
37640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37641 yes:no: )
37642 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37643 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37644 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37645 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37646 ac_header_preproc=yes
37648 no:yes:* )
37649 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37650 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37651 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37652 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37653 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37654 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37655 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37656 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37657 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37658 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37659 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37660 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37661 ( cat <<\_ASBOX
37662 ## ------------------------------- ##
37663 ## Report this to www.asterisk.org ##
37664 ## ------------------------------- ##
37665 _ASBOX
37666 ) | sed "s/^/$as_me: WARNING: /" >&2
37668 esac
37669 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37670 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37671 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37672 echo $ECHO_N "(cached) $ECHO_C" >&6
37673 else
37674 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37676 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37677 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37680 if test $ac_cv_header_sys_soundcard_h = yes; then
37681 OSS_HEADER_FOUND=1
37682 else
37683 OSS_HEADER_FOUND=0
37687 CPPFLAGS="${saved_cppflags}"
37689 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37690 OSS_LIB=""
37691 OSS_INCLUDE=""
37692 else
37693 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37694 OSS_LIB=""
37696 PBX_OSS=1
37697 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37699 cat >>confdefs.h <<_ACEOF
37700 #define HAVE_OSS 1
37701 _ACEOF
37704 cat >>confdefs.h <<_ACEOF
37705 #define HAVE_OSS_VERSION
37706 _ACEOF
37713 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37714 pbxlibdir=""
37715 # if --with-OSS=DIR has been specified, use it.
37716 if test "x${OSS_DIR}" != "x"; then
37717 if test -d ${OSS_DIR}/lib; then
37718 pbxlibdir="-L${OSS_DIR}/lib"
37719 else
37720 pbxlibdir="-L${OSS_DIR}"
37723 pbxfuncname="oss_ioctl_mixer"
37724 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37725 AST_OSS_FOUND=yes
37726 else
37727 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37728 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37729 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37730 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37731 echo $ECHO_N "(cached) $ECHO_C" >&6
37732 else
37733 ac_check_lib_save_LIBS=$LIBS
37734 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37735 cat >conftest.$ac_ext <<_ACEOF
37736 /* confdefs.h. */
37737 _ACEOF
37738 cat confdefs.h >>conftest.$ac_ext
37739 cat >>conftest.$ac_ext <<_ACEOF
37740 /* end confdefs.h. */
37742 /* Override any GCC internal prototype to avoid an error.
37743 Use char because int might match the return type of a GCC
37744 builtin and then its argument prototype would still apply. */
37745 #ifdef __cplusplus
37746 extern "C"
37747 #endif
37748 char ${pbxfuncname} ();
37750 main ()
37752 return ${pbxfuncname} ();
37754 return 0;
37756 _ACEOF
37757 rm -f conftest.$ac_objext conftest$ac_exeext
37758 if { (ac_try="$ac_link"
37759 case "(($ac_try" in
37760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37761 *) ac_try_echo=$ac_try;;
37762 esac
37763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37764 (eval "$ac_link") 2>conftest.er1
37765 ac_status=$?
37766 grep -v '^ *+' conftest.er1 >conftest.err
37767 rm -f conftest.er1
37768 cat conftest.err >&5
37769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); } && {
37771 test -z "$ac_c_werror_flag" ||
37772 test ! -s conftest.err
37773 } && test -s conftest$ac_exeext &&
37774 $as_test_x conftest$ac_exeext; then
37775 eval "$as_ac_Lib=yes"
37776 else
37777 echo "$as_me: failed program was:" >&5
37778 sed 's/^/| /' conftest.$ac_ext >&5
37780 eval "$as_ac_Lib=no"
37783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37784 conftest$ac_exeext conftest.$ac_ext
37785 LIBS=$ac_check_lib_save_LIBS
37787 ac_res=`eval echo '${'$as_ac_Lib'}'`
37788 { echo "$as_me:$LINENO: result: $ac_res" >&5
37789 echo "${ECHO_T}$ac_res" >&6; }
37790 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37791 AST_OSS_FOUND=yes
37792 else
37793 AST_OSS_FOUND=no
37798 # now check for the header.
37799 if test "${AST_OSS_FOUND}" = "yes"; then
37800 OSS_LIB="${pbxlibdir} -lossaudio "
37801 # if --with-OSS=DIR has been specified, use it.
37802 if test "x${OSS_DIR}" != "x"; then
37803 OSS_INCLUDE="-I${OSS_DIR}/include"
37805 OSS_INCLUDE="${OSS_INCLUDE} "
37806 if test "xsoundcard.h" = "x" ; then # no header, assume found
37807 OSS_HEADER_FOUND="1"
37808 else # check for the header
37809 saved_cppflags="${CPPFLAGS}"
37810 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
37811 if test "${ac_cv_header_soundcard_h+set}" = set; then
37812 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37813 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37814 if test "${ac_cv_header_soundcard_h+set}" = set; then
37815 echo $ECHO_N "(cached) $ECHO_C" >&6
37817 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37818 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37819 else
37820 # Is the header compilable?
37821 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37822 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37823 cat >conftest.$ac_ext <<_ACEOF
37824 /* confdefs.h. */
37825 _ACEOF
37826 cat confdefs.h >>conftest.$ac_ext
37827 cat >>conftest.$ac_ext <<_ACEOF
37828 /* end confdefs.h. */
37829 $ac_includes_default
37830 #include <soundcard.h>
37831 _ACEOF
37832 rm -f conftest.$ac_objext
37833 if { (ac_try="$ac_compile"
37834 case "(($ac_try" in
37835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37836 *) ac_try_echo=$ac_try;;
37837 esac
37838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37839 (eval "$ac_compile") 2>conftest.er1
37840 ac_status=$?
37841 grep -v '^ *+' conftest.er1 >conftest.err
37842 rm -f conftest.er1
37843 cat conftest.err >&5
37844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845 (exit $ac_status); } && {
37846 test -z "$ac_c_werror_flag" ||
37847 test ! -s conftest.err
37848 } && test -s conftest.$ac_objext; then
37849 ac_header_compiler=yes
37850 else
37851 echo "$as_me: failed program was:" >&5
37852 sed 's/^/| /' conftest.$ac_ext >&5
37854 ac_header_compiler=no
37857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37859 echo "${ECHO_T}$ac_header_compiler" >&6; }
37861 # Is the header present?
37862 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37863 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37864 cat >conftest.$ac_ext <<_ACEOF
37865 /* confdefs.h. */
37866 _ACEOF
37867 cat confdefs.h >>conftest.$ac_ext
37868 cat >>conftest.$ac_ext <<_ACEOF
37869 /* end confdefs.h. */
37870 #include <soundcard.h>
37871 _ACEOF
37872 if { (ac_try="$ac_cpp conftest.$ac_ext"
37873 case "(($ac_try" in
37874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37875 *) ac_try_echo=$ac_try;;
37876 esac
37877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37879 ac_status=$?
37880 grep -v '^ *+' conftest.er1 >conftest.err
37881 rm -f conftest.er1
37882 cat conftest.err >&5
37883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37884 (exit $ac_status); } >/dev/null && {
37885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37886 test ! -s conftest.err
37887 }; then
37888 ac_header_preproc=yes
37889 else
37890 echo "$as_me: failed program was:" >&5
37891 sed 's/^/| /' conftest.$ac_ext >&5
37893 ac_header_preproc=no
37896 rm -f conftest.err conftest.$ac_ext
37897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37898 echo "${ECHO_T}$ac_header_preproc" >&6; }
37900 # So? What about this header?
37901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37902 yes:no: )
37903 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37904 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37905 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37906 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37907 ac_header_preproc=yes
37909 no:yes:* )
37910 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37911 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37912 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37913 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37914 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37915 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37916 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37917 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37918 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37919 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37920 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37921 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37922 ( cat <<\_ASBOX
37923 ## ------------------------------- ##
37924 ## Report this to www.asterisk.org ##
37925 ## ------------------------------- ##
37926 _ASBOX
37927 ) | sed "s/^/$as_me: WARNING: /" >&2
37929 esac
37930 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37931 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37932 if test "${ac_cv_header_soundcard_h+set}" = set; then
37933 echo $ECHO_N "(cached) $ECHO_C" >&6
37934 else
37935 ac_cv_header_soundcard_h=$ac_header_preproc
37937 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37938 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37941 if test $ac_cv_header_soundcard_h = yes; then
37942 OSS_HEADER_FOUND=1
37943 else
37944 OSS_HEADER_FOUND=0
37948 CPPFLAGS="${saved_cppflags}"
37950 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37951 OSS_LIB=""
37952 OSS_INCLUDE=""
37953 else
37954 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37955 OSS_LIB=""
37957 PBX_OSS=1
37958 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37960 cat >>confdefs.h <<_ACEOF
37961 #define HAVE_OSS 1
37962 _ACEOF
37965 cat >>confdefs.h <<_ACEOF
37966 #define HAVE_OSS_VERSION
37967 _ACEOF
37974 PG_CONFIG=No
37975 if test "${USE_PGSQL}" != "no"; then
37976 if test "x${PGSQL_DIR}" != "x"; then
37977 if test -n "$ac_tool_prefix"; then
37978 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37979 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37982 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37983 echo $ECHO_N "(cached) $ECHO_C" >&6
37984 else
37985 case $PG_CONFIG in
37986 [\\/]* | ?:[\\/]*)
37987 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37991 for as_dir in ${PGSQL_DIR}/bin
37993 IFS=$as_save_IFS
37994 test -z "$as_dir" && as_dir=.
37995 for ac_exec_ext in '' $ac_executable_extensions; do
37996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37997 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37999 break 2
38001 done
38002 done
38003 IFS=$as_save_IFS
38006 esac
38008 PG_CONFIG=$ac_cv_path_PG_CONFIG
38009 if test -n "$PG_CONFIG"; then
38010 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
38011 echo "${ECHO_T}$PG_CONFIG" >&6; }
38012 else
38013 { echo "$as_me:$LINENO: result: no" >&5
38014 echo "${ECHO_T}no" >&6; }
38019 if test -z "$ac_cv_path_PG_CONFIG"; then
38020 ac_pt_PG_CONFIG=$PG_CONFIG
38021 # Extract the first word of "pg_config", so it can be a program name with args.
38022 set dummy pg_config; ac_word=$2
38023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38025 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
38026 echo $ECHO_N "(cached) $ECHO_C" >&6
38027 else
38028 case $ac_pt_PG_CONFIG in
38029 [\\/]* | ?:[\\/]*)
38030 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
38033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38034 for as_dir in ${PGSQL_DIR}/bin
38036 IFS=$as_save_IFS
38037 test -z "$as_dir" && as_dir=.
38038 for ac_exec_ext in '' $ac_executable_extensions; do
38039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38040 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38042 break 2
38044 done
38045 done
38046 IFS=$as_save_IFS
38049 esac
38051 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
38052 if test -n "$ac_pt_PG_CONFIG"; then
38053 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
38054 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38055 else
38056 { echo "$as_me:$LINENO: result: no" >&5
38057 echo "${ECHO_T}no" >&6; }
38060 if test "x$ac_pt_PG_CONFIG" = x; then
38061 PG_CONFIG="No"
38062 else
38063 case $cross_compiling:$ac_tool_warned in
38064 yes:)
38065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38066 whose name does not start with the host triplet. If you think this
38067 configuration is useful to you, please write to autoconf@gnu.org." >&5
38068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38069 whose name does not start with the host triplet. If you think this
38070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38071 ac_tool_warned=yes ;;
38072 esac
38073 PG_CONFIG=$ac_pt_PG_CONFIG
38075 else
38076 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38079 if test x"${PG_CONFIG}" = xNo; then
38080 { echo "$as_me:$LINENO: ***" >&5
38081 echo "$as_me: ***" >&6;}
38082 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
38083 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
38084 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
38085 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
38086 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38087 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38088 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38089 echo "$as_me: *** including --without-postgres" >&6;}
38090 exit 1
38092 else
38093 if test -n "$ac_tool_prefix"; then
38094 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
38095 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
38096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38098 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
38099 echo $ECHO_N "(cached) $ECHO_C" >&6
38100 else
38101 case $PG_CONFIG in
38102 [\\/]* | ?:[\\/]*)
38103 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
38106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38107 for as_dir in $PATH
38109 IFS=$as_save_IFS
38110 test -z "$as_dir" && as_dir=.
38111 for ac_exec_ext in '' $ac_executable_extensions; do
38112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38113 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38115 break 2
38117 done
38118 done
38119 IFS=$as_save_IFS
38122 esac
38124 PG_CONFIG=$ac_cv_path_PG_CONFIG
38125 if test -n "$PG_CONFIG"; then
38126 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
38127 echo "${ECHO_T}$PG_CONFIG" >&6; }
38128 else
38129 { echo "$as_me:$LINENO: result: no" >&5
38130 echo "${ECHO_T}no" >&6; }
38135 if test -z "$ac_cv_path_PG_CONFIG"; then
38136 ac_pt_PG_CONFIG=$PG_CONFIG
38137 # Extract the first word of "pg_config", so it can be a program name with args.
38138 set dummy pg_config; ac_word=$2
38139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38141 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
38142 echo $ECHO_N "(cached) $ECHO_C" >&6
38143 else
38144 case $ac_pt_PG_CONFIG in
38145 [\\/]* | ?:[\\/]*)
38146 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
38149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38150 for as_dir in $PATH
38152 IFS=$as_save_IFS
38153 test -z "$as_dir" && as_dir=.
38154 for ac_exec_ext in '' $ac_executable_extensions; do
38155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38156 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38158 break 2
38160 done
38161 done
38162 IFS=$as_save_IFS
38165 esac
38167 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
38168 if test -n "$ac_pt_PG_CONFIG"; then
38169 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
38170 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38171 else
38172 { echo "$as_me:$LINENO: result: no" >&5
38173 echo "${ECHO_T}no" >&6; }
38176 if test "x$ac_pt_PG_CONFIG" = x; then
38177 PG_CONFIG="No"
38178 else
38179 case $cross_compiling:$ac_tool_warned in
38180 yes:)
38181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38182 whose name does not start with the host triplet. If you think this
38183 configuration is useful to you, please write to autoconf@gnu.org." >&5
38184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38185 whose name does not start with the host triplet. If you think this
38186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38187 ac_tool_warned=yes ;;
38188 esac
38189 PG_CONFIG=$ac_pt_PG_CONFIG
38191 else
38192 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38197 if test "${PG_CONFIG}" != No; then
38198 PGSQL_libdir=`${PG_CONFIG} --libdir`
38199 PGSQL_includedir=`${PG_CONFIG} --includedir`
38200 if test "x$?" != "x0" ; then
38201 if test -n "${PGSQL_MANDATORY}" ; then
38202 { echo "$as_me:$LINENO: ***" >&5
38203 echo "$as_me: ***" >&6;}
38204 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38205 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38206 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38207 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38208 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38209 echo "$as_me: *** including --without-postgres" >&6;}
38210 exit 1
38212 else
38213 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
38214 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
38215 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
38216 echo $ECHO_N "(cached) $ECHO_C" >&6
38217 else
38218 ac_check_lib_save_LIBS=$LIBS
38219 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
38220 cat >conftest.$ac_ext <<_ACEOF
38221 /* confdefs.h. */
38222 _ACEOF
38223 cat confdefs.h >>conftest.$ac_ext
38224 cat >>conftest.$ac_ext <<_ACEOF
38225 /* end confdefs.h. */
38227 /* Override any GCC internal prototype to avoid an error.
38228 Use char because int might match the return type of a GCC
38229 builtin and then its argument prototype would still apply. */
38230 #ifdef __cplusplus
38231 extern "C"
38232 #endif
38233 char PQescapeStringConn ();
38235 main ()
38237 return PQescapeStringConn ();
38239 return 0;
38241 _ACEOF
38242 rm -f conftest.$ac_objext conftest$ac_exeext
38243 if { (ac_try="$ac_link"
38244 case "(($ac_try" in
38245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38246 *) ac_try_echo=$ac_try;;
38247 esac
38248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38249 (eval "$ac_link") 2>conftest.er1
38250 ac_status=$?
38251 grep -v '^ *+' conftest.er1 >conftest.err
38252 rm -f conftest.er1
38253 cat conftest.err >&5
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); } && {
38256 test -z "$ac_c_werror_flag" ||
38257 test ! -s conftest.err
38258 } && test -s conftest$ac_exeext &&
38259 $as_test_x conftest$ac_exeext; then
38260 ac_cv_lib_pq_PQescapeStringConn=yes
38261 else
38262 echo "$as_me: failed program was:" >&5
38263 sed 's/^/| /' conftest.$ac_ext >&5
38265 ac_cv_lib_pq_PQescapeStringConn=no
38268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38269 conftest$ac_exeext conftest.$ac_ext
38270 LIBS=$ac_check_lib_save_LIBS
38272 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
38273 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
38274 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
38276 cat >>confdefs.h <<_ACEOF
38277 #define HAVE_PGSQL 1
38278 _ACEOF
38283 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
38284 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
38285 PGSQL_INCLUDE="-I${PGSQL_includedir}"
38286 PBX_PGSQL=1
38287 elif test -n "${PGSQL_MANDATORY}";
38288 then
38289 { echo "$as_me:$LINENO: ***" >&5
38290 echo "$as_me: ***" >&6;}
38291 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38292 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38293 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38294 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38295 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38296 echo "$as_me: *** including --without-postgres" >&6;}
38297 exit 1
38303 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
38304 pbxlibdir=""
38305 # if --with-POPT=DIR has been specified, use it.
38306 if test "x${POPT_DIR}" != "x"; then
38307 if test -d ${POPT_DIR}/lib; then
38308 pbxlibdir="-L${POPT_DIR}/lib"
38309 else
38310 pbxlibdir="-L${POPT_DIR}"
38313 pbxfuncname="poptStrerror"
38314 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38315 AST_POPT_FOUND=yes
38316 else
38317 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
38318 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
38319 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
38320 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38321 echo $ECHO_N "(cached) $ECHO_C" >&6
38322 else
38323 ac_check_lib_save_LIBS=$LIBS
38324 LIBS="-lpopt ${pbxlibdir} $LIBS"
38325 cat >conftest.$ac_ext <<_ACEOF
38326 /* confdefs.h. */
38327 _ACEOF
38328 cat confdefs.h >>conftest.$ac_ext
38329 cat >>conftest.$ac_ext <<_ACEOF
38330 /* end confdefs.h. */
38332 /* Override any GCC internal prototype to avoid an error.
38333 Use char because int might match the return type of a GCC
38334 builtin and then its argument prototype would still apply. */
38335 #ifdef __cplusplus
38336 extern "C"
38337 #endif
38338 char ${pbxfuncname} ();
38340 main ()
38342 return ${pbxfuncname} ();
38344 return 0;
38346 _ACEOF
38347 rm -f conftest.$ac_objext conftest$ac_exeext
38348 if { (ac_try="$ac_link"
38349 case "(($ac_try" in
38350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38351 *) ac_try_echo=$ac_try;;
38352 esac
38353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38354 (eval "$ac_link") 2>conftest.er1
38355 ac_status=$?
38356 grep -v '^ *+' conftest.er1 >conftest.err
38357 rm -f conftest.er1
38358 cat conftest.err >&5
38359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 (exit $ac_status); } && {
38361 test -z "$ac_c_werror_flag" ||
38362 test ! -s conftest.err
38363 } && test -s conftest$ac_exeext &&
38364 $as_test_x conftest$ac_exeext; then
38365 eval "$as_ac_Lib=yes"
38366 else
38367 echo "$as_me: failed program was:" >&5
38368 sed 's/^/| /' conftest.$ac_ext >&5
38370 eval "$as_ac_Lib=no"
38373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38374 conftest$ac_exeext conftest.$ac_ext
38375 LIBS=$ac_check_lib_save_LIBS
38377 ac_res=`eval echo '${'$as_ac_Lib'}'`
38378 { echo "$as_me:$LINENO: result: $ac_res" >&5
38379 echo "${ECHO_T}$ac_res" >&6; }
38380 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38381 AST_POPT_FOUND=yes
38382 else
38383 AST_POPT_FOUND=no
38388 # now check for the header.
38389 if test "${AST_POPT_FOUND}" = "yes"; then
38390 POPT_LIB="${pbxlibdir} -lpopt "
38391 # if --with-POPT=DIR has been specified, use it.
38392 if test "x${POPT_DIR}" != "x"; then
38393 POPT_INCLUDE="-I${POPT_DIR}/include"
38395 POPT_INCLUDE="${POPT_INCLUDE} "
38396 if test "xpopt.h" = "x" ; then # no header, assume found
38397 POPT_HEADER_FOUND="1"
38398 else # check for the header
38399 saved_cppflags="${CPPFLAGS}"
38400 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
38401 if test "${ac_cv_header_popt_h+set}" = set; then
38402 { echo "$as_me:$LINENO: checking for popt.h" >&5
38403 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38404 if test "${ac_cv_header_popt_h+set}" = set; then
38405 echo $ECHO_N "(cached) $ECHO_C" >&6
38407 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38408 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38409 else
38410 # Is the header compilable?
38411 { echo "$as_me:$LINENO: checking popt.h usability" >&5
38412 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
38413 cat >conftest.$ac_ext <<_ACEOF
38414 /* confdefs.h. */
38415 _ACEOF
38416 cat confdefs.h >>conftest.$ac_ext
38417 cat >>conftest.$ac_ext <<_ACEOF
38418 /* end confdefs.h. */
38419 $ac_includes_default
38420 #include <popt.h>
38421 _ACEOF
38422 rm -f conftest.$ac_objext
38423 if { (ac_try="$ac_compile"
38424 case "(($ac_try" in
38425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38426 *) ac_try_echo=$ac_try;;
38427 esac
38428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38429 (eval "$ac_compile") 2>conftest.er1
38430 ac_status=$?
38431 grep -v '^ *+' conftest.er1 >conftest.err
38432 rm -f conftest.er1
38433 cat conftest.err >&5
38434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435 (exit $ac_status); } && {
38436 test -z "$ac_c_werror_flag" ||
38437 test ! -s conftest.err
38438 } && test -s conftest.$ac_objext; then
38439 ac_header_compiler=yes
38440 else
38441 echo "$as_me: failed program was:" >&5
38442 sed 's/^/| /' conftest.$ac_ext >&5
38444 ac_header_compiler=no
38447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38449 echo "${ECHO_T}$ac_header_compiler" >&6; }
38451 # Is the header present?
38452 { echo "$as_me:$LINENO: checking popt.h presence" >&5
38453 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
38454 cat >conftest.$ac_ext <<_ACEOF
38455 /* confdefs.h. */
38456 _ACEOF
38457 cat confdefs.h >>conftest.$ac_ext
38458 cat >>conftest.$ac_ext <<_ACEOF
38459 /* end confdefs.h. */
38460 #include <popt.h>
38461 _ACEOF
38462 if { (ac_try="$ac_cpp conftest.$ac_ext"
38463 case "(($ac_try" in
38464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38465 *) ac_try_echo=$ac_try;;
38466 esac
38467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38469 ac_status=$?
38470 grep -v '^ *+' conftest.er1 >conftest.err
38471 rm -f conftest.er1
38472 cat conftest.err >&5
38473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38474 (exit $ac_status); } >/dev/null && {
38475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38476 test ! -s conftest.err
38477 }; then
38478 ac_header_preproc=yes
38479 else
38480 echo "$as_me: failed program was:" >&5
38481 sed 's/^/| /' conftest.$ac_ext >&5
38483 ac_header_preproc=no
38486 rm -f conftest.err conftest.$ac_ext
38487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38488 echo "${ECHO_T}$ac_header_preproc" >&6; }
38490 # So? What about this header?
38491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38492 yes:no: )
38493 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
38494 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38495 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
38496 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
38497 ac_header_preproc=yes
38499 no:yes:* )
38500 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
38501 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
38502 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
38503 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
38504 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
38505 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
38506 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
38507 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
38508 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
38509 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
38510 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
38511 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
38512 ( cat <<\_ASBOX
38513 ## ------------------------------- ##
38514 ## Report this to www.asterisk.org ##
38515 ## ------------------------------- ##
38516 _ASBOX
38517 ) | sed "s/^/$as_me: WARNING: /" >&2
38519 esac
38520 { echo "$as_me:$LINENO: checking for popt.h" >&5
38521 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38522 if test "${ac_cv_header_popt_h+set}" = set; then
38523 echo $ECHO_N "(cached) $ECHO_C" >&6
38524 else
38525 ac_cv_header_popt_h=$ac_header_preproc
38527 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38528 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38531 if test $ac_cv_header_popt_h = yes; then
38532 POPT_HEADER_FOUND=1
38533 else
38534 POPT_HEADER_FOUND=0
38538 CPPFLAGS="${saved_cppflags}"
38540 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38541 POPT_LIB=""
38542 POPT_INCLUDE=""
38543 else
38544 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38545 POPT_LIB=""
38547 PBX_POPT=1
38548 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38550 cat >>confdefs.h <<_ACEOF
38551 #define HAVE_POPT 1
38552 _ACEOF
38555 cat >>confdefs.h <<_ACEOF
38556 #define HAVE_POPT_VERSION
38557 _ACEOF
38565 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38566 pbxlibdir=""
38567 # if --with-PORTAUDIO=DIR has been specified, use it.
38568 if test "x${PORTAUDIO_DIR}" != "x"; then
38569 if test -d ${PORTAUDIO_DIR}/lib; then
38570 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38571 else
38572 pbxlibdir="-L${PORTAUDIO_DIR}"
38575 pbxfuncname="Pa_GetDeviceCount"
38576 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38577 AST_PORTAUDIO_FOUND=yes
38578 else
38579 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38580 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38581 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38582 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38583 echo $ECHO_N "(cached) $ECHO_C" >&6
38584 else
38585 ac_check_lib_save_LIBS=$LIBS
38586 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38587 cat >conftest.$ac_ext <<_ACEOF
38588 /* confdefs.h. */
38589 _ACEOF
38590 cat confdefs.h >>conftest.$ac_ext
38591 cat >>conftest.$ac_ext <<_ACEOF
38592 /* end confdefs.h. */
38594 /* Override any GCC internal prototype to avoid an error.
38595 Use char because int might match the return type of a GCC
38596 builtin and then its argument prototype would still apply. */
38597 #ifdef __cplusplus
38598 extern "C"
38599 #endif
38600 char ${pbxfuncname} ();
38602 main ()
38604 return ${pbxfuncname} ();
38606 return 0;
38608 _ACEOF
38609 rm -f conftest.$ac_objext conftest$ac_exeext
38610 if { (ac_try="$ac_link"
38611 case "(($ac_try" in
38612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38613 *) ac_try_echo=$ac_try;;
38614 esac
38615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38616 (eval "$ac_link") 2>conftest.er1
38617 ac_status=$?
38618 grep -v '^ *+' conftest.er1 >conftest.err
38619 rm -f conftest.er1
38620 cat conftest.err >&5
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); } && {
38623 test -z "$ac_c_werror_flag" ||
38624 test ! -s conftest.err
38625 } && test -s conftest$ac_exeext &&
38626 $as_test_x conftest$ac_exeext; then
38627 eval "$as_ac_Lib=yes"
38628 else
38629 echo "$as_me: failed program was:" >&5
38630 sed 's/^/| /' conftest.$ac_ext >&5
38632 eval "$as_ac_Lib=no"
38635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38636 conftest$ac_exeext conftest.$ac_ext
38637 LIBS=$ac_check_lib_save_LIBS
38639 ac_res=`eval echo '${'$as_ac_Lib'}'`
38640 { echo "$as_me:$LINENO: result: $ac_res" >&5
38641 echo "${ECHO_T}$ac_res" >&6; }
38642 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38643 AST_PORTAUDIO_FOUND=yes
38644 else
38645 AST_PORTAUDIO_FOUND=no
38650 # now check for the header.
38651 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38652 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38653 # if --with-PORTAUDIO=DIR has been specified, use it.
38654 if test "x${PORTAUDIO_DIR}" != "x"; then
38655 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38657 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38658 if test "xportaudio.h" = "x" ; then # no header, assume found
38659 PORTAUDIO_HEADER_FOUND="1"
38660 else # check for the header
38661 saved_cppflags="${CPPFLAGS}"
38662 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
38663 if test "${ac_cv_header_portaudio_h+set}" = set; then
38664 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38665 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38666 if test "${ac_cv_header_portaudio_h+set}" = set; then
38667 echo $ECHO_N "(cached) $ECHO_C" >&6
38669 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38670 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38671 else
38672 # Is the header compilable?
38673 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38674 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38675 cat >conftest.$ac_ext <<_ACEOF
38676 /* confdefs.h. */
38677 _ACEOF
38678 cat confdefs.h >>conftest.$ac_ext
38679 cat >>conftest.$ac_ext <<_ACEOF
38680 /* end confdefs.h. */
38681 $ac_includes_default
38682 #include <portaudio.h>
38683 _ACEOF
38684 rm -f conftest.$ac_objext
38685 if { (ac_try="$ac_compile"
38686 case "(($ac_try" in
38687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38688 *) ac_try_echo=$ac_try;;
38689 esac
38690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38691 (eval "$ac_compile") 2>conftest.er1
38692 ac_status=$?
38693 grep -v '^ *+' conftest.er1 >conftest.err
38694 rm -f conftest.er1
38695 cat conftest.err >&5
38696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38697 (exit $ac_status); } && {
38698 test -z "$ac_c_werror_flag" ||
38699 test ! -s conftest.err
38700 } && test -s conftest.$ac_objext; then
38701 ac_header_compiler=yes
38702 else
38703 echo "$as_me: failed program was:" >&5
38704 sed 's/^/| /' conftest.$ac_ext >&5
38706 ac_header_compiler=no
38709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38711 echo "${ECHO_T}$ac_header_compiler" >&6; }
38713 # Is the header present?
38714 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38715 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38716 cat >conftest.$ac_ext <<_ACEOF
38717 /* confdefs.h. */
38718 _ACEOF
38719 cat confdefs.h >>conftest.$ac_ext
38720 cat >>conftest.$ac_ext <<_ACEOF
38721 /* end confdefs.h. */
38722 #include <portaudio.h>
38723 _ACEOF
38724 if { (ac_try="$ac_cpp conftest.$ac_ext"
38725 case "(($ac_try" in
38726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38727 *) ac_try_echo=$ac_try;;
38728 esac
38729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38731 ac_status=$?
38732 grep -v '^ *+' conftest.er1 >conftest.err
38733 rm -f conftest.er1
38734 cat conftest.err >&5
38735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736 (exit $ac_status); } >/dev/null && {
38737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38738 test ! -s conftest.err
38739 }; then
38740 ac_header_preproc=yes
38741 else
38742 echo "$as_me: failed program was:" >&5
38743 sed 's/^/| /' conftest.$ac_ext >&5
38745 ac_header_preproc=no
38748 rm -f conftest.err conftest.$ac_ext
38749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38750 echo "${ECHO_T}$ac_header_preproc" >&6; }
38752 # So? What about this header?
38753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38754 yes:no: )
38755 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38756 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38757 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38758 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38759 ac_header_preproc=yes
38761 no:yes:* )
38762 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38763 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38764 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38765 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38766 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38767 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38768 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38769 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38770 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38771 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38772 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38773 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38774 ( cat <<\_ASBOX
38775 ## ------------------------------- ##
38776 ## Report this to www.asterisk.org ##
38777 ## ------------------------------- ##
38778 _ASBOX
38779 ) | sed "s/^/$as_me: WARNING: /" >&2
38781 esac
38782 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38783 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38784 if test "${ac_cv_header_portaudio_h+set}" = set; then
38785 echo $ECHO_N "(cached) $ECHO_C" >&6
38786 else
38787 ac_cv_header_portaudio_h=$ac_header_preproc
38789 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38790 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38793 if test $ac_cv_header_portaudio_h = yes; then
38794 PORTAUDIO_HEADER_FOUND=1
38795 else
38796 PORTAUDIO_HEADER_FOUND=0
38800 CPPFLAGS="${saved_cppflags}"
38802 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38803 PORTAUDIO_LIB=""
38804 PORTAUDIO_INCLUDE=""
38805 else
38806 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38807 PORTAUDIO_LIB=""
38809 PBX_PORTAUDIO=1
38810 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38812 cat >>confdefs.h <<_ACEOF
38813 #define HAVE_PORTAUDIO 1
38814 _ACEOF
38817 cat >>confdefs.h <<_ACEOF
38818 #define HAVE_PORTAUDIO_VERSION
38819 _ACEOF
38827 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38828 pbxlibdir=""
38829 # if --with-PRI=DIR has been specified, use it.
38830 if test "x${PRI_DIR}" != "x"; then
38831 if test -d ${PRI_DIR}/lib; then
38832 pbxlibdir="-L${PRI_DIR}/lib"
38833 else
38834 pbxlibdir="-L${PRI_DIR}"
38837 pbxfuncname="pri_get_version"
38838 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38839 AST_PRI_FOUND=yes
38840 else
38841 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38842 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38843 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38844 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38845 echo $ECHO_N "(cached) $ECHO_C" >&6
38846 else
38847 ac_check_lib_save_LIBS=$LIBS
38848 LIBS="-lpri ${pbxlibdir} $LIBS"
38849 cat >conftest.$ac_ext <<_ACEOF
38850 /* confdefs.h. */
38851 _ACEOF
38852 cat confdefs.h >>conftest.$ac_ext
38853 cat >>conftest.$ac_ext <<_ACEOF
38854 /* end confdefs.h. */
38856 /* Override any GCC internal prototype to avoid an error.
38857 Use char because int might match the return type of a GCC
38858 builtin and then its argument prototype would still apply. */
38859 #ifdef __cplusplus
38860 extern "C"
38861 #endif
38862 char ${pbxfuncname} ();
38864 main ()
38866 return ${pbxfuncname} ();
38868 return 0;
38870 _ACEOF
38871 rm -f conftest.$ac_objext conftest$ac_exeext
38872 if { (ac_try="$ac_link"
38873 case "(($ac_try" in
38874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38875 *) ac_try_echo=$ac_try;;
38876 esac
38877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38878 (eval "$ac_link") 2>conftest.er1
38879 ac_status=$?
38880 grep -v '^ *+' conftest.er1 >conftest.err
38881 rm -f conftest.er1
38882 cat conftest.err >&5
38883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38884 (exit $ac_status); } && {
38885 test -z "$ac_c_werror_flag" ||
38886 test ! -s conftest.err
38887 } && test -s conftest$ac_exeext &&
38888 $as_test_x conftest$ac_exeext; then
38889 eval "$as_ac_Lib=yes"
38890 else
38891 echo "$as_me: failed program was:" >&5
38892 sed 's/^/| /' conftest.$ac_ext >&5
38894 eval "$as_ac_Lib=no"
38897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38898 conftest$ac_exeext conftest.$ac_ext
38899 LIBS=$ac_check_lib_save_LIBS
38901 ac_res=`eval echo '${'$as_ac_Lib'}'`
38902 { echo "$as_me:$LINENO: result: $ac_res" >&5
38903 echo "${ECHO_T}$ac_res" >&6; }
38904 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38905 AST_PRI_FOUND=yes
38906 else
38907 AST_PRI_FOUND=no
38912 # now check for the header.
38913 if test "${AST_PRI_FOUND}" = "yes"; then
38914 PRI_LIB="${pbxlibdir} -lpri "
38915 # if --with-PRI=DIR has been specified, use it.
38916 if test "x${PRI_DIR}" != "x"; then
38917 PRI_INCLUDE="-I${PRI_DIR}/include"
38919 PRI_INCLUDE="${PRI_INCLUDE} "
38920 if test "xlibpri.h" = "x" ; then # no header, assume found
38921 PRI_HEADER_FOUND="1"
38922 else # check for the header
38923 saved_cppflags="${CPPFLAGS}"
38924 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
38925 if test "${ac_cv_header_libpri_h+set}" = set; then
38926 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38927 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38928 if test "${ac_cv_header_libpri_h+set}" = set; then
38929 echo $ECHO_N "(cached) $ECHO_C" >&6
38931 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38932 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38933 else
38934 # Is the header compilable?
38935 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38936 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38937 cat >conftest.$ac_ext <<_ACEOF
38938 /* confdefs.h. */
38939 _ACEOF
38940 cat confdefs.h >>conftest.$ac_ext
38941 cat >>conftest.$ac_ext <<_ACEOF
38942 /* end confdefs.h. */
38943 $ac_includes_default
38944 #include <libpri.h>
38945 _ACEOF
38946 rm -f conftest.$ac_objext
38947 if { (ac_try="$ac_compile"
38948 case "(($ac_try" in
38949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38950 *) ac_try_echo=$ac_try;;
38951 esac
38952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38953 (eval "$ac_compile") 2>conftest.er1
38954 ac_status=$?
38955 grep -v '^ *+' conftest.er1 >conftest.err
38956 rm -f conftest.er1
38957 cat conftest.err >&5
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); } && {
38960 test -z "$ac_c_werror_flag" ||
38961 test ! -s conftest.err
38962 } && test -s conftest.$ac_objext; then
38963 ac_header_compiler=yes
38964 else
38965 echo "$as_me: failed program was:" >&5
38966 sed 's/^/| /' conftest.$ac_ext >&5
38968 ac_header_compiler=no
38971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38973 echo "${ECHO_T}$ac_header_compiler" >&6; }
38975 # Is the header present?
38976 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
38977 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
38978 cat >conftest.$ac_ext <<_ACEOF
38979 /* confdefs.h. */
38980 _ACEOF
38981 cat confdefs.h >>conftest.$ac_ext
38982 cat >>conftest.$ac_ext <<_ACEOF
38983 /* end confdefs.h. */
38984 #include <libpri.h>
38985 _ACEOF
38986 if { (ac_try="$ac_cpp conftest.$ac_ext"
38987 case "(($ac_try" in
38988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38989 *) ac_try_echo=$ac_try;;
38990 esac
38991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38993 ac_status=$?
38994 grep -v '^ *+' conftest.er1 >conftest.err
38995 rm -f conftest.er1
38996 cat conftest.err >&5
38997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38998 (exit $ac_status); } >/dev/null && {
38999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39000 test ! -s conftest.err
39001 }; then
39002 ac_header_preproc=yes
39003 else
39004 echo "$as_me: failed program was:" >&5
39005 sed 's/^/| /' conftest.$ac_ext >&5
39007 ac_header_preproc=no
39010 rm -f conftest.err conftest.$ac_ext
39011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39012 echo "${ECHO_T}$ac_header_preproc" >&6; }
39014 # So? What about this header?
39015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39016 yes:no: )
39017 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
39018 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39019 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
39020 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
39021 ac_header_preproc=yes
39023 no:yes:* )
39024 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
39025 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
39026 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
39027 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
39028 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
39029 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
39030 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
39031 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
39032 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
39033 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
39034 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
39035 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
39036 ( cat <<\_ASBOX
39037 ## ------------------------------- ##
39038 ## Report this to www.asterisk.org ##
39039 ## ------------------------------- ##
39040 _ASBOX
39041 ) | sed "s/^/$as_me: WARNING: /" >&2
39043 esac
39044 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39045 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39046 if test "${ac_cv_header_libpri_h+set}" = set; then
39047 echo $ECHO_N "(cached) $ECHO_C" >&6
39048 else
39049 ac_cv_header_libpri_h=$ac_header_preproc
39051 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39052 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39055 if test $ac_cv_header_libpri_h = yes; then
39056 PRI_HEADER_FOUND=1
39057 else
39058 PRI_HEADER_FOUND=0
39062 CPPFLAGS="${saved_cppflags}"
39064 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
39065 PRI_LIB=""
39066 PRI_INCLUDE=""
39067 else
39068 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39069 PRI_LIB=""
39071 PBX_PRI=1
39072 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39074 cat >>confdefs.h <<_ACEOF
39075 #define HAVE_PRI 1
39076 _ACEOF
39079 cat >>confdefs.h <<_ACEOF
39080 #define HAVE_PRI_VERSION
39081 _ACEOF
39089 if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
39090 pbxlibdir=""
39091 # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
39092 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
39093 if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
39094 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
39095 else
39096 pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
39099 pbxfuncname="pri_set_inbanddisconnect"
39100 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39101 AST_PRI_INBANDDISCONNECT_FOUND=yes
39102 else
39103 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
39104 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
39105 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
39106 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39107 echo $ECHO_N "(cached) $ECHO_C" >&6
39108 else
39109 ac_check_lib_save_LIBS=$LIBS
39110 LIBS="-lpri ${pbxlibdir} $LIBS"
39111 cat >conftest.$ac_ext <<_ACEOF
39112 /* confdefs.h. */
39113 _ACEOF
39114 cat confdefs.h >>conftest.$ac_ext
39115 cat >>conftest.$ac_ext <<_ACEOF
39116 /* end confdefs.h. */
39118 /* Override any GCC internal prototype to avoid an error.
39119 Use char because int might match the return type of a GCC
39120 builtin and then its argument prototype would still apply. */
39121 #ifdef __cplusplus
39122 extern "C"
39123 #endif
39124 char ${pbxfuncname} ();
39126 main ()
39128 return ${pbxfuncname} ();
39130 return 0;
39132 _ACEOF
39133 rm -f conftest.$ac_objext conftest$ac_exeext
39134 if { (ac_try="$ac_link"
39135 case "(($ac_try" in
39136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39137 *) ac_try_echo=$ac_try;;
39138 esac
39139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39140 (eval "$ac_link") 2>conftest.er1
39141 ac_status=$?
39142 grep -v '^ *+' conftest.er1 >conftest.err
39143 rm -f conftest.er1
39144 cat conftest.err >&5
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); } && {
39147 test -z "$ac_c_werror_flag" ||
39148 test ! -s conftest.err
39149 } && test -s conftest$ac_exeext &&
39150 $as_test_x conftest$ac_exeext; then
39151 eval "$as_ac_Lib=yes"
39152 else
39153 echo "$as_me: failed program was:" >&5
39154 sed 's/^/| /' conftest.$ac_ext >&5
39156 eval "$as_ac_Lib=no"
39159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39160 conftest$ac_exeext conftest.$ac_ext
39161 LIBS=$ac_check_lib_save_LIBS
39163 ac_res=`eval echo '${'$as_ac_Lib'}'`
39164 { echo "$as_me:$LINENO: result: $ac_res" >&5
39165 echo "${ECHO_T}$ac_res" >&6; }
39166 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39167 AST_PRI_INBANDDISCONNECT_FOUND=yes
39168 else
39169 AST_PRI_INBANDDISCONNECT_FOUND=no
39174 # now check for the header.
39175 if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
39176 PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
39177 # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
39178 if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
39179 PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
39181 PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
39182 if test "xlibpri.h" = "x" ; then # no header, assume found
39183 PRI_INBANDDISCONNECT_HEADER_FOUND="1"
39184 else # check for the header
39185 saved_cppflags="${CPPFLAGS}"
39186 CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
39187 if test "${ac_cv_header_libpri_h+set}" = set; then
39188 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39189 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39190 if test "${ac_cv_header_libpri_h+set}" = set; then
39191 echo $ECHO_N "(cached) $ECHO_C" >&6
39193 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39194 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39195 else
39196 # Is the header compilable?
39197 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
39198 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
39199 cat >conftest.$ac_ext <<_ACEOF
39200 /* confdefs.h. */
39201 _ACEOF
39202 cat confdefs.h >>conftest.$ac_ext
39203 cat >>conftest.$ac_ext <<_ACEOF
39204 /* end confdefs.h. */
39205 $ac_includes_default
39206 #include <libpri.h>
39207 _ACEOF
39208 rm -f conftest.$ac_objext
39209 if { (ac_try="$ac_compile"
39210 case "(($ac_try" in
39211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39212 *) ac_try_echo=$ac_try;;
39213 esac
39214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39215 (eval "$ac_compile") 2>conftest.er1
39216 ac_status=$?
39217 grep -v '^ *+' conftest.er1 >conftest.err
39218 rm -f conftest.er1
39219 cat conftest.err >&5
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); } && {
39222 test -z "$ac_c_werror_flag" ||
39223 test ! -s conftest.err
39224 } && test -s conftest.$ac_objext; then
39225 ac_header_compiler=yes
39226 else
39227 echo "$as_me: failed program was:" >&5
39228 sed 's/^/| /' conftest.$ac_ext >&5
39230 ac_header_compiler=no
39233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39235 echo "${ECHO_T}$ac_header_compiler" >&6; }
39237 # Is the header present?
39238 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
39239 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
39240 cat >conftest.$ac_ext <<_ACEOF
39241 /* confdefs.h. */
39242 _ACEOF
39243 cat confdefs.h >>conftest.$ac_ext
39244 cat >>conftest.$ac_ext <<_ACEOF
39245 /* end confdefs.h. */
39246 #include <libpri.h>
39247 _ACEOF
39248 if { (ac_try="$ac_cpp conftest.$ac_ext"
39249 case "(($ac_try" in
39250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39251 *) ac_try_echo=$ac_try;;
39252 esac
39253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39255 ac_status=$?
39256 grep -v '^ *+' conftest.er1 >conftest.err
39257 rm -f conftest.er1
39258 cat conftest.err >&5
39259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39260 (exit $ac_status); } >/dev/null && {
39261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39262 test ! -s conftest.err
39263 }; then
39264 ac_header_preproc=yes
39265 else
39266 echo "$as_me: failed program was:" >&5
39267 sed 's/^/| /' conftest.$ac_ext >&5
39269 ac_header_preproc=no
39272 rm -f conftest.err conftest.$ac_ext
39273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39274 echo "${ECHO_T}$ac_header_preproc" >&6; }
39276 # So? What about this header?
39277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39278 yes:no: )
39279 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
39280 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39281 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
39282 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
39283 ac_header_preproc=yes
39285 no:yes:* )
39286 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
39287 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
39288 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
39289 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
39290 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
39291 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
39292 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
39293 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
39294 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
39295 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
39296 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
39297 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
39298 ( cat <<\_ASBOX
39299 ## ------------------------------- ##
39300 ## Report this to www.asterisk.org ##
39301 ## ------------------------------- ##
39302 _ASBOX
39303 ) | sed "s/^/$as_me: WARNING: /" >&2
39305 esac
39306 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39307 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39308 if test "${ac_cv_header_libpri_h+set}" = set; then
39309 echo $ECHO_N "(cached) $ECHO_C" >&6
39310 else
39311 ac_cv_header_libpri_h=$ac_header_preproc
39313 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39314 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39317 if test $ac_cv_header_libpri_h = yes; then
39318 PRI_INBANDDISCONNECT_HEADER_FOUND=1
39319 else
39320 PRI_INBANDDISCONNECT_HEADER_FOUND=0
39324 CPPFLAGS="${saved_cppflags}"
39326 if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
39327 PRI_INBANDDISCONNECT_LIB=""
39328 PRI_INBANDDISCONNECT_INCLUDE=""
39329 else
39330 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39331 PRI_INBANDDISCONNECT_LIB=""
39333 PBX_PRI_INBANDDISCONNECT=1
39334 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39336 cat >>confdefs.h <<_ACEOF
39337 #define HAVE_PRI_INBANDDISCONNECT 1
39338 _ACEOF
39341 cat >>confdefs.h <<_ACEOF
39342 #define HAVE_PRI_INBANDDISCONNECT_VERSION
39343 _ACEOF
39351 if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
39352 pbxlibdir=""
39353 # if --with-RESAMPLE=DIR has been specified, use it.
39354 if test "x${RESAMPLE_DIR}" != "x"; then
39355 if test -d ${RESAMPLE_DIR}/lib; then
39356 pbxlibdir="-L${RESAMPLE_DIR}/lib"
39357 else
39358 pbxlibdir="-L${RESAMPLE_DIR}"
39361 pbxfuncname="resample_open"
39362 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39363 AST_RESAMPLE_FOUND=yes
39364 else
39365 as_ac_Lib=`echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
39366 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lresample" >&5
39367 echo $ECHO_N "checking for ${pbxfuncname} in -lresample... $ECHO_C" >&6; }
39368 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39369 echo $ECHO_N "(cached) $ECHO_C" >&6
39370 else
39371 ac_check_lib_save_LIBS=$LIBS
39372 LIBS="-lresample ${pbxlibdir} -lm $LIBS"
39373 cat >conftest.$ac_ext <<_ACEOF
39374 /* confdefs.h. */
39375 _ACEOF
39376 cat confdefs.h >>conftest.$ac_ext
39377 cat >>conftest.$ac_ext <<_ACEOF
39378 /* end confdefs.h. */
39380 /* Override any GCC internal prototype to avoid an error.
39381 Use char because int might match the return type of a GCC
39382 builtin and then its argument prototype would still apply. */
39383 #ifdef __cplusplus
39384 extern "C"
39385 #endif
39386 char ${pbxfuncname} ();
39388 main ()
39390 return ${pbxfuncname} ();
39392 return 0;
39394 _ACEOF
39395 rm -f conftest.$ac_objext conftest$ac_exeext
39396 if { (ac_try="$ac_link"
39397 case "(($ac_try" in
39398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39399 *) ac_try_echo=$ac_try;;
39400 esac
39401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39402 (eval "$ac_link") 2>conftest.er1
39403 ac_status=$?
39404 grep -v '^ *+' conftest.er1 >conftest.err
39405 rm -f conftest.er1
39406 cat conftest.err >&5
39407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408 (exit $ac_status); } && {
39409 test -z "$ac_c_werror_flag" ||
39410 test ! -s conftest.err
39411 } && test -s conftest$ac_exeext &&
39412 $as_test_x conftest$ac_exeext; then
39413 eval "$as_ac_Lib=yes"
39414 else
39415 echo "$as_me: failed program was:" >&5
39416 sed 's/^/| /' conftest.$ac_ext >&5
39418 eval "$as_ac_Lib=no"
39421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39422 conftest$ac_exeext conftest.$ac_ext
39423 LIBS=$ac_check_lib_save_LIBS
39425 ac_res=`eval echo '${'$as_ac_Lib'}'`
39426 { echo "$as_me:$LINENO: result: $ac_res" >&5
39427 echo "${ECHO_T}$ac_res" >&6; }
39428 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39429 AST_RESAMPLE_FOUND=yes
39430 else
39431 AST_RESAMPLE_FOUND=no
39436 # now check for the header.
39437 if test "${AST_RESAMPLE_FOUND}" = "yes"; then
39438 RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
39439 # if --with-RESAMPLE=DIR has been specified, use it.
39440 if test "x${RESAMPLE_DIR}" != "x"; then
39441 RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
39443 RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
39444 if test "xlibresample.h" = "x" ; then # no header, assume found
39445 RESAMPLE_HEADER_FOUND="1"
39446 else # check for the header
39447 saved_cppflags="${CPPFLAGS}"
39448 CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
39449 if test "${ac_cv_header_libresample_h+set}" = set; then
39450 { echo "$as_me:$LINENO: checking for libresample.h" >&5
39451 echo $ECHO_N "checking for libresample.h... $ECHO_C" >&6; }
39452 if test "${ac_cv_header_libresample_h+set}" = set; then
39453 echo $ECHO_N "(cached) $ECHO_C" >&6
39455 { echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
39456 echo "${ECHO_T}$ac_cv_header_libresample_h" >&6; }
39457 else
39458 # Is the header compilable?
39459 { echo "$as_me:$LINENO: checking libresample.h usability" >&5
39460 echo $ECHO_N "checking libresample.h usability... $ECHO_C" >&6; }
39461 cat >conftest.$ac_ext <<_ACEOF
39462 /* confdefs.h. */
39463 _ACEOF
39464 cat confdefs.h >>conftest.$ac_ext
39465 cat >>conftest.$ac_ext <<_ACEOF
39466 /* end confdefs.h. */
39467 $ac_includes_default
39468 #include <libresample.h>
39469 _ACEOF
39470 rm -f conftest.$ac_objext
39471 if { (ac_try="$ac_compile"
39472 case "(($ac_try" in
39473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39474 *) ac_try_echo=$ac_try;;
39475 esac
39476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39477 (eval "$ac_compile") 2>conftest.er1
39478 ac_status=$?
39479 grep -v '^ *+' conftest.er1 >conftest.err
39480 rm -f conftest.er1
39481 cat conftest.err >&5
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); } && {
39484 test -z "$ac_c_werror_flag" ||
39485 test ! -s conftest.err
39486 } && test -s conftest.$ac_objext; then
39487 ac_header_compiler=yes
39488 else
39489 echo "$as_me: failed program was:" >&5
39490 sed 's/^/| /' conftest.$ac_ext >&5
39492 ac_header_compiler=no
39495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39497 echo "${ECHO_T}$ac_header_compiler" >&6; }
39499 # Is the header present?
39500 { echo "$as_me:$LINENO: checking libresample.h presence" >&5
39501 echo $ECHO_N "checking libresample.h presence... $ECHO_C" >&6; }
39502 cat >conftest.$ac_ext <<_ACEOF
39503 /* confdefs.h. */
39504 _ACEOF
39505 cat confdefs.h >>conftest.$ac_ext
39506 cat >>conftest.$ac_ext <<_ACEOF
39507 /* end confdefs.h. */
39508 #include <libresample.h>
39509 _ACEOF
39510 if { (ac_try="$ac_cpp conftest.$ac_ext"
39511 case "(($ac_try" in
39512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39513 *) ac_try_echo=$ac_try;;
39514 esac
39515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39517 ac_status=$?
39518 grep -v '^ *+' conftest.er1 >conftest.err
39519 rm -f conftest.er1
39520 cat conftest.err >&5
39521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522 (exit $ac_status); } >/dev/null && {
39523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39524 test ! -s conftest.err
39525 }; then
39526 ac_header_preproc=yes
39527 else
39528 echo "$as_me: failed program was:" >&5
39529 sed 's/^/| /' conftest.$ac_ext >&5
39531 ac_header_preproc=no
39534 rm -f conftest.err conftest.$ac_ext
39535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39536 echo "${ECHO_T}$ac_header_preproc" >&6; }
39538 # So? What about this header?
39539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39540 yes:no: )
39541 { echo "$as_me:$LINENO: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&5
39542 echo "$as_me: WARNING: libresample.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39543 { echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the compiler's result" >&5
39544 echo "$as_me: WARNING: libresample.h: proceeding with the compiler's result" >&2;}
39545 ac_header_preproc=yes
39547 no:yes:* )
39548 { echo "$as_me:$LINENO: WARNING: libresample.h: present but cannot be compiled" >&5
39549 echo "$as_me: WARNING: libresample.h: present but cannot be compiled" >&2;}
39550 { echo "$as_me:$LINENO: WARNING: libresample.h: check for missing prerequisite headers?" >&5
39551 echo "$as_me: WARNING: libresample.h: check for missing prerequisite headers?" >&2;}
39552 { echo "$as_me:$LINENO: WARNING: libresample.h: see the Autoconf documentation" >&5
39553 echo "$as_me: WARNING: libresample.h: see the Autoconf documentation" >&2;}
39554 { echo "$as_me:$LINENO: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&5
39555 echo "$as_me: WARNING: libresample.h: section \"Present But Cannot Be Compiled\"" >&2;}
39556 { echo "$as_me:$LINENO: WARNING: libresample.h: proceeding with the preprocessor's result" >&5
39557 echo "$as_me: WARNING: libresample.h: proceeding with the preprocessor's result" >&2;}
39558 { echo "$as_me:$LINENO: WARNING: libresample.h: in the future, the compiler will take precedence" >&5
39559 echo "$as_me: WARNING: libresample.h: in the future, the compiler will take precedence" >&2;}
39560 ( cat <<\_ASBOX
39561 ## ------------------------------- ##
39562 ## Report this to www.asterisk.org ##
39563 ## ------------------------------- ##
39564 _ASBOX
39565 ) | sed "s/^/$as_me: WARNING: /" >&2
39567 esac
39568 { echo "$as_me:$LINENO: checking for libresample.h" >&5
39569 echo $ECHO_N "checking for libresample.h... $ECHO_C" >&6; }
39570 if test "${ac_cv_header_libresample_h+set}" = set; then
39571 echo $ECHO_N "(cached) $ECHO_C" >&6
39572 else
39573 ac_cv_header_libresample_h=$ac_header_preproc
39575 { echo "$as_me:$LINENO: result: $ac_cv_header_libresample_h" >&5
39576 echo "${ECHO_T}$ac_cv_header_libresample_h" >&6; }
39579 if test $ac_cv_header_libresample_h = yes; then
39580 RESAMPLE_HEADER_FOUND=1
39581 else
39582 RESAMPLE_HEADER_FOUND=0
39586 CPPFLAGS="${saved_cppflags}"
39588 if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
39589 RESAMPLE_LIB=""
39590 RESAMPLE_INCLUDE=""
39591 else
39592 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39593 RESAMPLE_LIB=""
39595 PBX_RESAMPLE=1
39596 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39598 cat >>confdefs.h <<_ACEOF
39599 #define HAVE_RESAMPLE 1
39600 _ACEOF
39603 cat >>confdefs.h <<_ACEOF
39604 #define HAVE_RESAMPLE_VERSION
39605 _ACEOF
39613 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39614 if test "xminimum version of SpanDSP" != "x"; then
39615 { echo "$as_me:$LINENO: checking for minimum version of SpanDSP" >&5
39616 echo $ECHO_N "checking for minimum version of SpanDSP... $ECHO_C" >&6; }
39617 else
39618 { echo "$as_me:$LINENO: checking if \"
39619 #if SPANDSP_RELEASE_DATE < 20080516
39620 #error \"spandsp 0.0.5 or greater is required\"
39621 #endif
39622 \" compiles using spandsp/version.h" >&5
39623 echo $ECHO_N "checking if \"
39624 #if SPANDSP_RELEASE_DATE < 20080516
39625 #error \"spandsp 0.0.5 or greater is required\"
39626 #endif
39627 \" compiles using spandsp/version.h... $ECHO_C" >&6; }
39629 saved_cppflags="${CPPFLAGS}"
39630 if test "x${SPANDSP_DIR}" != "x"; then
39631 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39633 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
39635 cat >conftest.$ac_ext <<_ACEOF
39636 /* confdefs.h. */
39637 _ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h. */
39641 #include <spandsp/version.h>
39643 main ()
39646 #if SPANDSP_RELEASE_DATE < 20080516
39647 #error "spandsp 0.0.5 or greater is required"
39648 #endif
39652 return 0;
39654 _ACEOF
39655 rm -f conftest.$ac_objext
39656 if { (ac_try="$ac_compile"
39657 case "(($ac_try" in
39658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39659 *) ac_try_echo=$ac_try;;
39660 esac
39661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39662 (eval "$ac_compile") 2>conftest.er1
39663 ac_status=$?
39664 grep -v '^ *+' conftest.er1 >conftest.err
39665 rm -f conftest.er1
39666 cat conftest.err >&5
39667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668 (exit $ac_status); } && {
39669 test -z "$ac_c_werror_flag" ||
39670 test ! -s conftest.err
39671 } && test -s conftest.$ac_objext; then
39672 { echo "$as_me:$LINENO: result: yes" >&5
39673 echo "${ECHO_T}yes" >&6; }
39674 PBX_SPANDSP=1
39676 cat >>confdefs.h <<\_ACEOF
39677 #define HAVE_SPANDSP 1
39678 _ACEOF
39681 cat >>confdefs.h <<\_ACEOF
39682 #define HAVE_SPANDSP_VERSION
39683 _ACEOF
39686 else
39687 echo "$as_me: failed program was:" >&5
39688 sed 's/^/| /' conftest.$ac_ext >&5
39690 { echo "$as_me:$LINENO: result: no" >&5
39691 echo "${ECHO_T}no" >&6; }
39695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39696 CPPFLAGS="${saved_cppflags}"
39700 if test "x${PBX_SPANDSP}" = "x1" ; then
39701 # We found the correct version in the header, now let's make sure it links
39702 # properly, and that libtiff is available
39703 PBX_SPANDSP=0
39705 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39706 pbxlibdir=""
39707 # if --with-SPANDSP=DIR has been specified, use it.
39708 if test "x${SPANDSP_DIR}" != "x"; then
39709 if test -d ${SPANDSP_DIR}/lib; then
39710 pbxlibdir="-L${SPANDSP_DIR}/lib"
39711 else
39712 pbxlibdir="-L${SPANDSP_DIR}"
39715 pbxfuncname="span_set_message_handler"
39716 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39717 AST_SPANDSP_FOUND=yes
39718 else
39719 as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
39720 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
39721 echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
39722 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39723 echo $ECHO_N "(cached) $ECHO_C" >&6
39724 else
39725 ac_check_lib_save_LIBS=$LIBS
39726 LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
39727 cat >conftest.$ac_ext <<_ACEOF
39728 /* confdefs.h. */
39729 _ACEOF
39730 cat confdefs.h >>conftest.$ac_ext
39731 cat >>conftest.$ac_ext <<_ACEOF
39732 /* end confdefs.h. */
39734 /* Override any GCC internal prototype to avoid an error.
39735 Use char because int might match the return type of a GCC
39736 builtin and then its argument prototype would still apply. */
39737 #ifdef __cplusplus
39738 extern "C"
39739 #endif
39740 char ${pbxfuncname} ();
39742 main ()
39744 return ${pbxfuncname} ();
39746 return 0;
39748 _ACEOF
39749 rm -f conftest.$ac_objext conftest$ac_exeext
39750 if { (ac_try="$ac_link"
39751 case "(($ac_try" in
39752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39753 *) ac_try_echo=$ac_try;;
39754 esac
39755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39756 (eval "$ac_link") 2>conftest.er1
39757 ac_status=$?
39758 grep -v '^ *+' conftest.er1 >conftest.err
39759 rm -f conftest.er1
39760 cat conftest.err >&5
39761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39762 (exit $ac_status); } && {
39763 test -z "$ac_c_werror_flag" ||
39764 test ! -s conftest.err
39765 } && test -s conftest$ac_exeext &&
39766 $as_test_x conftest$ac_exeext; then
39767 eval "$as_ac_Lib=yes"
39768 else
39769 echo "$as_me: failed program was:" >&5
39770 sed 's/^/| /' conftest.$ac_ext >&5
39772 eval "$as_ac_Lib=no"
39775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39776 conftest$ac_exeext conftest.$ac_ext
39777 LIBS=$ac_check_lib_save_LIBS
39779 ac_res=`eval echo '${'$as_ac_Lib'}'`
39780 { echo "$as_me:$LINENO: result: $ac_res" >&5
39781 echo "${ECHO_T}$ac_res" >&6; }
39782 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39783 AST_SPANDSP_FOUND=yes
39784 else
39785 AST_SPANDSP_FOUND=no
39790 # now check for the header.
39791 if test "${AST_SPANDSP_FOUND}" = "yes"; then
39792 SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
39793 # if --with-SPANDSP=DIR has been specified, use it.
39794 if test "x${SPANDSP_DIR}" != "x"; then
39795 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39797 SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
39798 if test "xspandsp.h" = "x" ; then # no header, assume found
39799 SPANDSP_HEADER_FOUND="1"
39800 else # check for the header
39801 saved_cppflags="${CPPFLAGS}"
39802 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
39803 if test "${ac_cv_header_spandsp_h+set}" = set; then
39804 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39805 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39806 if test "${ac_cv_header_spandsp_h+set}" = set; then
39807 echo $ECHO_N "(cached) $ECHO_C" >&6
39809 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39810 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39811 else
39812 # Is the header compilable?
39813 { echo "$as_me:$LINENO: checking spandsp.h usability" >&5
39814 echo $ECHO_N "checking spandsp.h usability... $ECHO_C" >&6; }
39815 cat >conftest.$ac_ext <<_ACEOF
39816 /* confdefs.h. */
39817 _ACEOF
39818 cat confdefs.h >>conftest.$ac_ext
39819 cat >>conftest.$ac_ext <<_ACEOF
39820 /* end confdefs.h. */
39821 $ac_includes_default
39822 #include <spandsp.h>
39823 _ACEOF
39824 rm -f conftest.$ac_objext
39825 if { (ac_try="$ac_compile"
39826 case "(($ac_try" in
39827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39828 *) ac_try_echo=$ac_try;;
39829 esac
39830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39831 (eval "$ac_compile") 2>conftest.er1
39832 ac_status=$?
39833 grep -v '^ *+' conftest.er1 >conftest.err
39834 rm -f conftest.er1
39835 cat conftest.err >&5
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); } && {
39838 test -z "$ac_c_werror_flag" ||
39839 test ! -s conftest.err
39840 } && test -s conftest.$ac_objext; then
39841 ac_header_compiler=yes
39842 else
39843 echo "$as_me: failed program was:" >&5
39844 sed 's/^/| /' conftest.$ac_ext >&5
39846 ac_header_compiler=no
39849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39851 echo "${ECHO_T}$ac_header_compiler" >&6; }
39853 # Is the header present?
39854 { echo "$as_me:$LINENO: checking spandsp.h presence" >&5
39855 echo $ECHO_N "checking spandsp.h presence... $ECHO_C" >&6; }
39856 cat >conftest.$ac_ext <<_ACEOF
39857 /* confdefs.h. */
39858 _ACEOF
39859 cat confdefs.h >>conftest.$ac_ext
39860 cat >>conftest.$ac_ext <<_ACEOF
39861 /* end confdefs.h. */
39862 #include <spandsp.h>
39863 _ACEOF
39864 if { (ac_try="$ac_cpp conftest.$ac_ext"
39865 case "(($ac_try" in
39866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39867 *) ac_try_echo=$ac_try;;
39868 esac
39869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39871 ac_status=$?
39872 grep -v '^ *+' conftest.er1 >conftest.err
39873 rm -f conftest.er1
39874 cat conftest.err >&5
39875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39876 (exit $ac_status); } >/dev/null && {
39877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39878 test ! -s conftest.err
39879 }; then
39880 ac_header_preproc=yes
39881 else
39882 echo "$as_me: failed program was:" >&5
39883 sed 's/^/| /' conftest.$ac_ext >&5
39885 ac_header_preproc=no
39888 rm -f conftest.err conftest.$ac_ext
39889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39890 echo "${ECHO_T}$ac_header_preproc" >&6; }
39892 # So? What about this header?
39893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39894 yes:no: )
39895 { echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
39896 echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39897 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
39898 echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
39899 ac_header_preproc=yes
39901 no:yes:* )
39902 { echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
39903 echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
39904 { echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
39905 echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
39906 { echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
39907 echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
39908 { echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
39909 echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
39910 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
39911 echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
39912 { echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
39913 echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
39914 ( cat <<\_ASBOX
39915 ## ------------------------------- ##
39916 ## Report this to www.asterisk.org ##
39917 ## ------------------------------- ##
39918 _ASBOX
39919 ) | sed "s/^/$as_me: WARNING: /" >&2
39921 esac
39922 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39923 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39924 if test "${ac_cv_header_spandsp_h+set}" = set; then
39925 echo $ECHO_N "(cached) $ECHO_C" >&6
39926 else
39927 ac_cv_header_spandsp_h=$ac_header_preproc
39929 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39930 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39933 if test $ac_cv_header_spandsp_h = yes; then
39934 SPANDSP_HEADER_FOUND=1
39935 else
39936 SPANDSP_HEADER_FOUND=0
39940 CPPFLAGS="${saved_cppflags}"
39942 if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
39943 SPANDSP_LIB=""
39944 SPANDSP_INCLUDE=""
39945 else
39946 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39947 SPANDSP_LIB=""
39949 PBX_SPANDSP=1
39950 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39952 cat >>confdefs.h <<_ACEOF
39953 #define HAVE_SPANDSP 1
39954 _ACEOF
39957 cat >>confdefs.h <<_ACEOF
39958 #define HAVE_SPANDSP_VERSION
39959 _ACEOF
39968 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
39969 pbxlibdir=""
39970 # if --with-SS7=DIR has been specified, use it.
39971 if test "x${SS7_DIR}" != "x"; then
39972 if test -d ${SS7_DIR}/lib; then
39973 pbxlibdir="-L${SS7_DIR}/lib"
39974 else
39975 pbxlibdir="-L${SS7_DIR}"
39978 pbxfuncname="ss7_pollflags"
39979 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39980 AST_SS7_FOUND=yes
39981 else
39982 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
39983 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
39984 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
39985 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39986 echo $ECHO_N "(cached) $ECHO_C" >&6
39987 else
39988 ac_check_lib_save_LIBS=$LIBS
39989 LIBS="-lss7 ${pbxlibdir} $LIBS"
39990 cat >conftest.$ac_ext <<_ACEOF
39991 /* confdefs.h. */
39992 _ACEOF
39993 cat confdefs.h >>conftest.$ac_ext
39994 cat >>conftest.$ac_ext <<_ACEOF
39995 /* end confdefs.h. */
39997 /* Override any GCC internal prototype to avoid an error.
39998 Use char because int might match the return type of a GCC
39999 builtin and then its argument prototype would still apply. */
40000 #ifdef __cplusplus
40001 extern "C"
40002 #endif
40003 char ${pbxfuncname} ();
40005 main ()
40007 return ${pbxfuncname} ();
40009 return 0;
40011 _ACEOF
40012 rm -f conftest.$ac_objext conftest$ac_exeext
40013 if { (ac_try="$ac_link"
40014 case "(($ac_try" in
40015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40016 *) ac_try_echo=$ac_try;;
40017 esac
40018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40019 (eval "$ac_link") 2>conftest.er1
40020 ac_status=$?
40021 grep -v '^ *+' conftest.er1 >conftest.err
40022 rm -f conftest.er1
40023 cat conftest.err >&5
40024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40025 (exit $ac_status); } && {
40026 test -z "$ac_c_werror_flag" ||
40027 test ! -s conftest.err
40028 } && test -s conftest$ac_exeext &&
40029 $as_test_x conftest$ac_exeext; then
40030 eval "$as_ac_Lib=yes"
40031 else
40032 echo "$as_me: failed program was:" >&5
40033 sed 's/^/| /' conftest.$ac_ext >&5
40035 eval "$as_ac_Lib=no"
40038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40039 conftest$ac_exeext conftest.$ac_ext
40040 LIBS=$ac_check_lib_save_LIBS
40042 ac_res=`eval echo '${'$as_ac_Lib'}'`
40043 { echo "$as_me:$LINENO: result: $ac_res" >&5
40044 echo "${ECHO_T}$ac_res" >&6; }
40045 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40046 AST_SS7_FOUND=yes
40047 else
40048 AST_SS7_FOUND=no
40053 # now check for the header.
40054 if test "${AST_SS7_FOUND}" = "yes"; then
40055 SS7_LIB="${pbxlibdir} -lss7 "
40056 # if --with-SS7=DIR has been specified, use it.
40057 if test "x${SS7_DIR}" != "x"; then
40058 SS7_INCLUDE="-I${SS7_DIR}/include"
40060 SS7_INCLUDE="${SS7_INCLUDE} "
40061 if test "xlibss7.h" = "x" ; then # no header, assume found
40062 SS7_HEADER_FOUND="1"
40063 else # check for the header
40064 saved_cppflags="${CPPFLAGS}"
40065 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
40066 if test "${ac_cv_header_libss7_h+set}" = set; then
40067 { echo "$as_me:$LINENO: checking for libss7.h" >&5
40068 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
40069 if test "${ac_cv_header_libss7_h+set}" = set; then
40070 echo $ECHO_N "(cached) $ECHO_C" >&6
40072 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
40073 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
40074 else
40075 # Is the header compilable?
40076 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
40077 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
40078 cat >conftest.$ac_ext <<_ACEOF
40079 /* confdefs.h. */
40080 _ACEOF
40081 cat confdefs.h >>conftest.$ac_ext
40082 cat >>conftest.$ac_ext <<_ACEOF
40083 /* end confdefs.h. */
40084 $ac_includes_default
40085 #include <libss7.h>
40086 _ACEOF
40087 rm -f conftest.$ac_objext
40088 if { (ac_try="$ac_compile"
40089 case "(($ac_try" in
40090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40091 *) ac_try_echo=$ac_try;;
40092 esac
40093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40094 (eval "$ac_compile") 2>conftest.er1
40095 ac_status=$?
40096 grep -v '^ *+' conftest.er1 >conftest.err
40097 rm -f conftest.er1
40098 cat conftest.err >&5
40099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100 (exit $ac_status); } && {
40101 test -z "$ac_c_werror_flag" ||
40102 test ! -s conftest.err
40103 } && test -s conftest.$ac_objext; then
40104 ac_header_compiler=yes
40105 else
40106 echo "$as_me: failed program was:" >&5
40107 sed 's/^/| /' conftest.$ac_ext >&5
40109 ac_header_compiler=no
40112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40114 echo "${ECHO_T}$ac_header_compiler" >&6; }
40116 # Is the header present?
40117 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
40118 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
40119 cat >conftest.$ac_ext <<_ACEOF
40120 /* confdefs.h. */
40121 _ACEOF
40122 cat confdefs.h >>conftest.$ac_ext
40123 cat >>conftest.$ac_ext <<_ACEOF
40124 /* end confdefs.h. */
40125 #include <libss7.h>
40126 _ACEOF
40127 if { (ac_try="$ac_cpp conftest.$ac_ext"
40128 case "(($ac_try" in
40129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40130 *) ac_try_echo=$ac_try;;
40131 esac
40132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40134 ac_status=$?
40135 grep -v '^ *+' conftest.er1 >conftest.err
40136 rm -f conftest.er1
40137 cat conftest.err >&5
40138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139 (exit $ac_status); } >/dev/null && {
40140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40141 test ! -s conftest.err
40142 }; then
40143 ac_header_preproc=yes
40144 else
40145 echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40148 ac_header_preproc=no
40151 rm -f conftest.err conftest.$ac_ext
40152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40153 echo "${ECHO_T}$ac_header_preproc" >&6; }
40155 # So? What about this header?
40156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40157 yes:no: )
40158 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
40159 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40160 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
40161 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
40162 ac_header_preproc=yes
40164 no:yes:* )
40165 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
40166 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
40167 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
40168 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
40169 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
40170 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
40171 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
40172 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
40173 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
40174 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
40175 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
40176 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
40177 ( cat <<\_ASBOX
40178 ## ------------------------------- ##
40179 ## Report this to www.asterisk.org ##
40180 ## ------------------------------- ##
40181 _ASBOX
40182 ) | sed "s/^/$as_me: WARNING: /" >&2
40184 esac
40185 { echo "$as_me:$LINENO: checking for libss7.h" >&5
40186 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
40187 if test "${ac_cv_header_libss7_h+set}" = set; then
40188 echo $ECHO_N "(cached) $ECHO_C" >&6
40189 else
40190 ac_cv_header_libss7_h=$ac_header_preproc
40192 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
40193 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
40196 if test $ac_cv_header_libss7_h = yes; then
40197 SS7_HEADER_FOUND=1
40198 else
40199 SS7_HEADER_FOUND=0
40203 CPPFLAGS="${saved_cppflags}"
40205 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
40206 SS7_LIB=""
40207 SS7_INCLUDE=""
40208 else
40209 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
40210 SS7_LIB=""
40212 PBX_SS7=1
40213 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
40215 cat >>confdefs.h <<_ACEOF
40216 #define HAVE_SS7 1
40217 _ACEOF
40220 cat >>confdefs.h <<_ACEOF
40221 #define HAVE_SS7_VERSION
40222 _ACEOF
40229 if test "${USE_PWLIB}" != "no"; then
40230 if test -n "${PWLIB_DIR}"; then
40231 PWLIBDIR="${PWLIB_DIR}"
40236 PWLIB_INCDIR=
40237 PWLIB_LIBDIR=
40238 ac_ext=cpp
40239 ac_cpp='$CXXCPP $CPPFLAGS'
40240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40244 if test "${PWLIBDIR:-unset}" != "unset" ; then
40245 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
40246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40247 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
40248 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
40249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40250 echo $ECHO_N "(cached) $ECHO_C" >&6
40252 ac_res=`eval echo '${'$as_ac_Header'}'`
40253 { echo "$as_me:$LINENO: result: $ac_res" >&5
40254 echo "${ECHO_T}$ac_res" >&6; }
40255 else
40256 # Is the header compilable?
40257 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
40258 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
40259 cat >conftest.$ac_ext <<_ACEOF
40260 /* confdefs.h. */
40261 _ACEOF
40262 cat confdefs.h >>conftest.$ac_ext
40263 cat >>conftest.$ac_ext <<_ACEOF
40264 /* end confdefs.h. */
40265 $ac_includes_default
40266 #include <${PWLIBDIR}/version.h>
40267 _ACEOF
40268 rm -f conftest.$ac_objext
40269 if { (ac_try="$ac_compile"
40270 case "(($ac_try" in
40271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40272 *) ac_try_echo=$ac_try;;
40273 esac
40274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40275 (eval "$ac_compile") 2>conftest.er1
40276 ac_status=$?
40277 grep -v '^ *+' conftest.er1 >conftest.err
40278 rm -f conftest.er1
40279 cat conftest.err >&5
40280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281 (exit $ac_status); } && {
40282 test -z "$ac_cxx_werror_flag" ||
40283 test ! -s conftest.err
40284 } && test -s conftest.$ac_objext; then
40285 ac_header_compiler=yes
40286 else
40287 echo "$as_me: failed program was:" >&5
40288 sed 's/^/| /' conftest.$ac_ext >&5
40290 ac_header_compiler=no
40293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40295 echo "${ECHO_T}$ac_header_compiler" >&6; }
40297 # Is the header present?
40298 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
40299 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
40300 cat >conftest.$ac_ext <<_ACEOF
40301 /* confdefs.h. */
40302 _ACEOF
40303 cat confdefs.h >>conftest.$ac_ext
40304 cat >>conftest.$ac_ext <<_ACEOF
40305 /* end confdefs.h. */
40306 #include <${PWLIBDIR}/version.h>
40307 _ACEOF
40308 if { (ac_try="$ac_cpp conftest.$ac_ext"
40309 case "(($ac_try" in
40310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40311 *) ac_try_echo=$ac_try;;
40312 esac
40313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40315 ac_status=$?
40316 grep -v '^ *+' conftest.er1 >conftest.err
40317 rm -f conftest.er1
40318 cat conftest.err >&5
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); } >/dev/null && {
40321 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40322 test ! -s conftest.err
40323 }; then
40324 ac_header_preproc=yes
40325 else
40326 echo "$as_me: failed program was:" >&5
40327 sed 's/^/| /' conftest.$ac_ext >&5
40329 ac_header_preproc=no
40332 rm -f conftest.err conftest.$ac_ext
40333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40334 echo "${ECHO_T}$ac_header_preproc" >&6; }
40336 # So? What about this header?
40337 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40338 yes:no: )
40339 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40340 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40341 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
40342 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
40343 ac_header_preproc=yes
40345 no:yes:* )
40346 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
40347 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
40348 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
40349 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
40350 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
40351 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
40352 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40353 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40354 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
40355 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
40356 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
40357 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
40358 ( cat <<\_ASBOX
40359 ## ------------------------------- ##
40360 ## Report this to www.asterisk.org ##
40361 ## ------------------------------- ##
40362 _ASBOX
40363 ) | sed "s/^/$as_me: WARNING: /" >&2
40365 esac
40366 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
40367 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
40368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40369 echo $ECHO_N "(cached) $ECHO_C" >&6
40370 else
40371 eval "$as_ac_Header=\$ac_header_preproc"
40373 ac_res=`eval echo '${'$as_ac_Header'}'`
40374 { echo "$as_me:$LINENO: result: $ac_res" >&5
40375 echo "${ECHO_T}$ac_res" >&6; }
40378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40379 HAS_PWLIB=1
40384 if test "${HAS_PWLIB:-unset}" = "unset" ; then
40385 if test "${OPENH323DIR:-unset}" != "unset"; then
40386 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
40387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40388 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
40389 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
40390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40391 echo $ECHO_N "(cached) $ECHO_C" >&6
40393 ac_res=`eval echo '${'$as_ac_Header'}'`
40394 { echo "$as_me:$LINENO: result: $ac_res" >&5
40395 echo "${ECHO_T}$ac_res" >&6; }
40396 else
40397 # Is the header compilable?
40398 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
40399 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
40400 cat >conftest.$ac_ext <<_ACEOF
40401 /* confdefs.h. */
40402 _ACEOF
40403 cat confdefs.h >>conftest.$ac_ext
40404 cat >>conftest.$ac_ext <<_ACEOF
40405 /* end confdefs.h. */
40406 $ac_includes_default
40407 #include <${OPENH323DIR}/../pwlib/version.h>
40408 _ACEOF
40409 rm -f conftest.$ac_objext
40410 if { (ac_try="$ac_compile"
40411 case "(($ac_try" in
40412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40413 *) ac_try_echo=$ac_try;;
40414 esac
40415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40416 (eval "$ac_compile") 2>conftest.er1
40417 ac_status=$?
40418 grep -v '^ *+' conftest.er1 >conftest.err
40419 rm -f conftest.er1
40420 cat conftest.err >&5
40421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40422 (exit $ac_status); } && {
40423 test -z "$ac_cxx_werror_flag" ||
40424 test ! -s conftest.err
40425 } && test -s conftest.$ac_objext; then
40426 ac_header_compiler=yes
40427 else
40428 echo "$as_me: failed program was:" >&5
40429 sed 's/^/| /' conftest.$ac_ext >&5
40431 ac_header_compiler=no
40434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40436 echo "${ECHO_T}$ac_header_compiler" >&6; }
40438 # Is the header present?
40439 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
40440 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
40441 cat >conftest.$ac_ext <<_ACEOF
40442 /* confdefs.h. */
40443 _ACEOF
40444 cat confdefs.h >>conftest.$ac_ext
40445 cat >>conftest.$ac_ext <<_ACEOF
40446 /* end confdefs.h. */
40447 #include <${OPENH323DIR}/../pwlib/version.h>
40448 _ACEOF
40449 if { (ac_try="$ac_cpp conftest.$ac_ext"
40450 case "(($ac_try" in
40451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40452 *) ac_try_echo=$ac_try;;
40453 esac
40454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40456 ac_status=$?
40457 grep -v '^ *+' conftest.er1 >conftest.err
40458 rm -f conftest.er1
40459 cat conftest.err >&5
40460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40461 (exit $ac_status); } >/dev/null && {
40462 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40463 test ! -s conftest.err
40464 }; then
40465 ac_header_preproc=yes
40466 else
40467 echo "$as_me: failed program was:" >&5
40468 sed 's/^/| /' conftest.$ac_ext >&5
40470 ac_header_preproc=no
40473 rm -f conftest.err conftest.$ac_ext
40474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40475 echo "${ECHO_T}$ac_header_preproc" >&6; }
40477 # So? What about this header?
40478 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40479 yes:no: )
40480 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40481 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40482 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
40483 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
40484 ac_header_preproc=yes
40486 no:yes:* )
40487 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
40488 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
40489 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
40490 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
40491 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
40492 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
40493 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
40494 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40495 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
40496 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
40497 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
40498 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
40499 ( cat <<\_ASBOX
40500 ## ------------------------------- ##
40501 ## Report this to www.asterisk.org ##
40502 ## ------------------------------- ##
40503 _ASBOX
40504 ) | sed "s/^/$as_me: WARNING: /" >&2
40506 esac
40507 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
40508 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
40509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40510 echo $ECHO_N "(cached) $ECHO_C" >&6
40511 else
40512 eval "$as_ac_Header=\$ac_header_preproc"
40514 ac_res=`eval echo '${'$as_ac_Header'}'`
40515 { echo "$as_me:$LINENO: result: $ac_res" >&5
40516 echo "${ECHO_T}$ac_res" >&6; }
40519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40520 HAS_PWLIB=1
40525 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40526 PWLIBDIR="${OPENH323DIR}/../pwlib"
40527 else
40528 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
40529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40530 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
40531 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
40532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40533 echo $ECHO_N "(cached) $ECHO_C" >&6
40535 ac_res=`eval echo '${'$as_ac_Header'}'`
40536 { echo "$as_me:$LINENO: result: $ac_res" >&5
40537 echo "${ECHO_T}$ac_res" >&6; }
40538 else
40539 # Is the header compilable?
40540 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
40541 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
40542 cat >conftest.$ac_ext <<_ACEOF
40543 /* confdefs.h. */
40544 _ACEOF
40545 cat confdefs.h >>conftest.$ac_ext
40546 cat >>conftest.$ac_ext <<_ACEOF
40547 /* end confdefs.h. */
40548 $ac_includes_default
40549 #include <${HOME}/pwlib/include/ptlib.h>
40550 _ACEOF
40551 rm -f conftest.$ac_objext
40552 if { (ac_try="$ac_compile"
40553 case "(($ac_try" in
40554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40555 *) ac_try_echo=$ac_try;;
40556 esac
40557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40558 (eval "$ac_compile") 2>conftest.er1
40559 ac_status=$?
40560 grep -v '^ *+' conftest.er1 >conftest.err
40561 rm -f conftest.er1
40562 cat conftest.err >&5
40563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564 (exit $ac_status); } && {
40565 test -z "$ac_cxx_werror_flag" ||
40566 test ! -s conftest.err
40567 } && test -s conftest.$ac_objext; then
40568 ac_header_compiler=yes
40569 else
40570 echo "$as_me: failed program was:" >&5
40571 sed 's/^/| /' conftest.$ac_ext >&5
40573 ac_header_compiler=no
40576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40578 echo "${ECHO_T}$ac_header_compiler" >&6; }
40580 # Is the header present?
40581 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
40582 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
40583 cat >conftest.$ac_ext <<_ACEOF
40584 /* confdefs.h. */
40585 _ACEOF
40586 cat confdefs.h >>conftest.$ac_ext
40587 cat >>conftest.$ac_ext <<_ACEOF
40588 /* end confdefs.h. */
40589 #include <${HOME}/pwlib/include/ptlib.h>
40590 _ACEOF
40591 if { (ac_try="$ac_cpp conftest.$ac_ext"
40592 case "(($ac_try" in
40593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40594 *) ac_try_echo=$ac_try;;
40595 esac
40596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40598 ac_status=$?
40599 grep -v '^ *+' conftest.er1 >conftest.err
40600 rm -f conftest.er1
40601 cat conftest.err >&5
40602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603 (exit $ac_status); } >/dev/null && {
40604 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40605 test ! -s conftest.err
40606 }; then
40607 ac_header_preproc=yes
40608 else
40609 echo "$as_me: failed program was:" >&5
40610 sed 's/^/| /' conftest.$ac_ext >&5
40612 ac_header_preproc=no
40615 rm -f conftest.err conftest.$ac_ext
40616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40617 echo "${ECHO_T}$ac_header_preproc" >&6; }
40619 # So? What about this header?
40620 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40621 yes:no: )
40622 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40623 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40624 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
40625 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
40626 ac_header_preproc=yes
40628 no:yes:* )
40629 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
40630 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
40631 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
40632 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40633 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
40634 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
40635 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40636 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40637 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
40638 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40639 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
40640 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40641 ( cat <<\_ASBOX
40642 ## ------------------------------- ##
40643 ## Report this to www.asterisk.org ##
40644 ## ------------------------------- ##
40645 _ASBOX
40646 ) | sed "s/^/$as_me: WARNING: /" >&2
40648 esac
40649 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
40650 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
40651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40652 echo $ECHO_N "(cached) $ECHO_C" >&6
40653 else
40654 eval "$as_ac_Header=\$ac_header_preproc"
40656 ac_res=`eval echo '${'$as_ac_Header'}'`
40657 { echo "$as_me:$LINENO: result: $ac_res" >&5
40658 echo "${ECHO_T}$ac_res" >&6; }
40661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40662 HAS_PWLIB=1
40666 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40667 PWLIBDIR="${HOME}/pwlib"
40668 else
40669 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40670 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40671 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40672 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40673 echo $ECHO_N "(cached) $ECHO_C" >&6
40675 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40676 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40677 else
40678 # Is the header compilable?
40679 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
40680 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
40681 cat >conftest.$ac_ext <<_ACEOF
40682 /* confdefs.h. */
40683 _ACEOF
40684 cat confdefs.h >>conftest.$ac_ext
40685 cat >>conftest.$ac_ext <<_ACEOF
40686 /* end confdefs.h. */
40687 $ac_includes_default
40688 #include </usr/local/include/ptlib.h>
40689 _ACEOF
40690 rm -f conftest.$ac_objext
40691 if { (ac_try="$ac_compile"
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_compile") 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); } && {
40704 test -z "$ac_cxx_werror_flag" ||
40705 test ! -s conftest.err
40706 } && test -s conftest.$ac_objext; then
40707 ac_header_compiler=yes
40708 else
40709 echo "$as_me: failed program was:" >&5
40710 sed 's/^/| /' conftest.$ac_ext >&5
40712 ac_header_compiler=no
40715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40717 echo "${ECHO_T}$ac_header_compiler" >&6; }
40719 # Is the header present?
40720 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
40721 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
40722 cat >conftest.$ac_ext <<_ACEOF
40723 /* confdefs.h. */
40724 _ACEOF
40725 cat confdefs.h >>conftest.$ac_ext
40726 cat >>conftest.$ac_ext <<_ACEOF
40727 /* end confdefs.h. */
40728 #include </usr/local/include/ptlib.h>
40729 _ACEOF
40730 if { (ac_try="$ac_cpp conftest.$ac_ext"
40731 case "(($ac_try" in
40732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40733 *) ac_try_echo=$ac_try;;
40734 esac
40735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40737 ac_status=$?
40738 grep -v '^ *+' conftest.er1 >conftest.err
40739 rm -f conftest.er1
40740 cat conftest.err >&5
40741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40742 (exit $ac_status); } >/dev/null && {
40743 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40744 test ! -s conftest.err
40745 }; then
40746 ac_header_preproc=yes
40747 else
40748 echo "$as_me: failed program was:" >&5
40749 sed 's/^/| /' conftest.$ac_ext >&5
40751 ac_header_preproc=no
40754 rm -f conftest.err conftest.$ac_ext
40755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40756 echo "${ECHO_T}$ac_header_preproc" >&6; }
40758 # So? What about this header?
40759 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40760 yes:no: )
40761 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40762 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40763 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
40764 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
40765 ac_header_preproc=yes
40767 no:yes:* )
40768 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
40769 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
40770 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
40771 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40772 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
40773 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
40774 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40775 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40776 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
40777 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40778 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
40779 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40780 ( cat <<\_ASBOX
40781 ## ------------------------------- ##
40782 ## Report this to www.asterisk.org ##
40783 ## ------------------------------- ##
40784 _ASBOX
40785 ) | sed "s/^/$as_me: WARNING: /" >&2
40787 esac
40788 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40789 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40790 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40791 echo $ECHO_N "(cached) $ECHO_C" >&6
40792 else
40793 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
40795 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40796 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40799 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
40800 HAS_PWLIB=1
40804 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40805 # Extract the first word of "ptlib-config", so it can be a program name with args.
40806 set dummy ptlib-config; ac_word=$2
40807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40809 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40810 echo $ECHO_N "(cached) $ECHO_C" >&6
40811 else
40812 case $PTLIB_CONFIG in
40813 [\\/]* | ?:[\\/]*)
40814 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40818 for as_dir in /usr/local/bin
40820 IFS=$as_save_IFS
40821 test -z "$as_dir" && as_dir=.
40822 for ac_exec_ext in '' $ac_executable_extensions; do
40823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40824 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40826 break 2
40828 done
40829 done
40830 IFS=$as_save_IFS
40833 esac
40835 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40836 if test -n "$PTLIB_CONFIG"; then
40837 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40838 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40839 else
40840 { echo "$as_me:$LINENO: result: no" >&5
40841 echo "${ECHO_T}no" >&6; }
40845 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
40846 # Extract the first word of "ptlib-config", so it can be a program name with args.
40847 set dummy ptlib-config; ac_word=$2
40848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40850 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40851 echo $ECHO_N "(cached) $ECHO_C" >&6
40852 else
40853 case $PTLIB_CONFIG in
40854 [\\/]* | ?:[\\/]*)
40855 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40859 for as_dir in /usr/local/share/pwlib/make
40861 IFS=$as_save_IFS
40862 test -z "$as_dir" && as_dir=.
40863 for ac_exec_ext in '' $ac_executable_extensions; do
40864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40865 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40867 break 2
40869 done
40870 done
40871 IFS=$as_save_IFS
40874 esac
40876 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40877 if test -n "$PTLIB_CONFIG"; then
40878 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40879 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40880 else
40881 { echo "$as_me:$LINENO: result: no" >&5
40882 echo "${ECHO_T}no" >&6; }
40887 PWLIB_INCDIR="/usr/local/include"
40888 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40889 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40890 if test "x$LIB64" != "x"; then
40891 PWLIB_LIBDIR="/usr/local/lib64"
40892 else
40893 PWLIB_LIBDIR="/usr/local/lib"
40896 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40897 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40898 else
40899 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40900 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40901 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40902 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40903 echo $ECHO_N "(cached) $ECHO_C" >&6
40905 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40906 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40907 else
40908 # Is the header compilable?
40909 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
40910 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
40911 cat >conftest.$ac_ext <<_ACEOF
40912 /* confdefs.h. */
40913 _ACEOF
40914 cat confdefs.h >>conftest.$ac_ext
40915 cat >>conftest.$ac_ext <<_ACEOF
40916 /* end confdefs.h. */
40917 $ac_includes_default
40918 #include </usr/include/ptlib.h>
40919 _ACEOF
40920 rm -f conftest.$ac_objext
40921 if { (ac_try="$ac_compile"
40922 case "(($ac_try" in
40923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40924 *) ac_try_echo=$ac_try;;
40925 esac
40926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40927 (eval "$ac_compile") 2>conftest.er1
40928 ac_status=$?
40929 grep -v '^ *+' conftest.er1 >conftest.err
40930 rm -f conftest.er1
40931 cat conftest.err >&5
40932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40933 (exit $ac_status); } && {
40934 test -z "$ac_cxx_werror_flag" ||
40935 test ! -s conftest.err
40936 } && test -s conftest.$ac_objext; then
40937 ac_header_compiler=yes
40938 else
40939 echo "$as_me: failed program was:" >&5
40940 sed 's/^/| /' conftest.$ac_ext >&5
40942 ac_header_compiler=no
40945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40947 echo "${ECHO_T}$ac_header_compiler" >&6; }
40949 # Is the header present?
40950 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
40951 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
40952 cat >conftest.$ac_ext <<_ACEOF
40953 /* confdefs.h. */
40954 _ACEOF
40955 cat confdefs.h >>conftest.$ac_ext
40956 cat >>conftest.$ac_ext <<_ACEOF
40957 /* end confdefs.h. */
40958 #include </usr/include/ptlib.h>
40959 _ACEOF
40960 if { (ac_try="$ac_cpp conftest.$ac_ext"
40961 case "(($ac_try" in
40962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40963 *) ac_try_echo=$ac_try;;
40964 esac
40965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40967 ac_status=$?
40968 grep -v '^ *+' conftest.er1 >conftest.err
40969 rm -f conftest.er1
40970 cat conftest.err >&5
40971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40972 (exit $ac_status); } >/dev/null && {
40973 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40974 test ! -s conftest.err
40975 }; then
40976 ac_header_preproc=yes
40977 else
40978 echo "$as_me: failed program was:" >&5
40979 sed 's/^/| /' conftest.$ac_ext >&5
40981 ac_header_preproc=no
40984 rm -f conftest.err conftest.$ac_ext
40985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40986 echo "${ECHO_T}$ac_header_preproc" >&6; }
40988 # So? What about this header?
40989 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40990 yes:no: )
40991 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40992 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40993 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
40994 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
40995 ac_header_preproc=yes
40997 no:yes:* )
40998 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
40999 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
41000 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
41001 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
41002 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
41003 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
41004 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
41005 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
41006 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
41007 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
41008 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
41009 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
41010 ( cat <<\_ASBOX
41011 ## ------------------------------- ##
41012 ## Report this to www.asterisk.org ##
41013 ## ------------------------------- ##
41014 _ASBOX
41015 ) | sed "s/^/$as_me: WARNING: /" >&2
41017 esac
41018 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
41019 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
41020 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
41021 echo $ECHO_N "(cached) $ECHO_C" >&6
41022 else
41023 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
41025 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
41026 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
41029 if test $ac_cv_header__usr_include_ptlib_h = yes; then
41030 HAS_PWLIB=1
41034 if test "${HAS_PWLIB:-unset}" != "unset" ; then
41035 # Extract the first word of "ptlib-config", so it can be a program name with args.
41036 set dummy ptlib-config; ac_word=$2
41037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
41038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
41039 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
41040 echo $ECHO_N "(cached) $ECHO_C" >&6
41041 else
41042 case $PTLIB_CONFIG in
41043 [\\/]* | ?:[\\/]*)
41044 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
41047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41048 for as_dir in /usr/share/pwlib/make
41050 IFS=$as_save_IFS
41051 test -z "$as_dir" && as_dir=.
41052 for ac_exec_ext in '' $ac_executable_extensions; do
41053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41054 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41056 break 2
41058 done
41059 done
41060 IFS=$as_save_IFS
41063 esac
41065 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
41066 if test -n "$PTLIB_CONFIG"; then
41067 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
41068 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
41069 else
41070 { echo "$as_me:$LINENO: result: no" >&5
41071 echo "${ECHO_T}no" >&6; }
41075 PWLIB_INCDIR="/usr/include"
41076 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
41077 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
41078 if test "x$LIB64" != "x"; then
41079 PWLIB_LIBDIR="/usr/lib64"
41080 else
41081 PWLIB_LIBDIR="/usr/lib"
41084 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
41085 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
41092 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
41093 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
41094 # exit
41097 if test "${HAS_PWLIB:-unset}" != "unset" ; then
41098 if test "${PWLIBDIR:-unset}" = "unset" ; then
41099 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
41100 PWLIBDIR=`$PTLIB_CONFIG --prefix`
41101 else
41102 echo "Cannot find ptlib-config - please install and try again"
41103 exit
41107 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
41108 PWLIBDIR="/usr/share/pwlib"
41109 PWLIB_INCDIR="/usr/include"
41110 if test "x$LIB64" != "x"; then
41111 PWLIB_LIBDIR="/usr/lib64"
41112 else
41113 PWLIB_LIBDIR="/usr/lib"
41116 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
41117 PWLIBDIR="/usr/local/share/pwlib"
41118 PWLIB_INCDIR="/usr/local/include"
41119 if test "x$LIB64" != "x"; then
41120 PWLIB_LIBDIR="/usr/local/lib64"
41121 else
41122 PWLIB_LIBDIR="/usr/local/lib"
41126 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
41127 PWLIB_INCDIR="${PWLIBDIR}/include"
41129 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
41130 PWLIB_LIBDIR="${PWLIBDIR}/lib"
41137 ac_ext=c
41138 ac_cpp='$CPP $CPPFLAGS'
41139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41145 if test "${HAS_PWLIB:-unset}" != "unset"; then
41146 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
41147 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
41148 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
41149 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
41150 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
41151 let PWLIB_REQ=1*10000+9*100+2
41153 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
41154 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
41155 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
41156 { echo "$as_me:$LINENO: result: no" >&5
41157 echo "${ECHO_T}no" >&6; }
41158 unset HAS_PWLIB
41159 else
41160 { echo "$as_me:$LINENO: result: yes" >&5
41161 echo "${ECHO_T}yes" >&6; }
41166 if test "${HAS_PWLIB:-unset}" != "unset"; then
41168 PWLIB_OSTYPE=
41169 case "$host_os" in
41170 linux*) PWLIB_OSTYPE=linux ;
41172 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
41174 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
41175 ENDLDLIBS="-lossaudio" ;
41177 netbsd* ) PWLIB_OSTYPE=NetBSD ;
41178 ENDLDLIBS="-lossaudio" ;
41180 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
41182 darwin* ) PWLIB_OSTYPE=Darwin ;
41184 beos*) PWLIB_OSTYPE=beos ;
41185 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
41187 cygwin*) PWLIB_OSTYPE=cygwin ;
41189 mingw*) PWLIB_OSTYPE=mingw ;
41190 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
41191 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
41193 * ) PWLIB_OSTYPE="$host_os" ;
41194 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
41195 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
41197 esac
41199 PWLIB_MACHTYPE=
41200 case "$host_cpu" in
41201 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
41204 x86_64) PWLIB_MACHTYPE=x86_64 ;
41205 P_64BIT=1 ;
41206 LIB64=1 ;
41209 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
41210 P_64BIT=1 ;
41213 sparc ) PWLIB_MACHTYPE=sparc ;
41216 powerpc ) PWLIB_MACHTYPE=ppc ;
41219 ppc ) PWLIB_MACHTYPE=ppc ;
41222 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
41223 P_64BIT=1 ;
41224 LIB64=1 ;
41227 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
41228 P_64BIT=1 ;
41229 LIB64=1 ;
41232 ia64) PWLIB_MACHTYPE=ia64 ;
41233 P_64BIT=1 ;
41236 s390x) PWLIB_MACHTYPE=s390x ;
41237 P_64BIT=1 ;
41238 LIB64=1 ;
41241 s390) PWLIB_MACHTYPE=s390 ;
41244 * ) PWLIB_MACHTYPE="$host_cpu";
41245 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
41246 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
41247 esac
41249 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
41254 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
41257 if test "${HAS_PWLIB:-unset}" != "unset"; then
41258 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
41259 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
41261 saved_cppflags="${CPPFLAGS}"
41262 saved_libs="${LIBS}"
41263 if test "${PWLIB_LIB:-unset}" != "unset"; then
41264 LIBS="${LIBS} ${PWLIB_LIB} "
41265 else
41266 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
41268 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
41270 ac_ext=cpp
41271 ac_cpp='$CXXCPP $CPPFLAGS'
41272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41277 cat >conftest.$ac_ext <<_ACEOF
41278 /* confdefs.h. */
41279 _ACEOF
41280 cat confdefs.h >>conftest.$ac_ext
41281 cat >>conftest.$ac_ext <<_ACEOF
41282 /* end confdefs.h. */
41283 #include "ptlib.h"
41285 main ()
41287 BOOL q = PTime::IsDaylightSavings();
41289 return 0;
41291 _ACEOF
41292 rm -f conftest.$ac_objext conftest$ac_exeext
41293 if { (ac_try="$ac_link"
41294 case "(($ac_try" in
41295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41296 *) ac_try_echo=$ac_try;;
41297 esac
41298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41299 (eval "$ac_link") 2>conftest.er1
41300 ac_status=$?
41301 grep -v '^ *+' conftest.er1 >conftest.err
41302 rm -f conftest.er1
41303 cat conftest.err >&5
41304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305 (exit $ac_status); } && {
41306 test -z "$ac_cxx_werror_flag" ||
41307 test ! -s conftest.err
41308 } && test -s conftest$ac_exeext &&
41309 $as_test_x conftest$ac_exeext; then
41310 { echo "$as_me:$LINENO: result: yes" >&5
41311 echo "${ECHO_T}yes" >&6; }
41312 ac_cv_lib_PWLIB="yes"
41314 else
41315 echo "$as_me: failed program was:" >&5
41316 sed 's/^/| /' conftest.$ac_ext >&5
41318 { echo "$as_me:$LINENO: result: no" >&5
41319 echo "${ECHO_T}no" >&6; }
41320 ac_cv_lib_PWLIB="no"
41325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41326 conftest$ac_exeext conftest.$ac_ext
41328 ac_ext=c
41329 ac_cpp='$CPP $CPPFLAGS'
41330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41335 LIBS="${saved_libs}"
41336 CPPFLAGS="${saved_cppflags}"
41338 if test "${ac_cv_lib_PWLIB}" = "yes"; then
41339 if test "${PWLIB_LIB:-undef}" = "undef"; then
41340 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
41341 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
41342 else
41343 PWLIB_LIB="-l${PLATFORM_PWLIB}"
41346 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
41347 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
41349 PBX_PWLIB=1
41351 cat >>confdefs.h <<\_ACEOF
41352 #define HAVE_PWLIB 1
41353 _ACEOF
41361 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
41362 if test -n "${OPENH323_DIR}"; then
41363 OPENH323DIR="${OPENH323_DIR}"
41366 OPENH323_INCDIR=
41367 OPENH323_LIBDIR=
41368 ac_ext=cpp
41369 ac_cpp='$CXXCPP $CPPFLAGS'
41370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41374 if test "${OPENH323DIR:-unset}" != "unset" ; then
41375 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
41376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41377 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
41378 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
41379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41380 echo $ECHO_N "(cached) $ECHO_C" >&6
41382 ac_res=`eval echo '${'$as_ac_Header'}'`
41383 { echo "$as_me:$LINENO: result: $ac_res" >&5
41384 echo "${ECHO_T}$ac_res" >&6; }
41385 else
41386 # Is the header compilable?
41387 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
41388 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
41389 cat >conftest.$ac_ext <<_ACEOF
41390 /* confdefs.h. */
41391 _ACEOF
41392 cat confdefs.h >>conftest.$ac_ext
41393 cat >>conftest.$ac_ext <<_ACEOF
41394 /* end confdefs.h. */
41395 $ac_includes_default
41396 #include <${OPENH323DIR}/version.h>
41397 _ACEOF
41398 rm -f conftest.$ac_objext
41399 if { (ac_try="$ac_compile"
41400 case "(($ac_try" in
41401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41402 *) ac_try_echo=$ac_try;;
41403 esac
41404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41405 (eval "$ac_compile") 2>conftest.er1
41406 ac_status=$?
41407 grep -v '^ *+' conftest.er1 >conftest.err
41408 rm -f conftest.er1
41409 cat conftest.err >&5
41410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41411 (exit $ac_status); } && {
41412 test -z "$ac_cxx_werror_flag" ||
41413 test ! -s conftest.err
41414 } && test -s conftest.$ac_objext; then
41415 ac_header_compiler=yes
41416 else
41417 echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41420 ac_header_compiler=no
41423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41425 echo "${ECHO_T}$ac_header_compiler" >&6; }
41427 # Is the header present?
41428 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
41429 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
41430 cat >conftest.$ac_ext <<_ACEOF
41431 /* confdefs.h. */
41432 _ACEOF
41433 cat confdefs.h >>conftest.$ac_ext
41434 cat >>conftest.$ac_ext <<_ACEOF
41435 /* end confdefs.h. */
41436 #include <${OPENH323DIR}/version.h>
41437 _ACEOF
41438 if { (ac_try="$ac_cpp conftest.$ac_ext"
41439 case "(($ac_try" in
41440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41441 *) ac_try_echo=$ac_try;;
41442 esac
41443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41445 ac_status=$?
41446 grep -v '^ *+' conftest.er1 >conftest.err
41447 rm -f conftest.er1
41448 cat conftest.err >&5
41449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41450 (exit $ac_status); } >/dev/null && {
41451 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41452 test ! -s conftest.err
41453 }; then
41454 ac_header_preproc=yes
41455 else
41456 echo "$as_me: failed program was:" >&5
41457 sed 's/^/| /' conftest.$ac_ext >&5
41459 ac_header_preproc=no
41462 rm -f conftest.err conftest.$ac_ext
41463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41464 echo "${ECHO_T}$ac_header_preproc" >&6; }
41466 # So? What about this header?
41467 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41468 yes:no: )
41469 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
41470 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41471 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
41472 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
41473 ac_header_preproc=yes
41475 no:yes:* )
41476 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
41477 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
41478 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
41479 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
41480 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
41481 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
41482 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
41483 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
41484 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
41485 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
41486 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
41487 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
41488 ( cat <<\_ASBOX
41489 ## ------------------------------- ##
41490 ## Report this to www.asterisk.org ##
41491 ## ------------------------------- ##
41492 _ASBOX
41493 ) | sed "s/^/$as_me: WARNING: /" >&2
41495 esac
41496 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
41497 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
41498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41499 echo $ECHO_N "(cached) $ECHO_C" >&6
41500 else
41501 eval "$as_ac_Header=\$ac_header_preproc"
41503 ac_res=`eval echo '${'$as_ac_Header'}'`
41504 { echo "$as_me:$LINENO: result: $ac_res" >&5
41505 echo "${ECHO_T}$ac_res" >&6; }
41508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41509 HAS_OPENH323=1
41514 if test "${HAS_OPENH323:-unset}" = "unset" ; then
41515 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
41516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41517 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
41518 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
41519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41520 echo $ECHO_N "(cached) $ECHO_C" >&6
41522 ac_res=`eval echo '${'$as_ac_Header'}'`
41523 { echo "$as_me:$LINENO: result: $ac_res" >&5
41524 echo "${ECHO_T}$ac_res" >&6; }
41525 else
41526 # Is the header compilable?
41527 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
41528 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
41529 cat >conftest.$ac_ext <<_ACEOF
41530 /* confdefs.h. */
41531 _ACEOF
41532 cat confdefs.h >>conftest.$ac_ext
41533 cat >>conftest.$ac_ext <<_ACEOF
41534 /* end confdefs.h. */
41535 $ac_includes_default
41536 #include <${PWLIBDIR}/../openh323/version.h>
41537 _ACEOF
41538 rm -f conftest.$ac_objext
41539 if { (ac_try="$ac_compile"
41540 case "(($ac_try" in
41541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41542 *) ac_try_echo=$ac_try;;
41543 esac
41544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41545 (eval "$ac_compile") 2>conftest.er1
41546 ac_status=$?
41547 grep -v '^ *+' conftest.er1 >conftest.err
41548 rm -f conftest.er1
41549 cat conftest.err >&5
41550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41551 (exit $ac_status); } && {
41552 test -z "$ac_cxx_werror_flag" ||
41553 test ! -s conftest.err
41554 } && test -s conftest.$ac_objext; then
41555 ac_header_compiler=yes
41556 else
41557 echo "$as_me: failed program was:" >&5
41558 sed 's/^/| /' conftest.$ac_ext >&5
41560 ac_header_compiler=no
41563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41565 echo "${ECHO_T}$ac_header_compiler" >&6; }
41567 # Is the header present?
41568 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
41569 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
41570 cat >conftest.$ac_ext <<_ACEOF
41571 /* confdefs.h. */
41572 _ACEOF
41573 cat confdefs.h >>conftest.$ac_ext
41574 cat >>conftest.$ac_ext <<_ACEOF
41575 /* end confdefs.h. */
41576 #include <${PWLIBDIR}/../openh323/version.h>
41577 _ACEOF
41578 if { (ac_try="$ac_cpp conftest.$ac_ext"
41579 case "(($ac_try" in
41580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41581 *) ac_try_echo=$ac_try;;
41582 esac
41583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41585 ac_status=$?
41586 grep -v '^ *+' conftest.er1 >conftest.err
41587 rm -f conftest.er1
41588 cat conftest.err >&5
41589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41590 (exit $ac_status); } >/dev/null && {
41591 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41592 test ! -s conftest.err
41593 }; then
41594 ac_header_preproc=yes
41595 else
41596 echo "$as_me: failed program was:" >&5
41597 sed 's/^/| /' conftest.$ac_ext >&5
41599 ac_header_preproc=no
41602 rm -f conftest.err conftest.$ac_ext
41603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41604 echo "${ECHO_T}$ac_header_preproc" >&6; }
41606 # So? What about this header?
41607 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41608 yes:no: )
41609 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
41610 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41611 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
41612 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
41613 ac_header_preproc=yes
41615 no:yes:* )
41616 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
41617 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
41618 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
41619 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
41620 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
41621 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
41622 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
41623 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
41624 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
41625 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
41626 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
41627 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
41628 ( cat <<\_ASBOX
41629 ## ------------------------------- ##
41630 ## Report this to www.asterisk.org ##
41631 ## ------------------------------- ##
41632 _ASBOX
41633 ) | sed "s/^/$as_me: WARNING: /" >&2
41635 esac
41636 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
41637 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
41638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41639 echo $ECHO_N "(cached) $ECHO_C" >&6
41640 else
41641 eval "$as_ac_Header=\$ac_header_preproc"
41643 ac_res=`eval echo '${'$as_ac_Header'}'`
41644 { echo "$as_me:$LINENO: result: $ac_res" >&5
41645 echo "${ECHO_T}$ac_res" >&6; }
41648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41649 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
41653 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41654 OPENH323DIR="${PWLIBDIR}/../openh323"
41655 saved_cppflags="${CPPFLAGS}"
41656 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
41657 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
41658 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
41659 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
41660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41661 echo $ECHO_N "(cached) $ECHO_C" >&6
41662 else
41663 cat >conftest.$ac_ext <<_ACEOF
41664 /* confdefs.h. */
41665 _ACEOF
41666 cat confdefs.h >>conftest.$ac_ext
41667 cat >>conftest.$ac_ext <<_ACEOF
41668 /* end confdefs.h. */
41669 #include <ptlib.h>
41671 #include <${OPENH323DIR}/include/h323.h>
41672 _ACEOF
41673 rm -f conftest.$ac_objext
41674 if { (ac_try="$ac_compile"
41675 case "(($ac_try" in
41676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41677 *) ac_try_echo=$ac_try;;
41678 esac
41679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41680 (eval "$ac_compile") 2>conftest.er1
41681 ac_status=$?
41682 grep -v '^ *+' conftest.er1 >conftest.err
41683 rm -f conftest.er1
41684 cat conftest.err >&5
41685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 (exit $ac_status); } && {
41687 test -z "$ac_cxx_werror_flag" ||
41688 test ! -s conftest.err
41689 } && test -s conftest.$ac_objext; then
41690 eval "$as_ac_Header=yes"
41691 else
41692 echo "$as_me: failed program was:" >&5
41693 sed 's/^/| /' conftest.$ac_ext >&5
41695 eval "$as_ac_Header=no"
41698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41700 ac_res=`eval echo '${'$as_ac_Header'}'`
41701 { echo "$as_me:$LINENO: result: $ac_res" >&5
41702 echo "${ECHO_T}$ac_res" >&6; }
41703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41705 else
41706 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
41710 CPPFLAGS="${saved_cppflags}"
41711 else
41712 saved_cppflags="${CPPFLAGS}"
41713 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
41714 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
41715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41716 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41717 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41719 echo $ECHO_N "(cached) $ECHO_C" >&6
41721 ac_res=`eval echo '${'$as_ac_Header'}'`
41722 { echo "$as_me:$LINENO: result: $ac_res" >&5
41723 echo "${ECHO_T}$ac_res" >&6; }
41724 else
41725 # Is the header compilable?
41726 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
41727 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
41728 cat >conftest.$ac_ext <<_ACEOF
41729 /* confdefs.h. */
41730 _ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h. */
41734 $ac_includes_default
41735 #include <${HOME}/openh323/include/h323.h>
41736 _ACEOF
41737 rm -f conftest.$ac_objext
41738 if { (ac_try="$ac_compile"
41739 case "(($ac_try" in
41740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41741 *) ac_try_echo=$ac_try;;
41742 esac
41743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41744 (eval "$ac_compile") 2>conftest.er1
41745 ac_status=$?
41746 grep -v '^ *+' conftest.er1 >conftest.err
41747 rm -f conftest.er1
41748 cat conftest.err >&5
41749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750 (exit $ac_status); } && {
41751 test -z "$ac_cxx_werror_flag" ||
41752 test ! -s conftest.err
41753 } && test -s conftest.$ac_objext; then
41754 ac_header_compiler=yes
41755 else
41756 echo "$as_me: failed program was:" >&5
41757 sed 's/^/| /' conftest.$ac_ext >&5
41759 ac_header_compiler=no
41762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41764 echo "${ECHO_T}$ac_header_compiler" >&6; }
41766 # Is the header present?
41767 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
41768 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
41769 cat >conftest.$ac_ext <<_ACEOF
41770 /* confdefs.h. */
41771 _ACEOF
41772 cat confdefs.h >>conftest.$ac_ext
41773 cat >>conftest.$ac_ext <<_ACEOF
41774 /* end confdefs.h. */
41775 #include <${HOME}/openh323/include/h323.h>
41776 _ACEOF
41777 if { (ac_try="$ac_cpp conftest.$ac_ext"
41778 case "(($ac_try" in
41779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41780 *) ac_try_echo=$ac_try;;
41781 esac
41782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41784 ac_status=$?
41785 grep -v '^ *+' conftest.er1 >conftest.err
41786 rm -f conftest.er1
41787 cat conftest.err >&5
41788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41789 (exit $ac_status); } >/dev/null && {
41790 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41791 test ! -s conftest.err
41792 }; then
41793 ac_header_preproc=yes
41794 else
41795 echo "$as_me: failed program was:" >&5
41796 sed 's/^/| /' conftest.$ac_ext >&5
41798 ac_header_preproc=no
41801 rm -f conftest.err conftest.$ac_ext
41802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41803 echo "${ECHO_T}$ac_header_preproc" >&6; }
41805 # So? What about this header?
41806 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41807 yes:no: )
41808 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41809 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41810 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
41811 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
41812 ac_header_preproc=yes
41814 no:yes:* )
41815 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
41816 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
41817 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
41818 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
41819 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
41820 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
41821 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41822 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41823 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
41824 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
41825 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
41826 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
41827 ( cat <<\_ASBOX
41828 ## ------------------------------- ##
41829 ## Report this to www.asterisk.org ##
41830 ## ------------------------------- ##
41831 _ASBOX
41832 ) | sed "s/^/$as_me: WARNING: /" >&2
41834 esac
41835 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41836 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41838 echo $ECHO_N "(cached) $ECHO_C" >&6
41839 else
41840 eval "$as_ac_Header=\$ac_header_preproc"
41842 ac_res=`eval echo '${'$as_ac_Header'}'`
41843 { echo "$as_me:$LINENO: result: $ac_res" >&5
41844 echo "${ECHO_T}$ac_res" >&6; }
41847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41848 HAS_OPENH323=1
41852 CPPFLAGS="${saved_cppflags}"
41853 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41854 OPENH323DIR="${HOME}/openh323"
41855 else
41856 saved_cppflags="${CPPFLAGS}"
41857 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
41858 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41859 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41860 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41861 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41862 echo $ECHO_N "(cached) $ECHO_C" >&6
41864 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41865 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41866 else
41867 # Is the header compilable?
41868 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
41869 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
41870 cat >conftest.$ac_ext <<_ACEOF
41871 /* confdefs.h. */
41872 _ACEOF
41873 cat confdefs.h >>conftest.$ac_ext
41874 cat >>conftest.$ac_ext <<_ACEOF
41875 /* end confdefs.h. */
41876 $ac_includes_default
41877 #include </usr/local/include/openh323/h323.h>
41878 _ACEOF
41879 rm -f conftest.$ac_objext
41880 if { (ac_try="$ac_compile"
41881 case "(($ac_try" in
41882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41883 *) ac_try_echo=$ac_try;;
41884 esac
41885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41886 (eval "$ac_compile") 2>conftest.er1
41887 ac_status=$?
41888 grep -v '^ *+' conftest.er1 >conftest.err
41889 rm -f conftest.er1
41890 cat conftest.err >&5
41891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41892 (exit $ac_status); } && {
41893 test -z "$ac_cxx_werror_flag" ||
41894 test ! -s conftest.err
41895 } && test -s conftest.$ac_objext; then
41896 ac_header_compiler=yes
41897 else
41898 echo "$as_me: failed program was:" >&5
41899 sed 's/^/| /' conftest.$ac_ext >&5
41901 ac_header_compiler=no
41904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41906 echo "${ECHO_T}$ac_header_compiler" >&6; }
41908 # Is the header present?
41909 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
41910 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
41911 cat >conftest.$ac_ext <<_ACEOF
41912 /* confdefs.h. */
41913 _ACEOF
41914 cat confdefs.h >>conftest.$ac_ext
41915 cat >>conftest.$ac_ext <<_ACEOF
41916 /* end confdefs.h. */
41917 #include </usr/local/include/openh323/h323.h>
41918 _ACEOF
41919 if { (ac_try="$ac_cpp conftest.$ac_ext"
41920 case "(($ac_try" in
41921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41922 *) ac_try_echo=$ac_try;;
41923 esac
41924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41926 ac_status=$?
41927 grep -v '^ *+' conftest.er1 >conftest.err
41928 rm -f conftest.er1
41929 cat conftest.err >&5
41930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931 (exit $ac_status); } >/dev/null && {
41932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41933 test ! -s conftest.err
41934 }; then
41935 ac_header_preproc=yes
41936 else
41937 echo "$as_me: failed program was:" >&5
41938 sed 's/^/| /' conftest.$ac_ext >&5
41940 ac_header_preproc=no
41943 rm -f conftest.err conftest.$ac_ext
41944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41945 echo "${ECHO_T}$ac_header_preproc" >&6; }
41947 # So? What about this header?
41948 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41949 yes:no: )
41950 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41951 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41952 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
41953 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
41954 ac_header_preproc=yes
41956 no:yes:* )
41957 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
41958 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
41959 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
41960 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
41961 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
41962 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
41963 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41964 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41965 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
41966 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
41967 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
41968 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
41969 ( cat <<\_ASBOX
41970 ## ------------------------------- ##
41971 ## Report this to www.asterisk.org ##
41972 ## ------------------------------- ##
41973 _ASBOX
41974 ) | sed "s/^/$as_me: WARNING: /" >&2
41976 esac
41977 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41978 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41979 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41980 echo $ECHO_N "(cached) $ECHO_C" >&6
41981 else
41982 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
41984 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41985 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41988 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
41989 HAS_OPENH323=1
41993 CPPFLAGS="${saved_cppflags}"
41994 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41995 OPENH323DIR="/usr/local/share/openh323"
41996 OPENH323_INCDIR="/usr/local/include/openh323"
41997 if test "x$LIB64" != "x"; then
41998 OPENH323_LIBDIR="/usr/local/lib64"
41999 else
42000 OPENH323_LIBDIR="/usr/local/lib"
42002 else
42003 saved_cppflags="${CPPFLAGS}"
42004 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
42005 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
42006 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
42007 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
42008 echo $ECHO_N "(cached) $ECHO_C" >&6
42009 else
42010 cat >conftest.$ac_ext <<_ACEOF
42011 /* confdefs.h. */
42012 _ACEOF
42013 cat confdefs.h >>conftest.$ac_ext
42014 cat >>conftest.$ac_ext <<_ACEOF
42015 /* end confdefs.h. */
42016 #include <ptlib.h>
42018 #include </usr/include/openh323/h323.h>
42019 _ACEOF
42020 rm -f conftest.$ac_objext
42021 if { (ac_try="$ac_compile"
42022 case "(($ac_try" in
42023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42024 *) ac_try_echo=$ac_try;;
42025 esac
42026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42027 (eval "$ac_compile") 2>conftest.er1
42028 ac_status=$?
42029 grep -v '^ *+' conftest.er1 >conftest.err
42030 rm -f conftest.er1
42031 cat conftest.err >&5
42032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42033 (exit $ac_status); } && {
42034 test -z "$ac_cxx_werror_flag" ||
42035 test ! -s conftest.err
42036 } && test -s conftest.$ac_objext; then
42037 ac_cv_header__usr_include_openh323_h323_h=yes
42038 else
42039 echo "$as_me: failed program was:" >&5
42040 sed 's/^/| /' conftest.$ac_ext >&5
42042 ac_cv_header__usr_include_openh323_h323_h=no
42045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42047 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
42048 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
42049 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
42050 HAS_OPENH323=1
42054 CPPFLAGS="${saved_cppflags}"
42055 if test "${HAS_OPENH323:-unset}" != "unset" ; then
42056 OPENH323DIR="/usr/share/openh323"
42057 OPENH323_INCDIR="/usr/include/openh323"
42058 if test "x$LIB64" != "x"; then
42059 OPENH323_LIBDIR="/usr/lib64"
42060 else
42061 OPENH323_LIBDIR="/usr/lib"
42069 if test "${HAS_OPENH323:-unset}" != "unset" ; then
42070 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
42071 OPENH323_INCDIR="${OPENH323DIR}/include"
42073 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
42074 OPENH323_LIBDIR="${OPENH323DIR}/lib"
42077 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
42078 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
42079 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
42085 ac_ext=c
42086 ac_cpp='$CPP $CPPFLAGS'
42087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42093 if test "${HAS_OPENH323:-unset}" != "unset"; then
42094 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
42095 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
42096 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
42097 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
42098 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
42099 let OPENH323_REQ=1*10000+17*100+3
42101 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
42102 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
42103 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
42104 { echo "$as_me:$LINENO: result: no" >&5
42105 echo "${ECHO_T}no" >&6; }
42106 unset HAS_OPENH323
42107 else
42108 { echo "$as_me:$LINENO: result: yes" >&5
42109 echo "${ECHO_T}yes" >&6; }
42114 if test "${HAS_OPENH323:-unset}" != "unset"; then
42115 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
42116 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
42117 OPENH323_SUFFIX=
42118 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
42119 for pfx in $prefixes; do
42120 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
42121 libfile=
42122 if test -n "$files"; then
42123 for f in $files; do
42124 if test -f $f -a ! -L $f; then
42125 libfile=`basename $f`
42126 break;
42128 done
42130 if test -n "$libfile"; then
42131 OPENH323_PREFIX=$pfx
42132 break;
42134 done
42135 if test "${libfile:-unset}" != "unset"; then
42136 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
42138 case "${OPENH323_SUFFIX}" in
42140 OPENH323_BUILD="notrace";;
42142 OPENH323_BUILD="opt";;
42144 OPENH323_BUILD="debug";;
42146 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
42147 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
42148 if test "x$notrace" = "x"; then
42149 notrace="0"
42151 if test "$notrace" -ne 0; then
42152 OPENH323_BUILD="notrace"
42153 else
42154 OPENH323_BUILD="opt"
42156 OPENH323_LIB="-l${OPENH323_PREFIX}"
42157 else
42158 OPENH323_BUILD="notrace"
42161 esac
42162 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
42163 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
42169 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
42171 if test "${HAS_OPENH323:-unset}" != "unset"; then
42172 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
42173 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
42175 saved_cppflags="${CPPFLAGS}"
42176 saved_libs="${LIBS}"
42177 if test "${OPENH323_LIB:-unset}" != "unset"; then
42178 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
42179 else
42180 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
42182 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
42184 ac_ext=cpp
42185 ac_cpp='$CXXCPP $CPPFLAGS'
42186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42191 cat >conftest.$ac_ext <<_ACEOF
42192 /* confdefs.h. */
42193 _ACEOF
42194 cat confdefs.h >>conftest.$ac_ext
42195 cat >>conftest.$ac_ext <<_ACEOF
42196 /* end confdefs.h. */
42197 #include "ptlib.h"
42198 #include "h323.h"
42199 #include "h323ep.h"
42201 main ()
42203 H323EndPoint ep = H323EndPoint();
42205 return 0;
42207 _ACEOF
42208 rm -f conftest.$ac_objext conftest$ac_exeext
42209 if { (ac_try="$ac_link"
42210 case "(($ac_try" in
42211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42212 *) ac_try_echo=$ac_try;;
42213 esac
42214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42215 (eval "$ac_link") 2>conftest.er1
42216 ac_status=$?
42217 grep -v '^ *+' conftest.er1 >conftest.err
42218 rm -f conftest.er1
42219 cat conftest.err >&5
42220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42221 (exit $ac_status); } && {
42222 test -z "$ac_cxx_werror_flag" ||
42223 test ! -s conftest.err
42224 } && test -s conftest$ac_exeext &&
42225 $as_test_x conftest$ac_exeext; then
42226 { echo "$as_me:$LINENO: result: yes" >&5
42227 echo "${ECHO_T}yes" >&6; }
42228 ac_cv_lib_OPENH323="yes"
42230 else
42231 echo "$as_me: failed program was:" >&5
42232 sed 's/^/| /' conftest.$ac_ext >&5
42234 { echo "$as_me:$LINENO: result: no" >&5
42235 echo "${ECHO_T}no" >&6; }
42236 ac_cv_lib_OPENH323="no"
42241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42242 conftest$ac_exeext conftest.$ac_ext
42244 ac_ext=c
42245 ac_cpp='$CPP $CPPFLAGS'
42246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42251 LIBS="${saved_libs}"
42252 CPPFLAGS="${saved_cppflags}"
42254 if test "${ac_cv_lib_OPENH323}" = "yes"; then
42255 if test "${OPENH323_LIB:-undef}" = "undef"; then
42256 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
42257 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
42258 else
42259 OPENH323_LIB="-l${PLATFORM_OPENH323}"
42262 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
42263 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
42265 PBX_OPENH323=1
42267 cat >>confdefs.h <<\_ACEOF
42268 #define HAVE_OPENH323 1
42269 _ACEOF
42277 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
42278 pbxlibdir=""
42279 # if --with-LUA=DIR has been specified, use it.
42280 if test "x${LUA_DIR}" != "x"; then
42281 if test -d ${LUA_DIR}/lib; then
42282 pbxlibdir="-L${LUA_DIR}/lib"
42283 else
42284 pbxlibdir="-L${LUA_DIR}"
42287 pbxfuncname="luaL_newstate"
42288 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42289 AST_LUA_FOUND=yes
42290 else
42291 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
42292 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
42293 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
42294 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42295 echo $ECHO_N "(cached) $ECHO_C" >&6
42296 else
42297 ac_check_lib_save_LIBS=$LIBS
42298 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
42299 cat >conftest.$ac_ext <<_ACEOF
42300 /* confdefs.h. */
42301 _ACEOF
42302 cat confdefs.h >>conftest.$ac_ext
42303 cat >>conftest.$ac_ext <<_ACEOF
42304 /* end confdefs.h. */
42306 /* Override any GCC internal prototype to avoid an error.
42307 Use char because int might match the return type of a GCC
42308 builtin and then its argument prototype would still apply. */
42309 #ifdef __cplusplus
42310 extern "C"
42311 #endif
42312 char ${pbxfuncname} ();
42314 main ()
42316 return ${pbxfuncname} ();
42318 return 0;
42320 _ACEOF
42321 rm -f conftest.$ac_objext conftest$ac_exeext
42322 if { (ac_try="$ac_link"
42323 case "(($ac_try" in
42324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42325 *) ac_try_echo=$ac_try;;
42326 esac
42327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42328 (eval "$ac_link") 2>conftest.er1
42329 ac_status=$?
42330 grep -v '^ *+' conftest.er1 >conftest.err
42331 rm -f conftest.er1
42332 cat conftest.err >&5
42333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334 (exit $ac_status); } && {
42335 test -z "$ac_c_werror_flag" ||
42336 test ! -s conftest.err
42337 } && test -s conftest$ac_exeext &&
42338 $as_test_x conftest$ac_exeext; then
42339 eval "$as_ac_Lib=yes"
42340 else
42341 echo "$as_me: failed program was:" >&5
42342 sed 's/^/| /' conftest.$ac_ext >&5
42344 eval "$as_ac_Lib=no"
42347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42348 conftest$ac_exeext conftest.$ac_ext
42349 LIBS=$ac_check_lib_save_LIBS
42351 ac_res=`eval echo '${'$as_ac_Lib'}'`
42352 { echo "$as_me:$LINENO: result: $ac_res" >&5
42353 echo "${ECHO_T}$ac_res" >&6; }
42354 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42355 AST_LUA_FOUND=yes
42356 else
42357 AST_LUA_FOUND=no
42362 # now check for the header.
42363 if test "${AST_LUA_FOUND}" = "yes"; then
42364 LUA_LIB="${pbxlibdir} -llua5.1 "
42365 # if --with-LUA=DIR has been specified, use it.
42366 if test "x${LUA_DIR}" != "x"; then
42367 LUA_INCLUDE="-I${LUA_DIR}/include"
42369 LUA_INCLUDE="${LUA_INCLUDE} "
42370 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
42371 LUA_HEADER_FOUND="1"
42372 else # check for the header
42373 saved_cppflags="${CPPFLAGS}"
42374 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
42375 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42376 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
42377 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
42378 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42379 echo $ECHO_N "(cached) $ECHO_C" >&6
42381 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
42382 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
42383 else
42384 # Is the header compilable?
42385 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
42386 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
42387 cat >conftest.$ac_ext <<_ACEOF
42388 /* confdefs.h. */
42389 _ACEOF
42390 cat confdefs.h >>conftest.$ac_ext
42391 cat >>conftest.$ac_ext <<_ACEOF
42392 /* end confdefs.h. */
42393 $ac_includes_default
42394 #include <lua5.1/lua.h>
42395 _ACEOF
42396 rm -f conftest.$ac_objext
42397 if { (ac_try="$ac_compile"
42398 case "(($ac_try" in
42399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42400 *) ac_try_echo=$ac_try;;
42401 esac
42402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42403 (eval "$ac_compile") 2>conftest.er1
42404 ac_status=$?
42405 grep -v '^ *+' conftest.er1 >conftest.err
42406 rm -f conftest.er1
42407 cat conftest.err >&5
42408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42409 (exit $ac_status); } && {
42410 test -z "$ac_c_werror_flag" ||
42411 test ! -s conftest.err
42412 } && test -s conftest.$ac_objext; then
42413 ac_header_compiler=yes
42414 else
42415 echo "$as_me: failed program was:" >&5
42416 sed 's/^/| /' conftest.$ac_ext >&5
42418 ac_header_compiler=no
42421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42423 echo "${ECHO_T}$ac_header_compiler" >&6; }
42425 # Is the header present?
42426 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
42427 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
42428 cat >conftest.$ac_ext <<_ACEOF
42429 /* confdefs.h. */
42430 _ACEOF
42431 cat confdefs.h >>conftest.$ac_ext
42432 cat >>conftest.$ac_ext <<_ACEOF
42433 /* end confdefs.h. */
42434 #include <lua5.1/lua.h>
42435 _ACEOF
42436 if { (ac_try="$ac_cpp conftest.$ac_ext"
42437 case "(($ac_try" in
42438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42439 *) ac_try_echo=$ac_try;;
42440 esac
42441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42443 ac_status=$?
42444 grep -v '^ *+' conftest.er1 >conftest.err
42445 rm -f conftest.er1
42446 cat conftest.err >&5
42447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42448 (exit $ac_status); } >/dev/null && {
42449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42450 test ! -s conftest.err
42451 }; then
42452 ac_header_preproc=yes
42453 else
42454 echo "$as_me: failed program was:" >&5
42455 sed 's/^/| /' conftest.$ac_ext >&5
42457 ac_header_preproc=no
42460 rm -f conftest.err conftest.$ac_ext
42461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42462 echo "${ECHO_T}$ac_header_preproc" >&6; }
42464 # So? What about this header?
42465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42466 yes:no: )
42467 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
42468 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42469 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
42470 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
42471 ac_header_preproc=yes
42473 no:yes:* )
42474 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
42475 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
42476 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
42477 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
42478 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
42479 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
42480 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
42481 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
42482 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
42483 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
42484 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
42485 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
42486 ( cat <<\_ASBOX
42487 ## ------------------------------- ##
42488 ## Report this to www.asterisk.org ##
42489 ## ------------------------------- ##
42490 _ASBOX
42491 ) | sed "s/^/$as_me: WARNING: /" >&2
42493 esac
42494 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
42495 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
42496 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
42497 echo $ECHO_N "(cached) $ECHO_C" >&6
42498 else
42499 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
42501 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
42502 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
42505 if test $ac_cv_header_lua5_1_lua_h = yes; then
42506 LUA_HEADER_FOUND=1
42507 else
42508 LUA_HEADER_FOUND=0
42512 CPPFLAGS="${saved_cppflags}"
42514 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
42515 LUA_LIB=""
42516 LUA_INCLUDE=""
42517 else
42518 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42519 LUA_LIB=""
42521 PBX_LUA=1
42522 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42524 cat >>confdefs.h <<_ACEOF
42525 #define HAVE_LUA 1
42526 _ACEOF
42529 cat >>confdefs.h <<_ACEOF
42530 #define HAVE_LUA_VERSION
42531 _ACEOF
42539 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
42540 pbxlibdir=""
42541 # if --with-RADIUS=DIR has been specified, use it.
42542 if test "x${RADIUS_DIR}" != "x"; then
42543 if test -d ${RADIUS_DIR}/lib; then
42544 pbxlibdir="-L${RADIUS_DIR}/lib"
42545 else
42546 pbxlibdir="-L${RADIUS_DIR}"
42549 pbxfuncname="rc_read_config"
42550 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42551 AST_RADIUS_FOUND=yes
42552 else
42553 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
42554 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
42555 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
42556 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42557 echo $ECHO_N "(cached) $ECHO_C" >&6
42558 else
42559 ac_check_lib_save_LIBS=$LIBS
42560 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
42561 cat >conftest.$ac_ext <<_ACEOF
42562 /* confdefs.h. */
42563 _ACEOF
42564 cat confdefs.h >>conftest.$ac_ext
42565 cat >>conftest.$ac_ext <<_ACEOF
42566 /* end confdefs.h. */
42568 /* Override any GCC internal prototype to avoid an error.
42569 Use char because int might match the return type of a GCC
42570 builtin and then its argument prototype would still apply. */
42571 #ifdef __cplusplus
42572 extern "C"
42573 #endif
42574 char ${pbxfuncname} ();
42576 main ()
42578 return ${pbxfuncname} ();
42580 return 0;
42582 _ACEOF
42583 rm -f conftest.$ac_objext conftest$ac_exeext
42584 if { (ac_try="$ac_link"
42585 case "(($ac_try" in
42586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42587 *) ac_try_echo=$ac_try;;
42588 esac
42589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42590 (eval "$ac_link") 2>conftest.er1
42591 ac_status=$?
42592 grep -v '^ *+' conftest.er1 >conftest.err
42593 rm -f conftest.er1
42594 cat conftest.err >&5
42595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596 (exit $ac_status); } && {
42597 test -z "$ac_c_werror_flag" ||
42598 test ! -s conftest.err
42599 } && test -s conftest$ac_exeext &&
42600 $as_test_x conftest$ac_exeext; then
42601 eval "$as_ac_Lib=yes"
42602 else
42603 echo "$as_me: failed program was:" >&5
42604 sed 's/^/| /' conftest.$ac_ext >&5
42606 eval "$as_ac_Lib=no"
42609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42610 conftest$ac_exeext conftest.$ac_ext
42611 LIBS=$ac_check_lib_save_LIBS
42613 ac_res=`eval echo '${'$as_ac_Lib'}'`
42614 { echo "$as_me:$LINENO: result: $ac_res" >&5
42615 echo "${ECHO_T}$ac_res" >&6; }
42616 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42617 AST_RADIUS_FOUND=yes
42618 else
42619 AST_RADIUS_FOUND=no
42624 # now check for the header.
42625 if test "${AST_RADIUS_FOUND}" = "yes"; then
42626 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
42627 # if --with-RADIUS=DIR has been specified, use it.
42628 if test "x${RADIUS_DIR}" != "x"; then
42629 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
42631 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
42632 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
42633 RADIUS_HEADER_FOUND="1"
42634 else # check for the header
42635 saved_cppflags="${CPPFLAGS}"
42636 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
42637 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42638 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42639 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42640 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42641 echo $ECHO_N "(cached) $ECHO_C" >&6
42643 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42644 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42645 else
42646 # Is the header compilable?
42647 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
42648 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
42649 cat >conftest.$ac_ext <<_ACEOF
42650 /* confdefs.h. */
42651 _ACEOF
42652 cat confdefs.h >>conftest.$ac_ext
42653 cat >>conftest.$ac_ext <<_ACEOF
42654 /* end confdefs.h. */
42655 $ac_includes_default
42656 #include <radiusclient-ng.h>
42657 _ACEOF
42658 rm -f conftest.$ac_objext
42659 if { (ac_try="$ac_compile"
42660 case "(($ac_try" in
42661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42662 *) ac_try_echo=$ac_try;;
42663 esac
42664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42665 (eval "$ac_compile") 2>conftest.er1
42666 ac_status=$?
42667 grep -v '^ *+' conftest.er1 >conftest.err
42668 rm -f conftest.er1
42669 cat conftest.err >&5
42670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42671 (exit $ac_status); } && {
42672 test -z "$ac_c_werror_flag" ||
42673 test ! -s conftest.err
42674 } && test -s conftest.$ac_objext; then
42675 ac_header_compiler=yes
42676 else
42677 echo "$as_me: failed program was:" >&5
42678 sed 's/^/| /' conftest.$ac_ext >&5
42680 ac_header_compiler=no
42683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42685 echo "${ECHO_T}$ac_header_compiler" >&6; }
42687 # Is the header present?
42688 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
42689 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
42690 cat >conftest.$ac_ext <<_ACEOF
42691 /* confdefs.h. */
42692 _ACEOF
42693 cat confdefs.h >>conftest.$ac_ext
42694 cat >>conftest.$ac_ext <<_ACEOF
42695 /* end confdefs.h. */
42696 #include <radiusclient-ng.h>
42697 _ACEOF
42698 if { (ac_try="$ac_cpp conftest.$ac_ext"
42699 case "(($ac_try" in
42700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42701 *) ac_try_echo=$ac_try;;
42702 esac
42703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42705 ac_status=$?
42706 grep -v '^ *+' conftest.er1 >conftest.err
42707 rm -f conftest.er1
42708 cat conftest.err >&5
42709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710 (exit $ac_status); } >/dev/null && {
42711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42712 test ! -s conftest.err
42713 }; then
42714 ac_header_preproc=yes
42715 else
42716 echo "$as_me: failed program was:" >&5
42717 sed 's/^/| /' conftest.$ac_ext >&5
42719 ac_header_preproc=no
42722 rm -f conftest.err conftest.$ac_ext
42723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42724 echo "${ECHO_T}$ac_header_preproc" >&6; }
42726 # So? What about this header?
42727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42728 yes:no: )
42729 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
42730 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42731 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
42732 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
42733 ac_header_preproc=yes
42735 no:yes:* )
42736 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
42737 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
42738 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
42739 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
42740 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
42741 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
42742 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
42743 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
42744 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
42745 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
42746 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
42747 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
42748 ( cat <<\_ASBOX
42749 ## ------------------------------- ##
42750 ## Report this to www.asterisk.org ##
42751 ## ------------------------------- ##
42752 _ASBOX
42753 ) | sed "s/^/$as_me: WARNING: /" >&2
42755 esac
42756 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42757 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42758 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42759 echo $ECHO_N "(cached) $ECHO_C" >&6
42760 else
42761 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
42763 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42764 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42767 if test $ac_cv_header_radiusclient_ng_h = yes; then
42768 RADIUS_HEADER_FOUND=1
42769 else
42770 RADIUS_HEADER_FOUND=0
42774 CPPFLAGS="${saved_cppflags}"
42776 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
42777 RADIUS_LIB=""
42778 RADIUS_INCLUDE=""
42779 else
42780 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42781 RADIUS_LIB=""
42783 PBX_RADIUS=1
42784 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42786 cat >>confdefs.h <<_ACEOF
42787 #define HAVE_RADIUS 1
42788 _ACEOF
42791 cat >>confdefs.h <<_ACEOF
42792 #define HAVE_RADIUS_VERSION
42793 _ACEOF
42800 # This is a bit complex... in reality, Asterisk's AIS support is dependent on finding
42801 # *any* implementation of AIS, not just OpenAIS. However, the configure script needs
42802 # to know the specifics of each possible implementation, and then represent the one
42803 # that was found as 'AIS'.
42805 PBX_AIS=0
42807 # OpenAIS installs its libraries into /usr/lib/openais by default, so check there
42810 if test "x${PBX_OPENAIS}" != "x1" -a "${USE_OPENAIS}" != "no"; then
42811 pbxlibdir=""
42812 # if --with-OPENAIS=DIR has been specified, use it.
42813 if test "x${OPENAIS_DIR}" != "x"; then
42814 if test -d ${OPENAIS_DIR}/lib; then
42815 pbxlibdir="-L${OPENAIS_DIR}/lib"
42816 else
42817 pbxlibdir="-L${OPENAIS_DIR}"
42820 pbxfuncname="saClmInitialize"
42821 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42822 AST_OPENAIS_FOUND=yes
42823 else
42824 as_ac_Lib=`echo "ac_cv_lib_SaClm_${pbxfuncname}" | $as_tr_sh`
42825 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaClm" >&5
42826 echo $ECHO_N "checking for ${pbxfuncname} in -lSaClm... $ECHO_C" >&6; }
42827 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42828 echo $ECHO_N "(cached) $ECHO_C" >&6
42829 else
42830 ac_check_lib_save_LIBS=$LIBS
42831 LIBS="-lSaClm ${pbxlibdir} -L/usr/lib/openais $LIBS"
42832 cat >conftest.$ac_ext <<_ACEOF
42833 /* confdefs.h. */
42834 _ACEOF
42835 cat confdefs.h >>conftest.$ac_ext
42836 cat >>conftest.$ac_ext <<_ACEOF
42837 /* end confdefs.h. */
42839 /* Override any GCC internal prototype to avoid an error.
42840 Use char because int might match the return type of a GCC
42841 builtin and then its argument prototype would still apply. */
42842 #ifdef __cplusplus
42843 extern "C"
42844 #endif
42845 char ${pbxfuncname} ();
42847 main ()
42849 return ${pbxfuncname} ();
42851 return 0;
42853 _ACEOF
42854 rm -f conftest.$ac_objext conftest$ac_exeext
42855 if { (ac_try="$ac_link"
42856 case "(($ac_try" in
42857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42858 *) ac_try_echo=$ac_try;;
42859 esac
42860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42861 (eval "$ac_link") 2>conftest.er1
42862 ac_status=$?
42863 grep -v '^ *+' conftest.er1 >conftest.err
42864 rm -f conftest.er1
42865 cat conftest.err >&5
42866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42867 (exit $ac_status); } && {
42868 test -z "$ac_c_werror_flag" ||
42869 test ! -s conftest.err
42870 } && test -s conftest$ac_exeext &&
42871 $as_test_x conftest$ac_exeext; then
42872 eval "$as_ac_Lib=yes"
42873 else
42874 echo "$as_me: failed program was:" >&5
42875 sed 's/^/| /' conftest.$ac_ext >&5
42877 eval "$as_ac_Lib=no"
42880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42881 conftest$ac_exeext conftest.$ac_ext
42882 LIBS=$ac_check_lib_save_LIBS
42884 ac_res=`eval echo '${'$as_ac_Lib'}'`
42885 { echo "$as_me:$LINENO: result: $ac_res" >&5
42886 echo "${ECHO_T}$ac_res" >&6; }
42887 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42888 AST_OPENAIS_FOUND=yes
42889 else
42890 AST_OPENAIS_FOUND=no
42895 # now check for the header.
42896 if test "${AST_OPENAIS_FOUND}" = "yes"; then
42897 OPENAIS_LIB="${pbxlibdir} -lSaClm -L/usr/lib/openais"
42898 # if --with-OPENAIS=DIR has been specified, use it.
42899 if test "x${OPENAIS_DIR}" != "x"; then
42900 OPENAIS_INCLUDE="-I${OPENAIS_DIR}/include"
42902 OPENAIS_INCLUDE="${OPENAIS_INCLUDE} "
42903 if test "xopenais/saClm.h" = "x" ; then # no header, assume found
42904 OPENAIS_HEADER_FOUND="1"
42905 else # check for the header
42906 saved_cppflags="${CPPFLAGS}"
42907 CPPFLAGS="${CPPFLAGS} ${OPENAIS_INCLUDE}"
42908 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42909 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
42910 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
42911 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42912 echo $ECHO_N "(cached) $ECHO_C" >&6
42914 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
42915 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
42916 else
42917 # Is the header compilable?
42918 { echo "$as_me:$LINENO: checking openais/saClm.h usability" >&5
42919 echo $ECHO_N "checking openais/saClm.h usability... $ECHO_C" >&6; }
42920 cat >conftest.$ac_ext <<_ACEOF
42921 /* confdefs.h. */
42922 _ACEOF
42923 cat confdefs.h >>conftest.$ac_ext
42924 cat >>conftest.$ac_ext <<_ACEOF
42925 /* end confdefs.h. */
42926 $ac_includes_default
42927 #include <openais/saClm.h>
42928 _ACEOF
42929 rm -f conftest.$ac_objext
42930 if { (ac_try="$ac_compile"
42931 case "(($ac_try" in
42932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42933 *) ac_try_echo=$ac_try;;
42934 esac
42935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42936 (eval "$ac_compile") 2>conftest.er1
42937 ac_status=$?
42938 grep -v '^ *+' conftest.er1 >conftest.err
42939 rm -f conftest.er1
42940 cat conftest.err >&5
42941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42942 (exit $ac_status); } && {
42943 test -z "$ac_c_werror_flag" ||
42944 test ! -s conftest.err
42945 } && test -s conftest.$ac_objext; then
42946 ac_header_compiler=yes
42947 else
42948 echo "$as_me: failed program was:" >&5
42949 sed 's/^/| /' conftest.$ac_ext >&5
42951 ac_header_compiler=no
42954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42956 echo "${ECHO_T}$ac_header_compiler" >&6; }
42958 # Is the header present?
42959 { echo "$as_me:$LINENO: checking openais/saClm.h presence" >&5
42960 echo $ECHO_N "checking openais/saClm.h presence... $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 #include <openais/saClm.h>
42968 _ACEOF
42969 if { (ac_try="$ac_cpp conftest.$ac_ext"
42970 case "(($ac_try" in
42971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42972 *) ac_try_echo=$ac_try;;
42973 esac
42974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42976 ac_status=$?
42977 grep -v '^ *+' conftest.er1 >conftest.err
42978 rm -f conftest.er1
42979 cat conftest.err >&5
42980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981 (exit $ac_status); } >/dev/null && {
42982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42983 test ! -s conftest.err
42984 }; then
42985 ac_header_preproc=yes
42986 else
42987 echo "$as_me: failed program was:" >&5
42988 sed 's/^/| /' conftest.$ac_ext >&5
42990 ac_header_preproc=no
42993 rm -f conftest.err conftest.$ac_ext
42994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42995 echo "${ECHO_T}$ac_header_preproc" >&6; }
42997 # So? What about this header?
42998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42999 yes:no: )
43000 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&5
43001 echo "$as_me: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43002 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the compiler's result" >&5
43003 echo "$as_me: WARNING: openais/saClm.h: proceeding with the compiler's result" >&2;}
43004 ac_header_preproc=yes
43006 no:yes:* )
43007 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: present but cannot be compiled" >&5
43008 echo "$as_me: WARNING: openais/saClm.h: present but cannot be compiled" >&2;}
43009 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&5
43010 echo "$as_me: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&2;}
43011 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: see the Autoconf documentation" >&5
43012 echo "$as_me: WARNING: openais/saClm.h: see the Autoconf documentation" >&2;}
43013 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&5
43014 echo "$as_me: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&2;}
43015 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&5
43016 echo "$as_me: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&2;}
43017 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&5
43018 echo "$as_me: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&2;}
43019 ( cat <<\_ASBOX
43020 ## ------------------------------- ##
43021 ## Report this to www.asterisk.org ##
43022 ## ------------------------------- ##
43023 _ASBOX
43024 ) | sed "s/^/$as_me: WARNING: /" >&2
43026 esac
43027 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
43028 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
43029 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
43030 echo $ECHO_N "(cached) $ECHO_C" >&6
43031 else
43032 ac_cv_header_openais_saClm_h=$ac_header_preproc
43034 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
43035 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
43038 if test $ac_cv_header_openais_saClm_h = yes; then
43039 OPENAIS_HEADER_FOUND=1
43040 else
43041 OPENAIS_HEADER_FOUND=0
43045 CPPFLAGS="${saved_cppflags}"
43047 if test "x${OPENAIS_HEADER_FOUND}" = "x0" ; then
43048 OPENAIS_LIB=""
43049 OPENAIS_INCLUDE=""
43050 else
43051 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43052 OPENAIS_LIB=""
43054 PBX_OPENAIS=1
43055 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43057 cat >>confdefs.h <<_ACEOF
43058 #define HAVE_OPENAIS 1
43059 _ACEOF
43062 cat >>confdefs.h <<_ACEOF
43063 #define HAVE_OPENAIS_VERSION
43064 _ACEOF
43071 if test "${PBX_OPENAIS}" = 1; then
43072 PBX_AIS=1
43073 if test -n "${OPENAIS_DIR}"; then
43074 AIS_INCLUDE="${OPENAIS_INCLUDE}/openais"
43075 AIS_LIB="-lSaEvt ${OPENAIS_LIB}"
43076 else
43077 AIS_INCLUDE="-I/usr/include/openais"
43078 AIS_LIB="-lSaClm -lSaEvt -L/usr/lib/openais"
43087 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
43088 pbxlibdir=""
43089 # if --with-SPEEX=DIR has been specified, use it.
43090 if test "x${SPEEX_DIR}" != "x"; then
43091 if test -d ${SPEEX_DIR}/lib; then
43092 pbxlibdir="-L${SPEEX_DIR}/lib"
43093 else
43094 pbxlibdir="-L${SPEEX_DIR}"
43097 pbxfuncname="speex_encode"
43098 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43099 AST_SPEEX_FOUND=yes
43100 else
43101 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
43102 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
43103 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
43104 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43105 echo $ECHO_N "(cached) $ECHO_C" >&6
43106 else
43107 ac_check_lib_save_LIBS=$LIBS
43108 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
43109 cat >conftest.$ac_ext <<_ACEOF
43110 /* confdefs.h. */
43111 _ACEOF
43112 cat confdefs.h >>conftest.$ac_ext
43113 cat >>conftest.$ac_ext <<_ACEOF
43114 /* end confdefs.h. */
43116 /* Override any GCC internal prototype to avoid an error.
43117 Use char because int might match the return type of a GCC
43118 builtin and then its argument prototype would still apply. */
43119 #ifdef __cplusplus
43120 extern "C"
43121 #endif
43122 char ${pbxfuncname} ();
43124 main ()
43126 return ${pbxfuncname} ();
43128 return 0;
43130 _ACEOF
43131 rm -f conftest.$ac_objext conftest$ac_exeext
43132 if { (ac_try="$ac_link"
43133 case "(($ac_try" in
43134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43135 *) ac_try_echo=$ac_try;;
43136 esac
43137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43138 (eval "$ac_link") 2>conftest.er1
43139 ac_status=$?
43140 grep -v '^ *+' conftest.er1 >conftest.err
43141 rm -f conftest.er1
43142 cat conftest.err >&5
43143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43144 (exit $ac_status); } && {
43145 test -z "$ac_c_werror_flag" ||
43146 test ! -s conftest.err
43147 } && test -s conftest$ac_exeext &&
43148 $as_test_x conftest$ac_exeext; then
43149 eval "$as_ac_Lib=yes"
43150 else
43151 echo "$as_me: failed program was:" >&5
43152 sed 's/^/| /' conftest.$ac_ext >&5
43154 eval "$as_ac_Lib=no"
43157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43158 conftest$ac_exeext conftest.$ac_ext
43159 LIBS=$ac_check_lib_save_LIBS
43161 ac_res=`eval echo '${'$as_ac_Lib'}'`
43162 { echo "$as_me:$LINENO: result: $ac_res" >&5
43163 echo "${ECHO_T}$ac_res" >&6; }
43164 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43165 AST_SPEEX_FOUND=yes
43166 else
43167 AST_SPEEX_FOUND=no
43172 # now check for the header.
43173 if test "${AST_SPEEX_FOUND}" = "yes"; then
43174 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
43175 # if --with-SPEEX=DIR has been specified, use it.
43176 if test "x${SPEEX_DIR}" != "x"; then
43177 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
43179 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
43180 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43181 SPEEX_HEADER_FOUND="1"
43182 else # check for the header
43183 saved_cppflags="${CPPFLAGS}"
43184 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
43185 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43186 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43187 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43188 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43189 echo $ECHO_N "(cached) $ECHO_C" >&6
43191 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43192 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43193 else
43194 # Is the header compilable?
43195 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43196 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43197 cat >conftest.$ac_ext <<_ACEOF
43198 /* confdefs.h. */
43199 _ACEOF
43200 cat confdefs.h >>conftest.$ac_ext
43201 cat >>conftest.$ac_ext <<_ACEOF
43202 /* end confdefs.h. */
43203 $ac_includes_default
43204 #include <speex/speex.h>
43205 _ACEOF
43206 rm -f conftest.$ac_objext
43207 if { (ac_try="$ac_compile"
43208 case "(($ac_try" in
43209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43210 *) ac_try_echo=$ac_try;;
43211 esac
43212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43213 (eval "$ac_compile") 2>conftest.er1
43214 ac_status=$?
43215 grep -v '^ *+' conftest.er1 >conftest.err
43216 rm -f conftest.er1
43217 cat conftest.err >&5
43218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43219 (exit $ac_status); } && {
43220 test -z "$ac_c_werror_flag" ||
43221 test ! -s conftest.err
43222 } && test -s conftest.$ac_objext; then
43223 ac_header_compiler=yes
43224 else
43225 echo "$as_me: failed program was:" >&5
43226 sed 's/^/| /' conftest.$ac_ext >&5
43228 ac_header_compiler=no
43231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43233 echo "${ECHO_T}$ac_header_compiler" >&6; }
43235 # Is the header present?
43236 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43237 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43238 cat >conftest.$ac_ext <<_ACEOF
43239 /* confdefs.h. */
43240 _ACEOF
43241 cat confdefs.h >>conftest.$ac_ext
43242 cat >>conftest.$ac_ext <<_ACEOF
43243 /* end confdefs.h. */
43244 #include <speex/speex.h>
43245 _ACEOF
43246 if { (ac_try="$ac_cpp conftest.$ac_ext"
43247 case "(($ac_try" in
43248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43249 *) ac_try_echo=$ac_try;;
43250 esac
43251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43253 ac_status=$?
43254 grep -v '^ *+' conftest.er1 >conftest.err
43255 rm -f conftest.er1
43256 cat conftest.err >&5
43257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43258 (exit $ac_status); } >/dev/null && {
43259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43260 test ! -s conftest.err
43261 }; then
43262 ac_header_preproc=yes
43263 else
43264 echo "$as_me: failed program was:" >&5
43265 sed 's/^/| /' conftest.$ac_ext >&5
43267 ac_header_preproc=no
43270 rm -f conftest.err conftest.$ac_ext
43271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43272 echo "${ECHO_T}$ac_header_preproc" >&6; }
43274 # So? What about this header?
43275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43276 yes:no: )
43277 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43278 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43279 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43280 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43281 ac_header_preproc=yes
43283 no:yes:* )
43284 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43285 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43286 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43287 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43288 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43289 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43290 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43291 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43292 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43293 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43294 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43295 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43296 ( cat <<\_ASBOX
43297 ## ------------------------------- ##
43298 ## Report this to www.asterisk.org ##
43299 ## ------------------------------- ##
43300 _ASBOX
43301 ) | sed "s/^/$as_me: WARNING: /" >&2
43303 esac
43304 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43305 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43306 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43307 echo $ECHO_N "(cached) $ECHO_C" >&6
43308 else
43309 ac_cv_header_speex_speex_h=$ac_header_preproc
43311 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43312 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43315 if test $ac_cv_header_speex_speex_h = yes; then
43316 SPEEX_HEADER_FOUND=1
43317 else
43318 SPEEX_HEADER_FOUND=0
43322 CPPFLAGS="${saved_cppflags}"
43324 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
43325 SPEEX_LIB=""
43326 SPEEX_INCLUDE=""
43327 else
43328 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43329 SPEEX_LIB=""
43331 PBX_SPEEX=1
43332 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43334 cat >>confdefs.h <<_ACEOF
43335 #define HAVE_SPEEX 1
43336 _ACEOF
43339 cat >>confdefs.h <<_ACEOF
43340 #define HAVE_SPEEX_VERSION
43341 _ACEOF
43348 # See if the main speex library contains the preprocess functions
43350 if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
43351 pbxlibdir=""
43352 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
43353 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
43354 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
43355 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
43356 else
43357 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
43360 pbxfuncname="speex_preprocess_ctl"
43361 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43362 AST_SPEEX_PREPROCESS_FOUND=yes
43363 else
43364 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
43365 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
43366 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
43367 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43368 echo $ECHO_N "(cached) $ECHO_C" >&6
43369 else
43370 ac_check_lib_save_LIBS=$LIBS
43371 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
43372 cat >conftest.$ac_ext <<_ACEOF
43373 /* confdefs.h. */
43374 _ACEOF
43375 cat confdefs.h >>conftest.$ac_ext
43376 cat >>conftest.$ac_ext <<_ACEOF
43377 /* end confdefs.h. */
43379 /* Override any GCC internal prototype to avoid an error.
43380 Use char because int might match the return type of a GCC
43381 builtin and then its argument prototype would still apply. */
43382 #ifdef __cplusplus
43383 extern "C"
43384 #endif
43385 char ${pbxfuncname} ();
43387 main ()
43389 return ${pbxfuncname} ();
43391 return 0;
43393 _ACEOF
43394 rm -f conftest.$ac_objext conftest$ac_exeext
43395 if { (ac_try="$ac_link"
43396 case "(($ac_try" in
43397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43398 *) ac_try_echo=$ac_try;;
43399 esac
43400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43401 (eval "$ac_link") 2>conftest.er1
43402 ac_status=$?
43403 grep -v '^ *+' conftest.er1 >conftest.err
43404 rm -f conftest.er1
43405 cat conftest.err >&5
43406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407 (exit $ac_status); } && {
43408 test -z "$ac_c_werror_flag" ||
43409 test ! -s conftest.err
43410 } && test -s conftest$ac_exeext &&
43411 $as_test_x conftest$ac_exeext; then
43412 eval "$as_ac_Lib=yes"
43413 else
43414 echo "$as_me: failed program was:" >&5
43415 sed 's/^/| /' conftest.$ac_ext >&5
43417 eval "$as_ac_Lib=no"
43420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43421 conftest$ac_exeext conftest.$ac_ext
43422 LIBS=$ac_check_lib_save_LIBS
43424 ac_res=`eval echo '${'$as_ac_Lib'}'`
43425 { echo "$as_me:$LINENO: result: $ac_res" >&5
43426 echo "${ECHO_T}$ac_res" >&6; }
43427 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43428 AST_SPEEX_PREPROCESS_FOUND=yes
43429 else
43430 AST_SPEEX_PREPROCESS_FOUND=no
43435 # now check for the header.
43436 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
43437 SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
43438 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
43439 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
43440 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
43442 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
43443 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43444 SPEEX_PREPROCESS_HEADER_FOUND="1"
43445 else # check for the header
43446 saved_cppflags="${CPPFLAGS}"
43447 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
43448 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43449 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43450 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43451 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43452 echo $ECHO_N "(cached) $ECHO_C" >&6
43454 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43455 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43456 else
43457 # Is the header compilable?
43458 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43459 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43460 cat >conftest.$ac_ext <<_ACEOF
43461 /* confdefs.h. */
43462 _ACEOF
43463 cat confdefs.h >>conftest.$ac_ext
43464 cat >>conftest.$ac_ext <<_ACEOF
43465 /* end confdefs.h. */
43466 $ac_includes_default
43467 #include <speex/speex.h>
43468 _ACEOF
43469 rm -f conftest.$ac_objext
43470 if { (ac_try="$ac_compile"
43471 case "(($ac_try" in
43472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43473 *) ac_try_echo=$ac_try;;
43474 esac
43475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43476 (eval "$ac_compile") 2>conftest.er1
43477 ac_status=$?
43478 grep -v '^ *+' conftest.er1 >conftest.err
43479 rm -f conftest.er1
43480 cat conftest.err >&5
43481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43482 (exit $ac_status); } && {
43483 test -z "$ac_c_werror_flag" ||
43484 test ! -s conftest.err
43485 } && test -s conftest.$ac_objext; then
43486 ac_header_compiler=yes
43487 else
43488 echo "$as_me: failed program was:" >&5
43489 sed 's/^/| /' conftest.$ac_ext >&5
43491 ac_header_compiler=no
43494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43496 echo "${ECHO_T}$ac_header_compiler" >&6; }
43498 # Is the header present?
43499 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43500 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43501 cat >conftest.$ac_ext <<_ACEOF
43502 /* confdefs.h. */
43503 _ACEOF
43504 cat confdefs.h >>conftest.$ac_ext
43505 cat >>conftest.$ac_ext <<_ACEOF
43506 /* end confdefs.h. */
43507 #include <speex/speex.h>
43508 _ACEOF
43509 if { (ac_try="$ac_cpp conftest.$ac_ext"
43510 case "(($ac_try" in
43511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43512 *) ac_try_echo=$ac_try;;
43513 esac
43514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43516 ac_status=$?
43517 grep -v '^ *+' conftest.er1 >conftest.err
43518 rm -f conftest.er1
43519 cat conftest.err >&5
43520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43521 (exit $ac_status); } >/dev/null && {
43522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43523 test ! -s conftest.err
43524 }; then
43525 ac_header_preproc=yes
43526 else
43527 echo "$as_me: failed program was:" >&5
43528 sed 's/^/| /' conftest.$ac_ext >&5
43530 ac_header_preproc=no
43533 rm -f conftest.err conftest.$ac_ext
43534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43535 echo "${ECHO_T}$ac_header_preproc" >&6; }
43537 # So? What about this header?
43538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43539 yes:no: )
43540 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43541 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43542 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43543 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43544 ac_header_preproc=yes
43546 no:yes:* )
43547 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43548 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43549 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43550 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43551 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43552 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43553 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43554 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43555 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43556 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43557 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43558 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43559 ( cat <<\_ASBOX
43560 ## ------------------------------- ##
43561 ## Report this to www.asterisk.org ##
43562 ## ------------------------------- ##
43563 _ASBOX
43564 ) | sed "s/^/$as_me: WARNING: /" >&2
43566 esac
43567 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43568 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43569 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43570 echo $ECHO_N "(cached) $ECHO_C" >&6
43571 else
43572 ac_cv_header_speex_speex_h=$ac_header_preproc
43574 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43575 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43578 if test $ac_cv_header_speex_speex_h = yes; then
43579 SPEEX_PREPROCESS_HEADER_FOUND=1
43580 else
43581 SPEEX_PREPROCESS_HEADER_FOUND=0
43585 CPPFLAGS="${saved_cppflags}"
43587 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
43588 SPEEX_PREPROCESS_LIB=""
43589 SPEEX_PREPROCESS_INCLUDE=""
43590 else
43591 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43592 SPEEX_PREPROCESS_LIB=""
43594 PBX_SPEEX_PREPROCESS=1
43595 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43597 cat >>confdefs.h <<_ACEOF
43598 #define HAVE_SPEEX_PREPROCESS 1
43599 _ACEOF
43602 cat >>confdefs.h <<_ACEOF
43603 #define HAVE_SPEEX_PREPROCESS_VERSION
43604 _ACEOF
43610 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
43611 PBX_SPEEX_PREPROCESS=1
43615 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
43616 pbxlibdir=""
43617 # if --with-SPEEXDSP=DIR has been specified, use it.
43618 if test "x${SPEEXDSP_DIR}" != "x"; then
43619 if test -d ${SPEEXDSP_DIR}/lib; then
43620 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
43621 else
43622 pbxlibdir="-L${SPEEXDSP_DIR}"
43625 pbxfuncname="speex_preprocess_ctl"
43626 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43627 AST_SPEEXDSP_FOUND=yes
43628 else
43629 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
43630 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
43631 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
43632 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43633 echo $ECHO_N "(cached) $ECHO_C" >&6
43634 else
43635 ac_check_lib_save_LIBS=$LIBS
43636 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
43637 cat >conftest.$ac_ext <<_ACEOF
43638 /* confdefs.h. */
43639 _ACEOF
43640 cat confdefs.h >>conftest.$ac_ext
43641 cat >>conftest.$ac_ext <<_ACEOF
43642 /* end confdefs.h. */
43644 /* Override any GCC internal prototype to avoid an error.
43645 Use char because int might match the return type of a GCC
43646 builtin and then its argument prototype would still apply. */
43647 #ifdef __cplusplus
43648 extern "C"
43649 #endif
43650 char ${pbxfuncname} ();
43652 main ()
43654 return ${pbxfuncname} ();
43656 return 0;
43658 _ACEOF
43659 rm -f conftest.$ac_objext conftest$ac_exeext
43660 if { (ac_try="$ac_link"
43661 case "(($ac_try" in
43662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43663 *) ac_try_echo=$ac_try;;
43664 esac
43665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43666 (eval "$ac_link") 2>conftest.er1
43667 ac_status=$?
43668 grep -v '^ *+' conftest.er1 >conftest.err
43669 rm -f conftest.er1
43670 cat conftest.err >&5
43671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43672 (exit $ac_status); } && {
43673 test -z "$ac_c_werror_flag" ||
43674 test ! -s conftest.err
43675 } && test -s conftest$ac_exeext &&
43676 $as_test_x conftest$ac_exeext; then
43677 eval "$as_ac_Lib=yes"
43678 else
43679 echo "$as_me: failed program was:" >&5
43680 sed 's/^/| /' conftest.$ac_ext >&5
43682 eval "$as_ac_Lib=no"
43685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43686 conftest$ac_exeext conftest.$ac_ext
43687 LIBS=$ac_check_lib_save_LIBS
43689 ac_res=`eval echo '${'$as_ac_Lib'}'`
43690 { echo "$as_me:$LINENO: result: $ac_res" >&5
43691 echo "${ECHO_T}$ac_res" >&6; }
43692 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43693 AST_SPEEXDSP_FOUND=yes
43694 else
43695 AST_SPEEXDSP_FOUND=no
43700 # now check for the header.
43701 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
43702 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
43703 # if --with-SPEEXDSP=DIR has been specified, use it.
43704 if test "x${SPEEXDSP_DIR}" != "x"; then
43705 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
43707 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
43708 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43709 SPEEXDSP_HEADER_FOUND="1"
43710 else # check for the header
43711 saved_cppflags="${CPPFLAGS}"
43712 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
43713 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43714 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43715 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43716 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43717 echo $ECHO_N "(cached) $ECHO_C" >&6
43719 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43720 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43721 else
43722 # Is the header compilable?
43723 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43724 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43725 cat >conftest.$ac_ext <<_ACEOF
43726 /* confdefs.h. */
43727 _ACEOF
43728 cat confdefs.h >>conftest.$ac_ext
43729 cat >>conftest.$ac_ext <<_ACEOF
43730 /* end confdefs.h. */
43731 $ac_includes_default
43732 #include <speex/speex.h>
43733 _ACEOF
43734 rm -f conftest.$ac_objext
43735 if { (ac_try="$ac_compile"
43736 case "(($ac_try" in
43737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43738 *) ac_try_echo=$ac_try;;
43739 esac
43740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43741 (eval "$ac_compile") 2>conftest.er1
43742 ac_status=$?
43743 grep -v '^ *+' conftest.er1 >conftest.err
43744 rm -f conftest.er1
43745 cat conftest.err >&5
43746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43747 (exit $ac_status); } && {
43748 test -z "$ac_c_werror_flag" ||
43749 test ! -s conftest.err
43750 } && test -s conftest.$ac_objext; then
43751 ac_header_compiler=yes
43752 else
43753 echo "$as_me: failed program was:" >&5
43754 sed 's/^/| /' conftest.$ac_ext >&5
43756 ac_header_compiler=no
43759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43761 echo "${ECHO_T}$ac_header_compiler" >&6; }
43763 # Is the header present?
43764 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43765 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43766 cat >conftest.$ac_ext <<_ACEOF
43767 /* confdefs.h. */
43768 _ACEOF
43769 cat confdefs.h >>conftest.$ac_ext
43770 cat >>conftest.$ac_ext <<_ACEOF
43771 /* end confdefs.h. */
43772 #include <speex/speex.h>
43773 _ACEOF
43774 if { (ac_try="$ac_cpp conftest.$ac_ext"
43775 case "(($ac_try" in
43776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43777 *) ac_try_echo=$ac_try;;
43778 esac
43779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43781 ac_status=$?
43782 grep -v '^ *+' conftest.er1 >conftest.err
43783 rm -f conftest.er1
43784 cat conftest.err >&5
43785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786 (exit $ac_status); } >/dev/null && {
43787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43788 test ! -s conftest.err
43789 }; then
43790 ac_header_preproc=yes
43791 else
43792 echo "$as_me: failed program was:" >&5
43793 sed 's/^/| /' conftest.$ac_ext >&5
43795 ac_header_preproc=no
43798 rm -f conftest.err conftest.$ac_ext
43799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43800 echo "${ECHO_T}$ac_header_preproc" >&6; }
43802 # So? What about this header?
43803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43804 yes:no: )
43805 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43806 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43807 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43808 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43809 ac_header_preproc=yes
43811 no:yes:* )
43812 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43813 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43814 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43815 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43816 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43817 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43818 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43819 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43820 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43821 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43822 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43823 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43824 ( cat <<\_ASBOX
43825 ## ------------------------------- ##
43826 ## Report this to www.asterisk.org ##
43827 ## ------------------------------- ##
43828 _ASBOX
43829 ) | sed "s/^/$as_me: WARNING: /" >&2
43831 esac
43832 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43833 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43834 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43835 echo $ECHO_N "(cached) $ECHO_C" >&6
43836 else
43837 ac_cv_header_speex_speex_h=$ac_header_preproc
43839 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43840 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43843 if test $ac_cv_header_speex_speex_h = yes; then
43844 SPEEXDSP_HEADER_FOUND=1
43845 else
43846 SPEEXDSP_HEADER_FOUND=0
43850 CPPFLAGS="${saved_cppflags}"
43852 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
43853 SPEEXDSP_LIB=""
43854 SPEEXDSP_INCLUDE=""
43855 else
43856 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43857 SPEEXDSP_LIB=""
43859 PBX_SPEEXDSP=1
43860 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43862 cat >>confdefs.h <<_ACEOF
43863 #define HAVE_SPEEXDSP 1
43864 _ACEOF
43867 cat >>confdefs.h <<_ACEOF
43868 #define HAVE_SPEEXDSP_VERSION
43869 _ACEOF
43875 if test "${PBX_SPEEXDSP}" = 1; then
43876 PBX_SPEEX_PREPROCESS=1
43882 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
43883 pbxlibdir=""
43884 # if --with-SQLITE=DIR has been specified, use it.
43885 if test "x${SQLITE_DIR}" != "x"; then
43886 if test -d ${SQLITE_DIR}/lib; then
43887 pbxlibdir="-L${SQLITE_DIR}/lib"
43888 else
43889 pbxlibdir="-L${SQLITE_DIR}"
43892 pbxfuncname="sqlite_exec"
43893 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43894 AST_SQLITE_FOUND=yes
43895 else
43896 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
43897 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
43898 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
43899 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43900 echo $ECHO_N "(cached) $ECHO_C" >&6
43901 else
43902 ac_check_lib_save_LIBS=$LIBS
43903 LIBS="-lsqlite ${pbxlibdir} $LIBS"
43904 cat >conftest.$ac_ext <<_ACEOF
43905 /* confdefs.h. */
43906 _ACEOF
43907 cat confdefs.h >>conftest.$ac_ext
43908 cat >>conftest.$ac_ext <<_ACEOF
43909 /* end confdefs.h. */
43911 /* Override any GCC internal prototype to avoid an error.
43912 Use char because int might match the return type of a GCC
43913 builtin and then its argument prototype would still apply. */
43914 #ifdef __cplusplus
43915 extern "C"
43916 #endif
43917 char ${pbxfuncname} ();
43919 main ()
43921 return ${pbxfuncname} ();
43923 return 0;
43925 _ACEOF
43926 rm -f conftest.$ac_objext conftest$ac_exeext
43927 if { (ac_try="$ac_link"
43928 case "(($ac_try" in
43929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43930 *) ac_try_echo=$ac_try;;
43931 esac
43932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43933 (eval "$ac_link") 2>conftest.er1
43934 ac_status=$?
43935 grep -v '^ *+' conftest.er1 >conftest.err
43936 rm -f conftest.er1
43937 cat conftest.err >&5
43938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939 (exit $ac_status); } && {
43940 test -z "$ac_c_werror_flag" ||
43941 test ! -s conftest.err
43942 } && test -s conftest$ac_exeext &&
43943 $as_test_x conftest$ac_exeext; then
43944 eval "$as_ac_Lib=yes"
43945 else
43946 echo "$as_me: failed program was:" >&5
43947 sed 's/^/| /' conftest.$ac_ext >&5
43949 eval "$as_ac_Lib=no"
43952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43953 conftest$ac_exeext conftest.$ac_ext
43954 LIBS=$ac_check_lib_save_LIBS
43956 ac_res=`eval echo '${'$as_ac_Lib'}'`
43957 { echo "$as_me:$LINENO: result: $ac_res" >&5
43958 echo "${ECHO_T}$ac_res" >&6; }
43959 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43960 AST_SQLITE_FOUND=yes
43961 else
43962 AST_SQLITE_FOUND=no
43967 # now check for the header.
43968 if test "${AST_SQLITE_FOUND}" = "yes"; then
43969 SQLITE_LIB="${pbxlibdir} -lsqlite "
43970 # if --with-SQLITE=DIR has been specified, use it.
43971 if test "x${SQLITE_DIR}" != "x"; then
43972 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
43974 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
43975 if test "xsqlite.h" = "x" ; then # no header, assume found
43976 SQLITE_HEADER_FOUND="1"
43977 else # check for the header
43978 saved_cppflags="${CPPFLAGS}"
43979 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
43980 if test "${ac_cv_header_sqlite_h+set}" = set; then
43981 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
43982 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
43983 if test "${ac_cv_header_sqlite_h+set}" = set; then
43984 echo $ECHO_N "(cached) $ECHO_C" >&6
43986 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
43987 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
43988 else
43989 # Is the header compilable?
43990 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
43991 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
43992 cat >conftest.$ac_ext <<_ACEOF
43993 /* confdefs.h. */
43994 _ACEOF
43995 cat confdefs.h >>conftest.$ac_ext
43996 cat >>conftest.$ac_ext <<_ACEOF
43997 /* end confdefs.h. */
43998 $ac_includes_default
43999 #include <sqlite.h>
44000 _ACEOF
44001 rm -f conftest.$ac_objext
44002 if { (ac_try="$ac_compile"
44003 case "(($ac_try" in
44004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44005 *) ac_try_echo=$ac_try;;
44006 esac
44007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44008 (eval "$ac_compile") 2>conftest.er1
44009 ac_status=$?
44010 grep -v '^ *+' conftest.er1 >conftest.err
44011 rm -f conftest.er1
44012 cat conftest.err >&5
44013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44014 (exit $ac_status); } && {
44015 test -z "$ac_c_werror_flag" ||
44016 test ! -s conftest.err
44017 } && test -s conftest.$ac_objext; then
44018 ac_header_compiler=yes
44019 else
44020 echo "$as_me: failed program was:" >&5
44021 sed 's/^/| /' conftest.$ac_ext >&5
44023 ac_header_compiler=no
44026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44028 echo "${ECHO_T}$ac_header_compiler" >&6; }
44030 # Is the header present?
44031 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
44032 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
44033 cat >conftest.$ac_ext <<_ACEOF
44034 /* confdefs.h. */
44035 _ACEOF
44036 cat confdefs.h >>conftest.$ac_ext
44037 cat >>conftest.$ac_ext <<_ACEOF
44038 /* end confdefs.h. */
44039 #include <sqlite.h>
44040 _ACEOF
44041 if { (ac_try="$ac_cpp conftest.$ac_ext"
44042 case "(($ac_try" in
44043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44044 *) ac_try_echo=$ac_try;;
44045 esac
44046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44048 ac_status=$?
44049 grep -v '^ *+' conftest.er1 >conftest.err
44050 rm -f conftest.er1
44051 cat conftest.err >&5
44052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44053 (exit $ac_status); } >/dev/null && {
44054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44055 test ! -s conftest.err
44056 }; then
44057 ac_header_preproc=yes
44058 else
44059 echo "$as_me: failed program was:" >&5
44060 sed 's/^/| /' conftest.$ac_ext >&5
44062 ac_header_preproc=no
44065 rm -f conftest.err conftest.$ac_ext
44066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44067 echo "${ECHO_T}$ac_header_preproc" >&6; }
44069 # So? What about this header?
44070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44071 yes:no: )
44072 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
44073 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44074 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
44075 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
44076 ac_header_preproc=yes
44078 no:yes:* )
44079 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
44080 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
44081 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
44082 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
44083 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
44084 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
44085 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
44086 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
44087 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
44088 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
44089 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
44090 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
44091 ( cat <<\_ASBOX
44092 ## ------------------------------- ##
44093 ## Report this to www.asterisk.org ##
44094 ## ------------------------------- ##
44095 _ASBOX
44096 ) | sed "s/^/$as_me: WARNING: /" >&2
44098 esac
44099 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
44100 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
44101 if test "${ac_cv_header_sqlite_h+set}" = set; then
44102 echo $ECHO_N "(cached) $ECHO_C" >&6
44103 else
44104 ac_cv_header_sqlite_h=$ac_header_preproc
44106 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
44107 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
44110 if test $ac_cv_header_sqlite_h = yes; then
44111 SQLITE_HEADER_FOUND=1
44112 else
44113 SQLITE_HEADER_FOUND=0
44117 CPPFLAGS="${saved_cppflags}"
44119 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
44120 SQLITE_LIB=""
44121 SQLITE_INCLUDE=""
44122 else
44123 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44124 SQLITE_LIB=""
44126 PBX_SQLITE=1
44127 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44129 cat >>confdefs.h <<_ACEOF
44130 #define HAVE_SQLITE 1
44131 _ACEOF
44134 cat >>confdefs.h <<_ACEOF
44135 #define HAVE_SQLITE_VERSION
44136 _ACEOF
44144 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
44145 pbxlibdir=""
44146 # if --with-SQLITE3=DIR has been specified, use it.
44147 if test "x${SQLITE3_DIR}" != "x"; then
44148 if test -d ${SQLITE3_DIR}/lib; then
44149 pbxlibdir="-L${SQLITE3_DIR}/lib"
44150 else
44151 pbxlibdir="-L${SQLITE3_DIR}"
44154 pbxfuncname="sqlite3_open"
44155 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44156 AST_SQLITE3_FOUND=yes
44157 else
44158 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
44159 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
44160 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
44161 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44162 echo $ECHO_N "(cached) $ECHO_C" >&6
44163 else
44164 ac_check_lib_save_LIBS=$LIBS
44165 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
44166 cat >conftest.$ac_ext <<_ACEOF
44167 /* confdefs.h. */
44168 _ACEOF
44169 cat confdefs.h >>conftest.$ac_ext
44170 cat >>conftest.$ac_ext <<_ACEOF
44171 /* end confdefs.h. */
44173 /* Override any GCC internal prototype to avoid an error.
44174 Use char because int might match the return type of a GCC
44175 builtin and then its argument prototype would still apply. */
44176 #ifdef __cplusplus
44177 extern "C"
44178 #endif
44179 char ${pbxfuncname} ();
44181 main ()
44183 return ${pbxfuncname} ();
44185 return 0;
44187 _ACEOF
44188 rm -f conftest.$ac_objext conftest$ac_exeext
44189 if { (ac_try="$ac_link"
44190 case "(($ac_try" in
44191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44192 *) ac_try_echo=$ac_try;;
44193 esac
44194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44195 (eval "$ac_link") 2>conftest.er1
44196 ac_status=$?
44197 grep -v '^ *+' conftest.er1 >conftest.err
44198 rm -f conftest.er1
44199 cat conftest.err >&5
44200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44201 (exit $ac_status); } && {
44202 test -z "$ac_c_werror_flag" ||
44203 test ! -s conftest.err
44204 } && test -s conftest$ac_exeext &&
44205 $as_test_x conftest$ac_exeext; then
44206 eval "$as_ac_Lib=yes"
44207 else
44208 echo "$as_me: failed program was:" >&5
44209 sed 's/^/| /' conftest.$ac_ext >&5
44211 eval "$as_ac_Lib=no"
44214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44215 conftest$ac_exeext conftest.$ac_ext
44216 LIBS=$ac_check_lib_save_LIBS
44218 ac_res=`eval echo '${'$as_ac_Lib'}'`
44219 { echo "$as_me:$LINENO: result: $ac_res" >&5
44220 echo "${ECHO_T}$ac_res" >&6; }
44221 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44222 AST_SQLITE3_FOUND=yes
44223 else
44224 AST_SQLITE3_FOUND=no
44229 # now check for the header.
44230 if test "${AST_SQLITE3_FOUND}" = "yes"; then
44231 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
44232 # if --with-SQLITE3=DIR has been specified, use it.
44233 if test "x${SQLITE3_DIR}" != "x"; then
44234 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
44236 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
44237 if test "xsqlite3.h" = "x" ; then # no header, assume found
44238 SQLITE3_HEADER_FOUND="1"
44239 else # check for the header
44240 saved_cppflags="${CPPFLAGS}"
44241 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
44242 if test "${ac_cv_header_sqlite3_h+set}" = set; then
44243 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
44244 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
44245 if test "${ac_cv_header_sqlite3_h+set}" = set; then
44246 echo $ECHO_N "(cached) $ECHO_C" >&6
44248 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
44249 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
44250 else
44251 # Is the header compilable?
44252 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
44253 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
44254 cat >conftest.$ac_ext <<_ACEOF
44255 /* confdefs.h. */
44256 _ACEOF
44257 cat confdefs.h >>conftest.$ac_ext
44258 cat >>conftest.$ac_ext <<_ACEOF
44259 /* end confdefs.h. */
44260 $ac_includes_default
44261 #include <sqlite3.h>
44262 _ACEOF
44263 rm -f conftest.$ac_objext
44264 if { (ac_try="$ac_compile"
44265 case "(($ac_try" in
44266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44267 *) ac_try_echo=$ac_try;;
44268 esac
44269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44270 (eval "$ac_compile") 2>conftest.er1
44271 ac_status=$?
44272 grep -v '^ *+' conftest.er1 >conftest.err
44273 rm -f conftest.er1
44274 cat conftest.err >&5
44275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44276 (exit $ac_status); } && {
44277 test -z "$ac_c_werror_flag" ||
44278 test ! -s conftest.err
44279 } && test -s conftest.$ac_objext; then
44280 ac_header_compiler=yes
44281 else
44282 echo "$as_me: failed program was:" >&5
44283 sed 's/^/| /' conftest.$ac_ext >&5
44285 ac_header_compiler=no
44288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44290 echo "${ECHO_T}$ac_header_compiler" >&6; }
44292 # Is the header present?
44293 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
44294 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
44295 cat >conftest.$ac_ext <<_ACEOF
44296 /* confdefs.h. */
44297 _ACEOF
44298 cat confdefs.h >>conftest.$ac_ext
44299 cat >>conftest.$ac_ext <<_ACEOF
44300 /* end confdefs.h. */
44301 #include <sqlite3.h>
44302 _ACEOF
44303 if { (ac_try="$ac_cpp conftest.$ac_ext"
44304 case "(($ac_try" in
44305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44306 *) ac_try_echo=$ac_try;;
44307 esac
44308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44310 ac_status=$?
44311 grep -v '^ *+' conftest.er1 >conftest.err
44312 rm -f conftest.er1
44313 cat conftest.err >&5
44314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44315 (exit $ac_status); } >/dev/null && {
44316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44317 test ! -s conftest.err
44318 }; then
44319 ac_header_preproc=yes
44320 else
44321 echo "$as_me: failed program was:" >&5
44322 sed 's/^/| /' conftest.$ac_ext >&5
44324 ac_header_preproc=no
44327 rm -f conftest.err conftest.$ac_ext
44328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44329 echo "${ECHO_T}$ac_header_preproc" >&6; }
44331 # So? What about this header?
44332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44333 yes:no: )
44334 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
44335 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44336 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
44337 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
44338 ac_header_preproc=yes
44340 no:yes:* )
44341 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
44342 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
44343 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
44344 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
44345 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
44346 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
44347 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
44348 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
44349 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
44350 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
44351 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
44352 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
44353 ( cat <<\_ASBOX
44354 ## ------------------------------- ##
44355 ## Report this to www.asterisk.org ##
44356 ## ------------------------------- ##
44357 _ASBOX
44358 ) | sed "s/^/$as_me: WARNING: /" >&2
44360 esac
44361 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
44362 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
44363 if test "${ac_cv_header_sqlite3_h+set}" = set; then
44364 echo $ECHO_N "(cached) $ECHO_C" >&6
44365 else
44366 ac_cv_header_sqlite3_h=$ac_header_preproc
44368 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
44369 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
44372 if test $ac_cv_header_sqlite3_h = yes; then
44373 SQLITE3_HEADER_FOUND=1
44374 else
44375 SQLITE3_HEADER_FOUND=0
44379 CPPFLAGS="${saved_cppflags}"
44381 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
44382 SQLITE3_LIB=""
44383 SQLITE3_INCLUDE=""
44384 else
44385 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44386 SQLITE3_LIB=""
44388 PBX_SQLITE3=1
44389 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44391 cat >>confdefs.h <<_ACEOF
44392 #define HAVE_SQLITE3 1
44393 _ACEOF
44396 cat >>confdefs.h <<_ACEOF
44397 #define HAVE_SQLITE3_VERSION
44398 _ACEOF
44406 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
44407 pbxlibdir=""
44408 # if --with-CRYPTO=DIR has been specified, use it.
44409 if test "x${CRYPTO_DIR}" != "x"; then
44410 if test -d ${CRYPTO_DIR}/lib; then
44411 pbxlibdir="-L${CRYPTO_DIR}/lib"
44412 else
44413 pbxlibdir="-L${CRYPTO_DIR}"
44416 pbxfuncname="AES_encrypt"
44417 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44418 AST_CRYPTO_FOUND=yes
44419 else
44420 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
44421 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
44422 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
44423 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44424 echo $ECHO_N "(cached) $ECHO_C" >&6
44425 else
44426 ac_check_lib_save_LIBS=$LIBS
44427 LIBS="-lcrypto ${pbxlibdir} $LIBS"
44428 cat >conftest.$ac_ext <<_ACEOF
44429 /* confdefs.h. */
44430 _ACEOF
44431 cat confdefs.h >>conftest.$ac_ext
44432 cat >>conftest.$ac_ext <<_ACEOF
44433 /* end confdefs.h. */
44435 /* Override any GCC internal prototype to avoid an error.
44436 Use char because int might match the return type of a GCC
44437 builtin and then its argument prototype would still apply. */
44438 #ifdef __cplusplus
44439 extern "C"
44440 #endif
44441 char ${pbxfuncname} ();
44443 main ()
44445 return ${pbxfuncname} ();
44447 return 0;
44449 _ACEOF
44450 rm -f conftest.$ac_objext conftest$ac_exeext
44451 if { (ac_try="$ac_link"
44452 case "(($ac_try" in
44453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44454 *) ac_try_echo=$ac_try;;
44455 esac
44456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44457 (eval "$ac_link") 2>conftest.er1
44458 ac_status=$?
44459 grep -v '^ *+' conftest.er1 >conftest.err
44460 rm -f conftest.er1
44461 cat conftest.err >&5
44462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44463 (exit $ac_status); } && {
44464 test -z "$ac_c_werror_flag" ||
44465 test ! -s conftest.err
44466 } && test -s conftest$ac_exeext &&
44467 $as_test_x conftest$ac_exeext; then
44468 eval "$as_ac_Lib=yes"
44469 else
44470 echo "$as_me: failed program was:" >&5
44471 sed 's/^/| /' conftest.$ac_ext >&5
44473 eval "$as_ac_Lib=no"
44476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44477 conftest$ac_exeext conftest.$ac_ext
44478 LIBS=$ac_check_lib_save_LIBS
44480 ac_res=`eval echo '${'$as_ac_Lib'}'`
44481 { echo "$as_me:$LINENO: result: $ac_res" >&5
44482 echo "${ECHO_T}$ac_res" >&6; }
44483 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44484 AST_CRYPTO_FOUND=yes
44485 else
44486 AST_CRYPTO_FOUND=no
44491 # now check for the header.
44492 if test "${AST_CRYPTO_FOUND}" = "yes"; then
44493 CRYPTO_LIB="${pbxlibdir} -lcrypto "
44494 # if --with-CRYPTO=DIR has been specified, use it.
44495 if test "x${CRYPTO_DIR}" != "x"; then
44496 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
44498 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
44499 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
44500 CRYPTO_HEADER_FOUND="1"
44501 else # check for the header
44502 saved_cppflags="${CPPFLAGS}"
44503 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
44504 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44505 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44506 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44507 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44508 echo $ECHO_N "(cached) $ECHO_C" >&6
44510 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44511 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44512 else
44513 # Is the header compilable?
44514 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
44515 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
44516 cat >conftest.$ac_ext <<_ACEOF
44517 /* confdefs.h. */
44518 _ACEOF
44519 cat confdefs.h >>conftest.$ac_ext
44520 cat >>conftest.$ac_ext <<_ACEOF
44521 /* end confdefs.h. */
44522 $ac_includes_default
44523 #include <openssl/aes.h>
44524 _ACEOF
44525 rm -f conftest.$ac_objext
44526 if { (ac_try="$ac_compile"
44527 case "(($ac_try" in
44528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44529 *) ac_try_echo=$ac_try;;
44530 esac
44531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44532 (eval "$ac_compile") 2>conftest.er1
44533 ac_status=$?
44534 grep -v '^ *+' conftest.er1 >conftest.err
44535 rm -f conftest.er1
44536 cat conftest.err >&5
44537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44538 (exit $ac_status); } && {
44539 test -z "$ac_c_werror_flag" ||
44540 test ! -s conftest.err
44541 } && test -s conftest.$ac_objext; then
44542 ac_header_compiler=yes
44543 else
44544 echo "$as_me: failed program was:" >&5
44545 sed 's/^/| /' conftest.$ac_ext >&5
44547 ac_header_compiler=no
44550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44552 echo "${ECHO_T}$ac_header_compiler" >&6; }
44554 # Is the header present?
44555 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
44556 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
44557 cat >conftest.$ac_ext <<_ACEOF
44558 /* confdefs.h. */
44559 _ACEOF
44560 cat confdefs.h >>conftest.$ac_ext
44561 cat >>conftest.$ac_ext <<_ACEOF
44562 /* end confdefs.h. */
44563 #include <openssl/aes.h>
44564 _ACEOF
44565 if { (ac_try="$ac_cpp conftest.$ac_ext"
44566 case "(($ac_try" in
44567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44568 *) ac_try_echo=$ac_try;;
44569 esac
44570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44572 ac_status=$?
44573 grep -v '^ *+' conftest.er1 >conftest.err
44574 rm -f conftest.er1
44575 cat conftest.err >&5
44576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44577 (exit $ac_status); } >/dev/null && {
44578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44579 test ! -s conftest.err
44580 }; then
44581 ac_header_preproc=yes
44582 else
44583 echo "$as_me: failed program was:" >&5
44584 sed 's/^/| /' conftest.$ac_ext >&5
44586 ac_header_preproc=no
44589 rm -f conftest.err conftest.$ac_ext
44590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44591 echo "${ECHO_T}$ac_header_preproc" >&6; }
44593 # So? What about this header?
44594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44595 yes:no: )
44596 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
44597 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44598 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
44599 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
44600 ac_header_preproc=yes
44602 no:yes:* )
44603 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
44604 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
44605 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
44606 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
44607 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
44608 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
44609 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
44610 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
44611 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
44612 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
44613 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
44614 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
44615 ( cat <<\_ASBOX
44616 ## ------------------------------- ##
44617 ## Report this to www.asterisk.org ##
44618 ## ------------------------------- ##
44619 _ASBOX
44620 ) | sed "s/^/$as_me: WARNING: /" >&2
44622 esac
44623 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44624 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44625 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44626 echo $ECHO_N "(cached) $ECHO_C" >&6
44627 else
44628 ac_cv_header_openssl_aes_h=$ac_header_preproc
44630 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44631 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44634 if test $ac_cv_header_openssl_aes_h = yes; then
44635 CRYPTO_HEADER_FOUND=1
44636 else
44637 CRYPTO_HEADER_FOUND=0
44641 CPPFLAGS="${saved_cppflags}"
44643 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
44644 CRYPTO_LIB=""
44645 CRYPTO_INCLUDE=""
44646 else
44647 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44648 CRYPTO_LIB=""
44650 PBX_CRYPTO=1
44651 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44653 cat >>confdefs.h <<_ACEOF
44654 #define HAVE_CRYPTO 1
44655 _ACEOF
44658 cat >>confdefs.h <<_ACEOF
44659 #define HAVE_CRYPTO_VERSION
44660 _ACEOF
44667 if test "$PBX_CRYPTO" = "1";
44668 then
44670 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
44671 pbxlibdir=""
44672 # if --with-OPENSSL=DIR has been specified, use it.
44673 if test "x${OPENSSL_DIR}" != "x"; then
44674 if test -d ${OPENSSL_DIR}/lib; then
44675 pbxlibdir="-L${OPENSSL_DIR}/lib"
44676 else
44677 pbxlibdir="-L${OPENSSL_DIR}"
44680 pbxfuncname="ssl2_connect"
44681 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44682 AST_OPENSSL_FOUND=yes
44683 else
44684 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
44685 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
44686 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
44687 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44688 echo $ECHO_N "(cached) $ECHO_C" >&6
44689 else
44690 ac_check_lib_save_LIBS=$LIBS
44691 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
44692 cat >conftest.$ac_ext <<_ACEOF
44693 /* confdefs.h. */
44694 _ACEOF
44695 cat confdefs.h >>conftest.$ac_ext
44696 cat >>conftest.$ac_ext <<_ACEOF
44697 /* end confdefs.h. */
44699 /* Override any GCC internal prototype to avoid an error.
44700 Use char because int might match the return type of a GCC
44701 builtin and then its argument prototype would still apply. */
44702 #ifdef __cplusplus
44703 extern "C"
44704 #endif
44705 char ${pbxfuncname} ();
44707 main ()
44709 return ${pbxfuncname} ();
44711 return 0;
44713 _ACEOF
44714 rm -f conftest.$ac_objext conftest$ac_exeext
44715 if { (ac_try="$ac_link"
44716 case "(($ac_try" in
44717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44718 *) ac_try_echo=$ac_try;;
44719 esac
44720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44721 (eval "$ac_link") 2>conftest.er1
44722 ac_status=$?
44723 grep -v '^ *+' conftest.er1 >conftest.err
44724 rm -f conftest.er1
44725 cat conftest.err >&5
44726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44727 (exit $ac_status); } && {
44728 test -z "$ac_c_werror_flag" ||
44729 test ! -s conftest.err
44730 } && test -s conftest$ac_exeext &&
44731 $as_test_x conftest$ac_exeext; then
44732 eval "$as_ac_Lib=yes"
44733 else
44734 echo "$as_me: failed program was:" >&5
44735 sed 's/^/| /' conftest.$ac_ext >&5
44737 eval "$as_ac_Lib=no"
44740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44741 conftest$ac_exeext conftest.$ac_ext
44742 LIBS=$ac_check_lib_save_LIBS
44744 ac_res=`eval echo '${'$as_ac_Lib'}'`
44745 { echo "$as_me:$LINENO: result: $ac_res" >&5
44746 echo "${ECHO_T}$ac_res" >&6; }
44747 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44748 AST_OPENSSL_FOUND=yes
44749 else
44750 AST_OPENSSL_FOUND=no
44755 # now check for the header.
44756 if test "${AST_OPENSSL_FOUND}" = "yes"; then
44757 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
44758 # if --with-OPENSSL=DIR has been specified, use it.
44759 if test "x${OPENSSL_DIR}" != "x"; then
44760 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
44762 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
44763 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
44764 OPENSSL_HEADER_FOUND="1"
44765 else # check for the header
44766 saved_cppflags="${CPPFLAGS}"
44767 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
44768 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44769 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44770 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44771 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44772 echo $ECHO_N "(cached) $ECHO_C" >&6
44774 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44775 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44776 else
44777 # Is the header compilable?
44778 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
44779 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
44780 cat >conftest.$ac_ext <<_ACEOF
44781 /* confdefs.h. */
44782 _ACEOF
44783 cat confdefs.h >>conftest.$ac_ext
44784 cat >>conftest.$ac_ext <<_ACEOF
44785 /* end confdefs.h. */
44786 $ac_includes_default
44787 #include <openssl/ssl.h>
44788 _ACEOF
44789 rm -f conftest.$ac_objext
44790 if { (ac_try="$ac_compile"
44791 case "(($ac_try" in
44792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44793 *) ac_try_echo=$ac_try;;
44794 esac
44795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44796 (eval "$ac_compile") 2>conftest.er1
44797 ac_status=$?
44798 grep -v '^ *+' conftest.er1 >conftest.err
44799 rm -f conftest.er1
44800 cat conftest.err >&5
44801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44802 (exit $ac_status); } && {
44803 test -z "$ac_c_werror_flag" ||
44804 test ! -s conftest.err
44805 } && test -s conftest.$ac_objext; then
44806 ac_header_compiler=yes
44807 else
44808 echo "$as_me: failed program was:" >&5
44809 sed 's/^/| /' conftest.$ac_ext >&5
44811 ac_header_compiler=no
44814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44816 echo "${ECHO_T}$ac_header_compiler" >&6; }
44818 # Is the header present?
44819 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
44820 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
44821 cat >conftest.$ac_ext <<_ACEOF
44822 /* confdefs.h. */
44823 _ACEOF
44824 cat confdefs.h >>conftest.$ac_ext
44825 cat >>conftest.$ac_ext <<_ACEOF
44826 /* end confdefs.h. */
44827 #include <openssl/ssl.h>
44828 _ACEOF
44829 if { (ac_try="$ac_cpp conftest.$ac_ext"
44830 case "(($ac_try" in
44831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44832 *) ac_try_echo=$ac_try;;
44833 esac
44834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44836 ac_status=$?
44837 grep -v '^ *+' conftest.er1 >conftest.err
44838 rm -f conftest.er1
44839 cat conftest.err >&5
44840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44841 (exit $ac_status); } >/dev/null && {
44842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44843 test ! -s conftest.err
44844 }; then
44845 ac_header_preproc=yes
44846 else
44847 echo "$as_me: failed program was:" >&5
44848 sed 's/^/| /' conftest.$ac_ext >&5
44850 ac_header_preproc=no
44853 rm -f conftest.err conftest.$ac_ext
44854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44855 echo "${ECHO_T}$ac_header_preproc" >&6; }
44857 # So? What about this header?
44858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44859 yes:no: )
44860 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
44861 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44862 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
44863 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
44864 ac_header_preproc=yes
44866 no:yes:* )
44867 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
44868 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
44869 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
44870 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
44871 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
44872 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
44873 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
44874 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
44875 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
44876 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
44877 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
44878 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
44879 ( cat <<\_ASBOX
44880 ## ------------------------------- ##
44881 ## Report this to www.asterisk.org ##
44882 ## ------------------------------- ##
44883 _ASBOX
44884 ) | sed "s/^/$as_me: WARNING: /" >&2
44886 esac
44887 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44888 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44889 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44890 echo $ECHO_N "(cached) $ECHO_C" >&6
44891 else
44892 ac_cv_header_openssl_ssl_h=$ac_header_preproc
44894 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44895 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44898 if test $ac_cv_header_openssl_ssl_h = yes; then
44899 OPENSSL_HEADER_FOUND=1
44900 else
44901 OPENSSL_HEADER_FOUND=0
44905 CPPFLAGS="${saved_cppflags}"
44907 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
44908 OPENSSL_LIB=""
44909 OPENSSL_INCLUDE=""
44910 else
44911 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44912 OPENSSL_LIB=""
44914 PBX_OPENSSL=1
44915 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44917 cat >>confdefs.h <<_ACEOF
44918 #define HAVE_OPENSSL 1
44919 _ACEOF
44922 cat >>confdefs.h <<_ACEOF
44923 #define HAVE_OPENSSL_VERSION
44924 _ACEOF
44932 if test "$PBX_OPENSSL" = "1";
44933 then
44935 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
44936 pbxlibdir=""
44937 # if --with-OSPTK=DIR has been specified, use it.
44938 if test "x${OSPTK_DIR}" != "x"; then
44939 if test -d ${OSPTK_DIR}/lib; then
44940 pbxlibdir="-L${OSPTK_DIR}/lib"
44941 else
44942 pbxlibdir="-L${OSPTK_DIR}"
44945 pbxfuncname="OSPPCryptoDecrypt"
44946 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44947 AST_OSPTK_FOUND=yes
44948 else
44949 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
44950 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
44951 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
44952 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44953 echo $ECHO_N "(cached) $ECHO_C" >&6
44954 else
44955 ac_check_lib_save_LIBS=$LIBS
44956 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
44957 cat >conftest.$ac_ext <<_ACEOF
44958 /* confdefs.h. */
44959 _ACEOF
44960 cat confdefs.h >>conftest.$ac_ext
44961 cat >>conftest.$ac_ext <<_ACEOF
44962 /* end confdefs.h. */
44964 /* Override any GCC internal prototype to avoid an error.
44965 Use char because int might match the return type of a GCC
44966 builtin and then its argument prototype would still apply. */
44967 #ifdef __cplusplus
44968 extern "C"
44969 #endif
44970 char ${pbxfuncname} ();
44972 main ()
44974 return ${pbxfuncname} ();
44976 return 0;
44978 _ACEOF
44979 rm -f conftest.$ac_objext conftest$ac_exeext
44980 if { (ac_try="$ac_link"
44981 case "(($ac_try" in
44982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44983 *) ac_try_echo=$ac_try;;
44984 esac
44985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44986 (eval "$ac_link") 2>conftest.er1
44987 ac_status=$?
44988 grep -v '^ *+' conftest.er1 >conftest.err
44989 rm -f conftest.er1
44990 cat conftest.err >&5
44991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44992 (exit $ac_status); } && {
44993 test -z "$ac_c_werror_flag" ||
44994 test ! -s conftest.err
44995 } && test -s conftest$ac_exeext &&
44996 $as_test_x conftest$ac_exeext; then
44997 eval "$as_ac_Lib=yes"
44998 else
44999 echo "$as_me: failed program was:" >&5
45000 sed 's/^/| /' conftest.$ac_ext >&5
45002 eval "$as_ac_Lib=no"
45005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45006 conftest$ac_exeext conftest.$ac_ext
45007 LIBS=$ac_check_lib_save_LIBS
45009 ac_res=`eval echo '${'$as_ac_Lib'}'`
45010 { echo "$as_me:$LINENO: result: $ac_res" >&5
45011 echo "${ECHO_T}$ac_res" >&6; }
45012 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45013 AST_OSPTK_FOUND=yes
45014 else
45015 AST_OSPTK_FOUND=no
45020 # now check for the header.
45021 if test "${AST_OSPTK_FOUND}" = "yes"; then
45022 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
45023 # if --with-OSPTK=DIR has been specified, use it.
45024 if test "x${OSPTK_DIR}" != "x"; then
45025 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
45027 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
45028 if test "xosp/osp.h" = "x" ; then # no header, assume found
45029 OSPTK_HEADER_FOUND="1"
45030 else # check for the header
45031 saved_cppflags="${CPPFLAGS}"
45032 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE}"
45033 if test "${ac_cv_header_osp_osp_h+set}" = set; then
45034 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
45035 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
45036 if test "${ac_cv_header_osp_osp_h+set}" = set; then
45037 echo $ECHO_N "(cached) $ECHO_C" >&6
45039 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
45040 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
45041 else
45042 # Is the header compilable?
45043 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
45044 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
45045 cat >conftest.$ac_ext <<_ACEOF
45046 /* confdefs.h. */
45047 _ACEOF
45048 cat confdefs.h >>conftest.$ac_ext
45049 cat >>conftest.$ac_ext <<_ACEOF
45050 /* end confdefs.h. */
45051 $ac_includes_default
45052 #include <osp/osp.h>
45053 _ACEOF
45054 rm -f conftest.$ac_objext
45055 if { (ac_try="$ac_compile"
45056 case "(($ac_try" in
45057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45058 *) ac_try_echo=$ac_try;;
45059 esac
45060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45061 (eval "$ac_compile") 2>conftest.er1
45062 ac_status=$?
45063 grep -v '^ *+' conftest.er1 >conftest.err
45064 rm -f conftest.er1
45065 cat conftest.err >&5
45066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45067 (exit $ac_status); } && {
45068 test -z "$ac_c_werror_flag" ||
45069 test ! -s conftest.err
45070 } && test -s conftest.$ac_objext; then
45071 ac_header_compiler=yes
45072 else
45073 echo "$as_me: failed program was:" >&5
45074 sed 's/^/| /' conftest.$ac_ext >&5
45076 ac_header_compiler=no
45079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45081 echo "${ECHO_T}$ac_header_compiler" >&6; }
45083 # Is the header present?
45084 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
45085 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
45086 cat >conftest.$ac_ext <<_ACEOF
45087 /* confdefs.h. */
45088 _ACEOF
45089 cat confdefs.h >>conftest.$ac_ext
45090 cat >>conftest.$ac_ext <<_ACEOF
45091 /* end confdefs.h. */
45092 #include <osp/osp.h>
45093 _ACEOF
45094 if { (ac_try="$ac_cpp conftest.$ac_ext"
45095 case "(($ac_try" in
45096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45097 *) ac_try_echo=$ac_try;;
45098 esac
45099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45101 ac_status=$?
45102 grep -v '^ *+' conftest.er1 >conftest.err
45103 rm -f conftest.er1
45104 cat conftest.err >&5
45105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45106 (exit $ac_status); } >/dev/null && {
45107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45108 test ! -s conftest.err
45109 }; then
45110 ac_header_preproc=yes
45111 else
45112 echo "$as_me: failed program was:" >&5
45113 sed 's/^/| /' conftest.$ac_ext >&5
45115 ac_header_preproc=no
45118 rm -f conftest.err conftest.$ac_ext
45119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45120 echo "${ECHO_T}$ac_header_preproc" >&6; }
45122 # So? What about this header?
45123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45124 yes:no: )
45125 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
45126 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45127 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
45128 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
45129 ac_header_preproc=yes
45131 no:yes:* )
45132 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
45133 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
45134 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
45135 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
45136 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
45137 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
45138 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
45139 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
45140 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
45141 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
45142 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
45143 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
45144 ( cat <<\_ASBOX
45145 ## ------------------------------- ##
45146 ## Report this to www.asterisk.org ##
45147 ## ------------------------------- ##
45148 _ASBOX
45149 ) | sed "s/^/$as_me: WARNING: /" >&2
45151 esac
45152 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
45153 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
45154 if test "${ac_cv_header_osp_osp_h+set}" = set; then
45155 echo $ECHO_N "(cached) $ECHO_C" >&6
45156 else
45157 ac_cv_header_osp_osp_h=$ac_header_preproc
45159 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
45160 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
45163 if test $ac_cv_header_osp_osp_h = yes; then
45164 OSPTK_HEADER_FOUND=1
45165 else
45166 OSPTK_HEADER_FOUND=0
45170 CPPFLAGS="${saved_cppflags}"
45172 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
45173 OSPTK_LIB=""
45174 OSPTK_INCLUDE=""
45175 else
45176 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45177 OSPTK_LIB=""
45179 PBX_OSPTK=1
45180 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45182 cat >>confdefs.h <<_ACEOF
45183 #define HAVE_OSPTK 1
45184 _ACEOF
45187 cat >>confdefs.h <<_ACEOF
45188 #define HAVE_OSPTK_VERSION
45189 _ACEOF
45198 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
45199 PBX_GMIME=0
45200 if test -n "$ac_tool_prefix"; then
45201 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
45202 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
45203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45205 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
45206 echo $ECHO_N "(cached) $ECHO_C" >&6
45207 else
45208 if test -n "$CONFIG_GMIME"; then
45209 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
45210 else
45211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45212 for as_dir in $PATH
45214 IFS=$as_save_IFS
45215 test -z "$as_dir" && as_dir=.
45216 for ac_exec_ext in '' $ac_executable_extensions; do
45217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45218 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
45219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45220 break 2
45222 done
45223 done
45224 IFS=$as_save_IFS
45228 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
45229 if test -n "$CONFIG_GMIME"; then
45230 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
45231 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
45232 else
45233 { echo "$as_me:$LINENO: result: no" >&5
45234 echo "${ECHO_T}no" >&6; }
45239 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
45240 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
45241 # Extract the first word of "gmime-config", so it can be a program name with args.
45242 set dummy gmime-config; ac_word=$2
45243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45245 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
45246 echo $ECHO_N "(cached) $ECHO_C" >&6
45247 else
45248 if test -n "$ac_ct_CONFIG_GMIME"; then
45249 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
45250 else
45251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45252 for as_dir in $PATH
45254 IFS=$as_save_IFS
45255 test -z "$as_dir" && as_dir=.
45256 for ac_exec_ext in '' $ac_executable_extensions; do
45257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45258 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
45259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45260 break 2
45262 done
45263 done
45264 IFS=$as_save_IFS
45268 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
45269 if test -n "$ac_ct_CONFIG_GMIME"; then
45270 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
45271 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
45272 else
45273 { echo "$as_me:$LINENO: result: no" >&5
45274 echo "${ECHO_T}no" >&6; }
45277 if test "x$ac_ct_CONFIG_GMIME" = x; then
45278 CONFIG_GMIME="No"
45279 else
45280 case $cross_compiling:$ac_tool_warned in
45281 yes:)
45282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45283 whose name does not start with the host triplet. If you think this
45284 configuration is useful to you, please write to autoconf@gnu.org." >&5
45285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45286 whose name does not start with the host triplet. If you think this
45287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45288 ac_tool_warned=yes ;;
45289 esac
45290 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
45292 else
45293 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
45296 if test ! "x${CONFIG_GMIME}" = xNo; then
45297 if test x"" = x ; then A=--cflags ; else A="" ; fi
45298 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
45299 if test x"" = x ; then A=--libs ; else A="" ; fi
45300 GMIME_LIB=$(${CONFIG_GMIME} $A)
45301 if test x"" != x ; then
45302 saved_cppflags="${CPPFLAGS}"
45303 if test "x${GMIME_DIR}" != "x"; then
45304 GMIME_INCLUDE="-I${GMIME_DIR}/include"
45306 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
45308 saved_ldflags="${LDFLAGS}"
45309 LDFLAGS="${GMIME_LIB}"
45311 cat >conftest.$ac_ext <<_ACEOF
45312 /* confdefs.h. */
45313 _ACEOF
45314 cat confdefs.h >>conftest.$ac_ext
45315 cat >>conftest.$ac_ext <<_ACEOF
45316 /* end confdefs.h. */
45319 main ()
45324 return 0;
45326 _ACEOF
45327 rm -f conftest.$ac_objext conftest$ac_exeext
45328 if { (ac_try="$ac_link"
45329 case "(($ac_try" in
45330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45331 *) ac_try_echo=$ac_try;;
45332 esac
45333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45334 (eval "$ac_link") 2>conftest.er1
45335 ac_status=$?
45336 grep -v '^ *+' conftest.er1 >conftest.err
45337 rm -f conftest.er1
45338 cat conftest.err >&5
45339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340 (exit $ac_status); } && {
45341 test -z "$ac_c_werror_flag" ||
45342 test ! -s conftest.err
45343 } && test -s conftest$ac_exeext &&
45344 $as_test_x conftest$ac_exeext; then
45345 PBX_GMIME=1
45347 cat >>confdefs.h <<\_ACEOF
45348 #define HAVE_GMIME 1
45349 _ACEOF
45352 else
45353 echo "$as_me: failed program was:" >&5
45354 sed 's/^/| /' conftest.$ac_ext >&5
45360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45361 conftest$ac_exeext conftest.$ac_ext
45362 CPPFLAGS="${saved_cppflags}"
45363 LDFLAGS="${saved_ldflags}"
45364 else
45365 PBX_GMIME=1
45367 cat >>confdefs.h <<\_ACEOF
45368 #define HAVE_GMIME 1
45369 _ACEOF
45377 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
45378 pbxlibdir=""
45379 # if --with-FREETDS=DIR has been specified, use it.
45380 if test "x${FREETDS_DIR}" != "x"; then
45381 if test -d ${FREETDS_DIR}/lib; then
45382 pbxlibdir="-L${FREETDS_DIR}/lib"
45383 else
45384 pbxlibdir="-L${FREETDS_DIR}"
45387 pbxfuncname="dbinit"
45388 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45389 AST_FREETDS_FOUND=yes
45390 else
45391 as_ac_Lib=`echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
45392 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsybdb" >&5
45393 echo $ECHO_N "checking for ${pbxfuncname} in -lsybdb... $ECHO_C" >&6; }
45394 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45395 echo $ECHO_N "(cached) $ECHO_C" >&6
45396 else
45397 ac_check_lib_save_LIBS=$LIBS
45398 LIBS="-lsybdb ${pbxlibdir} $LIBS"
45399 cat >conftest.$ac_ext <<_ACEOF
45400 /* confdefs.h. */
45401 _ACEOF
45402 cat confdefs.h >>conftest.$ac_ext
45403 cat >>conftest.$ac_ext <<_ACEOF
45404 /* end confdefs.h. */
45406 /* Override any GCC internal prototype to avoid an error.
45407 Use char because int might match the return type of a GCC
45408 builtin and then its argument prototype would still apply. */
45409 #ifdef __cplusplus
45410 extern "C"
45411 #endif
45412 char ${pbxfuncname} ();
45414 main ()
45416 return ${pbxfuncname} ();
45418 return 0;
45420 _ACEOF
45421 rm -f conftest.$ac_objext conftest$ac_exeext
45422 if { (ac_try="$ac_link"
45423 case "(($ac_try" in
45424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45425 *) ac_try_echo=$ac_try;;
45426 esac
45427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45428 (eval "$ac_link") 2>conftest.er1
45429 ac_status=$?
45430 grep -v '^ *+' conftest.er1 >conftest.err
45431 rm -f conftest.er1
45432 cat conftest.err >&5
45433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45434 (exit $ac_status); } && {
45435 test -z "$ac_c_werror_flag" ||
45436 test ! -s conftest.err
45437 } && test -s conftest$ac_exeext &&
45438 $as_test_x conftest$ac_exeext; then
45439 eval "$as_ac_Lib=yes"
45440 else
45441 echo "$as_me: failed program was:" >&5
45442 sed 's/^/| /' conftest.$ac_ext >&5
45444 eval "$as_ac_Lib=no"
45447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45448 conftest$ac_exeext conftest.$ac_ext
45449 LIBS=$ac_check_lib_save_LIBS
45451 ac_res=`eval echo '${'$as_ac_Lib'}'`
45452 { echo "$as_me:$LINENO: result: $ac_res" >&5
45453 echo "${ECHO_T}$ac_res" >&6; }
45454 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45455 AST_FREETDS_FOUND=yes
45456 else
45457 AST_FREETDS_FOUND=no
45462 # now check for the header.
45463 if test "${AST_FREETDS_FOUND}" = "yes"; then
45464 FREETDS_LIB="${pbxlibdir} -lsybdb "
45465 # if --with-FREETDS=DIR has been specified, use it.
45466 if test "x${FREETDS_DIR}" != "x"; then
45467 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
45469 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
45470 if test "xsybdb.h" = "x" ; then # no header, assume found
45471 FREETDS_HEADER_FOUND="1"
45472 else # check for the header
45473 saved_cppflags="${CPPFLAGS}"
45474 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
45475 if test "${ac_cv_header_sybdb_h+set}" = set; then
45476 { echo "$as_me:$LINENO: checking for sybdb.h" >&5
45477 echo $ECHO_N "checking for sybdb.h... $ECHO_C" >&6; }
45478 if test "${ac_cv_header_sybdb_h+set}" = set; then
45479 echo $ECHO_N "(cached) $ECHO_C" >&6
45481 { echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
45482 echo "${ECHO_T}$ac_cv_header_sybdb_h" >&6; }
45483 else
45484 # Is the header compilable?
45485 { echo "$as_me:$LINENO: checking sybdb.h usability" >&5
45486 echo $ECHO_N "checking sybdb.h usability... $ECHO_C" >&6; }
45487 cat >conftest.$ac_ext <<_ACEOF
45488 /* confdefs.h. */
45489 _ACEOF
45490 cat confdefs.h >>conftest.$ac_ext
45491 cat >>conftest.$ac_ext <<_ACEOF
45492 /* end confdefs.h. */
45493 $ac_includes_default
45494 #include <sybdb.h>
45495 _ACEOF
45496 rm -f conftest.$ac_objext
45497 if { (ac_try="$ac_compile"
45498 case "(($ac_try" in
45499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45500 *) ac_try_echo=$ac_try;;
45501 esac
45502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45503 (eval "$ac_compile") 2>conftest.er1
45504 ac_status=$?
45505 grep -v '^ *+' conftest.er1 >conftest.err
45506 rm -f conftest.er1
45507 cat conftest.err >&5
45508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45509 (exit $ac_status); } && {
45510 test -z "$ac_c_werror_flag" ||
45511 test ! -s conftest.err
45512 } && test -s conftest.$ac_objext; then
45513 ac_header_compiler=yes
45514 else
45515 echo "$as_me: failed program was:" >&5
45516 sed 's/^/| /' conftest.$ac_ext >&5
45518 ac_header_compiler=no
45521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45523 echo "${ECHO_T}$ac_header_compiler" >&6; }
45525 # Is the header present?
45526 { echo "$as_me:$LINENO: checking sybdb.h presence" >&5
45527 echo $ECHO_N "checking sybdb.h presence... $ECHO_C" >&6; }
45528 cat >conftest.$ac_ext <<_ACEOF
45529 /* confdefs.h. */
45530 _ACEOF
45531 cat confdefs.h >>conftest.$ac_ext
45532 cat >>conftest.$ac_ext <<_ACEOF
45533 /* end confdefs.h. */
45534 #include <sybdb.h>
45535 _ACEOF
45536 if { (ac_try="$ac_cpp conftest.$ac_ext"
45537 case "(($ac_try" in
45538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45539 *) ac_try_echo=$ac_try;;
45540 esac
45541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45543 ac_status=$?
45544 grep -v '^ *+' conftest.er1 >conftest.err
45545 rm -f conftest.er1
45546 cat conftest.err >&5
45547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 (exit $ac_status); } >/dev/null && {
45549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45550 test ! -s conftest.err
45551 }; then
45552 ac_header_preproc=yes
45553 else
45554 echo "$as_me: failed program was:" >&5
45555 sed 's/^/| /' conftest.$ac_ext >&5
45557 ac_header_preproc=no
45560 rm -f conftest.err conftest.$ac_ext
45561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45562 echo "${ECHO_T}$ac_header_preproc" >&6; }
45564 # So? What about this header?
45565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45566 yes:no: )
45567 { echo "$as_me:$LINENO: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&5
45568 echo "$as_me: WARNING: sybdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45569 { echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the compiler's result" >&5
45570 echo "$as_me: WARNING: sybdb.h: proceeding with the compiler's result" >&2;}
45571 ac_header_preproc=yes
45573 no:yes:* )
45574 { echo "$as_me:$LINENO: WARNING: sybdb.h: present but cannot be compiled" >&5
45575 echo "$as_me: WARNING: sybdb.h: present but cannot be compiled" >&2;}
45576 { echo "$as_me:$LINENO: WARNING: sybdb.h: check for missing prerequisite headers?" >&5
45577 echo "$as_me: WARNING: sybdb.h: check for missing prerequisite headers?" >&2;}
45578 { echo "$as_me:$LINENO: WARNING: sybdb.h: see the Autoconf documentation" >&5
45579 echo "$as_me: WARNING: sybdb.h: see the Autoconf documentation" >&2;}
45580 { echo "$as_me:$LINENO: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&5
45581 echo "$as_me: WARNING: sybdb.h: section \"Present But Cannot Be Compiled\"" >&2;}
45582 { echo "$as_me:$LINENO: WARNING: sybdb.h: proceeding with the preprocessor's result" >&5
45583 echo "$as_me: WARNING: sybdb.h: proceeding with the preprocessor's result" >&2;}
45584 { echo "$as_me:$LINENO: WARNING: sybdb.h: in the future, the compiler will take precedence" >&5
45585 echo "$as_me: WARNING: sybdb.h: in the future, the compiler will take precedence" >&2;}
45586 ( cat <<\_ASBOX
45587 ## ------------------------------- ##
45588 ## Report this to www.asterisk.org ##
45589 ## ------------------------------- ##
45590 _ASBOX
45591 ) | sed "s/^/$as_me: WARNING: /" >&2
45593 esac
45594 { echo "$as_me:$LINENO: checking for sybdb.h" >&5
45595 echo $ECHO_N "checking for sybdb.h... $ECHO_C" >&6; }
45596 if test "${ac_cv_header_sybdb_h+set}" = set; then
45597 echo $ECHO_N "(cached) $ECHO_C" >&6
45598 else
45599 ac_cv_header_sybdb_h=$ac_header_preproc
45601 { echo "$as_me:$LINENO: result: $ac_cv_header_sybdb_h" >&5
45602 echo "${ECHO_T}$ac_cv_header_sybdb_h" >&6; }
45605 if test $ac_cv_header_sybdb_h = yes; then
45606 FREETDS_HEADER_FOUND=1
45607 else
45608 FREETDS_HEADER_FOUND=0
45612 CPPFLAGS="${saved_cppflags}"
45614 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
45615 FREETDS_LIB=""
45616 FREETDS_INCLUDE=""
45617 else
45618 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45619 FREETDS_LIB=""
45621 PBX_FREETDS=1
45622 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45624 cat >>confdefs.h <<_ACEOF
45625 #define HAVE_FREETDS 1
45626 _ACEOF
45629 cat >>confdefs.h <<_ACEOF
45630 #define HAVE_FREETDS_VERSION
45631 _ACEOF
45639 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
45640 pbxlibdir=""
45641 # if --with-TERMCAP=DIR has been specified, use it.
45642 if test "x${TERMCAP_DIR}" != "x"; then
45643 if test -d ${TERMCAP_DIR}/lib; then
45644 pbxlibdir="-L${TERMCAP_DIR}/lib"
45645 else
45646 pbxlibdir="-L${TERMCAP_DIR}"
45649 pbxfuncname="tgetent"
45650 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45651 AST_TERMCAP_FOUND=yes
45652 else
45653 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
45654 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
45655 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
45656 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45657 echo $ECHO_N "(cached) $ECHO_C" >&6
45658 else
45659 ac_check_lib_save_LIBS=$LIBS
45660 LIBS="-ltermcap ${pbxlibdir} $LIBS"
45661 cat >conftest.$ac_ext <<_ACEOF
45662 /* confdefs.h. */
45663 _ACEOF
45664 cat confdefs.h >>conftest.$ac_ext
45665 cat >>conftest.$ac_ext <<_ACEOF
45666 /* end confdefs.h. */
45668 /* Override any GCC internal prototype to avoid an error.
45669 Use char because int might match the return type of a GCC
45670 builtin and then its argument prototype would still apply. */
45671 #ifdef __cplusplus
45672 extern "C"
45673 #endif
45674 char ${pbxfuncname} ();
45676 main ()
45678 return ${pbxfuncname} ();
45680 return 0;
45682 _ACEOF
45683 rm -f conftest.$ac_objext conftest$ac_exeext
45684 if { (ac_try="$ac_link"
45685 case "(($ac_try" in
45686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45687 *) ac_try_echo=$ac_try;;
45688 esac
45689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45690 (eval "$ac_link") 2>conftest.er1
45691 ac_status=$?
45692 grep -v '^ *+' conftest.er1 >conftest.err
45693 rm -f conftest.er1
45694 cat conftest.err >&5
45695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45696 (exit $ac_status); } && {
45697 test -z "$ac_c_werror_flag" ||
45698 test ! -s conftest.err
45699 } && test -s conftest$ac_exeext &&
45700 $as_test_x conftest$ac_exeext; then
45701 eval "$as_ac_Lib=yes"
45702 else
45703 echo "$as_me: failed program was:" >&5
45704 sed 's/^/| /' conftest.$ac_ext >&5
45706 eval "$as_ac_Lib=no"
45709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45710 conftest$ac_exeext conftest.$ac_ext
45711 LIBS=$ac_check_lib_save_LIBS
45713 ac_res=`eval echo '${'$as_ac_Lib'}'`
45714 { echo "$as_me:$LINENO: result: $ac_res" >&5
45715 echo "${ECHO_T}$ac_res" >&6; }
45716 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45717 AST_TERMCAP_FOUND=yes
45718 else
45719 AST_TERMCAP_FOUND=no
45724 # now check for the header.
45725 if test "${AST_TERMCAP_FOUND}" = "yes"; then
45726 TERMCAP_LIB="${pbxlibdir} -ltermcap "
45727 # if --with-TERMCAP=DIR has been specified, use it.
45728 if test "x${TERMCAP_DIR}" != "x"; then
45729 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
45731 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
45732 if test "x" = "x" ; then # no header, assume found
45733 TERMCAP_HEADER_FOUND="1"
45734 else # check for the header
45735 saved_cppflags="${CPPFLAGS}"
45736 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
45737 if test "${ac_cv_header_+set}" = set; then
45738 { echo "$as_me:$LINENO: checking for " >&5
45739 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45740 if test "${ac_cv_header_+set}" = set; then
45741 echo $ECHO_N "(cached) $ECHO_C" >&6
45743 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45744 echo "${ECHO_T}$ac_cv_header_" >&6; }
45745 else
45746 # Is the header compilable?
45747 { echo "$as_me:$LINENO: checking usability" >&5
45748 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45749 cat >conftest.$ac_ext <<_ACEOF
45750 /* confdefs.h. */
45751 _ACEOF
45752 cat confdefs.h >>conftest.$ac_ext
45753 cat >>conftest.$ac_ext <<_ACEOF
45754 /* end confdefs.h. */
45755 $ac_includes_default
45756 #include <>
45757 _ACEOF
45758 rm -f conftest.$ac_objext
45759 if { (ac_try="$ac_compile"
45760 case "(($ac_try" in
45761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45762 *) ac_try_echo=$ac_try;;
45763 esac
45764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45765 (eval "$ac_compile") 2>conftest.er1
45766 ac_status=$?
45767 grep -v '^ *+' conftest.er1 >conftest.err
45768 rm -f conftest.er1
45769 cat conftest.err >&5
45770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45771 (exit $ac_status); } && {
45772 test -z "$ac_c_werror_flag" ||
45773 test ! -s conftest.err
45774 } && test -s conftest.$ac_objext; then
45775 ac_header_compiler=yes
45776 else
45777 echo "$as_me: failed program was:" >&5
45778 sed 's/^/| /' conftest.$ac_ext >&5
45780 ac_header_compiler=no
45783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45785 echo "${ECHO_T}$ac_header_compiler" >&6; }
45787 # Is the header present?
45788 { echo "$as_me:$LINENO: checking presence" >&5
45789 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45790 cat >conftest.$ac_ext <<_ACEOF
45791 /* confdefs.h. */
45792 _ACEOF
45793 cat confdefs.h >>conftest.$ac_ext
45794 cat >>conftest.$ac_ext <<_ACEOF
45795 /* end confdefs.h. */
45796 #include <>
45797 _ACEOF
45798 if { (ac_try="$ac_cpp conftest.$ac_ext"
45799 case "(($ac_try" in
45800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45801 *) ac_try_echo=$ac_try;;
45802 esac
45803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45805 ac_status=$?
45806 grep -v '^ *+' conftest.er1 >conftest.err
45807 rm -f conftest.er1
45808 cat conftest.err >&5
45809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45810 (exit $ac_status); } >/dev/null && {
45811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45812 test ! -s conftest.err
45813 }; then
45814 ac_header_preproc=yes
45815 else
45816 echo "$as_me: failed program was:" >&5
45817 sed 's/^/| /' conftest.$ac_ext >&5
45819 ac_header_preproc=no
45822 rm -f conftest.err conftest.$ac_ext
45823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45824 echo "${ECHO_T}$ac_header_preproc" >&6; }
45826 # So? What about this header?
45827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45828 yes:no: )
45829 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45830 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45831 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45832 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45833 ac_header_preproc=yes
45835 no:yes:* )
45836 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45837 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45838 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45839 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45840 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45841 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45842 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45843 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45844 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45845 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45846 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45847 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45848 ( cat <<\_ASBOX
45849 ## ------------------------------- ##
45850 ## Report this to www.asterisk.org ##
45851 ## ------------------------------- ##
45852 _ASBOX
45853 ) | sed "s/^/$as_me: WARNING: /" >&2
45855 esac
45856 { echo "$as_me:$LINENO: checking for " >&5
45857 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45858 if test "${ac_cv_header_+set}" = set; then
45859 echo $ECHO_N "(cached) $ECHO_C" >&6
45860 else
45861 ac_cv_header_=$ac_header_preproc
45863 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45864 echo "${ECHO_T}$ac_cv_header_" >&6; }
45867 if test $ac_cv_header_ = yes; then
45868 TERMCAP_HEADER_FOUND=1
45869 else
45870 TERMCAP_HEADER_FOUND=0
45874 CPPFLAGS="${saved_cppflags}"
45876 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
45877 TERMCAP_LIB=""
45878 TERMCAP_INCLUDE=""
45879 else
45880 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45881 TERMCAP_LIB=""
45883 PBX_TERMCAP=1
45884 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45886 cat >>confdefs.h <<_ACEOF
45887 #define HAVE_TERMCAP 1
45888 _ACEOF
45891 cat >>confdefs.h <<_ACEOF
45892 #define HAVE_TERMCAP_VERSION
45893 _ACEOF
45901 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
45902 pbxlibdir=""
45903 # if --with-TINFO=DIR has been specified, use it.
45904 if test "x${TINFO_DIR}" != "x"; then
45905 if test -d ${TINFO_DIR}/lib; then
45906 pbxlibdir="-L${TINFO_DIR}/lib"
45907 else
45908 pbxlibdir="-L${TINFO_DIR}"
45911 pbxfuncname="tgetent"
45912 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45913 AST_TINFO_FOUND=yes
45914 else
45915 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
45916 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
45917 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
45918 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45919 echo $ECHO_N "(cached) $ECHO_C" >&6
45920 else
45921 ac_check_lib_save_LIBS=$LIBS
45922 LIBS="-ltinfo ${pbxlibdir} $LIBS"
45923 cat >conftest.$ac_ext <<_ACEOF
45924 /* confdefs.h. */
45925 _ACEOF
45926 cat confdefs.h >>conftest.$ac_ext
45927 cat >>conftest.$ac_ext <<_ACEOF
45928 /* end confdefs.h. */
45930 /* Override any GCC internal prototype to avoid an error.
45931 Use char because int might match the return type of a GCC
45932 builtin and then its argument prototype would still apply. */
45933 #ifdef __cplusplus
45934 extern "C"
45935 #endif
45936 char ${pbxfuncname} ();
45938 main ()
45940 return ${pbxfuncname} ();
45942 return 0;
45944 _ACEOF
45945 rm -f conftest.$ac_objext conftest$ac_exeext
45946 if { (ac_try="$ac_link"
45947 case "(($ac_try" in
45948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45949 *) ac_try_echo=$ac_try;;
45950 esac
45951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45952 (eval "$ac_link") 2>conftest.er1
45953 ac_status=$?
45954 grep -v '^ *+' conftest.er1 >conftest.err
45955 rm -f conftest.er1
45956 cat conftest.err >&5
45957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45958 (exit $ac_status); } && {
45959 test -z "$ac_c_werror_flag" ||
45960 test ! -s conftest.err
45961 } && test -s conftest$ac_exeext &&
45962 $as_test_x conftest$ac_exeext; then
45963 eval "$as_ac_Lib=yes"
45964 else
45965 echo "$as_me: failed program was:" >&5
45966 sed 's/^/| /' conftest.$ac_ext >&5
45968 eval "$as_ac_Lib=no"
45971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45972 conftest$ac_exeext conftest.$ac_ext
45973 LIBS=$ac_check_lib_save_LIBS
45975 ac_res=`eval echo '${'$as_ac_Lib'}'`
45976 { echo "$as_me:$LINENO: result: $ac_res" >&5
45977 echo "${ECHO_T}$ac_res" >&6; }
45978 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45979 AST_TINFO_FOUND=yes
45980 else
45981 AST_TINFO_FOUND=no
45986 # now check for the header.
45987 if test "${AST_TINFO_FOUND}" = "yes"; then
45988 TINFO_LIB="${pbxlibdir} -ltinfo "
45989 # if --with-TINFO=DIR has been specified, use it.
45990 if test "x${TINFO_DIR}" != "x"; then
45991 TINFO_INCLUDE="-I${TINFO_DIR}/include"
45993 TINFO_INCLUDE="${TINFO_INCLUDE} "
45994 if test "x" = "x" ; then # no header, assume found
45995 TINFO_HEADER_FOUND="1"
45996 else # check for the header
45997 saved_cppflags="${CPPFLAGS}"
45998 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
45999 if test "${ac_cv_header_+set}" = set; then
46000 { echo "$as_me:$LINENO: checking for " >&5
46001 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
46002 if test "${ac_cv_header_+set}" = set; then
46003 echo $ECHO_N "(cached) $ECHO_C" >&6
46005 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
46006 echo "${ECHO_T}$ac_cv_header_" >&6; }
46007 else
46008 # Is the header compilable?
46009 { echo "$as_me:$LINENO: checking usability" >&5
46010 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
46011 cat >conftest.$ac_ext <<_ACEOF
46012 /* confdefs.h. */
46013 _ACEOF
46014 cat confdefs.h >>conftest.$ac_ext
46015 cat >>conftest.$ac_ext <<_ACEOF
46016 /* end confdefs.h. */
46017 $ac_includes_default
46018 #include <>
46019 _ACEOF
46020 rm -f conftest.$ac_objext
46021 if { (ac_try="$ac_compile"
46022 case "(($ac_try" in
46023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46024 *) ac_try_echo=$ac_try;;
46025 esac
46026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46027 (eval "$ac_compile") 2>conftest.er1
46028 ac_status=$?
46029 grep -v '^ *+' conftest.er1 >conftest.err
46030 rm -f conftest.er1
46031 cat conftest.err >&5
46032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46033 (exit $ac_status); } && {
46034 test -z "$ac_c_werror_flag" ||
46035 test ! -s conftest.err
46036 } && test -s conftest.$ac_objext; then
46037 ac_header_compiler=yes
46038 else
46039 echo "$as_me: failed program was:" >&5
46040 sed 's/^/| /' conftest.$ac_ext >&5
46042 ac_header_compiler=no
46045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46047 echo "${ECHO_T}$ac_header_compiler" >&6; }
46049 # Is the header present?
46050 { echo "$as_me:$LINENO: checking presence" >&5
46051 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
46052 cat >conftest.$ac_ext <<_ACEOF
46053 /* confdefs.h. */
46054 _ACEOF
46055 cat confdefs.h >>conftest.$ac_ext
46056 cat >>conftest.$ac_ext <<_ACEOF
46057 /* end confdefs.h. */
46058 #include <>
46059 _ACEOF
46060 if { (ac_try="$ac_cpp conftest.$ac_ext"
46061 case "(($ac_try" in
46062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46063 *) ac_try_echo=$ac_try;;
46064 esac
46065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46067 ac_status=$?
46068 grep -v '^ *+' conftest.er1 >conftest.err
46069 rm -f conftest.er1
46070 cat conftest.err >&5
46071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46072 (exit $ac_status); } >/dev/null && {
46073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46074 test ! -s conftest.err
46075 }; then
46076 ac_header_preproc=yes
46077 else
46078 echo "$as_me: failed program was:" >&5
46079 sed 's/^/| /' conftest.$ac_ext >&5
46081 ac_header_preproc=no
46084 rm -f conftest.err conftest.$ac_ext
46085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46086 echo "${ECHO_T}$ac_header_preproc" >&6; }
46088 # So? What about this header?
46089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46090 yes:no: )
46091 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
46092 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
46093 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
46094 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
46095 ac_header_preproc=yes
46097 no:yes:* )
46098 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
46099 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
46100 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
46101 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
46102 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
46103 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
46104 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
46105 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
46106 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
46107 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
46108 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
46109 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
46110 ( cat <<\_ASBOX
46111 ## ------------------------------- ##
46112 ## Report this to www.asterisk.org ##
46113 ## ------------------------------- ##
46114 _ASBOX
46115 ) | sed "s/^/$as_me: WARNING: /" >&2
46117 esac
46118 { echo "$as_me:$LINENO: checking for " >&5
46119 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
46120 if test "${ac_cv_header_+set}" = set; then
46121 echo $ECHO_N "(cached) $ECHO_C" >&6
46122 else
46123 ac_cv_header_=$ac_header_preproc
46125 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
46126 echo "${ECHO_T}$ac_cv_header_" >&6; }
46129 if test $ac_cv_header_ = yes; then
46130 TINFO_HEADER_FOUND=1
46131 else
46132 TINFO_HEADER_FOUND=0
46136 CPPFLAGS="${saved_cppflags}"
46138 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
46139 TINFO_LIB=""
46140 TINFO_INCLUDE=""
46141 else
46142 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46143 TINFO_LIB=""
46145 PBX_TINFO=1
46146 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46148 cat >>confdefs.h <<_ACEOF
46149 #define HAVE_TINFO 1
46150 _ACEOF
46153 cat >>confdefs.h <<_ACEOF
46154 #define HAVE_TINFO_VERSION
46155 _ACEOF
46162 if test "${host_os}" != "linux-gnu" ; then
46163 tonezone_extra="-lm"
46167 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
46168 pbxlibdir=""
46169 # if --with-TONEZONE=DIR has been specified, use it.
46170 if test "x${TONEZONE_DIR}" != "x"; then
46171 if test -d ${TONEZONE_DIR}/lib; then
46172 pbxlibdir="-L${TONEZONE_DIR}/lib"
46173 else
46174 pbxlibdir="-L${TONEZONE_DIR}"
46177 pbxfuncname="tone_zone_find"
46178 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46179 AST_TONEZONE_FOUND=yes
46180 else
46181 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
46182 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
46183 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
46184 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46185 echo $ECHO_N "(cached) $ECHO_C" >&6
46186 else
46187 ac_check_lib_save_LIBS=$LIBS
46188 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
46189 cat >conftest.$ac_ext <<_ACEOF
46190 /* confdefs.h. */
46191 _ACEOF
46192 cat confdefs.h >>conftest.$ac_ext
46193 cat >>conftest.$ac_ext <<_ACEOF
46194 /* end confdefs.h. */
46196 /* Override any GCC internal prototype to avoid an error.
46197 Use char because int might match the return type of a GCC
46198 builtin and then its argument prototype would still apply. */
46199 #ifdef __cplusplus
46200 extern "C"
46201 #endif
46202 char ${pbxfuncname} ();
46204 main ()
46206 return ${pbxfuncname} ();
46208 return 0;
46210 _ACEOF
46211 rm -f conftest.$ac_objext conftest$ac_exeext
46212 if { (ac_try="$ac_link"
46213 case "(($ac_try" in
46214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46215 *) ac_try_echo=$ac_try;;
46216 esac
46217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46218 (eval "$ac_link") 2>conftest.er1
46219 ac_status=$?
46220 grep -v '^ *+' conftest.er1 >conftest.err
46221 rm -f conftest.er1
46222 cat conftest.err >&5
46223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46224 (exit $ac_status); } && {
46225 test -z "$ac_c_werror_flag" ||
46226 test ! -s conftest.err
46227 } && test -s conftest$ac_exeext &&
46228 $as_test_x conftest$ac_exeext; then
46229 eval "$as_ac_Lib=yes"
46230 else
46231 echo "$as_me: failed program was:" >&5
46232 sed 's/^/| /' conftest.$ac_ext >&5
46234 eval "$as_ac_Lib=no"
46237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46238 conftest$ac_exeext conftest.$ac_ext
46239 LIBS=$ac_check_lib_save_LIBS
46241 ac_res=`eval echo '${'$as_ac_Lib'}'`
46242 { echo "$as_me:$LINENO: result: $ac_res" >&5
46243 echo "${ECHO_T}$ac_res" >&6; }
46244 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46245 AST_TONEZONE_FOUND=yes
46246 else
46247 AST_TONEZONE_FOUND=no
46252 # now check for the header.
46253 if test "${AST_TONEZONE_FOUND}" = "yes"; then
46254 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
46255 # if --with-TONEZONE=DIR has been specified, use it.
46256 if test "x${TONEZONE_DIR}" != "x"; then
46257 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
46259 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
46260 if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
46261 TONEZONE_HEADER_FOUND="1"
46262 else # check for the header
46263 saved_cppflags="${CPPFLAGS}"
46264 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
46265 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
46266 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
46267 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
46268 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
46269 echo $ECHO_N "(cached) $ECHO_C" >&6
46271 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
46272 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
46273 else
46274 # Is the header compilable?
46275 { echo "$as_me:$LINENO: checking dahdi/tonezone.h usability" >&5
46276 echo $ECHO_N "checking dahdi/tonezone.h usability... $ECHO_C" >&6; }
46277 cat >conftest.$ac_ext <<_ACEOF
46278 /* confdefs.h. */
46279 _ACEOF
46280 cat confdefs.h >>conftest.$ac_ext
46281 cat >>conftest.$ac_ext <<_ACEOF
46282 /* end confdefs.h. */
46283 $ac_includes_default
46284 #include <dahdi/tonezone.h>
46285 _ACEOF
46286 rm -f conftest.$ac_objext
46287 if { (ac_try="$ac_compile"
46288 case "(($ac_try" in
46289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46290 *) ac_try_echo=$ac_try;;
46291 esac
46292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46293 (eval "$ac_compile") 2>conftest.er1
46294 ac_status=$?
46295 grep -v '^ *+' conftest.er1 >conftest.err
46296 rm -f conftest.er1
46297 cat conftest.err >&5
46298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46299 (exit $ac_status); } && {
46300 test -z "$ac_c_werror_flag" ||
46301 test ! -s conftest.err
46302 } && test -s conftest.$ac_objext; then
46303 ac_header_compiler=yes
46304 else
46305 echo "$as_me: failed program was:" >&5
46306 sed 's/^/| /' conftest.$ac_ext >&5
46308 ac_header_compiler=no
46311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46313 echo "${ECHO_T}$ac_header_compiler" >&6; }
46315 # Is the header present?
46316 { echo "$as_me:$LINENO: checking dahdi/tonezone.h presence" >&5
46317 echo $ECHO_N "checking dahdi/tonezone.h presence... $ECHO_C" >&6; }
46318 cat >conftest.$ac_ext <<_ACEOF
46319 /* confdefs.h. */
46320 _ACEOF
46321 cat confdefs.h >>conftest.$ac_ext
46322 cat >>conftest.$ac_ext <<_ACEOF
46323 /* end confdefs.h. */
46324 #include <dahdi/tonezone.h>
46325 _ACEOF
46326 if { (ac_try="$ac_cpp conftest.$ac_ext"
46327 case "(($ac_try" in
46328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46329 *) ac_try_echo=$ac_try;;
46330 esac
46331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46333 ac_status=$?
46334 grep -v '^ *+' conftest.er1 >conftest.err
46335 rm -f conftest.er1
46336 cat conftest.err >&5
46337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46338 (exit $ac_status); } >/dev/null && {
46339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46340 test ! -s conftest.err
46341 }; then
46342 ac_header_preproc=yes
46343 else
46344 echo "$as_me: failed program was:" >&5
46345 sed 's/^/| /' conftest.$ac_ext >&5
46347 ac_header_preproc=no
46350 rm -f conftest.err conftest.$ac_ext
46351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46352 echo "${ECHO_T}$ac_header_preproc" >&6; }
46354 # So? What about this header?
46355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46356 yes:no: )
46357 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
46358 echo "$as_me: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46359 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&5
46360 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&2;}
46361 ac_header_preproc=yes
46363 no:yes:* )
46364 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&5
46365 echo "$as_me: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&2;}
46366 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&5
46367 echo "$as_me: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&2;}
46368 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&5
46369 echo "$as_me: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&2;}
46370 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
46371 echo "$as_me: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
46372 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&5
46373 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&2;}
46374 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&5
46375 echo "$as_me: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&2;}
46376 ( cat <<\_ASBOX
46377 ## ------------------------------- ##
46378 ## Report this to www.asterisk.org ##
46379 ## ------------------------------- ##
46380 _ASBOX
46381 ) | sed "s/^/$as_me: WARNING: /" >&2
46383 esac
46384 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
46385 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
46386 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
46387 echo $ECHO_N "(cached) $ECHO_C" >&6
46388 else
46389 ac_cv_header_dahdi_tonezone_h=$ac_header_preproc
46391 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
46392 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
46395 if test $ac_cv_header_dahdi_tonezone_h = yes; then
46396 TONEZONE_HEADER_FOUND=1
46397 else
46398 TONEZONE_HEADER_FOUND=0
46402 CPPFLAGS="${saved_cppflags}"
46404 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
46405 TONEZONE_LIB=""
46406 TONEZONE_INCLUDE=""
46407 else
46408 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46409 TONEZONE_LIB=""
46411 PBX_TONEZONE=1
46412 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46414 cat >>confdefs.h <<_ACEOF
46415 #define HAVE_TONEZONE 1
46416 _ACEOF
46419 cat >>confdefs.h <<_ACEOF
46420 #define HAVE_TONEZONE_VERSION
46421 _ACEOF
46429 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
46430 pbxlibdir=""
46431 # if --with-USB=DIR has been specified, use it.
46432 if test "x${USB_DIR}" != "x"; then
46433 if test -d ${USB_DIR}/lib; then
46434 pbxlibdir="-L${USB_DIR}/lib"
46435 else
46436 pbxlibdir="-L${USB_DIR}"
46439 pbxfuncname="usb_init"
46440 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46441 AST_USB_FOUND=yes
46442 else
46443 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
46444 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
46445 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
46446 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46447 echo $ECHO_N "(cached) $ECHO_C" >&6
46448 else
46449 ac_check_lib_save_LIBS=$LIBS
46450 LIBS="-lusb ${pbxlibdir} $LIBS"
46451 cat >conftest.$ac_ext <<_ACEOF
46452 /* confdefs.h. */
46453 _ACEOF
46454 cat confdefs.h >>conftest.$ac_ext
46455 cat >>conftest.$ac_ext <<_ACEOF
46456 /* end confdefs.h. */
46458 /* Override any GCC internal prototype to avoid an error.
46459 Use char because int might match the return type of a GCC
46460 builtin and then its argument prototype would still apply. */
46461 #ifdef __cplusplus
46462 extern "C"
46463 #endif
46464 char ${pbxfuncname} ();
46466 main ()
46468 return ${pbxfuncname} ();
46470 return 0;
46472 _ACEOF
46473 rm -f conftest.$ac_objext conftest$ac_exeext
46474 if { (ac_try="$ac_link"
46475 case "(($ac_try" in
46476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46477 *) ac_try_echo=$ac_try;;
46478 esac
46479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46480 (eval "$ac_link") 2>conftest.er1
46481 ac_status=$?
46482 grep -v '^ *+' conftest.er1 >conftest.err
46483 rm -f conftest.er1
46484 cat conftest.err >&5
46485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46486 (exit $ac_status); } && {
46487 test -z "$ac_c_werror_flag" ||
46488 test ! -s conftest.err
46489 } && test -s conftest$ac_exeext &&
46490 $as_test_x conftest$ac_exeext; then
46491 eval "$as_ac_Lib=yes"
46492 else
46493 echo "$as_me: failed program was:" >&5
46494 sed 's/^/| /' conftest.$ac_ext >&5
46496 eval "$as_ac_Lib=no"
46499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46500 conftest$ac_exeext conftest.$ac_ext
46501 LIBS=$ac_check_lib_save_LIBS
46503 ac_res=`eval echo '${'$as_ac_Lib'}'`
46504 { echo "$as_me:$LINENO: result: $ac_res" >&5
46505 echo "${ECHO_T}$ac_res" >&6; }
46506 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46507 AST_USB_FOUND=yes
46508 else
46509 AST_USB_FOUND=no
46514 # now check for the header.
46515 if test "${AST_USB_FOUND}" = "yes"; then
46516 USB_LIB="${pbxlibdir} -lusb "
46517 # if --with-USB=DIR has been specified, use it.
46518 if test "x${USB_DIR}" != "x"; then
46519 USB_INCLUDE="-I${USB_DIR}/include"
46521 USB_INCLUDE="${USB_INCLUDE} "
46522 if test "xusb.h" = "x" ; then # no header, assume found
46523 USB_HEADER_FOUND="1"
46524 else # check for the header
46525 saved_cppflags="${CPPFLAGS}"
46526 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE}"
46527 if test "${ac_cv_header_usb_h+set}" = set; then
46528 { echo "$as_me:$LINENO: checking for usb.h" >&5
46529 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46530 if test "${ac_cv_header_usb_h+set}" = set; then
46531 echo $ECHO_N "(cached) $ECHO_C" >&6
46533 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46534 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46535 else
46536 # Is the header compilable?
46537 { echo "$as_me:$LINENO: checking usb.h usability" >&5
46538 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
46539 cat >conftest.$ac_ext <<_ACEOF
46540 /* confdefs.h. */
46541 _ACEOF
46542 cat confdefs.h >>conftest.$ac_ext
46543 cat >>conftest.$ac_ext <<_ACEOF
46544 /* end confdefs.h. */
46545 $ac_includes_default
46546 #include <usb.h>
46547 _ACEOF
46548 rm -f conftest.$ac_objext
46549 if { (ac_try="$ac_compile"
46550 case "(($ac_try" in
46551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46552 *) ac_try_echo=$ac_try;;
46553 esac
46554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46555 (eval "$ac_compile") 2>conftest.er1
46556 ac_status=$?
46557 grep -v '^ *+' conftest.er1 >conftest.err
46558 rm -f conftest.er1
46559 cat conftest.err >&5
46560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46561 (exit $ac_status); } && {
46562 test -z "$ac_c_werror_flag" ||
46563 test ! -s conftest.err
46564 } && test -s conftest.$ac_objext; then
46565 ac_header_compiler=yes
46566 else
46567 echo "$as_me: failed program was:" >&5
46568 sed 's/^/| /' conftest.$ac_ext >&5
46570 ac_header_compiler=no
46573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46575 echo "${ECHO_T}$ac_header_compiler" >&6; }
46577 # Is the header present?
46578 { echo "$as_me:$LINENO: checking usb.h presence" >&5
46579 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
46580 cat >conftest.$ac_ext <<_ACEOF
46581 /* confdefs.h. */
46582 _ACEOF
46583 cat confdefs.h >>conftest.$ac_ext
46584 cat >>conftest.$ac_ext <<_ACEOF
46585 /* end confdefs.h. */
46586 #include <usb.h>
46587 _ACEOF
46588 if { (ac_try="$ac_cpp conftest.$ac_ext"
46589 case "(($ac_try" in
46590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46591 *) ac_try_echo=$ac_try;;
46592 esac
46593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46595 ac_status=$?
46596 grep -v '^ *+' conftest.er1 >conftest.err
46597 rm -f conftest.er1
46598 cat conftest.err >&5
46599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46600 (exit $ac_status); } >/dev/null && {
46601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46602 test ! -s conftest.err
46603 }; then
46604 ac_header_preproc=yes
46605 else
46606 echo "$as_me: failed program was:" >&5
46607 sed 's/^/| /' conftest.$ac_ext >&5
46609 ac_header_preproc=no
46612 rm -f conftest.err conftest.$ac_ext
46613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46614 echo "${ECHO_T}$ac_header_preproc" >&6; }
46616 # So? What about this header?
46617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46618 yes:no: )
46619 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
46620 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46621 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
46622 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
46623 ac_header_preproc=yes
46625 no:yes:* )
46626 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
46627 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
46628 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
46629 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
46630 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
46631 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
46632 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
46633 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
46634 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
46635 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
46636 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
46637 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
46638 ( cat <<\_ASBOX
46639 ## ------------------------------- ##
46640 ## Report this to www.asterisk.org ##
46641 ## ------------------------------- ##
46642 _ASBOX
46643 ) | sed "s/^/$as_me: WARNING: /" >&2
46645 esac
46646 { echo "$as_me:$LINENO: checking for usb.h" >&5
46647 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46648 if test "${ac_cv_header_usb_h+set}" = set; then
46649 echo $ECHO_N "(cached) $ECHO_C" >&6
46650 else
46651 ac_cv_header_usb_h=$ac_header_preproc
46653 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46654 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46657 if test $ac_cv_header_usb_h = yes; then
46658 USB_HEADER_FOUND=1
46659 else
46660 USB_HEADER_FOUND=0
46664 CPPFLAGS="${saved_cppflags}"
46666 if test "x${USB_HEADER_FOUND}" = "x0" ; then
46667 USB_LIB=""
46668 USB_INCLUDE=""
46669 else
46670 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46671 USB_LIB=""
46673 PBX_USB=1
46674 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46676 cat >>confdefs.h <<_ACEOF
46677 #define HAVE_USB 1
46678 _ACEOF
46681 cat >>confdefs.h <<_ACEOF
46682 #define HAVE_USB_VERSION
46683 _ACEOF
46691 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
46692 pbxlibdir=""
46693 # if --with-VORBIS=DIR has been specified, use it.
46694 if test "x${VORBIS_DIR}" != "x"; then
46695 if test -d ${VORBIS_DIR}/lib; then
46696 pbxlibdir="-L${VORBIS_DIR}/lib"
46697 else
46698 pbxlibdir="-L${VORBIS_DIR}"
46701 pbxfuncname="vorbis_info_init"
46702 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46703 AST_VORBIS_FOUND=yes
46704 else
46705 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
46706 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
46707 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
46708 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46709 echo $ECHO_N "(cached) $ECHO_C" >&6
46710 else
46711 ac_check_lib_save_LIBS=$LIBS
46712 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
46713 cat >conftest.$ac_ext <<_ACEOF
46714 /* confdefs.h. */
46715 _ACEOF
46716 cat confdefs.h >>conftest.$ac_ext
46717 cat >>conftest.$ac_ext <<_ACEOF
46718 /* end confdefs.h. */
46720 /* Override any GCC internal prototype to avoid an error.
46721 Use char because int might match the return type of a GCC
46722 builtin and then its argument prototype would still apply. */
46723 #ifdef __cplusplus
46724 extern "C"
46725 #endif
46726 char ${pbxfuncname} ();
46728 main ()
46730 return ${pbxfuncname} ();
46732 return 0;
46734 _ACEOF
46735 rm -f conftest.$ac_objext conftest$ac_exeext
46736 if { (ac_try="$ac_link"
46737 case "(($ac_try" in
46738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46739 *) ac_try_echo=$ac_try;;
46740 esac
46741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46742 (eval "$ac_link") 2>conftest.er1
46743 ac_status=$?
46744 grep -v '^ *+' conftest.er1 >conftest.err
46745 rm -f conftest.er1
46746 cat conftest.err >&5
46747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46748 (exit $ac_status); } && {
46749 test -z "$ac_c_werror_flag" ||
46750 test ! -s conftest.err
46751 } && test -s conftest$ac_exeext &&
46752 $as_test_x conftest$ac_exeext; then
46753 eval "$as_ac_Lib=yes"
46754 else
46755 echo "$as_me: failed program was:" >&5
46756 sed 's/^/| /' conftest.$ac_ext >&5
46758 eval "$as_ac_Lib=no"
46761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46762 conftest$ac_exeext conftest.$ac_ext
46763 LIBS=$ac_check_lib_save_LIBS
46765 ac_res=`eval echo '${'$as_ac_Lib'}'`
46766 { echo "$as_me:$LINENO: result: $ac_res" >&5
46767 echo "${ECHO_T}$ac_res" >&6; }
46768 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46769 AST_VORBIS_FOUND=yes
46770 else
46771 AST_VORBIS_FOUND=no
46776 # now check for the header.
46777 if test "${AST_VORBIS_FOUND}" = "yes"; then
46778 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
46779 # if --with-VORBIS=DIR has been specified, use it.
46780 if test "x${VORBIS_DIR}" != "x"; then
46781 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
46783 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
46784 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
46785 VORBIS_HEADER_FOUND="1"
46786 else # check for the header
46787 saved_cppflags="${CPPFLAGS}"
46788 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
46789 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46790 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46791 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46792 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46793 echo $ECHO_N "(cached) $ECHO_C" >&6
46795 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46796 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46797 else
46798 # Is the header compilable?
46799 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
46800 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
46801 cat >conftest.$ac_ext <<_ACEOF
46802 /* confdefs.h. */
46803 _ACEOF
46804 cat confdefs.h >>conftest.$ac_ext
46805 cat >>conftest.$ac_ext <<_ACEOF
46806 /* end confdefs.h. */
46807 $ac_includes_default
46808 #include <vorbis/codec.h>
46809 _ACEOF
46810 rm -f conftest.$ac_objext
46811 if { (ac_try="$ac_compile"
46812 case "(($ac_try" in
46813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46814 *) ac_try_echo=$ac_try;;
46815 esac
46816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46817 (eval "$ac_compile") 2>conftest.er1
46818 ac_status=$?
46819 grep -v '^ *+' conftest.er1 >conftest.err
46820 rm -f conftest.er1
46821 cat conftest.err >&5
46822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46823 (exit $ac_status); } && {
46824 test -z "$ac_c_werror_flag" ||
46825 test ! -s conftest.err
46826 } && test -s conftest.$ac_objext; then
46827 ac_header_compiler=yes
46828 else
46829 echo "$as_me: failed program was:" >&5
46830 sed 's/^/| /' conftest.$ac_ext >&5
46832 ac_header_compiler=no
46835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46837 echo "${ECHO_T}$ac_header_compiler" >&6; }
46839 # Is the header present?
46840 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
46841 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
46842 cat >conftest.$ac_ext <<_ACEOF
46843 /* confdefs.h. */
46844 _ACEOF
46845 cat confdefs.h >>conftest.$ac_ext
46846 cat >>conftest.$ac_ext <<_ACEOF
46847 /* end confdefs.h. */
46848 #include <vorbis/codec.h>
46849 _ACEOF
46850 if { (ac_try="$ac_cpp conftest.$ac_ext"
46851 case "(($ac_try" in
46852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46853 *) ac_try_echo=$ac_try;;
46854 esac
46855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46857 ac_status=$?
46858 grep -v '^ *+' conftest.er1 >conftest.err
46859 rm -f conftest.er1
46860 cat conftest.err >&5
46861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46862 (exit $ac_status); } >/dev/null && {
46863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46864 test ! -s conftest.err
46865 }; then
46866 ac_header_preproc=yes
46867 else
46868 echo "$as_me: failed program was:" >&5
46869 sed 's/^/| /' conftest.$ac_ext >&5
46871 ac_header_preproc=no
46874 rm -f conftest.err conftest.$ac_ext
46875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46876 echo "${ECHO_T}$ac_header_preproc" >&6; }
46878 # So? What about this header?
46879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46880 yes:no: )
46881 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
46882 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46883 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
46884 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
46885 ac_header_preproc=yes
46887 no:yes:* )
46888 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
46889 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
46890 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
46891 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
46892 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
46893 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
46894 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
46895 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
46896 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
46897 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
46898 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
46899 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
46900 ( cat <<\_ASBOX
46901 ## ------------------------------- ##
46902 ## Report this to www.asterisk.org ##
46903 ## ------------------------------- ##
46904 _ASBOX
46905 ) | sed "s/^/$as_me: WARNING: /" >&2
46907 esac
46908 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46909 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46910 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46911 echo $ECHO_N "(cached) $ECHO_C" >&6
46912 else
46913 ac_cv_header_vorbis_codec_h=$ac_header_preproc
46915 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46916 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46919 if test $ac_cv_header_vorbis_codec_h = yes; then
46920 VORBIS_HEADER_FOUND=1
46921 else
46922 VORBIS_HEADER_FOUND=0
46926 CPPFLAGS="${saved_cppflags}"
46928 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
46929 VORBIS_LIB=""
46930 VORBIS_INCLUDE=""
46931 else
46932 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46933 VORBIS_LIB=""
46935 PBX_VORBIS=1
46936 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46938 cat >>confdefs.h <<_ACEOF
46939 #define HAVE_VORBIS 1
46940 _ACEOF
46943 cat >>confdefs.h <<_ACEOF
46944 #define HAVE_VORBIS_VERSION
46945 _ACEOF
46952 ac_ext=cpp
46953 ac_cpp='$CXXCPP $CPPFLAGS'
46954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46959 if test "${USE_VPB}" != "no"; then
46960 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
46961 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
46962 saved_libs="${LIBS}"
46963 saved_cppflags="${CPPFLAGS}"
46964 if test "x${VPB_DIR}" != "x"; then
46965 if test -d ${VPB_DIR}/lib; then
46966 vpblibdir=${VPB_DIR}/lib
46967 else
46968 vpblibdir=${VPB_DIR}
46970 LIBS="${LIBS} -L${vpblibdir}"
46971 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
46973 LIBS="${LIBS} -lvpb -lpthread"
46974 cat >conftest.$ac_ext <<_ACEOF
46976 /* confdefs.h. */
46977 _ACEOF
46978 cat confdefs.h >>conftest.$ac_ext
46979 cat >>conftest.$ac_ext <<_ACEOF
46980 /* end confdefs.h. */
46981 #include <vpbapi.h>
46983 main ()
46985 int q = vpb_open(0,0);
46987 return 0;
46990 _ACEOF
46991 rm -f conftest.$ac_objext conftest$ac_exeext
46992 if { (ac_try="$ac_link"
46993 case "(($ac_try" in
46994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46995 *) ac_try_echo=$ac_try;;
46996 esac
46997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46998 (eval "$ac_link") 2>conftest.er1
46999 ac_status=$?
47000 grep -v '^ *+' conftest.er1 >conftest.err
47001 rm -f conftest.er1
47002 cat conftest.err >&5
47003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47004 (exit $ac_status); } && {
47005 test -z "$ac_cxx_werror_flag" ||
47006 test ! -s conftest.err
47007 } && test -s conftest$ac_exeext &&
47008 $as_test_x conftest$ac_exeext; then
47009 { echo "$as_me:$LINENO: result: yes" >&5
47010 echo "${ECHO_T}yes" >&6; }
47011 ac_cv_lib_vpb_vpb_open="yes"
47013 else
47014 echo "$as_me: failed program was:" >&5
47015 sed 's/^/| /' conftest.$ac_ext >&5
47017 { echo "$as_me:$LINENO: result: no" >&5
47018 echo "${ECHO_T}no" >&6; }
47019 ac_cv_lib_vpb_vpb_open="no"
47024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47025 conftest$ac_exeext conftest.$ac_ext
47026 LIBS="${saved_libs}"
47027 CPPFLAGS="${saved_cppflags}"
47028 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
47029 VPB_LIB="-lvpb"
47030 if test "${VPB_DIR}" != ""; then
47031 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
47032 VPB_INCLUDE="-I${VPB_DIR}/include"
47034 PBX_VPB=1
47036 cat >>confdefs.h <<\_ACEOF
47037 #define HAVE_VPB 1
47038 _ACEOF
47043 ac_ext=c
47044 ac_cpp='$CPP $CPPFLAGS'
47045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47051 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
47052 pbxlibdir=""
47053 # if --with-ZLIB=DIR has been specified, use it.
47054 if test "x${ZLIB_DIR}" != "x"; then
47055 if test -d ${ZLIB_DIR}/lib; then
47056 pbxlibdir="-L${ZLIB_DIR}/lib"
47057 else
47058 pbxlibdir="-L${ZLIB_DIR}"
47061 pbxfuncname="compress"
47062 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47063 AST_ZLIB_FOUND=yes
47064 else
47065 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
47066 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
47067 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $ECHO_C" >&6; }
47068 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47069 echo $ECHO_N "(cached) $ECHO_C" >&6
47070 else
47071 ac_check_lib_save_LIBS=$LIBS
47072 LIBS="-lz ${pbxlibdir} $LIBS"
47073 cat >conftest.$ac_ext <<_ACEOF
47074 /* confdefs.h. */
47075 _ACEOF
47076 cat confdefs.h >>conftest.$ac_ext
47077 cat >>conftest.$ac_ext <<_ACEOF
47078 /* end confdefs.h. */
47080 /* Override any GCC internal prototype to avoid an error.
47081 Use char because int might match the return type of a GCC
47082 builtin and then its argument prototype would still apply. */
47083 #ifdef __cplusplus
47084 extern "C"
47085 #endif
47086 char ${pbxfuncname} ();
47088 main ()
47090 return ${pbxfuncname} ();
47092 return 0;
47094 _ACEOF
47095 rm -f conftest.$ac_objext conftest$ac_exeext
47096 if { (ac_try="$ac_link"
47097 case "(($ac_try" in
47098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47099 *) ac_try_echo=$ac_try;;
47100 esac
47101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47102 (eval "$ac_link") 2>conftest.er1
47103 ac_status=$?
47104 grep -v '^ *+' conftest.er1 >conftest.err
47105 rm -f conftest.er1
47106 cat conftest.err >&5
47107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47108 (exit $ac_status); } && {
47109 test -z "$ac_c_werror_flag" ||
47110 test ! -s conftest.err
47111 } && test -s conftest$ac_exeext &&
47112 $as_test_x conftest$ac_exeext; then
47113 eval "$as_ac_Lib=yes"
47114 else
47115 echo "$as_me: failed program was:" >&5
47116 sed 's/^/| /' conftest.$ac_ext >&5
47118 eval "$as_ac_Lib=no"
47121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47122 conftest$ac_exeext conftest.$ac_ext
47123 LIBS=$ac_check_lib_save_LIBS
47125 ac_res=`eval echo '${'$as_ac_Lib'}'`
47126 { echo "$as_me:$LINENO: result: $ac_res" >&5
47127 echo "${ECHO_T}$ac_res" >&6; }
47128 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47129 AST_ZLIB_FOUND=yes
47130 else
47131 AST_ZLIB_FOUND=no
47136 # now check for the header.
47137 if test "${AST_ZLIB_FOUND}" = "yes"; then
47138 ZLIB_LIB="${pbxlibdir} -lz "
47139 # if --with-ZLIB=DIR has been specified, use it.
47140 if test "x${ZLIB_DIR}" != "x"; then
47141 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
47143 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
47144 if test "xzlib.h" = "x" ; then # no header, assume found
47145 ZLIB_HEADER_FOUND="1"
47146 else # check for the header
47147 saved_cppflags="${CPPFLAGS}"
47148 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
47149 if test "${ac_cv_header_zlib_h+set}" = set; then
47150 { echo "$as_me:$LINENO: checking for zlib.h" >&5
47151 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
47152 if test "${ac_cv_header_zlib_h+set}" = set; then
47153 echo $ECHO_N "(cached) $ECHO_C" >&6
47155 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
47156 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
47157 else
47158 # Is the header compilable?
47159 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
47160 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
47161 cat >conftest.$ac_ext <<_ACEOF
47162 /* confdefs.h. */
47163 _ACEOF
47164 cat confdefs.h >>conftest.$ac_ext
47165 cat >>conftest.$ac_ext <<_ACEOF
47166 /* end confdefs.h. */
47167 $ac_includes_default
47168 #include <zlib.h>
47169 _ACEOF
47170 rm -f conftest.$ac_objext
47171 if { (ac_try="$ac_compile"
47172 case "(($ac_try" in
47173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47174 *) ac_try_echo=$ac_try;;
47175 esac
47176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47177 (eval "$ac_compile") 2>conftest.er1
47178 ac_status=$?
47179 grep -v '^ *+' conftest.er1 >conftest.err
47180 rm -f conftest.er1
47181 cat conftest.err >&5
47182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47183 (exit $ac_status); } && {
47184 test -z "$ac_c_werror_flag" ||
47185 test ! -s conftest.err
47186 } && test -s conftest.$ac_objext; then
47187 ac_header_compiler=yes
47188 else
47189 echo "$as_me: failed program was:" >&5
47190 sed 's/^/| /' conftest.$ac_ext >&5
47192 ac_header_compiler=no
47195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47197 echo "${ECHO_T}$ac_header_compiler" >&6; }
47199 # Is the header present?
47200 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
47201 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
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 <zlib.h>
47209 _ACEOF
47210 if { (ac_try="$ac_cpp conftest.$ac_ext"
47211 case "(($ac_try" in
47212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47213 *) ac_try_echo=$ac_try;;
47214 esac
47215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47217 ac_status=$?
47218 grep -v '^ *+' conftest.er1 >conftest.err
47219 rm -f conftest.er1
47220 cat conftest.err >&5
47221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47222 (exit $ac_status); } >/dev/null && {
47223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47224 test ! -s conftest.err
47225 }; then
47226 ac_header_preproc=yes
47227 else
47228 echo "$as_me: failed program was:" >&5
47229 sed 's/^/| /' conftest.$ac_ext >&5
47231 ac_header_preproc=no
47234 rm -f conftest.err conftest.$ac_ext
47235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47236 echo "${ECHO_T}$ac_header_preproc" >&6; }
47238 # So? What about this header?
47239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47240 yes:no: )
47241 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
47242 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47243 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
47244 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
47245 ac_header_preproc=yes
47247 no:yes:* )
47248 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
47249 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
47250 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
47251 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
47252 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
47253 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
47254 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
47255 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
47256 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
47257 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
47258 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
47259 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
47260 ( cat <<\_ASBOX
47261 ## ------------------------------- ##
47262 ## Report this to www.asterisk.org ##
47263 ## ------------------------------- ##
47264 _ASBOX
47265 ) | sed "s/^/$as_me: WARNING: /" >&2
47267 esac
47268 { echo "$as_me:$LINENO: checking for zlib.h" >&5
47269 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
47270 if test "${ac_cv_header_zlib_h+set}" = set; then
47271 echo $ECHO_N "(cached) $ECHO_C" >&6
47272 else
47273 ac_cv_header_zlib_h=$ac_header_preproc
47275 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
47276 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
47279 if test $ac_cv_header_zlib_h = yes; then
47280 ZLIB_HEADER_FOUND=1
47281 else
47282 ZLIB_HEADER_FOUND=0
47286 CPPFLAGS="${saved_cppflags}"
47288 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
47289 ZLIB_LIB=""
47290 ZLIB_INCLUDE=""
47291 else
47292 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47293 ZLIB_LIB=""
47295 PBX_ZLIB=1
47296 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47298 cat >>confdefs.h <<_ACEOF
47299 #define HAVE_ZLIB 1
47300 _ACEOF
47303 cat >>confdefs.h <<_ACEOF
47304 #define HAVE_ZLIB_VERSION
47305 _ACEOF
47312 EDITLINE_LIB=""
47313 if test "x$TERMCAP_LIB" != "x" ; then
47314 EDITLINE_LIB="$TERMCAP_LIB"
47315 elif test "x$TINFO_LIB" != "x" ; then
47316 EDITLINE_LIB="$TINFO_LIB"
47317 elif test "x$CURSES_LIB" != "x" ; then
47318 EDITLINE_LIB="$CURSES_LIB"
47319 elif test "x$NCURSES_LIB" != "x" ; then
47320 EDITLINE_LIB="$NCURSES_LIB"
47321 else
47322 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
47323 echo "$as_me: error: *** termcap support not found" >&2;}
47324 { (exit 1); exit 1; }; }
47328 if test "${ac_cv_header_h323_h+set}" = set; then
47329 { echo "$as_me:$LINENO: checking for h323.h" >&5
47330 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47331 if test "${ac_cv_header_h323_h+set}" = set; then
47332 echo $ECHO_N "(cached) $ECHO_C" >&6
47334 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47335 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47336 else
47337 # Is the header compilable?
47338 { echo "$as_me:$LINENO: checking h323.h usability" >&5
47339 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
47340 cat >conftest.$ac_ext <<_ACEOF
47341 /* confdefs.h. */
47342 _ACEOF
47343 cat confdefs.h >>conftest.$ac_ext
47344 cat >>conftest.$ac_ext <<_ACEOF
47345 /* end confdefs.h. */
47346 $ac_includes_default
47347 #include <h323.h>
47348 _ACEOF
47349 rm -f conftest.$ac_objext
47350 if { (ac_try="$ac_compile"
47351 case "(($ac_try" in
47352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47353 *) ac_try_echo=$ac_try;;
47354 esac
47355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47356 (eval "$ac_compile") 2>conftest.er1
47357 ac_status=$?
47358 grep -v '^ *+' conftest.er1 >conftest.err
47359 rm -f conftest.er1
47360 cat conftest.err >&5
47361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47362 (exit $ac_status); } && {
47363 test -z "$ac_c_werror_flag" ||
47364 test ! -s conftest.err
47365 } && test -s conftest.$ac_objext; then
47366 ac_header_compiler=yes
47367 else
47368 echo "$as_me: failed program was:" >&5
47369 sed 's/^/| /' conftest.$ac_ext >&5
47371 ac_header_compiler=no
47374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47376 echo "${ECHO_T}$ac_header_compiler" >&6; }
47378 # Is the header present?
47379 { echo "$as_me:$LINENO: checking h323.h presence" >&5
47380 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
47381 cat >conftest.$ac_ext <<_ACEOF
47382 /* confdefs.h. */
47383 _ACEOF
47384 cat confdefs.h >>conftest.$ac_ext
47385 cat >>conftest.$ac_ext <<_ACEOF
47386 /* end confdefs.h. */
47387 #include <h323.h>
47388 _ACEOF
47389 if { (ac_try="$ac_cpp conftest.$ac_ext"
47390 case "(($ac_try" in
47391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47392 *) ac_try_echo=$ac_try;;
47393 esac
47394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47396 ac_status=$?
47397 grep -v '^ *+' conftest.er1 >conftest.err
47398 rm -f conftest.er1
47399 cat conftest.err >&5
47400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47401 (exit $ac_status); } >/dev/null && {
47402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47403 test ! -s conftest.err
47404 }; then
47405 ac_header_preproc=yes
47406 else
47407 echo "$as_me: failed program was:" >&5
47408 sed 's/^/| /' conftest.$ac_ext >&5
47410 ac_header_preproc=no
47413 rm -f conftest.err conftest.$ac_ext
47414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47415 echo "${ECHO_T}$ac_header_preproc" >&6; }
47417 # So? What about this header?
47418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47419 yes:no: )
47420 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
47421 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47422 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
47423 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
47424 ac_header_preproc=yes
47426 no:yes:* )
47427 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
47428 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
47429 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
47430 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
47431 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
47432 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
47433 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
47434 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
47435 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
47436 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
47437 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
47438 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
47439 ( cat <<\_ASBOX
47440 ## ------------------------------- ##
47441 ## Report this to www.asterisk.org ##
47442 ## ------------------------------- ##
47443 _ASBOX
47444 ) | sed "s/^/$as_me: WARNING: /" >&2
47446 esac
47447 { echo "$as_me:$LINENO: checking for h323.h" >&5
47448 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47449 if test "${ac_cv_header_h323_h+set}" = set; then
47450 echo $ECHO_N "(cached) $ECHO_C" >&6
47451 else
47452 ac_cv_header_h323_h=$ac_header_preproc
47454 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47455 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47458 if test $ac_cv_header_h323_h = yes; then
47459 PBX_H323=1
47460 else
47461 PBX_H323=0
47467 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47468 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47469 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47470 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47471 echo $ECHO_N "(cached) $ECHO_C" >&6
47473 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47474 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47475 else
47476 # Is the header compilable?
47477 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
47478 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
47479 cat >conftest.$ac_ext <<_ACEOF
47480 /* confdefs.h. */
47481 _ACEOF
47482 cat confdefs.h >>conftest.$ac_ext
47483 cat >>conftest.$ac_ext <<_ACEOF
47484 /* end confdefs.h. */
47485 $ac_includes_default
47486 #include <linux/compiler.h>
47487 _ACEOF
47488 rm -f conftest.$ac_objext
47489 if { (ac_try="$ac_compile"
47490 case "(($ac_try" in
47491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47492 *) ac_try_echo=$ac_try;;
47493 esac
47494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47495 (eval "$ac_compile") 2>conftest.er1
47496 ac_status=$?
47497 grep -v '^ *+' conftest.er1 >conftest.err
47498 rm -f conftest.er1
47499 cat conftest.err >&5
47500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47501 (exit $ac_status); } && {
47502 test -z "$ac_c_werror_flag" ||
47503 test ! -s conftest.err
47504 } && test -s conftest.$ac_objext; then
47505 ac_header_compiler=yes
47506 else
47507 echo "$as_me: failed program was:" >&5
47508 sed 's/^/| /' conftest.$ac_ext >&5
47510 ac_header_compiler=no
47513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47515 echo "${ECHO_T}$ac_header_compiler" >&6; }
47517 # Is the header present?
47518 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
47519 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
47520 cat >conftest.$ac_ext <<_ACEOF
47521 /* confdefs.h. */
47522 _ACEOF
47523 cat confdefs.h >>conftest.$ac_ext
47524 cat >>conftest.$ac_ext <<_ACEOF
47525 /* end confdefs.h. */
47526 #include <linux/compiler.h>
47527 _ACEOF
47528 if { (ac_try="$ac_cpp conftest.$ac_ext"
47529 case "(($ac_try" in
47530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47531 *) ac_try_echo=$ac_try;;
47532 esac
47533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47535 ac_status=$?
47536 grep -v '^ *+' conftest.er1 >conftest.err
47537 rm -f conftest.er1
47538 cat conftest.err >&5
47539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47540 (exit $ac_status); } >/dev/null && {
47541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47542 test ! -s conftest.err
47543 }; then
47544 ac_header_preproc=yes
47545 else
47546 echo "$as_me: failed program was:" >&5
47547 sed 's/^/| /' conftest.$ac_ext >&5
47549 ac_header_preproc=no
47552 rm -f conftest.err conftest.$ac_ext
47553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47554 echo "${ECHO_T}$ac_header_preproc" >&6; }
47556 # So? What about this header?
47557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47558 yes:no: )
47559 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
47560 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47561 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
47562 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
47563 ac_header_preproc=yes
47565 no:yes:* )
47566 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
47567 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
47568 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
47569 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
47570 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
47571 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
47572 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
47573 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
47574 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
47575 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
47576 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
47577 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
47578 ( cat <<\_ASBOX
47579 ## ------------------------------- ##
47580 ## Report this to www.asterisk.org ##
47581 ## ------------------------------- ##
47582 _ASBOX
47583 ) | sed "s/^/$as_me: WARNING: /" >&2
47585 esac
47586 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47587 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47588 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47589 echo $ECHO_N "(cached) $ECHO_C" >&6
47590 else
47591 ac_cv_header_linux_compiler_h=$ac_header_preproc
47593 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47594 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47597 if test $ac_cv_header_linux_compiler_h = yes; then
47599 cat >>confdefs.h <<_ACEOF
47600 #define HAVE_LINUX_COMPILER_H 1
47601 _ACEOF
47607 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
47608 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
47609 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
47610 echo $ECHO_N "(cached) $ECHO_C" >&6
47611 else
47612 cat >conftest.$ac_ext <<_ACEOF
47613 /* confdefs.h. */
47614 _ACEOF
47615 cat confdefs.h >>conftest.$ac_ext
47616 cat >>conftest.$ac_ext <<_ACEOF
47617 /* end confdefs.h. */
47619 #include <linux/version.h>
47620 #ifdef HAVE_LINUX_COMPILER_H
47621 #include <linux/compiler.h>
47622 #endif
47625 #include <linux/ixjuser.h>
47626 _ACEOF
47627 rm -f conftest.$ac_objext
47628 if { (ac_try="$ac_compile"
47629 case "(($ac_try" in
47630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47631 *) ac_try_echo=$ac_try;;
47632 esac
47633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47634 (eval "$ac_compile") 2>conftest.er1
47635 ac_status=$?
47636 grep -v '^ *+' conftest.er1 >conftest.err
47637 rm -f conftest.er1
47638 cat conftest.err >&5
47639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47640 (exit $ac_status); } && {
47641 test -z "$ac_c_werror_flag" ||
47642 test ! -s conftest.err
47643 } && test -s conftest.$ac_objext; then
47644 ac_cv_header_linux_ixjuser_h=yes
47645 else
47646 echo "$as_me: failed program was:" >&5
47647 sed 's/^/| /' conftest.$ac_ext >&5
47649 ac_cv_header_linux_ixjuser_h=no
47652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47654 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
47655 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
47656 if test $ac_cv_header_linux_ixjuser_h = yes; then
47657 PBX_IXJUSER=1
47658 else
47659 PBX_IXJUSER=0
47666 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
47667 PBX_SDL=0
47668 if test -n "$ac_tool_prefix"; then
47669 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
47670 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
47671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47673 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
47674 echo $ECHO_N "(cached) $ECHO_C" >&6
47675 else
47676 if test -n "$CONFIG_SDL"; then
47677 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
47678 else
47679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47680 for as_dir in $PATH
47682 IFS=$as_save_IFS
47683 test -z "$as_dir" && as_dir=.
47684 for ac_exec_ext in '' $ac_executable_extensions; do
47685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47686 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
47687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47688 break 2
47690 done
47691 done
47692 IFS=$as_save_IFS
47696 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
47697 if test -n "$CONFIG_SDL"; then
47698 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
47699 echo "${ECHO_T}$CONFIG_SDL" >&6; }
47700 else
47701 { echo "$as_me:$LINENO: result: no" >&5
47702 echo "${ECHO_T}no" >&6; }
47707 if test -z "$ac_cv_prog_CONFIG_SDL"; then
47708 ac_ct_CONFIG_SDL=$CONFIG_SDL
47709 # Extract the first word of "sdl-config", so it can be a program name with args.
47710 set dummy sdl-config; ac_word=$2
47711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47713 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
47714 echo $ECHO_N "(cached) $ECHO_C" >&6
47715 else
47716 if test -n "$ac_ct_CONFIG_SDL"; then
47717 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
47718 else
47719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47720 for as_dir in $PATH
47722 IFS=$as_save_IFS
47723 test -z "$as_dir" && as_dir=.
47724 for ac_exec_ext in '' $ac_executable_extensions; do
47725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47726 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
47727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47728 break 2
47730 done
47731 done
47732 IFS=$as_save_IFS
47736 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
47737 if test -n "$ac_ct_CONFIG_SDL"; then
47738 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
47739 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
47740 else
47741 { echo "$as_me:$LINENO: result: no" >&5
47742 echo "${ECHO_T}no" >&6; }
47745 if test "x$ac_ct_CONFIG_SDL" = x; then
47746 CONFIG_SDL="No"
47747 else
47748 case $cross_compiling:$ac_tool_warned in
47749 yes:)
47750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47751 whose name does not start with the host triplet. If you think this
47752 configuration is useful to you, please write to autoconf@gnu.org." >&5
47753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47754 whose name does not start with the host triplet. If you think this
47755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47756 ac_tool_warned=yes ;;
47757 esac
47758 CONFIG_SDL=$ac_ct_CONFIG_SDL
47760 else
47761 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
47764 if test ! "x${CONFIG_SDL}" = xNo; then
47765 if test x"" = x ; then A=--cflags ; else A="" ; fi
47766 SDL_INCLUDE=$(${CONFIG_SDL} $A)
47767 if test x"" = x ; then A=--libs ; else A="" ; fi
47768 SDL_LIB=$(${CONFIG_SDL} $A)
47769 if test x"" != x ; then
47770 saved_cppflags="${CPPFLAGS}"
47771 if test "x${SDL_DIR}" != "x"; then
47772 SDL_INCLUDE="-I${SDL_DIR}/include"
47774 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
47776 saved_ldflags="${LDFLAGS}"
47777 LDFLAGS="${SDL_LIB}"
47779 cat >conftest.$ac_ext <<_ACEOF
47780 /* confdefs.h. */
47781 _ACEOF
47782 cat confdefs.h >>conftest.$ac_ext
47783 cat >>conftest.$ac_ext <<_ACEOF
47784 /* end confdefs.h. */
47787 main ()
47792 return 0;
47794 _ACEOF
47795 rm -f conftest.$ac_objext conftest$ac_exeext
47796 if { (ac_try="$ac_link"
47797 case "(($ac_try" in
47798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47799 *) ac_try_echo=$ac_try;;
47800 esac
47801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47802 (eval "$ac_link") 2>conftest.er1
47803 ac_status=$?
47804 grep -v '^ *+' conftest.er1 >conftest.err
47805 rm -f conftest.er1
47806 cat conftest.err >&5
47807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47808 (exit $ac_status); } && {
47809 test -z "$ac_c_werror_flag" ||
47810 test ! -s conftest.err
47811 } && test -s conftest$ac_exeext &&
47812 $as_test_x conftest$ac_exeext; then
47813 PBX_SDL=1
47815 cat >>confdefs.h <<\_ACEOF
47816 #define HAVE_SDL 1
47817 _ACEOF
47820 else
47821 echo "$as_me: failed program was:" >&5
47822 sed 's/^/| /' conftest.$ac_ext >&5
47828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47829 conftest$ac_exeext conftest.$ac_ext
47830 CPPFLAGS="${saved_cppflags}"
47831 LDFLAGS="${saved_ldflags}"
47832 else
47833 PBX_SDL=1
47835 cat >>confdefs.h <<\_ACEOF
47836 #define HAVE_SDL 1
47837 _ACEOF
47844 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
47845 pbxlibdir=""
47846 # if --with-SDL_IMAGE=DIR has been specified, use it.
47847 if test "x${SDL_IMAGE_DIR}" != "x"; then
47848 if test -d ${SDL_IMAGE_DIR}/lib; then
47849 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
47850 else
47851 pbxlibdir="-L${SDL_IMAGE_DIR}"
47854 pbxfuncname="IMG_Load"
47855 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47856 AST_SDL_IMAGE_FOUND=yes
47857 else
47858 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
47859 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
47860 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
47861 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47862 echo $ECHO_N "(cached) $ECHO_C" >&6
47863 else
47864 ac_check_lib_save_LIBS=$LIBS
47865 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
47866 cat >conftest.$ac_ext <<_ACEOF
47867 /* confdefs.h. */
47868 _ACEOF
47869 cat confdefs.h >>conftest.$ac_ext
47870 cat >>conftest.$ac_ext <<_ACEOF
47871 /* end confdefs.h. */
47873 /* Override any GCC internal prototype to avoid an error.
47874 Use char because int might match the return type of a GCC
47875 builtin and then its argument prototype would still apply. */
47876 #ifdef __cplusplus
47877 extern "C"
47878 #endif
47879 char ${pbxfuncname} ();
47881 main ()
47883 return ${pbxfuncname} ();
47885 return 0;
47887 _ACEOF
47888 rm -f conftest.$ac_objext conftest$ac_exeext
47889 if { (ac_try="$ac_link"
47890 case "(($ac_try" in
47891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47892 *) ac_try_echo=$ac_try;;
47893 esac
47894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47895 (eval "$ac_link") 2>conftest.er1
47896 ac_status=$?
47897 grep -v '^ *+' conftest.er1 >conftest.err
47898 rm -f conftest.er1
47899 cat conftest.err >&5
47900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47901 (exit $ac_status); } && {
47902 test -z "$ac_c_werror_flag" ||
47903 test ! -s conftest.err
47904 } && test -s conftest$ac_exeext &&
47905 $as_test_x conftest$ac_exeext; then
47906 eval "$as_ac_Lib=yes"
47907 else
47908 echo "$as_me: failed program was:" >&5
47909 sed 's/^/| /' conftest.$ac_ext >&5
47911 eval "$as_ac_Lib=no"
47914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47915 conftest$ac_exeext conftest.$ac_ext
47916 LIBS=$ac_check_lib_save_LIBS
47918 ac_res=`eval echo '${'$as_ac_Lib'}'`
47919 { echo "$as_me:$LINENO: result: $ac_res" >&5
47920 echo "${ECHO_T}$ac_res" >&6; }
47921 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47922 AST_SDL_IMAGE_FOUND=yes
47923 else
47924 AST_SDL_IMAGE_FOUND=no
47929 # now check for the header.
47930 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
47931 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
47932 # if --with-SDL_IMAGE=DIR has been specified, use it.
47933 if test "x${SDL_IMAGE_DIR}" != "x"; then
47934 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
47936 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
47937 if test "xSDL_image.h" = "x" ; then # no header, assume found
47938 SDL_IMAGE_HEADER_FOUND="1"
47939 else # check for the header
47940 saved_cppflags="${CPPFLAGS}"
47941 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
47942 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47943 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
47944 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
47945 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47946 echo $ECHO_N "(cached) $ECHO_C" >&6
47948 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
47949 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
47950 else
47951 # Is the header compilable?
47952 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
47953 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
47954 cat >conftest.$ac_ext <<_ACEOF
47955 /* confdefs.h. */
47956 _ACEOF
47957 cat confdefs.h >>conftest.$ac_ext
47958 cat >>conftest.$ac_ext <<_ACEOF
47959 /* end confdefs.h. */
47960 $ac_includes_default
47961 #include <SDL_image.h>
47962 _ACEOF
47963 rm -f conftest.$ac_objext
47964 if { (ac_try="$ac_compile"
47965 case "(($ac_try" in
47966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47967 *) ac_try_echo=$ac_try;;
47968 esac
47969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47970 (eval "$ac_compile") 2>conftest.er1
47971 ac_status=$?
47972 grep -v '^ *+' conftest.er1 >conftest.err
47973 rm -f conftest.er1
47974 cat conftest.err >&5
47975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47976 (exit $ac_status); } && {
47977 test -z "$ac_c_werror_flag" ||
47978 test ! -s conftest.err
47979 } && test -s conftest.$ac_objext; then
47980 ac_header_compiler=yes
47981 else
47982 echo "$as_me: failed program was:" >&5
47983 sed 's/^/| /' conftest.$ac_ext >&5
47985 ac_header_compiler=no
47988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47990 echo "${ECHO_T}$ac_header_compiler" >&6; }
47992 # Is the header present?
47993 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
47994 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
47995 cat >conftest.$ac_ext <<_ACEOF
47996 /* confdefs.h. */
47997 _ACEOF
47998 cat confdefs.h >>conftest.$ac_ext
47999 cat >>conftest.$ac_ext <<_ACEOF
48000 /* end confdefs.h. */
48001 #include <SDL_image.h>
48002 _ACEOF
48003 if { (ac_try="$ac_cpp conftest.$ac_ext"
48004 case "(($ac_try" in
48005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48006 *) ac_try_echo=$ac_try;;
48007 esac
48008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48010 ac_status=$?
48011 grep -v '^ *+' conftest.er1 >conftest.err
48012 rm -f conftest.er1
48013 cat conftest.err >&5
48014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48015 (exit $ac_status); } >/dev/null && {
48016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48017 test ! -s conftest.err
48018 }; then
48019 ac_header_preproc=yes
48020 else
48021 echo "$as_me: failed program was:" >&5
48022 sed 's/^/| /' conftest.$ac_ext >&5
48024 ac_header_preproc=no
48027 rm -f conftest.err conftest.$ac_ext
48028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48029 echo "${ECHO_T}$ac_header_preproc" >&6; }
48031 # So? What about this header?
48032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48033 yes:no: )
48034 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
48035 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48036 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
48037 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
48038 ac_header_preproc=yes
48040 no:yes:* )
48041 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
48042 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
48043 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
48044 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
48045 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
48046 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
48047 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
48048 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
48049 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
48050 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
48051 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
48052 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
48053 ( cat <<\_ASBOX
48054 ## ------------------------------- ##
48055 ## Report this to www.asterisk.org ##
48056 ## ------------------------------- ##
48057 _ASBOX
48058 ) | sed "s/^/$as_me: WARNING: /" >&2
48060 esac
48061 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
48062 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
48063 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48064 echo $ECHO_N "(cached) $ECHO_C" >&6
48065 else
48066 ac_cv_header_SDL_image_h=$ac_header_preproc
48068 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
48069 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
48072 if test $ac_cv_header_SDL_image_h = yes; then
48073 SDL_IMAGE_HEADER_FOUND=1
48074 else
48075 SDL_IMAGE_HEADER_FOUND=0
48079 CPPFLAGS="${saved_cppflags}"
48081 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
48082 SDL_IMAGE_LIB=""
48083 SDL_IMAGE_INCLUDE=""
48084 else
48085 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48086 SDL_IMAGE_LIB=""
48088 PBX_SDL_IMAGE=1
48089 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48091 cat >>confdefs.h <<_ACEOF
48092 #define HAVE_SDL_IMAGE 1
48093 _ACEOF
48096 cat >>confdefs.h <<_ACEOF
48097 #define HAVE_SDL_IMAGE_VERSION
48098 _ACEOF
48105 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
48106 pbxlibdir=""
48107 # if --with-FFMPEG=DIR has been specified, use it.
48108 if test "x${FFMPEG_DIR}" != "x"; then
48109 if test -d ${FFMPEG_DIR}/lib; then
48110 pbxlibdir="-L${FFMPEG_DIR}/lib"
48111 else
48112 pbxlibdir="-L${FFMPEG_DIR}"
48115 pbxfuncname="sws_getContext"
48116 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48117 AST_FFMPEG_FOUND=yes
48118 else
48119 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
48120 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
48121 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
48122 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48123 echo $ECHO_N "(cached) $ECHO_C" >&6
48124 else
48125 ac_check_lib_save_LIBS=$LIBS
48126 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
48127 cat >conftest.$ac_ext <<_ACEOF
48128 /* confdefs.h. */
48129 _ACEOF
48130 cat confdefs.h >>conftest.$ac_ext
48131 cat >>conftest.$ac_ext <<_ACEOF
48132 /* end confdefs.h. */
48134 /* Override any GCC internal prototype to avoid an error.
48135 Use char because int might match the return type of a GCC
48136 builtin and then its argument prototype would still apply. */
48137 #ifdef __cplusplus
48138 extern "C"
48139 #endif
48140 char ${pbxfuncname} ();
48142 main ()
48144 return ${pbxfuncname} ();
48146 return 0;
48148 _ACEOF
48149 rm -f conftest.$ac_objext conftest$ac_exeext
48150 if { (ac_try="$ac_link"
48151 case "(($ac_try" in
48152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48153 *) ac_try_echo=$ac_try;;
48154 esac
48155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48156 (eval "$ac_link") 2>conftest.er1
48157 ac_status=$?
48158 grep -v '^ *+' conftest.er1 >conftest.err
48159 rm -f conftest.er1
48160 cat conftest.err >&5
48161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48162 (exit $ac_status); } && {
48163 test -z "$ac_c_werror_flag" ||
48164 test ! -s conftest.err
48165 } && test -s conftest$ac_exeext &&
48166 $as_test_x conftest$ac_exeext; then
48167 eval "$as_ac_Lib=yes"
48168 else
48169 echo "$as_me: failed program was:" >&5
48170 sed 's/^/| /' conftest.$ac_ext >&5
48172 eval "$as_ac_Lib=no"
48175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48176 conftest$ac_exeext conftest.$ac_ext
48177 LIBS=$ac_check_lib_save_LIBS
48179 ac_res=`eval echo '${'$as_ac_Lib'}'`
48180 { echo "$as_me:$LINENO: result: $ac_res" >&5
48181 echo "${ECHO_T}$ac_res" >&6; }
48182 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48183 AST_FFMPEG_FOUND=yes
48184 else
48185 AST_FFMPEG_FOUND=no
48190 # now check for the header.
48191 if test "${AST_FFMPEG_FOUND}" = "yes"; then
48192 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
48193 # if --with-FFMPEG=DIR has been specified, use it.
48194 if test "x${FFMPEG_DIR}" != "x"; then
48195 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
48197 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
48198 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
48199 FFMPEG_HEADER_FOUND="1"
48200 else # check for the header
48201 saved_cppflags="${CPPFLAGS}"
48202 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
48203 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48204 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48205 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48206 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48207 echo $ECHO_N "(cached) $ECHO_C" >&6
48209 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48210 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48211 else
48212 # Is the header compilable?
48213 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
48214 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
48215 cat >conftest.$ac_ext <<_ACEOF
48216 /* confdefs.h. */
48217 _ACEOF
48218 cat confdefs.h >>conftest.$ac_ext
48219 cat >>conftest.$ac_ext <<_ACEOF
48220 /* end confdefs.h. */
48221 $ac_includes_default
48222 #include <ffmpeg/avcodec.h>
48223 _ACEOF
48224 rm -f conftest.$ac_objext
48225 if { (ac_try="$ac_compile"
48226 case "(($ac_try" in
48227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48228 *) ac_try_echo=$ac_try;;
48229 esac
48230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48231 (eval "$ac_compile") 2>conftest.er1
48232 ac_status=$?
48233 grep -v '^ *+' conftest.er1 >conftest.err
48234 rm -f conftest.er1
48235 cat conftest.err >&5
48236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48237 (exit $ac_status); } && {
48238 test -z "$ac_c_werror_flag" ||
48239 test ! -s conftest.err
48240 } && test -s conftest.$ac_objext; then
48241 ac_header_compiler=yes
48242 else
48243 echo "$as_me: failed program was:" >&5
48244 sed 's/^/| /' conftest.$ac_ext >&5
48246 ac_header_compiler=no
48249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48251 echo "${ECHO_T}$ac_header_compiler" >&6; }
48253 # Is the header present?
48254 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
48255 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
48256 cat >conftest.$ac_ext <<_ACEOF
48257 /* confdefs.h. */
48258 _ACEOF
48259 cat confdefs.h >>conftest.$ac_ext
48260 cat >>conftest.$ac_ext <<_ACEOF
48261 /* end confdefs.h. */
48262 #include <ffmpeg/avcodec.h>
48263 _ACEOF
48264 if { (ac_try="$ac_cpp conftest.$ac_ext"
48265 case "(($ac_try" in
48266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48267 *) ac_try_echo=$ac_try;;
48268 esac
48269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48271 ac_status=$?
48272 grep -v '^ *+' conftest.er1 >conftest.err
48273 rm -f conftest.er1
48274 cat conftest.err >&5
48275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48276 (exit $ac_status); } >/dev/null && {
48277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48278 test ! -s conftest.err
48279 }; then
48280 ac_header_preproc=yes
48281 else
48282 echo "$as_me: failed program was:" >&5
48283 sed 's/^/| /' conftest.$ac_ext >&5
48285 ac_header_preproc=no
48288 rm -f conftest.err conftest.$ac_ext
48289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48290 echo "${ECHO_T}$ac_header_preproc" >&6; }
48292 # So? What about this header?
48293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48294 yes:no: )
48295 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
48296 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48297 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
48298 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
48299 ac_header_preproc=yes
48301 no:yes:* )
48302 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
48303 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
48304 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
48305 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
48306 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
48307 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
48308 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
48309 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
48310 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
48311 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
48312 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
48313 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
48314 ( cat <<\_ASBOX
48315 ## ------------------------------- ##
48316 ## Report this to www.asterisk.org ##
48317 ## ------------------------------- ##
48318 _ASBOX
48319 ) | sed "s/^/$as_me: WARNING: /" >&2
48321 esac
48322 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48323 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48324 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48325 echo $ECHO_N "(cached) $ECHO_C" >&6
48326 else
48327 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
48329 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48330 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48333 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
48334 FFMPEG_HEADER_FOUND=1
48335 else
48336 FFMPEG_HEADER_FOUND=0
48340 CPPFLAGS="${saved_cppflags}"
48342 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
48343 FFMPEG_LIB=""
48344 FFMPEG_INCLUDE=""
48345 else
48346 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48347 FFMPEG_LIB=""
48349 PBX_FFMPEG=1
48350 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48352 cat >>confdefs.h <<_ACEOF
48353 #define HAVE_FFMPEG 1
48354 _ACEOF
48357 cat >>confdefs.h <<_ACEOF
48358 #define HAVE_FFMPEG_VERSION
48359 _ACEOF
48366 # possible places for video4linux version 1
48367 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48368 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48369 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48370 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48371 echo $ECHO_N "(cached) $ECHO_C" >&6
48373 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48374 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48375 else
48376 # Is the header compilable?
48377 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
48378 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
48379 cat >conftest.$ac_ext <<_ACEOF
48380 /* confdefs.h. */
48381 _ACEOF
48382 cat confdefs.h >>conftest.$ac_ext
48383 cat >>conftest.$ac_ext <<_ACEOF
48384 /* end confdefs.h. */
48385 $ac_includes_default
48386 #include <linux/videodev.h>
48387 _ACEOF
48388 rm -f conftest.$ac_objext
48389 if { (ac_try="$ac_compile"
48390 case "(($ac_try" in
48391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48392 *) ac_try_echo=$ac_try;;
48393 esac
48394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48395 (eval "$ac_compile") 2>conftest.er1
48396 ac_status=$?
48397 grep -v '^ *+' conftest.er1 >conftest.err
48398 rm -f conftest.er1
48399 cat conftest.err >&5
48400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48401 (exit $ac_status); } && {
48402 test -z "$ac_c_werror_flag" ||
48403 test ! -s conftest.err
48404 } && test -s conftest.$ac_objext; then
48405 ac_header_compiler=yes
48406 else
48407 echo "$as_me: failed program was:" >&5
48408 sed 's/^/| /' conftest.$ac_ext >&5
48410 ac_header_compiler=no
48413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48415 echo "${ECHO_T}$ac_header_compiler" >&6; }
48417 # Is the header present?
48418 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
48419 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
48420 cat >conftest.$ac_ext <<_ACEOF
48421 /* confdefs.h. */
48422 _ACEOF
48423 cat confdefs.h >>conftest.$ac_ext
48424 cat >>conftest.$ac_ext <<_ACEOF
48425 /* end confdefs.h. */
48426 #include <linux/videodev.h>
48427 _ACEOF
48428 if { (ac_try="$ac_cpp conftest.$ac_ext"
48429 case "(($ac_try" in
48430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48431 *) ac_try_echo=$ac_try;;
48432 esac
48433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48435 ac_status=$?
48436 grep -v '^ *+' conftest.er1 >conftest.err
48437 rm -f conftest.er1
48438 cat conftest.err >&5
48439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48440 (exit $ac_status); } >/dev/null && {
48441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48442 test ! -s conftest.err
48443 }; then
48444 ac_header_preproc=yes
48445 else
48446 echo "$as_me: failed program was:" >&5
48447 sed 's/^/| /' conftest.$ac_ext >&5
48449 ac_header_preproc=no
48452 rm -f conftest.err conftest.$ac_ext
48453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48454 echo "${ECHO_T}$ac_header_preproc" >&6; }
48456 # So? What about this header?
48457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48458 yes:no: )
48459 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
48460 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48461 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
48462 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
48463 ac_header_preproc=yes
48465 no:yes:* )
48466 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
48467 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
48468 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
48469 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
48470 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
48471 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
48472 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
48473 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
48474 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
48475 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
48476 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
48477 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
48478 ( cat <<\_ASBOX
48479 ## ------------------------------- ##
48480 ## Report this to www.asterisk.org ##
48481 ## ------------------------------- ##
48482 _ASBOX
48483 ) | sed "s/^/$as_me: WARNING: /" >&2
48485 esac
48486 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48487 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48488 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48489 echo $ECHO_N "(cached) $ECHO_C" >&6
48490 else
48491 ac_cv_header_linux_videodev_h=$ac_header_preproc
48493 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48494 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48497 if test $ac_cv_header_linux_videodev_h = yes; then
48499 cat >>confdefs.h <<_ACEOF
48500 #define HAVE_VIDEODEV_H 1
48501 _ACEOF
48507 # possible places for X11
48509 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48510 pbxlibdir=""
48511 # if --with-X11=DIR has been specified, use it.
48512 if test "x${X11_DIR}" != "x"; then
48513 if test -d ${X11_DIR}/lib; then
48514 pbxlibdir="-L${X11_DIR}/lib"
48515 else
48516 pbxlibdir="-L${X11_DIR}"
48519 pbxfuncname="XOpenDisplay"
48520 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48521 AST_X11_FOUND=yes
48522 else
48523 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48524 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48525 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48526 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48527 echo $ECHO_N "(cached) $ECHO_C" >&6
48528 else
48529 ac_check_lib_save_LIBS=$LIBS
48530 LIBS="-lX11 ${pbxlibdir} $LIBS"
48531 cat >conftest.$ac_ext <<_ACEOF
48532 /* confdefs.h. */
48533 _ACEOF
48534 cat confdefs.h >>conftest.$ac_ext
48535 cat >>conftest.$ac_ext <<_ACEOF
48536 /* end confdefs.h. */
48538 /* Override any GCC internal prototype to avoid an error.
48539 Use char because int might match the return type of a GCC
48540 builtin and then its argument prototype would still apply. */
48541 #ifdef __cplusplus
48542 extern "C"
48543 #endif
48544 char ${pbxfuncname} ();
48546 main ()
48548 return ${pbxfuncname} ();
48550 return 0;
48552 _ACEOF
48553 rm -f conftest.$ac_objext conftest$ac_exeext
48554 if { (ac_try="$ac_link"
48555 case "(($ac_try" in
48556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48557 *) ac_try_echo=$ac_try;;
48558 esac
48559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48560 (eval "$ac_link") 2>conftest.er1
48561 ac_status=$?
48562 grep -v '^ *+' conftest.er1 >conftest.err
48563 rm -f conftest.er1
48564 cat conftest.err >&5
48565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48566 (exit $ac_status); } && {
48567 test -z "$ac_c_werror_flag" ||
48568 test ! -s conftest.err
48569 } && test -s conftest$ac_exeext &&
48570 $as_test_x conftest$ac_exeext; then
48571 eval "$as_ac_Lib=yes"
48572 else
48573 echo "$as_me: failed program was:" >&5
48574 sed 's/^/| /' conftest.$ac_ext >&5
48576 eval "$as_ac_Lib=no"
48579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48580 conftest$ac_exeext conftest.$ac_ext
48581 LIBS=$ac_check_lib_save_LIBS
48583 ac_res=`eval echo '${'$as_ac_Lib'}'`
48584 { echo "$as_me:$LINENO: result: $ac_res" >&5
48585 echo "${ECHO_T}$ac_res" >&6; }
48586 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48587 AST_X11_FOUND=yes
48588 else
48589 AST_X11_FOUND=no
48594 # now check for the header.
48595 if test "${AST_X11_FOUND}" = "yes"; then
48596 X11_LIB="${pbxlibdir} -lX11 "
48597 # if --with-X11=DIR has been specified, use it.
48598 if test "x${X11_DIR}" != "x"; then
48599 X11_INCLUDE="-I${X11_DIR}/include"
48601 X11_INCLUDE="${X11_INCLUDE} "
48602 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48603 X11_HEADER_FOUND="1"
48604 else # check for the header
48605 saved_cppflags="${CPPFLAGS}"
48606 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
48607 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48608 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48609 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48610 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48611 echo $ECHO_N "(cached) $ECHO_C" >&6
48613 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48614 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48615 else
48616 # Is the header compilable?
48617 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48618 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48619 cat >conftest.$ac_ext <<_ACEOF
48620 /* confdefs.h. */
48621 _ACEOF
48622 cat confdefs.h >>conftest.$ac_ext
48623 cat >>conftest.$ac_ext <<_ACEOF
48624 /* end confdefs.h. */
48625 $ac_includes_default
48626 #include <X11/Xlib.h>
48627 _ACEOF
48628 rm -f conftest.$ac_objext
48629 if { (ac_try="$ac_compile"
48630 case "(($ac_try" in
48631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48632 *) ac_try_echo=$ac_try;;
48633 esac
48634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48635 (eval "$ac_compile") 2>conftest.er1
48636 ac_status=$?
48637 grep -v '^ *+' conftest.er1 >conftest.err
48638 rm -f conftest.er1
48639 cat conftest.err >&5
48640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48641 (exit $ac_status); } && {
48642 test -z "$ac_c_werror_flag" ||
48643 test ! -s conftest.err
48644 } && test -s conftest.$ac_objext; then
48645 ac_header_compiler=yes
48646 else
48647 echo "$as_me: failed program was:" >&5
48648 sed 's/^/| /' conftest.$ac_ext >&5
48650 ac_header_compiler=no
48653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48655 echo "${ECHO_T}$ac_header_compiler" >&6; }
48657 # Is the header present?
48658 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48659 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48660 cat >conftest.$ac_ext <<_ACEOF
48661 /* confdefs.h. */
48662 _ACEOF
48663 cat confdefs.h >>conftest.$ac_ext
48664 cat >>conftest.$ac_ext <<_ACEOF
48665 /* end confdefs.h. */
48666 #include <X11/Xlib.h>
48667 _ACEOF
48668 if { (ac_try="$ac_cpp conftest.$ac_ext"
48669 case "(($ac_try" in
48670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48671 *) ac_try_echo=$ac_try;;
48672 esac
48673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48675 ac_status=$?
48676 grep -v '^ *+' conftest.er1 >conftest.err
48677 rm -f conftest.er1
48678 cat conftest.err >&5
48679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48680 (exit $ac_status); } >/dev/null && {
48681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48682 test ! -s conftest.err
48683 }; then
48684 ac_header_preproc=yes
48685 else
48686 echo "$as_me: failed program was:" >&5
48687 sed 's/^/| /' conftest.$ac_ext >&5
48689 ac_header_preproc=no
48692 rm -f conftest.err conftest.$ac_ext
48693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48694 echo "${ECHO_T}$ac_header_preproc" >&6; }
48696 # So? What about this header?
48697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48698 yes:no: )
48699 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
48700 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48701 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
48702 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
48703 ac_header_preproc=yes
48705 no:yes:* )
48706 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
48707 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
48708 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
48709 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
48710 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
48711 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
48712 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
48713 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
48714 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
48715 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
48716 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
48717 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
48718 ( cat <<\_ASBOX
48719 ## ------------------------------- ##
48720 ## Report this to www.asterisk.org ##
48721 ## ------------------------------- ##
48722 _ASBOX
48723 ) | sed "s/^/$as_me: WARNING: /" >&2
48725 esac
48726 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48727 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48728 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48729 echo $ECHO_N "(cached) $ECHO_C" >&6
48730 else
48731 ac_cv_header_X11_Xlib_h=$ac_header_preproc
48733 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48734 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48737 if test $ac_cv_header_X11_Xlib_h = yes; then
48738 X11_HEADER_FOUND=1
48739 else
48740 X11_HEADER_FOUND=0
48744 CPPFLAGS="${saved_cppflags}"
48746 if test "x${X11_HEADER_FOUND}" = "x0" ; then
48747 X11_LIB=""
48748 X11_INCLUDE=""
48749 else
48750 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48751 X11_LIB=""
48753 PBX_X11=1
48754 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48756 cat >>confdefs.h <<_ACEOF
48757 #define HAVE_X11 1
48758 _ACEOF
48761 cat >>confdefs.h <<_ACEOF
48762 #define HAVE_X11_VERSION standard_path
48763 _ACEOF
48770 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48771 pbxlibdir=""
48772 # if --with-X11=DIR has been specified, use it.
48773 if test "x${X11_DIR}" != "x"; then
48774 if test -d ${X11_DIR}/lib; then
48775 pbxlibdir="-L${X11_DIR}/lib"
48776 else
48777 pbxlibdir="-L${X11_DIR}"
48780 pbxfuncname="XOpenDisplay"
48781 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48782 AST_X11_FOUND=yes
48783 else
48784 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48785 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48786 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48787 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48788 echo $ECHO_N "(cached) $ECHO_C" >&6
48789 else
48790 ac_check_lib_save_LIBS=$LIBS
48791 LIBS="-lX11 ${pbxlibdir} $LIBS"
48792 cat >conftest.$ac_ext <<_ACEOF
48793 /* confdefs.h. */
48794 _ACEOF
48795 cat confdefs.h >>conftest.$ac_ext
48796 cat >>conftest.$ac_ext <<_ACEOF
48797 /* end confdefs.h. */
48799 /* Override any GCC internal prototype to avoid an error.
48800 Use char because int might match the return type of a GCC
48801 builtin and then its argument prototype would still apply. */
48802 #ifdef __cplusplus
48803 extern "C"
48804 #endif
48805 char ${pbxfuncname} ();
48807 main ()
48809 return ${pbxfuncname} ();
48811 return 0;
48813 _ACEOF
48814 rm -f conftest.$ac_objext conftest$ac_exeext
48815 if { (ac_try="$ac_link"
48816 case "(($ac_try" in
48817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48818 *) ac_try_echo=$ac_try;;
48819 esac
48820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48821 (eval "$ac_link") 2>conftest.er1
48822 ac_status=$?
48823 grep -v '^ *+' conftest.er1 >conftest.err
48824 rm -f conftest.er1
48825 cat conftest.err >&5
48826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48827 (exit $ac_status); } && {
48828 test -z "$ac_c_werror_flag" ||
48829 test ! -s conftest.err
48830 } && test -s conftest$ac_exeext &&
48831 $as_test_x conftest$ac_exeext; then
48832 eval "$as_ac_Lib=yes"
48833 else
48834 echo "$as_me: failed program was:" >&5
48835 sed 's/^/| /' conftest.$ac_ext >&5
48837 eval "$as_ac_Lib=no"
48840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48841 conftest$ac_exeext conftest.$ac_ext
48842 LIBS=$ac_check_lib_save_LIBS
48844 ac_res=`eval echo '${'$as_ac_Lib'}'`
48845 { echo "$as_me:$LINENO: result: $ac_res" >&5
48846 echo "${ECHO_T}$ac_res" >&6; }
48847 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48848 AST_X11_FOUND=yes
48849 else
48850 AST_X11_FOUND=no
48855 # now check for the header.
48856 if test "${AST_X11_FOUND}" = "yes"; then
48857 X11_LIB="${pbxlibdir} -lX11 "
48858 # if --with-X11=DIR has been specified, use it.
48859 if test "x${X11_DIR}" != "x"; then
48860 X11_INCLUDE="-I${X11_DIR}/include"
48862 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
48863 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48864 X11_HEADER_FOUND="1"
48865 else # check for the header
48866 saved_cppflags="${CPPFLAGS}"
48867 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
48868 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48869 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48870 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48871 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48872 echo $ECHO_N "(cached) $ECHO_C" >&6
48874 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48875 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48876 else
48877 # Is the header compilable?
48878 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48879 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48880 cat >conftest.$ac_ext <<_ACEOF
48881 /* confdefs.h. */
48882 _ACEOF
48883 cat confdefs.h >>conftest.$ac_ext
48884 cat >>conftest.$ac_ext <<_ACEOF
48885 /* end confdefs.h. */
48886 $ac_includes_default
48887 #include <X11/Xlib.h>
48888 _ACEOF
48889 rm -f conftest.$ac_objext
48890 if { (ac_try="$ac_compile"
48891 case "(($ac_try" in
48892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48893 *) ac_try_echo=$ac_try;;
48894 esac
48895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48896 (eval "$ac_compile") 2>conftest.er1
48897 ac_status=$?
48898 grep -v '^ *+' conftest.er1 >conftest.err
48899 rm -f conftest.er1
48900 cat conftest.err >&5
48901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48902 (exit $ac_status); } && {
48903 test -z "$ac_c_werror_flag" ||
48904 test ! -s conftest.err
48905 } && test -s conftest.$ac_objext; then
48906 ac_header_compiler=yes
48907 else
48908 echo "$as_me: failed program was:" >&5
48909 sed 's/^/| /' conftest.$ac_ext >&5
48911 ac_header_compiler=no
48914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48916 echo "${ECHO_T}$ac_header_compiler" >&6; }
48918 # Is the header present?
48919 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48920 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48921 cat >conftest.$ac_ext <<_ACEOF
48922 /* confdefs.h. */
48923 _ACEOF
48924 cat confdefs.h >>conftest.$ac_ext
48925 cat >>conftest.$ac_ext <<_ACEOF
48926 /* end confdefs.h. */
48927 #include <X11/Xlib.h>
48928 _ACEOF
48929 if { (ac_try="$ac_cpp conftest.$ac_ext"
48930 case "(($ac_try" in
48931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48932 *) ac_try_echo=$ac_try;;
48933 esac
48934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48936 ac_status=$?
48937 grep -v '^ *+' conftest.er1 >conftest.err
48938 rm -f conftest.er1
48939 cat conftest.err >&5
48940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48941 (exit $ac_status); } >/dev/null && {
48942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48943 test ! -s conftest.err
48944 }; then
48945 ac_header_preproc=yes
48946 else
48947 echo "$as_me: failed program was:" >&5
48948 sed 's/^/| /' conftest.$ac_ext >&5
48950 ac_header_preproc=no
48953 rm -f conftest.err conftest.$ac_ext
48954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48955 echo "${ECHO_T}$ac_header_preproc" >&6; }
48957 # So? What about this header?
48958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48959 yes:no: )
48960 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
48961 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48962 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
48963 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
48964 ac_header_preproc=yes
48966 no:yes:* )
48967 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
48968 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
48969 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
48970 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
48971 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
48972 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
48973 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
48974 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
48975 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
48976 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
48977 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
48978 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
48979 ( cat <<\_ASBOX
48980 ## ------------------------------- ##
48981 ## Report this to www.asterisk.org ##
48982 ## ------------------------------- ##
48983 _ASBOX
48984 ) | sed "s/^/$as_me: WARNING: /" >&2
48986 esac
48987 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48988 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48989 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48990 echo $ECHO_N "(cached) $ECHO_C" >&6
48991 else
48992 ac_cv_header_X11_Xlib_h=$ac_header_preproc
48994 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48995 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48998 if test $ac_cv_header_X11_Xlib_h = yes; then
48999 X11_HEADER_FOUND=1
49000 else
49001 X11_HEADER_FOUND=0
49005 CPPFLAGS="${saved_cppflags}"
49007 if test "x${X11_HEADER_FOUND}" = "x0" ; then
49008 X11_LIB=""
49009 X11_INCLUDE=""
49010 else
49011 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49012 X11_LIB=""
49014 PBX_X11=1
49015 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49017 cat >>confdefs.h <<_ACEOF
49018 #define HAVE_X11 1
49019 _ACEOF
49022 cat >>confdefs.h <<_ACEOF
49023 #define HAVE_X11_VERSION X11R6
49024 _ACEOF
49031 if test "${cross_compiling}" = "no";
49032 then
49033 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
49034 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
49035 if test "${ac_cv_file__sbin_launchd+set}" = set; then
49036 echo $ECHO_N "(cached) $ECHO_C" >&6
49037 else
49038 test "$cross_compiling" = yes &&
49039 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
49040 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
49041 { (exit 1); exit 1; }; }
49042 if test -r "/sbin/launchd"; then
49043 ac_cv_file__sbin_launchd=yes
49044 else
49045 ac_cv_file__sbin_launchd=no
49048 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
49049 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
49050 if test $ac_cv_file__sbin_launchd = yes; then
49052 cat >>confdefs.h <<\_ACEOF
49053 #define HAVE_SBIN_LAUNCHD 1
49054 _ACEOF
49060 PBX_GTK=0
49062 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
49063 PBX_GTK=0
49064 if test -n "$ac_tool_prefix"; then
49065 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
49066 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
49067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49069 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
49070 echo $ECHO_N "(cached) $ECHO_C" >&6
49071 else
49072 if test -n "$CONFIG_GTK"; then
49073 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
49074 else
49075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49076 for as_dir in $PATH
49078 IFS=$as_save_IFS
49079 test -z "$as_dir" && as_dir=.
49080 for ac_exec_ext in '' $ac_executable_extensions; do
49081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49082 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
49083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49084 break 2
49086 done
49087 done
49088 IFS=$as_save_IFS
49092 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
49093 if test -n "$CONFIG_GTK"; then
49094 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
49095 echo "${ECHO_T}$CONFIG_GTK" >&6; }
49096 else
49097 { echo "$as_me:$LINENO: result: no" >&5
49098 echo "${ECHO_T}no" >&6; }
49103 if test -z "$ac_cv_prog_CONFIG_GTK"; then
49104 ac_ct_CONFIG_GTK=$CONFIG_GTK
49105 # Extract the first word of "gtk-config", so it can be a program name with args.
49106 set dummy gtk-config; ac_word=$2
49107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49109 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
49110 echo $ECHO_N "(cached) $ECHO_C" >&6
49111 else
49112 if test -n "$ac_ct_CONFIG_GTK"; then
49113 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
49114 else
49115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49116 for as_dir in $PATH
49118 IFS=$as_save_IFS
49119 test -z "$as_dir" && as_dir=.
49120 for ac_exec_ext in '' $ac_executable_extensions; do
49121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49122 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
49123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49124 break 2
49126 done
49127 done
49128 IFS=$as_save_IFS
49132 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
49133 if test -n "$ac_ct_CONFIG_GTK"; then
49134 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
49135 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
49136 else
49137 { echo "$as_me:$LINENO: result: no" >&5
49138 echo "${ECHO_T}no" >&6; }
49141 if test "x$ac_ct_CONFIG_GTK" = x; then
49142 CONFIG_GTK="No"
49143 else
49144 case $cross_compiling:$ac_tool_warned in
49145 yes:)
49146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49147 whose name does not start with the host triplet. If you think this
49148 configuration is useful to you, please write to autoconf@gnu.org." >&5
49149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49150 whose name does not start with the host triplet. If you think this
49151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49152 ac_tool_warned=yes ;;
49153 esac
49154 CONFIG_GTK=$ac_ct_CONFIG_GTK
49156 else
49157 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
49160 if test ! "x${CONFIG_GTK}" = xNo; then
49161 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
49162 GTK_INCLUDE=$(${CONFIG_GTK} $A)
49163 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
49164 GTK_LIB=$(${CONFIG_GTK} $A)
49165 if test x"" != x ; then
49166 saved_cppflags="${CPPFLAGS}"
49167 if test "x${GTK_DIR}" != "x"; then
49168 GTK_INCLUDE="-I${GTK_DIR}/include"
49170 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
49172 saved_ldflags="${LDFLAGS}"
49173 LDFLAGS="${GTK_LIB}"
49175 cat >conftest.$ac_ext <<_ACEOF
49176 /* confdefs.h. */
49177 _ACEOF
49178 cat confdefs.h >>conftest.$ac_ext
49179 cat >>conftest.$ac_ext <<_ACEOF
49180 /* end confdefs.h. */
49183 main ()
49188 return 0;
49190 _ACEOF
49191 rm -f conftest.$ac_objext conftest$ac_exeext
49192 if { (ac_try="$ac_link"
49193 case "(($ac_try" in
49194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49195 *) ac_try_echo=$ac_try;;
49196 esac
49197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49198 (eval "$ac_link") 2>conftest.er1
49199 ac_status=$?
49200 grep -v '^ *+' conftest.er1 >conftest.err
49201 rm -f conftest.er1
49202 cat conftest.err >&5
49203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49204 (exit $ac_status); } && {
49205 test -z "$ac_c_werror_flag" ||
49206 test ! -s conftest.err
49207 } && test -s conftest$ac_exeext &&
49208 $as_test_x conftest$ac_exeext; then
49209 PBX_GTK=1
49211 cat >>confdefs.h <<\_ACEOF
49212 #define HAVE_GTK 1
49213 _ACEOF
49216 else
49217 echo "$as_me: failed program was:" >&5
49218 sed 's/^/| /' conftest.$ac_ext >&5
49224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49225 conftest$ac_exeext conftest.$ac_ext
49226 CPPFLAGS="${saved_cppflags}"
49227 LDFLAGS="${saved_ldflags}"
49228 else
49229 PBX_GTK=1
49231 cat >>confdefs.h <<\_ACEOF
49232 #define HAVE_GTK 1
49233 _ACEOF
49240 PBX_GTK2=0
49241 if test -n "$ac_tool_prefix"; then
49242 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
49243 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
49244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49246 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
49247 echo $ECHO_N "(cached) $ECHO_C" >&6
49248 else
49249 if test -n "$PKGCONFIG"; then
49250 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
49251 else
49252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49253 for as_dir in $PATH
49255 IFS=$as_save_IFS
49256 test -z "$as_dir" && as_dir=.
49257 for ac_exec_ext in '' $ac_executable_extensions; do
49258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49259 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
49260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49261 break 2
49263 done
49264 done
49265 IFS=$as_save_IFS
49269 PKGCONFIG=$ac_cv_prog_PKGCONFIG
49270 if test -n "$PKGCONFIG"; then
49271 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
49272 echo "${ECHO_T}$PKGCONFIG" >&6; }
49273 else
49274 { echo "$as_me:$LINENO: result: no" >&5
49275 echo "${ECHO_T}no" >&6; }
49280 if test -z "$ac_cv_prog_PKGCONFIG"; then
49281 ac_ct_PKGCONFIG=$PKGCONFIG
49282 # Extract the first word of "pkg-config", so it can be a program name with args.
49283 set dummy pkg-config; ac_word=$2
49284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49286 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
49287 echo $ECHO_N "(cached) $ECHO_C" >&6
49288 else
49289 if test -n "$ac_ct_PKGCONFIG"; then
49290 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
49291 else
49292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49293 for as_dir in $PATH
49295 IFS=$as_save_IFS
49296 test -z "$as_dir" && as_dir=.
49297 for ac_exec_ext in '' $ac_executable_extensions; do
49298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49299 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
49300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49301 break 2
49303 done
49304 done
49305 IFS=$as_save_IFS
49309 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
49310 if test -n "$ac_ct_PKGCONFIG"; then
49311 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
49312 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
49313 else
49314 { echo "$as_me:$LINENO: result: no" >&5
49315 echo "${ECHO_T}no" >&6; }
49318 if test "x$ac_ct_PKGCONFIG" = x; then
49319 PKGCONFIG="No"
49320 else
49321 case $cross_compiling:$ac_tool_warned in
49322 yes:)
49323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49324 whose name does not start with the host triplet. If you think this
49325 configuration is useful to you, please write to autoconf@gnu.org." >&5
49326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49327 whose name does not start with the host triplet. If you think this
49328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49329 ac_tool_warned=yes ;;
49330 esac
49331 PKGCONFIG=$ac_ct_PKGCONFIG
49333 else
49334 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
49337 if test ! "x${PKGCONFIG}" = xNo; then
49338 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
49339 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
49340 PBX_GTK2=1
49342 cat >>confdefs.h <<\_ACEOF
49343 #define HAVE_GTK2 1
49344 _ACEOF
49351 if test "${USE_CURL}" != "no"; then
49352 if test -n "$ac_tool_prefix"; then
49353 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
49354 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
49355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49357 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
49358 echo $ECHO_N "(cached) $ECHO_C" >&6
49359 else
49360 case $CURL_CONFIG in
49361 [\\/]* | ?:[\\/]*)
49362 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
49365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49366 for as_dir in $PATH
49368 IFS=$as_save_IFS
49369 test -z "$as_dir" && as_dir=.
49370 for ac_exec_ext in '' $ac_executable_extensions; do
49371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49372 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49374 break 2
49376 done
49377 done
49378 IFS=$as_save_IFS
49381 esac
49383 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
49384 if test -n "$CURL_CONFIG"; then
49385 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
49386 echo "${ECHO_T}$CURL_CONFIG" >&6; }
49387 else
49388 { echo "$as_me:$LINENO: result: no" >&5
49389 echo "${ECHO_T}no" >&6; }
49394 if test -z "$ac_cv_path_CURL_CONFIG"; then
49395 ac_pt_CURL_CONFIG=$CURL_CONFIG
49396 # Extract the first word of "curl-config", so it can be a program name with args.
49397 set dummy curl-config; ac_word=$2
49398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49400 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
49401 echo $ECHO_N "(cached) $ECHO_C" >&6
49402 else
49403 case $ac_pt_CURL_CONFIG in
49404 [\\/]* | ?:[\\/]*)
49405 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
49408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49409 for as_dir in $PATH
49411 IFS=$as_save_IFS
49412 test -z "$as_dir" && as_dir=.
49413 for ac_exec_ext in '' $ac_executable_extensions; do
49414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49415 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49417 break 2
49419 done
49420 done
49421 IFS=$as_save_IFS
49424 esac
49426 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
49427 if test -n "$ac_pt_CURL_CONFIG"; then
49428 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
49429 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
49430 else
49431 { echo "$as_me:$LINENO: result: no" >&5
49432 echo "${ECHO_T}no" >&6; }
49435 if test "x$ac_pt_CURL_CONFIG" = x; then
49436 CURL_CONFIG="No"
49437 else
49438 case $cross_compiling:$ac_tool_warned in
49439 yes:)
49440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49441 whose name does not start with the host triplet. If you think this
49442 configuration is useful to you, please write to autoconf@gnu.org." >&5
49443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49444 whose name does not start with the host triplet. If you think this
49445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49446 ac_tool_warned=yes ;;
49447 esac
49448 CURL_CONFIG=$ac_pt_CURL_CONFIG
49450 else
49451 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
49454 if test ! x"${CURL_CONFIG}" = xNo; then
49455 # check for version
49456 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
49457 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
49458 CURL_LIB=$(${CURL_CONFIG} --libs)
49460 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
49461 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
49462 saved_cppflags="${CPPFLAGS}"
49463 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
49464 cat >conftest.$ac_ext <<_ACEOF
49465 /* confdefs.h. */
49466 _ACEOF
49467 cat confdefs.h >>conftest.$ac_ext
49468 cat >>conftest.$ac_ext <<_ACEOF
49469 /* end confdefs.h. */
49470 #include <curl/curl.h>
49472 main ()
49474 curl_version();
49476 return 0;
49479 _ACEOF
49480 rm -f conftest.$ac_objext
49481 if { (ac_try="$ac_compile"
49482 case "(($ac_try" in
49483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49484 *) ac_try_echo=$ac_try;;
49485 esac
49486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49487 (eval "$ac_compile") 2>conftest.er1
49488 ac_status=$?
49489 grep -v '^ *+' conftest.er1 >conftest.err
49490 rm -f conftest.er1
49491 cat conftest.err >&5
49492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49493 (exit $ac_status); } && {
49494 test -z "$ac_c_werror_flag" ||
49495 test ! -s conftest.err
49496 } && test -s conftest.$ac_objext; then
49498 { echo "$as_me:$LINENO: result: yes" >&5
49499 echo "${ECHO_T}yes" >&6; }
49500 ac_cv_curl_h="yes"
49502 else
49503 echo "$as_me: failed program was:" >&5
49504 sed 's/^/| /' conftest.$ac_ext >&5
49507 { echo "$as_me:$LINENO: result: no" >&5
49508 echo "${ECHO_T}no" >&6; }
49509 ac_cv_curl_h="no"
49514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49515 CPPFLAGS="${saved_cppflags}"
49516 if test "${ac_cv_curl_h}" = "yes"; then
49517 PBX_CURL=1
49519 cat >>confdefs.h <<\_ACEOF
49520 #define HAVE_CURL 1
49521 _ACEOF
49528 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
49531 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
49532 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
49533 err=0;
49534 for i in ${ac_mandatory_list}; do
49535 eval "a=\${PBX_$i}"
49536 if test "x${a}" = "x1" ; then continue; fi
49537 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
49538 echo "${ECHO_T}fail" >&6; } ; fi
49539 { echo "$as_me:$LINENO: result: " >&5
49540 echo "${ECHO_T}" >&6; }
49541 eval "a=\${${i}_OPTION}"
49542 { echo "$as_me:$LINENO: ***" >&5
49543 echo "$as_me: ***" >&6;}
49544 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
49545 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
49546 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
49547 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
49548 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
49549 echo "$as_me: *** including --without-${a}." >&6;}
49550 err=1
49551 done
49552 if test $err = 1 ; then exit 1; fi
49553 { echo "$as_me:$LINENO: result: ok" >&5
49554 echo "${ECHO_T}ok" >&6; }
49557 cat >confcache <<\_ACEOF
49558 # This file is a shell script that caches the results of configure
49559 # tests run on this system so they can be shared between configure
49560 # scripts and configure runs, see configure's option --config-cache.
49561 # It is not useful on other systems. If it contains results you don't
49562 # want to keep, you may remove or edit it.
49564 # config.status only pays attention to the cache file if you give it
49565 # the --recheck option to rerun configure.
49567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49569 # following values.
49571 _ACEOF
49573 # The following way of writing the cache mishandles newlines in values,
49574 # but we know of no workaround that is simple, portable, and efficient.
49575 # So, we kill variables containing newlines.
49576 # Ultrix sh set writes to stderr and can't be redirected directly,
49577 # and sets the high bit in the cache file unless we assign to the vars.
49579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49580 eval ac_val=\$$ac_var
49581 case $ac_val in #(
49582 *${as_nl}*)
49583 case $ac_var in #(
49584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
49585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
49586 esac
49587 case $ac_var in #(
49588 _ | IFS | as_nl) ;; #(
49589 *) $as_unset $ac_var ;;
49590 esac ;;
49591 esac
49592 done
49594 (set) 2>&1 |
49595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
49596 *${as_nl}ac_space=\ *)
49597 # `set' does not quote correctly, so add quotes (double-quote
49598 # substitution turns \\\\ into \\, and sed turns \\ into \).
49599 sed -n \
49600 "s/'/'\\\\''/g;
49601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49602 ;; #(
49604 # `set' quotes correctly as required by POSIX, so do not add quotes.
49605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49607 esac |
49608 sort
49610 sed '
49611 /^ac_cv_env_/b end
49612 t clear
49613 :clear
49614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49615 t end
49616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49617 :end' >>confcache
49618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49619 if test -w "$cache_file"; then
49620 test "x$cache_file" != "x/dev/null" &&
49621 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
49622 echo "$as_me: updating cache $cache_file" >&6;}
49623 cat confcache >$cache_file
49624 else
49625 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
49626 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49629 rm -f confcache
49631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49632 # Let make expand exec_prefix.
49633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49635 DEFS=-DHAVE_CONFIG_H
49637 ac_libobjs=
49638 ac_ltlibobjs=
49639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49640 # 1. Remove the extension, and $U if already installed.
49641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49642 ac_i=`echo "$ac_i" | sed "$ac_script"`
49643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
49644 # will be set to the directory where LIBOBJS objects are built.
49645 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49646 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
49647 done
49648 LIBOBJS=$ac_libobjs
49650 LTLIBOBJS=$ac_ltlibobjs
49654 : ${CONFIG_STATUS=./config.status}
49655 ac_clean_files_save=$ac_clean_files
49656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49657 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49658 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49659 cat >$CONFIG_STATUS <<_ACEOF
49660 #! $SHELL
49661 # Generated by $as_me.
49662 # Run this file to recreate the current configuration.
49663 # Compiler output produced by configure, useful for debugging
49664 # configure, is in config.log if it exists.
49666 debug=false
49667 ac_cs_recheck=false
49668 ac_cs_silent=false
49669 SHELL=\${CONFIG_SHELL-$SHELL}
49670 _ACEOF
49672 cat >>$CONFIG_STATUS <<\_ACEOF
49673 ## --------------------- ##
49674 ## M4sh Initialization. ##
49675 ## --------------------- ##
49677 # Be more Bourne compatible
49678 DUALCASE=1; export DUALCASE # for MKS sh
49679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49680 emulate sh
49681 NULLCMD=:
49682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49683 # is contrary to our usage. Disable this feature.
49684 alias -g '${1+"$@"}'='"$@"'
49685 setopt NO_GLOB_SUBST
49686 else
49687 case `(set -o) 2>/dev/null` in
49688 *posix*) set -o posix ;;
49689 esac
49696 # PATH needs CR
49697 # Avoid depending upon Character Ranges.
49698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49701 as_cr_digits='0123456789'
49702 as_cr_alnum=$as_cr_Letters$as_cr_digits
49704 # The user is always right.
49705 if test "${PATH_SEPARATOR+set}" != set; then
49706 echo "#! /bin/sh" >conf$$.sh
49707 echo "exit 0" >>conf$$.sh
49708 chmod +x conf$$.sh
49709 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49710 PATH_SEPARATOR=';'
49711 else
49712 PATH_SEPARATOR=:
49714 rm -f conf$$.sh
49717 # Support unset when possible.
49718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49719 as_unset=unset
49720 else
49721 as_unset=false
49725 # IFS
49726 # We need space, tab and new line, in precisely that order. Quoting is
49727 # there to prevent editors from complaining about space-tab.
49728 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
49729 # splitting by setting IFS to empty value.)
49730 as_nl='
49732 IFS=" "" $as_nl"
49734 # Find who we are. Look in the path if we contain no directory separator.
49735 case $0 in
49736 *[\\/]* ) as_myself=$0 ;;
49737 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49738 for as_dir in $PATH
49740 IFS=$as_save_IFS
49741 test -z "$as_dir" && as_dir=.
49742 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49743 done
49744 IFS=$as_save_IFS
49747 esac
49748 # We did not find ourselves, most probably we were run as `sh COMMAND'
49749 # in which case we are not to be found in the path.
49750 if test "x$as_myself" = x; then
49751 as_myself=$0
49753 if test ! -f "$as_myself"; then
49754 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
49755 { (exit 1); exit 1; }
49758 # Work around bugs in pre-3.0 UWIN ksh.
49759 for as_var in ENV MAIL MAILPATH
49760 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49761 done
49762 PS1='$ '
49763 PS2='> '
49764 PS4='+ '
49766 # NLS nuisances.
49767 for as_var in \
49768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49770 LC_TELEPHONE LC_TIME
49772 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49773 eval $as_var=C; export $as_var
49774 else
49775 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49777 done
49779 # Required to use basename.
49780 if expr a : '\(a\)' >/dev/null 2>&1 &&
49781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49782 as_expr=expr
49783 else
49784 as_expr=false
49787 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49788 as_basename=basename
49789 else
49790 as_basename=false
49794 # Name of the executable.
49795 as_me=`$as_basename -- "$0" ||
49796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49797 X"$0" : 'X\(//\)$' \| \
49798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
49799 echo X/"$0" |
49800 sed '/^.*\/\([^/][^/]*\)\/*$/{
49801 s//\1/
49804 /^X\/\(\/\/\)$/{
49805 s//\1/
49808 /^X\/\(\/\).*/{
49809 s//\1/
49812 s/.*/./; q'`
49814 # CDPATH.
49815 $as_unset CDPATH
49819 as_lineno_1=$LINENO
49820 as_lineno_2=$LINENO
49821 test "x$as_lineno_1" != "x$as_lineno_2" &&
49822 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
49824 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49825 # uniformly replaced by the line number. The first 'sed' inserts a
49826 # line-number line after each line using $LINENO; the second 'sed'
49827 # does the real work. The second script uses 'N' to pair each
49828 # line-number line with the line containing $LINENO, and appends
49829 # trailing '-' during substitution so that $LINENO is not a special
49830 # case at line end.
49831 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49832 # scripts with optimization help from Paolo Bonzini. Blame Lee
49833 # E. McMahon (1931-1989) for sed's syntax. :-)
49834 sed -n '
49836 /[$]LINENO/=
49837 ' <$as_myself |
49838 sed '
49839 s/[$]LINENO.*/&-/
49840 t lineno
49842 :lineno
49844 :loop
49845 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
49846 t loop
49847 s/-\n.*//
49848 ' >$as_me.lineno &&
49849 chmod +x "$as_me.lineno" ||
49850 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
49851 { (exit 1); exit 1; }; }
49853 # Don't try to exec as it changes $[0], causing all sort of problems
49854 # (the dirname of $[0] is not the place where we might find the
49855 # original and so on. Autoconf is especially sensitive to this).
49856 . "./$as_me.lineno"
49857 # Exit status is that of the last command.
49858 exit
49862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
49863 as_dirname=dirname
49864 else
49865 as_dirname=false
49868 ECHO_C= ECHO_N= ECHO_T=
49869 case `echo -n x` in
49870 -n*)
49871 case `echo 'x\c'` in
49872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
49873 *) ECHO_C='\c';;
49874 esac;;
49876 ECHO_N='-n';;
49877 esac
49879 if expr a : '\(a\)' >/dev/null 2>&1 &&
49880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49881 as_expr=expr
49882 else
49883 as_expr=false
49886 rm -f conf$$ conf$$.exe conf$$.file
49887 if test -d conf$$.dir; then
49888 rm -f conf$$.dir/conf$$.file
49889 else
49890 rm -f conf$$.dir
49891 mkdir conf$$.dir
49893 echo >conf$$.file
49894 if ln -s conf$$.file conf$$ 2>/dev/null; then
49895 as_ln_s='ln -s'
49896 # ... but there are two gotchas:
49897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49899 # In both cases, we have to default to `cp -p'.
49900 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49901 as_ln_s='cp -p'
49902 elif ln conf$$.file conf$$ 2>/dev/null; then
49903 as_ln_s=ln
49904 else
49905 as_ln_s='cp -p'
49907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
49908 rmdir conf$$.dir 2>/dev/null
49910 if mkdir -p . 2>/dev/null; then
49911 as_mkdir_p=:
49912 else
49913 test -d ./-p && rmdir ./-p
49914 as_mkdir_p=false
49917 if test -x / >/dev/null 2>&1; then
49918 as_test_x='test -x'
49919 else
49920 if ls -dL / >/dev/null 2>&1; then
49921 as_ls_L_option=L
49922 else
49923 as_ls_L_option=
49925 as_test_x='
49926 eval sh -c '\''
49927 if test -d "$1"; then
49928 test -d "$1/.";
49929 else
49930 case $1 in
49931 -*)set "./$1";;
49932 esac;
49933 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
49934 ???[sx]*):;;*)false;;esac;fi
49935 '\'' sh
49938 as_executable_p=$as_test_x
49940 # Sed expression to map a string onto a valid CPP name.
49941 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49943 # Sed expression to map a string onto a valid variable name.
49944 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49947 exec 6>&1
49949 # Save the log message, to keep $[0] and so on meaningful, and to
49950 # report actual input values of CONFIG_FILES etc. instead of their
49951 # values after options handling.
49952 ac_log="
49953 This file was extended by asterisk $as_me 1.6, which was
49954 generated by GNU Autoconf 2.61. Invocation command line was
49956 CONFIG_FILES = $CONFIG_FILES
49957 CONFIG_HEADERS = $CONFIG_HEADERS
49958 CONFIG_LINKS = $CONFIG_LINKS
49959 CONFIG_COMMANDS = $CONFIG_COMMANDS
49960 $ $0 $@
49962 on `(hostname || uname -n) 2>/dev/null | sed 1q`
49965 _ACEOF
49967 cat >>$CONFIG_STATUS <<_ACEOF
49968 # Files that config.status was made for.
49969 config_files="$ac_config_files"
49970 config_headers="$ac_config_headers"
49972 _ACEOF
49974 cat >>$CONFIG_STATUS <<\_ACEOF
49975 ac_cs_usage="\
49976 \`$as_me' instantiates files from templates according to the
49977 current configuration.
49979 Usage: $0 [OPTIONS] [FILE]...
49981 -h, --help print this help, then exit
49982 -V, --version print version number and configuration settings, then exit
49983 -q, --quiet do not print progress messages
49984 -d, --debug don't remove temporary files
49985 --recheck update $as_me by reconfiguring in the same conditions
49986 --file=FILE[:TEMPLATE]
49987 instantiate the configuration file FILE
49988 --header=FILE[:TEMPLATE]
49989 instantiate the configuration header FILE
49991 Configuration files:
49992 $config_files
49994 Configuration headers:
49995 $config_headers
49997 Report bugs to <bug-autoconf@gnu.org>."
49999 _ACEOF
50000 cat >>$CONFIG_STATUS <<_ACEOF
50001 ac_cs_version="\\
50002 asterisk config.status 1.6
50003 configured by $0, generated by GNU Autoconf 2.61,
50004 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50006 Copyright (C) 2006 Free Software Foundation, Inc.
50007 This config.status script is free software; the Free Software Foundation
50008 gives unlimited permission to copy, distribute and modify it."
50010 ac_pwd='$ac_pwd'
50011 srcdir='$srcdir'
50012 INSTALL='$INSTALL'
50013 _ACEOF
50015 cat >>$CONFIG_STATUS <<\_ACEOF
50016 # If no file are specified by the user, then we need to provide default
50017 # value. By we need to know if files were specified by the user.
50018 ac_need_defaults=:
50019 while test $# != 0
50021 case $1 in
50022 --*=*)
50023 ac_option=`expr "X$1" : 'X\([^=]*\)='`
50024 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50025 ac_shift=:
50028 ac_option=$1
50029 ac_optarg=$2
50030 ac_shift=shift
50032 esac
50034 case $ac_option in
50035 # Handling of the options.
50036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50037 ac_cs_recheck=: ;;
50038 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50039 echo "$ac_cs_version"; exit ;;
50040 --debug | --debu | --deb | --de | --d | -d )
50041 debug=: ;;
50042 --file | --fil | --fi | --f )
50043 $ac_shift
50044 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50045 ac_need_defaults=false;;
50046 --header | --heade | --head | --hea )
50047 $ac_shift
50048 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50049 ac_need_defaults=false;;
50050 --he | --h)
50051 # Conflict between --help and --header
50052 { echo "$as_me: error: ambiguous option: $1
50053 Try \`$0 --help' for more information." >&2
50054 { (exit 1); exit 1; }; };;
50055 --help | --hel | -h )
50056 echo "$ac_cs_usage"; exit ;;
50057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50058 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50059 ac_cs_silent=: ;;
50061 # This is an error.
50062 -*) { echo "$as_me: error: unrecognized option: $1
50063 Try \`$0 --help' for more information." >&2
50064 { (exit 1); exit 1; }; } ;;
50066 *) ac_config_targets="$ac_config_targets $1"
50067 ac_need_defaults=false ;;
50069 esac
50070 shift
50071 done
50073 ac_configure_extra_args=
50075 if $ac_cs_silent; then
50076 exec 6>/dev/null
50077 ac_configure_extra_args="$ac_configure_extra_args --silent"
50080 _ACEOF
50081 cat >>$CONFIG_STATUS <<_ACEOF
50082 if \$ac_cs_recheck; then
50083 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50084 CONFIG_SHELL=$SHELL
50085 export CONFIG_SHELL
50086 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50089 _ACEOF
50090 cat >>$CONFIG_STATUS <<\_ACEOF
50091 exec 5>>config.log
50093 echo
50094 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50095 ## Running $as_me. ##
50096 _ASBOX
50097 echo "$ac_log"
50098 } >&5
50100 _ACEOF
50101 cat >>$CONFIG_STATUS <<_ACEOF
50102 _ACEOF
50104 cat >>$CONFIG_STATUS <<\_ACEOF
50106 # Handling of arguments.
50107 for ac_config_target in $ac_config_targets
50109 case $ac_config_target in
50110 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
50111 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
50112 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
50113 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
50115 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50116 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50117 { (exit 1); exit 1; }; };;
50118 esac
50119 done
50122 # If the user did not use the arguments to specify the items to instantiate,
50123 # then the envvar interface is used. Set only those that are not.
50124 # We use the long form for the default assignment because of an extremely
50125 # bizarre bug on SunOS 4.1.3.
50126 if $ac_need_defaults; then
50127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50131 # Have a temporary directory for convenience. Make it in the build tree
50132 # simply because there is no reason against having it here, and in addition,
50133 # creating and moving files from /tmp can sometimes cause problems.
50134 # Hook for its removal unless debugging.
50135 # Note that there is a small window in which the directory will not be cleaned:
50136 # after its creation but before its name has been assigned to `$tmp'.
50137 $debug ||
50139 tmp=
50140 trap 'exit_status=$?
50141 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
50143 trap '{ (exit 1); exit 1; }' 1 2 13 15
50145 # Create a (secure) tmp directory for tmp files.
50148 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
50149 test -n "$tmp" && test -d "$tmp"
50150 } ||
50152 tmp=./conf$$-$RANDOM
50153 (umask 077 && mkdir "$tmp")
50154 } ||
50156 echo "$me: cannot create a temporary directory in ." >&2
50157 { (exit 1); exit 1; }
50161 # Set up the sed scripts for CONFIG_FILES section.
50164 # No need to generate the scripts if there are no CONFIG_FILES.
50165 # This happens for instance when ./config.status config.h
50166 if test -n "$CONFIG_FILES"; then
50168 _ACEOF
50172 ac_delim='%!_!# '
50173 for ac_last_try in false false false false false :; do
50174 cat >conf$$subs.sed <<_ACEOF
50175 SHELL!$SHELL$ac_delim
50176 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
50177 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
50178 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
50179 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
50180 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
50181 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
50182 exec_prefix!$exec_prefix$ac_delim
50183 prefix!$prefix$ac_delim
50184 program_transform_name!$program_transform_name$ac_delim
50185 bindir!$bindir$ac_delim
50186 sbindir!$sbindir$ac_delim
50187 libexecdir!$libexecdir$ac_delim
50188 datarootdir!$datarootdir$ac_delim
50189 datadir!$datadir$ac_delim
50190 sysconfdir!$sysconfdir$ac_delim
50191 sharedstatedir!$sharedstatedir$ac_delim
50192 localstatedir!$localstatedir$ac_delim
50193 includedir!$includedir$ac_delim
50194 oldincludedir!$oldincludedir$ac_delim
50195 docdir!$docdir$ac_delim
50196 infodir!$infodir$ac_delim
50197 htmldir!$htmldir$ac_delim
50198 dvidir!$dvidir$ac_delim
50199 pdfdir!$pdfdir$ac_delim
50200 psdir!$psdir$ac_delim
50201 libdir!$libdir$ac_delim
50202 localedir!$localedir$ac_delim
50203 mandir!$mandir$ac_delim
50204 DEFS!$DEFS$ac_delim
50205 ECHO_C!$ECHO_C$ac_delim
50206 ECHO_N!$ECHO_N$ac_delim
50207 ECHO_T!$ECHO_T$ac_delim
50208 LIBS!$LIBS$ac_delim
50209 build_alias!$build_alias$ac_delim
50210 host_alias!$host_alias$ac_delim
50211 target_alias!$target_alias$ac_delim
50212 build!$build$ac_delim
50213 build_cpu!$build_cpu$ac_delim
50214 build_vendor!$build_vendor$ac_delim
50215 build_os!$build_os$ac_delim
50216 host!$host$ac_delim
50217 host_cpu!$host_cpu$ac_delim
50218 host_vendor!$host_vendor$ac_delim
50219 host_os!$host_os$ac_delim
50220 CC!$CC$ac_delim
50221 CFLAGS!$CFLAGS$ac_delim
50222 LDFLAGS!$LDFLAGS$ac_delim
50223 CPPFLAGS!$CPPFLAGS$ac_delim
50224 ac_ct_CC!$ac_ct_CC$ac_delim
50225 EXEEXT!$EXEEXT$ac_delim
50226 OBJEXT!$OBJEXT$ac_delim
50227 CPP!$CPP$ac_delim
50228 GREP!$GREP$ac_delim
50229 EGREP!$EGREP$ac_delim
50230 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
50231 BUILD_CPU!$BUILD_CPU$ac_delim
50232 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
50233 BUILD_OS!$BUILD_OS$ac_delim
50234 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
50235 HOST_CPU!$HOST_CPU$ac_delim
50236 HOST_VENDOR!$HOST_VENDOR$ac_delim
50237 HOST_OS!$HOST_OS$ac_delim
50238 OSARCH!$OSARCH$ac_delim
50239 WINARCH!$WINARCH$ac_delim
50240 UNAME!$UNAME$ac_delim
50241 PBX_OSREV!$PBX_OSREV$ac_delim
50242 CXX!$CXX$ac_delim
50243 LD!$LD$ac_delim
50244 RANLIB!$RANLIB$ac_delim
50245 CXXFLAGS!$CXXFLAGS$ac_delim
50246 ac_ct_CXX!$ac_ct_CXX$ac_delim
50247 CXXCPP!$CXXCPP$ac_delim
50248 SED!$SED$ac_delim
50249 AWK!$AWK$ac_delim
50250 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
50251 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
50252 INSTALL_DATA!$INSTALL_DATA$ac_delim
50253 LN_S!$LN_S$ac_delim
50254 GNU_MAKE!$GNU_MAKE$ac_delim
50255 STRIP!$STRIP$ac_delim
50256 AR!$AR$ac_delim
50257 GNU_LD!$GNU_LD$ac_delim
50258 FIND!$FIND$ac_delim
50259 COMPRESS!$COMPRESS$ac_delim
50260 BASENAME!$BASENAME$ac_delim
50261 ID!$ID$ac_delim
50262 DIRNAME!$DIRNAME$ac_delim
50263 LN!$LN$ac_delim
50264 DOT!$DOT$ac_delim
50265 WGET!$WGET$ac_delim
50266 RUBBER!$RUBBER$ac_delim
50267 KPATHSEA!$KPATHSEA$ac_delim
50268 FETCH!$FETCH$ac_delim
50269 DOWNLOAD!$DOWNLOAD$ac_delim
50270 SOXMIX!$SOXMIX$ac_delim
50271 acx_pthread_config!$acx_pthread_config$ac_delim
50272 _ACEOF
50274 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50275 break
50276 elif $ac_last_try; then
50277 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50278 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50279 { (exit 1); exit 1; }; }
50280 else
50281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50283 done
50285 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50286 if test -n "$ac_eof"; then
50287 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50288 ac_eof=`expr $ac_eof + 1`
50291 cat >>$CONFIG_STATUS <<_ACEOF
50292 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50293 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50294 _ACEOF
50295 sed '
50296 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50297 s/^/s,@/; s/!/@,|#_!!_#|/
50300 s/'"$ac_delim"'$/,g/; t
50301 s/$/\\/; p
50302 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50303 ' >>$CONFIG_STATUS <conf$$subs.sed
50304 rm -f conf$$subs.sed
50305 cat >>$CONFIG_STATUS <<_ACEOF
50306 CEOF$ac_eof
50307 _ACEOF
50310 ac_delim='%!_!# '
50311 for ac_last_try in false false false false false :; do
50312 cat >conf$$subs.sed <<_ACEOF
50313 PTHREAD_CC!$PTHREAD_CC$ac_delim
50314 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
50315 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
50316 AST_DEVMODE!$AST_DEVMODE$ac_delim
50317 ALSA_LIB!$ALSA_LIB$ac_delim
50318 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
50319 ALSA_DIR!$ALSA_DIR$ac_delim
50320 PBX_ALSA!$PBX_ALSA$ac_delim
50321 BKTR_LIB!$BKTR_LIB$ac_delim
50322 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
50323 BKTR_DIR!$BKTR_DIR$ac_delim
50324 PBX_BKTR!$PBX_BKTR$ac_delim
50325 CAP_LIB!$CAP_LIB$ac_delim
50326 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
50327 CAP_DIR!$CAP_DIR$ac_delim
50328 PBX_CAP!$PBX_CAP$ac_delim
50329 CURL_LIB!$CURL_LIB$ac_delim
50330 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
50331 CURL_DIR!$CURL_DIR$ac_delim
50332 PBX_CURL!$PBX_CURL$ac_delim
50333 CURSES_LIB!$CURSES_LIB$ac_delim
50334 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
50335 CURSES_DIR!$CURSES_DIR$ac_delim
50336 PBX_CURSES!$PBX_CURSES$ac_delim
50337 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
50338 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
50339 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
50340 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
50341 DAHDI_LIB!$DAHDI_LIB$ac_delim
50342 DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim
50343 DAHDI_DIR!$DAHDI_DIR$ac_delim
50344 PBX_DAHDI!$PBX_DAHDI$ac_delim
50345 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
50346 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
50347 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
50348 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
50349 GSM_LIB!$GSM_LIB$ac_delim
50350 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
50351 GSM_DIR!$GSM_DIR$ac_delim
50352 PBX_GSM!$PBX_GSM$ac_delim
50353 GTK_LIB!$GTK_LIB$ac_delim
50354 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
50355 GTK_DIR!$GTK_DIR$ac_delim
50356 PBX_GTK!$PBX_GTK$ac_delim
50357 GTK2_LIB!$GTK2_LIB$ac_delim
50358 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
50359 GTK2_DIR!$GTK2_DIR$ac_delim
50360 PBX_GTK2!$PBX_GTK2$ac_delim
50361 GMIME_LIB!$GMIME_LIB$ac_delim
50362 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
50363 GMIME_DIR!$GMIME_DIR$ac_delim
50364 PBX_GMIME!$PBX_GMIME$ac_delim
50365 ICONV_LIB!$ICONV_LIB$ac_delim
50366 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
50367 ICONV_DIR!$ICONV_DIR$ac_delim
50368 PBX_ICONV!$PBX_ICONV$ac_delim
50369 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
50370 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
50371 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
50372 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
50373 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
50374 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
50375 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
50376 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
50377 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
50378 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
50379 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
50380 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
50381 JACK_LIB!$JACK_LIB$ac_delim
50382 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
50383 JACK_DIR!$JACK_DIR$ac_delim
50384 PBX_JACK!$PBX_JACK$ac_delim
50385 LDAP_LIB!$LDAP_LIB$ac_delim
50386 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
50387 LDAP_DIR!$LDAP_DIR$ac_delim
50388 PBX_LDAP!$PBX_LDAP$ac_delim
50389 LTDL_LIB!$LTDL_LIB$ac_delim
50390 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
50391 LTDL_DIR!$LTDL_DIR$ac_delim
50392 PBX_LTDL!$PBX_LTDL$ac_delim
50393 LUA_LIB!$LUA_LIB$ac_delim
50394 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
50395 LUA_DIR!$LUA_DIR$ac_delim
50396 PBX_LUA!$PBX_LUA$ac_delim
50397 MISDN_LIB!$MISDN_LIB$ac_delim
50398 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
50399 MISDN_DIR!$MISDN_DIR$ac_delim
50400 PBX_MISDN!$PBX_MISDN$ac_delim
50401 NBS_LIB!$NBS_LIB$ac_delim
50402 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
50403 NBS_DIR!$NBS_DIR$ac_delim
50404 PBX_NBS!$PBX_NBS$ac_delim
50405 NCURSES_LIB!$NCURSES_LIB$ac_delim
50406 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
50407 NCURSES_DIR!$NCURSES_DIR$ac_delim
50408 PBX_NCURSES!$PBX_NCURSES$ac_delim
50409 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
50410 _ACEOF
50412 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50413 break
50414 elif $ac_last_try; then
50415 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50416 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50417 { (exit 1); exit 1; }; }
50418 else
50419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50421 done
50423 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50424 if test -n "$ac_eof"; then
50425 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50426 ac_eof=`expr $ac_eof + 1`
50429 cat >>$CONFIG_STATUS <<_ACEOF
50430 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50432 _ACEOF
50433 sed '
50434 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50435 s/^/s,@/; s/!/@,|#_!!_#|/
50438 s/'"$ac_delim"'$/,g/; t
50439 s/$/\\/; p
50440 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50441 ' >>$CONFIG_STATUS <conf$$subs.sed
50442 rm -f conf$$subs.sed
50443 cat >>$CONFIG_STATUS <<_ACEOF
50444 CEOF$ac_eof
50445 _ACEOF
50448 ac_delim='%!_!# '
50449 for ac_last_try in false false false false false :; do
50450 cat >conf$$subs.sed <<_ACEOF
50451 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
50452 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
50453 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
50454 NEWT_LIB!$NEWT_LIB$ac_delim
50455 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
50456 NEWT_DIR!$NEWT_DIR$ac_delim
50457 PBX_NEWT!$PBX_NEWT$ac_delim
50458 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
50459 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
50460 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
50461 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
50462 OGG_LIB!$OGG_LIB$ac_delim
50463 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
50464 OGG_DIR!$OGG_DIR$ac_delim
50465 PBX_OGG!$PBX_OGG$ac_delim
50466 OSPTK_LIB!$OSPTK_LIB$ac_delim
50467 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
50468 OSPTK_DIR!$OSPTK_DIR$ac_delim
50469 PBX_OSPTK!$PBX_OSPTK$ac_delim
50470 OSS_LIB!$OSS_LIB$ac_delim
50471 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
50472 OSS_DIR!$OSS_DIR$ac_delim
50473 PBX_OSS!$PBX_OSS$ac_delim
50474 PGSQL_LIB!$PGSQL_LIB$ac_delim
50475 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
50476 PGSQL_DIR!$PGSQL_DIR$ac_delim
50477 PBX_PGSQL!$PBX_PGSQL$ac_delim
50478 POPT_LIB!$POPT_LIB$ac_delim
50479 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
50480 POPT_DIR!$POPT_DIR$ac_delim
50481 PBX_POPT!$PBX_POPT$ac_delim
50482 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
50483 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
50484 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
50485 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
50486 PRI_LIB!$PRI_LIB$ac_delim
50487 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
50488 PRI_DIR!$PRI_DIR$ac_delim
50489 PBX_PRI!$PBX_PRI$ac_delim
50490 RESAMPLE_LIB!$RESAMPLE_LIB$ac_delim
50491 RESAMPLE_INCLUDE!$RESAMPLE_INCLUDE$ac_delim
50492 RESAMPLE_DIR!$RESAMPLE_DIR$ac_delim
50493 PBX_RESAMPLE!$PBX_RESAMPLE$ac_delim
50494 SPANDSP_LIB!$SPANDSP_LIB$ac_delim
50495 SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
50496 SPANDSP_DIR!$SPANDSP_DIR$ac_delim
50497 PBX_SPANDSP!$PBX_SPANDSP$ac_delim
50498 SS7_LIB!$SS7_LIB$ac_delim
50499 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
50500 SS7_DIR!$SS7_DIR$ac_delim
50501 PBX_SS7!$PBX_SS7$ac_delim
50502 PWLIB_LIB!$PWLIB_LIB$ac_delim
50503 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
50504 PWLIB_DIR!$PWLIB_DIR$ac_delim
50505 PBX_PWLIB!$PBX_PWLIB$ac_delim
50506 OPENH323_LIB!$OPENH323_LIB$ac_delim
50507 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
50508 OPENH323_DIR!$OPENH323_DIR$ac_delim
50509 PBX_OPENH323!$PBX_OPENH323$ac_delim
50510 RADIUS_LIB!$RADIUS_LIB$ac_delim
50511 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
50512 RADIUS_DIR!$RADIUS_DIR$ac_delim
50513 PBX_RADIUS!$PBX_RADIUS$ac_delim
50514 SDL_LIB!$SDL_LIB$ac_delim
50515 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
50516 SDL_DIR!$SDL_DIR$ac_delim
50517 PBX_SDL!$PBX_SDL$ac_delim
50518 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
50519 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
50520 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
50521 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
50522 OPENAIS_LIB!$OPENAIS_LIB$ac_delim
50523 OPENAIS_INCLUDE!$OPENAIS_INCLUDE$ac_delim
50524 OPENAIS_DIR!$OPENAIS_DIR$ac_delim
50525 PBX_OPENAIS!$PBX_OPENAIS$ac_delim
50526 SPEEX_LIB!$SPEEX_LIB$ac_delim
50527 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
50528 SPEEX_DIR!$SPEEX_DIR$ac_delim
50529 PBX_SPEEX!$PBX_SPEEX$ac_delim
50530 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
50531 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
50532 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
50533 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
50534 SQLITE_LIB!$SQLITE_LIB$ac_delim
50535 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
50536 SQLITE_DIR!$SQLITE_DIR$ac_delim
50537 PBX_SQLITE!$PBX_SQLITE$ac_delim
50538 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
50539 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
50540 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
50541 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
50542 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
50543 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
50544 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
50545 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
50546 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
50547 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
50548 _ACEOF
50550 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50551 break
50552 elif $ac_last_try; then
50553 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50554 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50555 { (exit 1); exit 1; }; }
50556 else
50557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50559 done
50561 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50562 if test -n "$ac_eof"; then
50563 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50564 ac_eof=`expr $ac_eof + 1`
50567 cat >>$CONFIG_STATUS <<_ACEOF
50568 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
50569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50570 _ACEOF
50571 sed '
50572 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50573 s/^/s,@/; s/!/@,|#_!!_#|/
50576 s/'"$ac_delim"'$/,g/; t
50577 s/$/\\/; p
50578 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50579 ' >>$CONFIG_STATUS <conf$$subs.sed
50580 rm -f conf$$subs.sed
50581 cat >>$CONFIG_STATUS <<_ACEOF
50582 CEOF$ac_eof
50583 _ACEOF
50586 ac_delim='%!_!# '
50587 for ac_last_try in false false false false false :; do
50588 cat >conf$$subs.sed <<_ACEOF
50589 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
50590 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
50591 FREETDS_LIB!$FREETDS_LIB$ac_delim
50592 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
50593 FREETDS_DIR!$FREETDS_DIR$ac_delim
50594 PBX_FREETDS!$PBX_FREETDS$ac_delim
50595 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
50596 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
50597 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
50598 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
50599 TINFO_LIB!$TINFO_LIB$ac_delim
50600 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
50601 TINFO_DIR!$TINFO_DIR$ac_delim
50602 PBX_TINFO!$PBX_TINFO$ac_delim
50603 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
50604 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
50605 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
50606 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
50607 USB_LIB!$USB_LIB$ac_delim
50608 USB_INCLUDE!$USB_INCLUDE$ac_delim
50609 USB_DIR!$USB_DIR$ac_delim
50610 PBX_USB!$PBX_USB$ac_delim
50611 VORBIS_LIB!$VORBIS_LIB$ac_delim
50612 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
50613 VORBIS_DIR!$VORBIS_DIR$ac_delim
50614 PBX_VORBIS!$PBX_VORBIS$ac_delim
50615 VPB_LIB!$VPB_LIB$ac_delim
50616 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
50617 VPB_DIR!$VPB_DIR$ac_delim
50618 PBX_VPB!$PBX_VPB$ac_delim
50619 X11_LIB!$X11_LIB$ac_delim
50620 X11_INCLUDE!$X11_INCLUDE$ac_delim
50621 X11_DIR!$X11_DIR$ac_delim
50622 PBX_X11!$PBX_X11$ac_delim
50623 ZLIB_LIB!$ZLIB_LIB$ac_delim
50624 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
50625 ZLIB_DIR!$ZLIB_DIR$ac_delim
50626 PBX_ZLIB!$PBX_ZLIB$ac_delim
50627 ALLOCA!$ALLOCA$ac_delim
50628 LIBOBJS!$LIBOBJS$ac_delim
50629 POW_LIB!$POW_LIB$ac_delim
50630 HAS_POLL!$HAS_POLL$ac_delim
50631 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
50632 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
50633 GC_CFLAGS!$GC_CFLAGS$ac_delim
50634 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
50635 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
50636 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
50637 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
50638 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
50639 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
50640 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
50641 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
50642 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
50643 PG_CONFIG!$PG_CONFIG$ac_delim
50644 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
50645 PWLIBDIR!$PWLIBDIR$ac_delim
50646 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
50647 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
50648 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
50649 OPENH323DIR!$OPENH323DIR$ac_delim
50650 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
50651 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
50652 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
50653 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
50654 PBX_AIS!$PBX_AIS$ac_delim
50655 AIS_INCLUDE!$AIS_INCLUDE$ac_delim
50656 AIS_LIB!$AIS_LIB$ac_delim
50657 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
50658 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
50659 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
50660 PBX_H323!$PBX_H323$ac_delim
50661 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
50662 CONFIG_SDL!$CONFIG_SDL$ac_delim
50663 CONFIG_GTK!$CONFIG_GTK$ac_delim
50664 PKGCONFIG!$PKGCONFIG$ac_delim
50665 CURL_CONFIG!$CURL_CONFIG$ac_delim
50666 LTLIBOBJS!$LTLIBOBJS$ac_delim
50667 _ACEOF
50669 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
50670 break
50671 elif $ac_last_try; then
50672 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50673 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50674 { (exit 1); exit 1; }; }
50675 else
50676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50678 done
50680 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50681 if test -n "$ac_eof"; then
50682 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50683 ac_eof=`expr $ac_eof + 1`
50686 cat >>$CONFIG_STATUS <<_ACEOF
50687 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
50688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
50689 _ACEOF
50690 sed '
50691 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50692 s/^/s,@/; s/!/@,|#_!!_#|/
50695 s/'"$ac_delim"'$/,g/; t
50696 s/$/\\/; p
50697 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50698 ' >>$CONFIG_STATUS <conf$$subs.sed
50699 rm -f conf$$subs.sed
50700 cat >>$CONFIG_STATUS <<_ACEOF
50701 :end
50702 s/|#_!!_#|//g
50703 CEOF$ac_eof
50704 _ACEOF
50707 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50708 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50709 # trailing colons and then remove the whole line if VPATH becomes empty
50710 # (actually we leave an empty line to preserve line numbers).
50711 if test "x$srcdir" = x.; then
50712 ac_vpsub='/^[ ]*VPATH[ ]*=/{
50713 s/:*\$(srcdir):*/:/
50714 s/:*\${srcdir}:*/:/
50715 s/:*@srcdir@:*/:/
50716 s/^\([^=]*=[ ]*\):*/\1/
50717 s/:*$//
50718 s/^[^=]*=[ ]*$//
50722 cat >>$CONFIG_STATUS <<\_ACEOF
50723 fi # test -n "$CONFIG_FILES"
50726 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
50728 case $ac_tag in
50729 :[FHLC]) ac_mode=$ac_tag; continue;;
50730 esac
50731 case $ac_mode$ac_tag in
50732 :[FHL]*:*);;
50733 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
50734 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
50735 { (exit 1); exit 1; }; };;
50736 :[FH]-) ac_tag=-:-;;
50737 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
50738 esac
50739 ac_save_IFS=$IFS
50740 IFS=:
50741 set x $ac_tag
50742 IFS=$ac_save_IFS
50743 shift
50744 ac_file=$1
50745 shift
50747 case $ac_mode in
50748 :L) ac_source=$1;;
50749 :[FH])
50750 ac_file_inputs=
50751 for ac_f
50753 case $ac_f in
50754 -) ac_f="$tmp/stdin";;
50755 *) # Look for the file first in the build tree, then in the source tree
50756 # (if the path is not absolute). The absolute path cannot be DOS-style,
50757 # because $ac_f cannot contain `:'.
50758 test -f "$ac_f" ||
50759 case $ac_f in
50760 [\\/$]*) false;;
50761 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
50762 esac ||
50763 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
50764 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
50765 { (exit 1); exit 1; }; };;
50766 esac
50767 ac_file_inputs="$ac_file_inputs $ac_f"
50768 done
50770 # Let's still pretend it is `configure' which instantiates (i.e., don't
50771 # use $as_me), people would be surprised to read:
50772 # /* config.h. Generated by config.status. */
50773 configure_input="Generated from "`IFS=:
50774 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
50775 if test x"$ac_file" != x-; then
50776 configure_input="$ac_file. $configure_input"
50777 { echo "$as_me:$LINENO: creating $ac_file" >&5
50778 echo "$as_me: creating $ac_file" >&6;}
50781 case $ac_tag in
50782 *:-:* | *:-) cat >"$tmp/stdin";;
50783 esac
50785 esac
50787 ac_dir=`$as_dirname -- "$ac_file" ||
50788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50789 X"$ac_file" : 'X\(//\)[^/]' \| \
50790 X"$ac_file" : 'X\(//\)$' \| \
50791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
50792 echo X"$ac_file" |
50793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50794 s//\1/
50797 /^X\(\/\/\)[^/].*/{
50798 s//\1/
50801 /^X\(\/\/\)$/{
50802 s//\1/
50805 /^X\(\/\).*/{
50806 s//\1/
50809 s/.*/./; q'`
50810 { as_dir="$ac_dir"
50811 case $as_dir in #(
50812 -*) as_dir=./$as_dir;;
50813 esac
50814 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50815 as_dirs=
50816 while :; do
50817 case $as_dir in #(
50818 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
50819 *) as_qdir=$as_dir;;
50820 esac
50821 as_dirs="'$as_qdir' $as_dirs"
50822 as_dir=`$as_dirname -- "$as_dir" ||
50823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50824 X"$as_dir" : 'X\(//\)[^/]' \| \
50825 X"$as_dir" : 'X\(//\)$' \| \
50826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50827 echo X"$as_dir" |
50828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50829 s//\1/
50832 /^X\(\/\/\)[^/].*/{
50833 s//\1/
50836 /^X\(\/\/\)$/{
50837 s//\1/
50840 /^X\(\/\).*/{
50841 s//\1/
50844 s/.*/./; q'`
50845 test -d "$as_dir" && break
50846 done
50847 test -z "$as_dirs" || eval "mkdir $as_dirs"
50848 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50849 echo "$as_me: error: cannot create directory $as_dir" >&2;}
50850 { (exit 1); exit 1; }; }; }
50851 ac_builddir=.
50853 case "$ac_dir" in
50854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
50856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50857 # A ".." for each directory in $ac_dir_suffix.
50858 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
50859 case $ac_top_builddir_sub in
50860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
50861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
50862 esac ;;
50863 esac
50864 ac_abs_top_builddir=$ac_pwd
50865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
50866 # for backward compatibility:
50867 ac_top_builddir=$ac_top_build_prefix
50869 case $srcdir in
50870 .) # We are building in place.
50871 ac_srcdir=.
50872 ac_top_srcdir=$ac_top_builddir_sub
50873 ac_abs_top_srcdir=$ac_pwd ;;
50874 [\\/]* | ?:[\\/]* ) # Absolute name.
50875 ac_srcdir=$srcdir$ac_dir_suffix;
50876 ac_top_srcdir=$srcdir
50877 ac_abs_top_srcdir=$srcdir ;;
50878 *) # Relative name.
50879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
50880 ac_top_srcdir=$ac_top_build_prefix$srcdir
50881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
50882 esac
50883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
50886 case $ac_mode in
50889 # CONFIG_FILE
50892 case $INSTALL in
50893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50895 esac
50896 _ACEOF
50898 cat >>$CONFIG_STATUS <<\_ACEOF
50899 # If the template does not know about datarootdir, expand it.
50900 # FIXME: This hack should be removed a few years after 2.60.
50901 ac_datarootdir_hack=; ac_datarootdir_seen=
50903 case `sed -n '/datarootdir/ {
50907 /@datadir@/p
50908 /@docdir@/p
50909 /@infodir@/p
50910 /@localedir@/p
50911 /@mandir@/p
50912 ' $ac_file_inputs` in
50913 *datarootdir*) ac_datarootdir_seen=yes;;
50914 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
50915 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
50916 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50917 _ACEOF
50918 cat >>$CONFIG_STATUS <<_ACEOF
50919 ac_datarootdir_hack='
50920 s&@datadir@&$datadir&g
50921 s&@docdir@&$docdir&g
50922 s&@infodir@&$infodir&g
50923 s&@localedir@&$localedir&g
50924 s&@mandir@&$mandir&g
50925 s&\\\${datarootdir}&$datarootdir&g' ;;
50926 esac
50927 _ACEOF
50929 # Neutralize VPATH when `$srcdir' = `.'.
50930 # Shell code in configure.ac might set extrasub.
50931 # FIXME: do we really want to maintain this feature?
50932 cat >>$CONFIG_STATUS <<_ACEOF
50933 sed "$ac_vpsub
50934 $extrasub
50935 _ACEOF
50936 cat >>$CONFIG_STATUS <<\_ACEOF
50938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50939 s&@configure_input@&$configure_input&;t t
50940 s&@top_builddir@&$ac_top_builddir_sub&;t t
50941 s&@srcdir@&$ac_srcdir&;t t
50942 s&@abs_srcdir@&$ac_abs_srcdir&;t t
50943 s&@top_srcdir@&$ac_top_srcdir&;t t
50944 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50945 s&@builddir@&$ac_builddir&;t t
50946 s&@abs_builddir@&$ac_abs_builddir&;t t
50947 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50948 s&@INSTALL@&$ac_INSTALL&;t t
50949 $ac_datarootdir_hack
50950 " $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
50952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
50953 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
50954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
50955 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50956 which seems to be undefined. Please make sure it is defined." >&5
50957 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50958 which seems to be undefined. Please make sure it is defined." >&2;}
50960 rm -f "$tmp/stdin"
50961 case $ac_file in
50962 -) cat "$tmp/out"; rm -f "$tmp/out";;
50963 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
50964 esac
50968 # CONFIG_HEADER
50970 _ACEOF
50972 # Transform confdefs.h into a sed script `conftest.defines', that
50973 # substitutes the proper values into config.h.in to produce config.h.
50974 rm -f conftest.defines conftest.tail
50975 # First, append a space to every undef/define line, to ease matching.
50976 echo 's/$/ /' >conftest.defines
50977 # Then, protect against being on the right side of a sed subst, or in
50978 # an unquoted here document, in config.status. If some macros were
50979 # called several times there might be several #defines for the same
50980 # symbol, which is useless. But do not sort them, since the last
50981 # AC_DEFINE must be honored.
50982 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
50983 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
50984 # NAME is the cpp macro being defined, VALUE is the value it is being given.
50985 # PARAMS is the parameter list in the macro definition--in most cases, it's
50986 # just an empty string.
50987 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
50988 ac_dB='\\)[ (].*,\\1define\\2'
50989 ac_dC=' '
50990 ac_dD=' ,'
50992 uniq confdefs.h |
50993 sed -n '
50994 t rset
50995 :rset
50996 s/^[ ]*#[ ]*define[ ][ ]*//
50997 t ok
51000 s/[\\&,]/\\&/g
51001 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
51002 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
51003 ' >>conftest.defines
51005 # Remove the space that was appended to ease matching.
51006 # Then replace #undef with comments. This is necessary, for
51007 # example, in the case of _POSIX_SOURCE, which is predefined and required
51008 # on some systems where configure will not decide to define it.
51009 # (The regexp can be short, since the line contains either #define or #undef.)
51010 echo 's/ $//
51011 s,^[ #]*u.*,/* & */,' >>conftest.defines
51013 # Break up conftest.defines:
51014 ac_max_sed_lines=50
51016 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
51017 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
51018 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
51019 # et cetera.
51020 ac_in='$ac_file_inputs'
51021 ac_out='"$tmp/out1"'
51022 ac_nxt='"$tmp/out2"'
51024 while :
51026 # Write a here document:
51027 cat >>$CONFIG_STATUS <<_ACEOF
51028 # First, check the format of the line:
51029 cat >"\$tmp/defines.sed" <<\\CEOF
51030 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
51031 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
51033 :def
51034 _ACEOF
51035 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
51036 echo 'CEOF
51037 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
51038 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
51039 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
51040 grep . conftest.tail >/dev/null || break
51041 rm -f conftest.defines
51042 mv conftest.tail conftest.defines
51043 done
51044 rm -f conftest.defines conftest.tail
51046 echo "ac_result=$ac_in" >>$CONFIG_STATUS
51047 cat >>$CONFIG_STATUS <<\_ACEOF
51048 if test x"$ac_file" != x-; then
51049 echo "/* $configure_input */" >"$tmp/config.h"
51050 cat "$ac_result" >>"$tmp/config.h"
51051 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
51052 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51053 echo "$as_me: $ac_file is unchanged" >&6;}
51054 else
51055 rm -f $ac_file
51056 mv "$tmp/config.h" $ac_file
51058 else
51059 echo "/* $configure_input */"
51060 cat "$ac_result"
51062 rm -f "$tmp/out12"
51066 esac
51068 done # for ac_tag
51071 { (exit 0); exit 0; }
51072 _ACEOF
51073 chmod +x $CONFIG_STATUS
51074 ac_clean_files=$ac_clean_files_save
51077 # configure is writing to config.log, and then calls config.status.
51078 # config.status does its own redirection, appending to config.log.
51079 # Unfortunately, on DOS this fails, as config.log is still kept open
51080 # by configure, so config.status won't be able to write to it; its
51081 # output is simply discarded. So we exec the FD to /dev/null,
51082 # effectively closing config.log, so it can be properly (re)opened and
51083 # appended to by config.status. When coming back to configure, we
51084 # need to make the FD available again.
51085 if test "$no_create" != yes; then
51086 ac_cs_success=:
51087 ac_config_status_args=
51088 test "$silent" = yes &&
51089 ac_config_status_args="$ac_config_status_args --quiet"
51090 exec 5>/dev/null
51091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51092 exec 5>>config.log
51093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51094 # would make configure fail if this is the last instruction.
51095 $ac_cs_success || { (exit 1); exit 1; }
51099 if test "x${silent}" != "xyes" ; then
51100 echo
51101 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
51102 echo " .\$7\$7.. .7\$\$7:. "
51103 echo " .\$\$:. ,\$7.7 "
51104 echo " .\$7. 7\$\$\$\$ .\$\$77 "
51105 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
51106 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
51107 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
51108 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
51109 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
51110 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
51111 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
51112 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
51113 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
51114 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
51115 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
51116 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
51117 echo " \$\$\$\$\$ \$\$\$ "
51118 echo " \$\$\$\$7. \$\$ (TM) "
51119 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
51120 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
51121 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
51122 echo
51125 { echo "$as_me:$LINENO: Package configured for: " >&5
51126 echo "$as_me: Package configured for: " >&6;}
51127 { echo "$as_me:$LINENO: OS type : $host_os" >&5
51128 echo "$as_me: OS type : $host_os" >&6;}
51129 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
51130 echo "$as_me: Host CPU : $host_cpu" >&6;}
51131 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
51132 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
51133 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
51134 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
51135 if test "${cross_compiling}" = "yes"; then
51136 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
51137 echo "$as_me: Cross Compilation = YES" >&6;}