Change a verbose message to debug.
[asterisk-bristuff.git] / configure
blob4199e72179a9d23e395de83a79e499e91a750ad7
1 #! /bin/sh
2 # From configure.ac Revision: 109282 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
13 # "Asterisk"
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 emulate sh
22 NULLCMD=:
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
30 esac
37 # PATH needs CR
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
49 chmod +x conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 PATH_SEPARATOR=';'
52 else
53 PATH_SEPARATOR=:
55 rm -f conf$$.sh
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 as_unset=unset
61 else
62 as_unset=false
66 # IFS
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
71 as_nl='
73 IFS=" "" $as_nl"
75 # Find who we are. Look in the path if we contain no directory separator.
76 case $0 in
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 for as_dir in $PATH
81 IFS=$as_save_IFS
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 done
85 IFS=$as_save_IFS
88 esac
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
92 as_myself=$0
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 { (exit 1); exit 1; }
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 done
103 PS1='$ '
104 PS2='> '
105 PS4='+ '
107 # NLS nuisances.
108 for as_var in \
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 LC_TELEPHONE LC_TIME
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
115 else
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 done
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 as_expr=expr
124 else
125 as_expr=false
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 as_basename=basename
130 else
131 as_basename=false
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 echo X/"$0" |
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
142 s//\1/
145 /^X\/\(\/\/\)$/{
146 s//\1/
149 /^X\/\(\/\).*/{
150 s//\1/
153 s/.*/./; q'`
155 # CDPATH.
156 $as_unset CDPATH
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
161 as_have_required=yes
162 else
163 as_have_required=no
166 if test $as_have_required = yes && (eval ":
167 (as_func_return () {
168 (exit \$1)
170 as_func_success () {
171 as_func_return 0
173 as_func_failure () {
174 as_func_return 1
176 as_func_ret_success () {
177 return 0
179 as_func_ret_failure () {
180 return 1
183 exitcode=0
184 if as_func_success; then
186 else
187 exitcode=1
188 echo as_func_success failed.
191 if as_func_failure; then
192 exitcode=1
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
198 else
199 exitcode=1
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
204 exitcode=1
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 else
211 exitcode=1
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
218 as_lineno_1=\$LINENO
219 as_lineno_2=\$LINENO
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
224 else
225 as_candidate_shells=
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 IFS=$as_save_IFS
230 test -z "$as_dir" && as_dir=.
231 case $as_dir in
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 done;;
236 esac
237 done
238 IFS=$as_save_IFS
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 emulate sh
247 NULLCMD=:
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
251 setopt NO_GLOB_SUBST
252 else
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
255 esac
261 _ASEOF
262 }; then
263 CONFIG_SHELL=$as_shell
264 as_have_required=yes
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 emulate sh
268 NULLCMD=:
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273 else
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
276 esac
282 (as_func_return () {
283 (exit $1)
285 as_func_success () {
286 as_func_return 0
288 as_func_failure () {
289 as_func_return 1
291 as_func_ret_success () {
292 return 0
294 as_func_ret_failure () {
295 return 1
298 exitcode=0
299 if as_func_success; then
301 else
302 exitcode=1
303 echo as_func_success failed.
306 if as_func_failure; then
307 exitcode=1
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
313 else
314 exitcode=1
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
319 exitcode=1
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 else
326 exitcode=1
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
333 as_lineno_1=$LINENO
334 as_lineno_2=$LINENO
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 _ASEOF
339 }; then
340 break
345 done
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 done
351 export CONFIG_SHELL
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
372 (exit \$1)
374 as_func_success () {
375 as_func_return 0
377 as_func_failure () {
378 as_func_return 1
380 as_func_ret_success () {
381 return 0
383 as_func_ret_failure () {
384 return 1
387 exitcode=0
388 if as_func_success; then
390 else
391 exitcode=1
392 echo as_func_success failed.
395 if as_func_failure; then
396 exitcode=1
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
402 else
403 exitcode=1
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
408 exitcode=1
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 else
415 exitcode=1
416 echo positional parameters were not saved.
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
423 echo message
428 as_lineno_1=$LINENO
429 as_lineno_2=$LINENO
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
439 # case at line end.
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
443 sed -n '
445 /[$]LINENO/=
446 ' <$as_myself |
447 sed '
448 s/[$]LINENO.*/&-/
449 t lineno
451 :lineno
453 :loop
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 t loop
456 s/-\n.*//
457 ' >$as_me.lineno &&
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_dirname=dirname
473 else
474 as_dirname=false
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in
479 -n*)
480 case `echo 'x\c'` in
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
482 *) ECHO_C='\c';;
483 esac;;
485 ECHO_N='-n';;
486 esac
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 as_expr=expr
491 else
492 as_expr=false
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
498 else
499 rm -f conf$$.dir
500 mkdir conf$$.dir
502 echo >conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s='ln -s'
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 as_ln_s='cp -p'
511 elif ln conf$$.file conf$$ 2>/dev/null; then
512 as_ln_s=ln
513 else
514 as_ln_s='cp -p'
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
519 if mkdir -p . 2>/dev/null; then
520 as_mkdir_p=:
521 else
522 test -d ./-p && rmdir ./-p
523 as_mkdir_p=false
526 if test -x / >/dev/null 2>&1; then
527 as_test_x='test -x'
528 else
529 if ls -dL / >/dev/null 2>&1; then
530 as_ls_L_option=L
531 else
532 as_ls_L_option=
534 as_test_x='
535 eval sh -c '\''
536 if test -d "$1"; then
537 test -d "$1/.";
538 else
539 case $1 in
540 -*)set "./$1";;
541 esac;
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
544 '\'' sh
547 as_executable_p=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev/null 6>&1
559 # Name of the host.
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 # Initializations.
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575 SHELL=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME='asterisk'
579 PACKAGE_TARNAME='asterisk'
580 PACKAGE_VERSION='1.6'
581 PACKAGE_STRING='asterisk 1.6'
582 PACKAGE_BUGREPORT='www.asterisk.org'
584 ac_unique_file="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_header_list=
622 ac_subst_vars='SHELL
623 PATH_SEPARATOR
624 PACKAGE_NAME
625 PACKAGE_TARNAME
626 PACKAGE_VERSION
627 PACKAGE_STRING
628 PACKAGE_BUGREPORT
629 exec_prefix
630 prefix
631 program_transform_name
632 bindir
633 sbindir
634 libexecdir
635 datarootdir
636 datadir
637 sysconfdir
638 sharedstatedir
639 localstatedir
640 includedir
641 oldincludedir
642 docdir
643 infodir
644 htmldir
645 dvidir
646 pdfdir
647 psdir
648 libdir
649 localedir
650 mandir
651 DEFS
652 ECHO_C
653 ECHO_N
654 ECHO_T
655 LIBS
656 build_alias
657 host_alias
658 target_alias
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 BUILD_PLATFORM
678 BUILD_CPU
679 BUILD_VENDOR
680 BUILD_OS
681 HOST_PLATFORM
682 HOST_CPU
683 HOST_VENDOR
684 HOST_OS
685 OSARCH
686 WINARCH
687 UNAME
688 PBX_OSREV
691 RANLIB
692 CXXFLAGS
693 ac_ct_CXX
694 CXXCPP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 GNU_MAKE
702 STRIP
704 GNU_LD
705 FIND
706 COMPRESS
707 BASENAME
709 DIRNAME
712 WGET
713 RUBBER
714 KPATHSEA
715 FETCH
716 DOWNLOAD
717 SOXMIX
718 acx_pthread_config
719 PTHREAD_CC
720 PTHREAD_LIBS
721 PTHREAD_CFLAGS
722 AST_DEVMODE
723 ALSA_LIB
724 ALSA_INCLUDE
725 ALSA_DIR
726 PBX_ALSA
727 BKTR_LIB
728 BKTR_INCLUDE
729 BKTR_DIR
730 PBX_BKTR
731 CAP_LIB
732 CAP_INCLUDE
733 CAP_DIR
734 PBX_CAP
735 CURL_LIB
736 CURL_INCLUDE
737 CURL_DIR
738 PBX_CURL
739 CURSES_LIB
740 CURSES_INCLUDE
741 CURSES_DIR
742 PBX_CURSES
743 CRYPTO_LIB
744 CRYPTO_INCLUDE
745 CRYPTO_DIR
746 PBX_CRYPTO
747 FFMPEG_LIB
748 FFMPEG_INCLUDE
749 FFMPEG_DIR
750 PBX_FFMPEG
751 GSM_LIB
752 GSM_INCLUDE
753 GSM_DIR
754 PBX_GSM
755 GTK_LIB
756 GTK_INCLUDE
757 GTK_DIR
758 PBX_GTK
759 GTK2_LIB
760 GTK2_INCLUDE
761 GTK2_DIR
762 PBX_GTK2
763 GMIME_LIB
764 GMIME_INCLUDE
765 GMIME_DIR
766 PBX_GMIME
767 ICONV_LIB
768 ICONV_INCLUDE
769 ICONV_DIR
770 PBX_ICONV
771 IKSEMEL_LIB
772 IKSEMEL_INCLUDE
773 IKSEMEL_DIR
774 PBX_IKSEMEL
775 IMAP_TK_LIB
776 IMAP_TK_INCLUDE
777 IMAP_TK_DIR
778 PBX_IMAP_TK
779 ISDNNET_LIB
780 ISDNNET_INCLUDE
781 ISDNNET_DIR
782 PBX_ISDNNET
783 JACK_LIB
784 JACK_INCLUDE
785 JACK_DIR
786 PBX_JACK
787 LDAP_LIB
788 LDAP_INCLUDE
789 LDAP_DIR
790 PBX_LDAP
791 LTDL_LIB
792 LTDL_INCLUDE
793 LTDL_DIR
794 PBX_LTDL
795 LUA_LIB
796 LUA_INCLUDE
797 LUA_DIR
798 PBX_LUA
799 MISDN_LIB
800 MISDN_INCLUDE
801 MISDN_DIR
802 PBX_MISDN
803 NBS_LIB
804 NBS_INCLUDE
805 NBS_DIR
806 PBX_NBS
807 NCURSES_LIB
808 NCURSES_INCLUDE
809 NCURSES_DIR
810 PBX_NCURSES
811 NETSNMP_LIB
812 NETSNMP_INCLUDE
813 NETSNMP_DIR
814 PBX_NETSNMP
815 NEWT_LIB
816 NEWT_INCLUDE
817 NEWT_DIR
818 PBX_NEWT
819 UNIXODBC_LIB
820 UNIXODBC_INCLUDE
821 UNIXODBC_DIR
822 PBX_UNIXODBC
823 OGG_LIB
824 OGG_INCLUDE
825 OGG_DIR
826 PBX_OGG
827 OSPTK_LIB
828 OSPTK_INCLUDE
829 OSPTK_DIR
830 PBX_OSPTK
831 OSS_LIB
832 OSS_INCLUDE
833 OSS_DIR
834 PBX_OSS
835 PGSQL_LIB
836 PGSQL_INCLUDE
837 PGSQL_DIR
838 PBX_PGSQL
839 POPT_LIB
840 POPT_INCLUDE
841 POPT_DIR
842 PBX_POPT
843 PORTAUDIO_LIB
844 PORTAUDIO_INCLUDE
845 PORTAUDIO_DIR
846 PBX_PORTAUDIO
847 PRI_LIB
848 PRI_INCLUDE
849 PRI_DIR
850 PBX_PRI
851 SS7_LIB
852 SS7_INCLUDE
853 SS7_DIR
854 PBX_SS7
855 PWLIB_LIB
856 PWLIB_INCLUDE
857 PWLIB_DIR
858 PBX_PWLIB
859 OPENH323_LIB
860 OPENH323_INCLUDE
861 OPENH323_DIR
862 PBX_OPENH323
863 RADIUS_LIB
864 RADIUS_INCLUDE
865 RADIUS_DIR
866 PBX_RADIUS
867 SDL_LIB
868 SDL_INCLUDE
869 SDL_DIR
870 PBX_SDL
871 SDL_IMAGE_LIB
872 SDL_IMAGE_INCLUDE
873 SDL_IMAGE_DIR
874 PBX_SDL_IMAGE
875 SPEEX_LIB
876 SPEEX_INCLUDE
877 SPEEX_DIR
878 PBX_SPEEX
879 SPEEXDSP_LIB
880 SPEEXDSP_INCLUDE
881 SPEEXDSP_DIR
882 PBX_SPEEXDSP
883 SQLITE_LIB
884 SQLITE_INCLUDE
885 SQLITE_DIR
886 PBX_SQLITE
887 SQLITE3_LIB
888 SQLITE3_INCLUDE
889 SQLITE3_DIR
890 PBX_SQLITE3
891 SUPPSERV_LIB
892 SUPPSERV_INCLUDE
893 SUPPSERV_DIR
894 PBX_SUPPSERV
895 OPENSSL_LIB
896 OPENSSL_INCLUDE
897 OPENSSL_DIR
898 PBX_OPENSSL
899 FREETDS_LIB
900 FREETDS_INCLUDE
901 FREETDS_DIR
902 PBX_FREETDS
903 TERMCAP_LIB
904 TERMCAP_INCLUDE
905 TERMCAP_DIR
906 PBX_TERMCAP
907 TINFO_LIB
908 TINFO_INCLUDE
909 TINFO_DIR
910 PBX_TINFO
911 TONEZONE_LIB
912 TONEZONE_INCLUDE
913 TONEZONE_DIR
914 PBX_TONEZONE
915 USB_LIB
916 USB_INCLUDE
917 USB_DIR
918 PBX_USB
919 VORBIS_LIB
920 VORBIS_INCLUDE
921 VORBIS_DIR
922 PBX_VORBIS
923 VPB_LIB
924 VPB_INCLUDE
925 VPB_DIR
926 PBX_VPB
927 X11_LIB
928 X11_INCLUDE
929 X11_DIR
930 PBX_X11
931 ZLIB_LIB
932 ZLIB_INCLUDE
933 ZLIB_DIR
934 PBX_ZLIB
935 ZAPTEL_LIB
936 ZAPTEL_INCLUDE
937 ZAPTEL_DIR
938 PBX_ZAPTEL
939 ALLOCA
940 LIBOBJS
941 POW_LIB
942 HAS_POLL
943 PBX_PTHREAD_RWLOCK_INITIALIZER
944 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
945 GC_CFLAGS
946 GC_LDFLAGS
947 AST_DECLARATION_AFTER_STATEMENT
948 AST_NO_STRICT_OVERFLOW
949 PBX_RTLD_NOLOAD
950 PBX_IP_MTU_DISCOVER
951 GSM_INTERNAL
952 PBX_MISDN_FAC_RESULT
953 PBX_MISDN_FAC_ERROR
954 CONFIG_NETSNMP
955 PG_CONFIG
956 PTLIB_CONFIG
957 PWLIBDIR
958 PWLIB_INCDIR
959 PWLIB_LIBDIR
960 PWLIB_PLATFORM
961 OPENH323DIR
962 OPENH323_INCDIR
963 OPENH323_LIBDIR
964 OPENH323_SUFFIX
965 OPENH323_BUILD
966 CONFIG_GMIME
967 PBX_ZAPTEL_VLDTMF
968 PBX_ZAPTEL_ECHOCANPARAMS
969 PBX_ZAPTEL_TRANSCODE
970 PBX_ZAPTEL_HWGAIN
971 PBX_ZAPTEL_NEONMWI
972 EDITLINE_LIB
973 PBX_H323
974 PBX_IXJUSER
975 CONFIG_SDL
976 CONFIG_GTK
977 PKGCONFIG
978 CURL_CONFIG
979 LTLIBOBJS'
980 ac_subst_files=''
981 ac_precious_vars='build_alias
982 host_alias
983 target_alias
985 CFLAGS
986 LDFLAGS
987 LIBS
988 CPPFLAGS
991 CXXFLAGS
993 CXXCPP'
996 # Initialize some variables set by options.
997 ac_init_help=
998 ac_init_version=false
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir='${datarootdir}/info'
1034 htmldir='${docdir}'
1035 dvidir='${docdir}'
1036 pdfdir='${docdir}'
1037 psdir='${docdir}'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1042 ac_prev=
1043 ac_dashdash=
1044 for ac_option
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\$ac_option
1049 ac_prev=
1050 continue
1053 case $ac_option in
1054 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055 *) ac_optarg=yes ;;
1056 esac
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1062 ac_dashdash=yes ;;
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065 ac_prev=bindir ;;
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1084 -datadir | --datadir | --datadi | --datad)
1085 ac_prev=datadir ;;
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1096 -disable-* | --disable-*)
1097 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1103 eval enable_$ac_feature=no ;;
1105 -docdir | --docdir | --docdi | --doc | --do)
1106 ac_prev=docdir ;;
1107 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108 docdir=$ac_optarg ;;
1110 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1111 ac_prev=dvidir ;;
1112 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113 dvidir=$ac_optarg ;;
1115 -enable-* | --enable-*)
1116 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1122 eval enable_$ac_feature=\$ac_optarg ;;
1124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126 | --exec | --exe | --ex)
1127 ac_prev=exec_prefix ;;
1128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130 | --exec=* | --exe=* | --ex=*)
1131 exec_prefix=$ac_optarg ;;
1133 -gas | --gas | --ga | --g)
1134 # Obsolete; use --with-gas.
1135 with_gas=yes ;;
1137 -help | --help | --hel | --he | -h)
1138 ac_init_help=long ;;
1139 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140 ac_init_help=recursive ;;
1141 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142 ac_init_help=short ;;
1144 -host | --host | --hos | --ho)
1145 ac_prev=host_alias ;;
1146 -host=* | --host=* | --hos=* | --ho=*)
1147 host_alias=$ac_optarg ;;
1149 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1150 ac_prev=htmldir ;;
1151 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1152 | --ht=*)
1153 htmldir=$ac_optarg ;;
1155 -includedir | --includedir | --includedi | --included | --include \
1156 | --includ | --inclu | --incl | --inc)
1157 ac_prev=includedir ;;
1158 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159 | --includ=* | --inclu=* | --incl=* | --inc=*)
1160 includedir=$ac_optarg ;;
1162 -infodir | --infodir | --infodi | --infod | --info | --inf)
1163 ac_prev=infodir ;;
1164 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165 infodir=$ac_optarg ;;
1167 -libdir | --libdir | --libdi | --libd)
1168 ac_prev=libdir ;;
1169 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170 libdir=$ac_optarg ;;
1172 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173 | --libexe | --libex | --libe)
1174 ac_prev=libexecdir ;;
1175 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176 | --libexe=* | --libex=* | --libe=*)
1177 libexecdir=$ac_optarg ;;
1179 -localedir | --localedir | --localedi | --localed | --locale)
1180 ac_prev=localedir ;;
1181 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182 localedir=$ac_optarg ;;
1184 -localstatedir | --localstatedir | --localstatedi | --localstated \
1185 | --localstate | --localstat | --localsta | --localst | --locals)
1186 ac_prev=localstatedir ;;
1187 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189 localstatedir=$ac_optarg ;;
1191 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1192 ac_prev=mandir ;;
1193 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194 mandir=$ac_optarg ;;
1196 -nfp | --nfp | --nf)
1197 # Obsolete; use --without-fp.
1198 with_fp=no ;;
1200 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201 | --no-cr | --no-c | -n)
1202 no_create=yes ;;
1204 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1206 no_recursion=yes ;;
1208 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210 | --oldin | --oldi | --old | --ol | --o)
1211 ac_prev=oldincludedir ;;
1212 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215 oldincludedir=$ac_optarg ;;
1217 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1218 ac_prev=prefix ;;
1219 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220 prefix=$ac_optarg ;;
1222 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223 | --program-pre | --program-pr | --program-p)
1224 ac_prev=program_prefix ;;
1225 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227 program_prefix=$ac_optarg ;;
1229 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230 | --program-suf | --program-su | --program-s)
1231 ac_prev=program_suffix ;;
1232 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234 program_suffix=$ac_optarg ;;
1236 -program-transform-name | --program-transform-name \
1237 | --program-transform-nam | --program-transform-na \
1238 | --program-transform-n | --program-transform- \
1239 | --program-transform | --program-transfor \
1240 | --program-transfo | --program-transf \
1241 | --program-trans | --program-tran \
1242 | --progr-tra | --program-tr | --program-t)
1243 ac_prev=program_transform_name ;;
1244 -program-transform-name=* | --program-transform-name=* \
1245 | --program-transform-nam=* | --program-transform-na=* \
1246 | --program-transform-n=* | --program-transform-=* \
1247 | --program-transform=* | --program-transfor=* \
1248 | --program-transfo=* | --program-transf=* \
1249 | --program-trans=* | --program-tran=* \
1250 | --progr-tra=* | --program-tr=* | --program-t=*)
1251 program_transform_name=$ac_optarg ;;
1253 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254 ac_prev=pdfdir ;;
1255 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256 pdfdir=$ac_optarg ;;
1258 -psdir | --psdir | --psdi | --psd | --ps)
1259 ac_prev=psdir ;;
1260 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1261 psdir=$ac_optarg ;;
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1265 silent=yes ;;
1267 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1268 ac_prev=sbindir ;;
1269 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1270 | --sbi=* | --sb=*)
1271 sbindir=$ac_optarg ;;
1273 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275 | --sharedst | --shareds | --shared | --share | --shar \
1276 | --sha | --sh)
1277 ac_prev=sharedstatedir ;;
1278 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1281 | --sha=* | --sh=*)
1282 sharedstatedir=$ac_optarg ;;
1284 -site | --site | --sit)
1285 ac_prev=site ;;
1286 -site=* | --site=* | --sit=*)
1287 site=$ac_optarg ;;
1289 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1290 ac_prev=srcdir ;;
1291 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292 srcdir=$ac_optarg ;;
1294 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295 | --syscon | --sysco | --sysc | --sys | --sy)
1296 ac_prev=sysconfdir ;;
1297 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299 sysconfdir=$ac_optarg ;;
1301 -target | --target | --targe | --targ | --tar | --ta | --t)
1302 ac_prev=target_alias ;;
1303 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304 target_alias=$ac_optarg ;;
1306 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1307 verbose=yes ;;
1309 -version | --version | --versio | --versi | --vers | -V)
1310 ac_init_version=: ;;
1312 -with-* | --with-*)
1313 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316 { echo "$as_me: error: invalid package name: $ac_package" >&2
1317 { (exit 1); exit 1; }; }
1318 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1319 eval with_$ac_package=\$ac_optarg ;;
1321 -without-* | --without-*)
1322 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 { echo "$as_me: error: invalid package name: $ac_package" >&2
1326 { (exit 1); exit 1; }; }
1327 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1328 eval with_$ac_package=no ;;
1330 --x)
1331 # Obsolete; use --with-x.
1332 with_x=yes ;;
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1348 -*) { echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350 { (exit 1); exit 1; }; }
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358 { (exit 1); exit 1; }; }
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1363 # FIXME: should be removed in autoconf 3.0.
1364 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1370 esac
1371 done
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 { echo "$as_me: error: missing argument to $ac_option" >&2
1376 { (exit 1); exit 1; }; }
1379 # Be sure to have absolute directory names.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val=\$$ac_var
1386 case $ac_val in
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 esac
1390 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1391 { (exit 1); exit 1; }; }
1392 done
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 { echo "$as_me: error: Working directory cannot be determined" >&2
1422 { (exit 1); exit 1; }; }
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 { echo "$as_me: error: pwd does not report name of working directory" >&2
1425 { (exit 1); exit 1; }; }
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$0" ||
1433 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$0" : 'X\(//\)[^/]' \| \
1435 X"$0" : 'X\(//\)$' \| \
1436 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1437 echo X"$0" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 s//\1/
1442 /^X\(\/\/\)[^/].*/{
1443 s//\1/
1446 /^X\(\/\/\)$/{
1447 s//\1/
1450 /^X\(\/\).*/{
1451 s//\1/
1454 s/.*/./; q'`
1455 srcdir=$ac_confdir
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 srcdir=..
1459 else
1460 ac_srcdir_defaulted=no
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1465 { (exit 1); exit 1; }; }
1467 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 ac_abs_confdir=`(
1469 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1470 { (exit 1); exit 1; }; }
1471 pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 srcdir=.
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1495 cat <<_ACEOF
1496 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1505 Configuration:
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 [PREFIX]
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1549 _ACEOF
1551 cat <<\_ACEOF
1553 System types:
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556 _ACEOF
1559 if test -n "$ac_init_help"; then
1560 case $ac_init_help in
1561 short | recursive ) echo "Configuration of asterisk 1.6:";;
1562 esac
1563 cat <<\_ACEOF
1565 Optional Features:
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-dev-mode Turn on developer mode
1569 --disable-largefile omit support for large files
1571 Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1576 --with-execinfo=PATH use Stack Backtrace support files in PATH
1577 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1578 --with-curl=PATH use cURL files in PATH
1579 --with-curses=PATH use curses files in PATH
1580 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1581 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1582 --with-gsm=PATH use External GSM library files in PATH , use
1583 'internal' GSM otherwise
1584 --with-gtk=PATH use gtk libraries files in PATH
1585 --with-gtk2=PATH use gtk2 libraries files in PATH
1586 --with-gmime=PATH use GMime library files in PATH
1587 --with-iconv=PATH use Iconv Library files in PATH
1588 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1589 --with-imap=PATH use UW IMAP Toolkit files in PATH
1590 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1591 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1592 --with-ldap=PATH use OpenLDAP files in PATH
1593 --with-ltdl=PATH use libtool files in PATH
1594 --with-lua=PATH use Lua files in PATH
1595 --with-misdn=PATH use mISDN User Library files in PATH
1596 --with-nbs=PATH use Network Broadcast Sound files in PATH
1597 --with-ncurses=PATH use ncurses files in PATH
1598 --with-netsnmp=PATH use Net-SNMP files in PATH
1599 --with-newt=PATH use newt files in PATH
1600 --with-odbc=PATH use unixODBC files in PATH
1601 --with-ogg=PATH use OGG files in PATH
1602 --with-osptk=PATH use OSP Toolkit files in PATH
1603 --with-oss=PATH use Open Sound System files in PATH
1604 --with-postgres=PATH use PostgreSQL files in PATH
1605 --with-popt=PATH use popt files in PATH
1606 --with-portaudio=PATH use PortAudio files in PATH
1607 --with-pri=PATH use ISDN PRI files in PATH
1608 --with-ss7=PATH use ISDN SS7 files in PATH
1609 --with-pwlib=PATH use PWlib files in PATH
1610 --with-h323=PATH use OpenH323 files in PATH
1611 --with-radius=PATH use Radius Client files in PATH
1612 --with-sdl=PATH use Sdl files in PATH
1613 --with-SDL_image=PATH use Sdl Image library files in PATH
1614 --with-speex=PATH use Speex files in PATH
1615 --with-speexdsp=PATH use Speexdsp files in PATH
1616 --with-sqlite=PATH use SQLite files in PATH
1617 --with-sqlite3=PATH use SQLite files in PATH
1618 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1619 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1620 PATH
1621 --with-tds=PATH use FreeTDS files in PATH
1622 --with-termcap=PATH use Termcap files in PATH
1623 --with-tinfo=PATH use Term Info files in PATH
1624 --with-tonezone=PATH use tonezone files in PATH
1625 --with-usb=PATH use usb files in PATH
1626 --with-vorbis=PATH use Vorbis files in PATH
1627 --with-vpb=PATH use Voicetronix API files in PATH
1628 --with-x11=PATH use X11 support files in PATH
1629 --with-z=PATH use zlib files in PATH
1630 --with-zaptel=PATH use Zaptel files in PATH
1632 Some influential environment variables:
1633 CC C compiler command
1634 CFLAGS C compiler flags
1635 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1636 nonstandard directory <lib dir>
1637 LIBS libraries to pass to the linker, e.g. -l<library>
1638 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1639 you have headers in a nonstandard directory <include dir>
1640 CPP C preprocessor
1641 CXX C++ compiler command
1642 CXXFLAGS C++ compiler flags
1643 CXXCPP C++ preprocessor
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1648 Report bugs to <www.asterisk.org>.
1649 _ACEOF
1650 ac_status=$?
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" || continue
1657 ac_builddir=.
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1675 case $srcdir in
1676 .) # We are building in place.
1677 ac_srcdir=.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1684 *) # Relative name.
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1699 else
1700 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 fi || ac_status=$?
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1703 done
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708 cat <<\_ACEOF
1709 asterisk configure 1.6
1710 generated by GNU Autoconf 2.61
1712 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1713 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1717 "Asterisk"
1718 _ACEOF
1719 exit
1721 cat >config.log <<_ACEOF
1722 This file contains any messages produced by compilers while
1723 running configure, to aid debugging if configure makes a mistake.
1725 It was created by asterisk $as_me 1.6, which was
1726 generated by GNU Autoconf 2.61. Invocation command line was
1728 $ $0 $@
1730 _ACEOF
1731 exec 5>>config.log
1733 cat <<_ASUNAME
1734 ## --------- ##
1735 ## Platform. ##
1736 ## --------- ##
1738 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1747 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1748 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1749 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1751 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1752 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1753 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1755 _ASUNAME
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 echo "PATH: $as_dir"
1763 done
1764 IFS=$as_save_IFS
1766 } >&5
1768 cat >&5 <<_ACEOF
1771 ## ----------- ##
1772 ## Core tests. ##
1773 ## ----------- ##
1775 _ACEOF
1778 # Keep a trace of the command line.
1779 # Strip out --no-create and --no-recursion so they do not pile up.
1780 # Strip out --silent because we don't want to record it for future runs.
1781 # Also quote any args containing shell meta-characters.
1782 # Make two passes to allow for proper duplicate-argument suppression.
1783 ac_configure_args=
1784 ac_configure_args0=
1785 ac_configure_args1=
1786 ac_must_keep_next=false
1787 for ac_pass in 1 2
1789 for ac_arg
1791 case $ac_arg in
1792 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794 | -silent | --silent | --silen | --sile | --sil)
1795 continue ;;
1796 *\'*)
1797 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1798 esac
1799 case $ac_pass in
1800 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1802 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803 if test $ac_must_keep_next = true; then
1804 ac_must_keep_next=false # Got value, back to normal.
1805 else
1806 case $ac_arg in
1807 *=* | --config-cache | -C | -disable-* | --disable-* \
1808 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810 | -with-* | --with-* | -without-* | --without-* | --x)
1811 case "$ac_configure_args0 " in
1812 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1813 esac
1815 -* ) ac_must_keep_next=true ;;
1816 esac
1818 ac_configure_args="$ac_configure_args '$ac_arg'"
1820 esac
1821 done
1822 done
1823 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1826 # When interrupted or exit'd, cleanup temporary files, and complete
1827 # config.log. We remove comments because anyway the quotes in there
1828 # would cause problems or look ugly.
1829 # WARNING: Use '\'' to represent an apostrophe within the trap.
1830 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831 trap 'exit_status=$?
1832 # Save into config.log some information that might help in debugging.
1834 echo
1836 cat <<\_ASBOX
1837 ## ---------------- ##
1838 ## Cache variables. ##
1839 ## ---------------- ##
1840 _ASBOX
1841 echo
1842 # The following way of writing the cache mishandles newlines in values,
1844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845 eval ac_val=\$$ac_var
1846 case $ac_val in #(
1847 *${as_nl}*)
1848 case $ac_var in #(
1849 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1850 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1851 esac
1852 case $ac_var in #(
1853 _ | IFS | as_nl) ;; #(
1854 *) $as_unset $ac_var ;;
1855 esac ;;
1856 esac
1857 done
1858 (set) 2>&1 |
1859 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1860 *${as_nl}ac_space=\ *)
1861 sed -n \
1862 "s/'\''/'\''\\\\'\'''\''/g;
1863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1864 ;; #(
1866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1868 esac |
1869 sort
1871 echo
1873 cat <<\_ASBOX
1874 ## ----------------- ##
1875 ## Output variables. ##
1876 ## ----------------- ##
1877 _ASBOX
1878 echo
1879 for ac_var in $ac_subst_vars
1881 eval ac_val=\$$ac_var
1882 case $ac_val in
1883 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884 esac
1885 echo "$ac_var='\''$ac_val'\''"
1886 done | sort
1887 echo
1889 if test -n "$ac_subst_files"; then
1890 cat <<\_ASBOX
1891 ## ------------------- ##
1892 ## File substitutions. ##
1893 ## ------------------- ##
1894 _ASBOX
1895 echo
1896 for ac_var in $ac_subst_files
1898 eval ac_val=\$$ac_var
1899 case $ac_val in
1900 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1901 esac
1902 echo "$ac_var='\''$ac_val'\''"
1903 done | sort
1904 echo
1907 if test -s confdefs.h; then
1908 cat <<\_ASBOX
1909 ## ----------- ##
1910 ## confdefs.h. ##
1911 ## ----------- ##
1912 _ASBOX
1913 echo
1914 cat confdefs.h
1915 echo
1917 test "$ac_signal" != 0 &&
1918 echo "$as_me: caught signal $ac_signal"
1919 echo "$as_me: exit $exit_status"
1920 } >&5
1921 rm -f core *.core core.conftest.* &&
1922 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1923 exit $exit_status
1925 for ac_signal in 1 2 13 15; do
1926 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1927 done
1928 ac_signal=0
1930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1931 rm -f -r conftest* confdefs.h
1933 # Predefined preprocessor variables.
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_NAME "$PACKAGE_NAME"
1937 _ACEOF
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1942 _ACEOF
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1947 _ACEOF
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_STRING "$PACKAGE_STRING"
1952 _ACEOF
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1957 _ACEOF
1960 # Let the site file select an alternate cache file if it wants to.
1961 # Prefer explicitly selected file to automatically selected ones.
1962 if test -n "$CONFIG_SITE"; then
1963 set x "$CONFIG_SITE"
1964 elif test "x$prefix" != xNONE; then
1965 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1966 else
1967 set x "$ac_default_prefix/share/config.site" \
1968 "$ac_default_prefix/etc/config.site"
1970 shift
1971 for ac_site_file
1973 if test -r "$ac_site_file"; then
1974 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1975 echo "$as_me: loading site script $ac_site_file" >&6;}
1976 sed 's/^/| /' "$ac_site_file" >&5
1977 . "$ac_site_file"
1979 done
1981 if test -r "$cache_file"; then
1982 # Some versions of bash will fail to source /dev/null (special
1983 # files actually), so we avoid doing that.
1984 if test -f "$cache_file"; then
1985 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1986 echo "$as_me: loading cache $cache_file" >&6;}
1987 case $cache_file in
1988 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1989 *) . "./$cache_file";;
1990 esac
1992 else
1993 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1994 echo "$as_me: creating cache $cache_file" >&6;}
1995 >$cache_file
1998 ac_header_list="$ac_header_list utime.h"
1999 # Check that the precious variables saved in the cache have kept the same
2000 # value.
2001 ac_cache_corrupted=false
2002 for ac_var in $ac_precious_vars; do
2003 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2004 eval ac_new_set=\$ac_env_${ac_var}_set
2005 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2006 eval ac_new_val=\$ac_env_${ac_var}_value
2007 case $ac_old_set,$ac_new_set in
2008 set,)
2009 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2010 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2011 ac_cache_corrupted=: ;;
2012 ,set)
2013 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2014 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2015 ac_cache_corrupted=: ;;
2016 ,);;
2018 if test "x$ac_old_val" != "x$ac_new_val"; then
2019 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2020 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2021 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2022 echo "$as_me: former value: $ac_old_val" >&2;}
2023 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2024 echo "$as_me: current value: $ac_new_val" >&2;}
2025 ac_cache_corrupted=:
2026 fi;;
2027 esac
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2030 case $ac_new_val in
2031 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2033 esac
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2037 esac
2039 done
2040 if $ac_cache_corrupted; then
2041 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2042 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2043 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2044 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2045 { (exit 1); exit 1; }; }
2072 ac_ext=c
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2080 # cross-compile macros
2081 ac_aux_dir=
2082 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2083 if test -f "$ac_dir/install-sh"; then
2084 ac_aux_dir=$ac_dir
2085 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 break
2087 elif test -f "$ac_dir/install.sh"; then
2088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 break
2091 elif test -f "$ac_dir/shtool"; then
2092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/shtool install -c"
2094 break
2096 done
2097 if test -z "$ac_aux_dir"; then
2098 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2099 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2100 { (exit 1); exit 1; }; }
2103 # These three variables are undocumented and unsupported,
2104 # and are intended to be withdrawn in a future Autoconf release.
2105 # They can cause serious problems if a builder's source tree is in a directory
2106 # whose full name contains unusual characters.
2107 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2108 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2109 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2112 # Make sure we can run config.sub.
2113 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2114 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2115 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2116 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: checking build system type" >&5
2119 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2120 if test "${ac_cv_build+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 ac_build_alias=$build_alias
2124 test "x$ac_build_alias" = x &&
2125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2126 test "x$ac_build_alias" = x &&
2127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2128 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2129 { (exit 1); exit 1; }; }
2130 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2133 { (exit 1); exit 1; }; }
2136 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2137 echo "${ECHO_T}$ac_cv_build" >&6; }
2138 case $ac_cv_build in
2139 *-*-*) ;;
2140 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2141 echo "$as_me: error: invalid value of canonical build" >&2;}
2142 { (exit 1); exit 1; }; };;
2143 esac
2144 build=$ac_cv_build
2145 ac_save_IFS=$IFS; IFS='-'
2146 set x $ac_cv_build
2147 shift
2148 build_cpu=$1
2149 build_vendor=$2
2150 shift; shift
2151 # Remember, the first character of IFS is used to create $*,
2152 # except with old shells:
2153 build_os=$*
2154 IFS=$ac_save_IFS
2155 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2158 { echo "$as_me:$LINENO: checking host system type" >&5
2159 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2160 if test "${ac_cv_host+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test "x$host_alias" = x; then
2164 ac_cv_host=$ac_cv_build
2165 else
2166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2173 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174 echo "${ECHO_T}$ac_cv_host" >&6; }
2175 case $ac_cv_host in
2176 *-*-*) ;;
2177 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2178 echo "$as_me: error: invalid value of canonical host" >&2;}
2179 { (exit 1); exit 1; }; };;
2180 esac
2181 host=$ac_cv_host
2182 ac_save_IFS=$IFS; IFS='-'
2183 set x $ac_cv_host
2184 shift
2185 host_cpu=$1
2186 host_vendor=$2
2187 shift; shift
2188 # Remember, the first character of IFS is used to create $*,
2189 # except with old shells:
2190 host_os=$*
2191 IFS=$ac_save_IFS
2192 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2196 # check existence of the package
2199 # specify output header file
2200 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2207 cat >>confdefs.h <<\_ACEOF
2208 #define _GNU_SOURCE 1
2209 _ACEOF
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2239 done
2240 done
2241 IFS=$as_save_IFS
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247 { echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6; }
2249 else
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2256 if test -z "$ac_cv_prog_CC"; then
2257 ac_ct_CC=$CC
2258 # Extract the first word of "gcc", so it can be a program name with args.
2259 set dummy gcc; ac_word=$2
2260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 ac_cv_prog_ac_ct_CC="gcc"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2279 done
2280 done
2281 IFS=$as_save_IFS
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 echo "${ECHO_T}$ac_ct_CC" >&6; }
2289 else
2290 { echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6; }
2294 if test "x$ac_ct_CC" = x; then
2295 CC=""
2296 else
2297 case $cross_compiling:$ac_tool_warned in
2298 yes:)
2299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300 whose name does not start with the host triplet. If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&5
2302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet. If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305 ac_tool_warned=yes ;;
2306 esac
2307 CC=$ac_ct_CC
2309 else
2310 CC="$ac_cv_prog_CC"
2313 if test -z "$CC"; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}cc; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_CC="${ac_tool_prefix}cc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2336 done
2337 done
2338 IFS=$as_save_IFS
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344 { echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2354 if test -z "$CC"; then
2355 # Extract the first word of "cc", so it can be a program name with args.
2356 set dummy cc; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 if test -n "$CC"; then
2363 ac_cv_prog_CC="$CC" # Let the user override the test.
2364 else
2365 ac_prog_rejected=no
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2374 ac_prog_rejected=yes
2375 continue
2377 ac_cv_prog_CC="cc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2381 done
2382 done
2383 IFS=$as_save_IFS
2385 if test $ac_prog_rejected = yes; then
2386 # We found a bogon in the path, so make sure we never use it.
2387 set dummy $ac_cv_prog_CC
2388 shift
2389 if test $# != 0; then
2390 # We chose a different compiler from the bogus one.
2391 # However, it has the same basename, so the bogon will be chosen
2392 # first if we set CC to just the basename; use the full file name.
2393 shift
2394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401 { echo "$as_me:$LINENO: result: $CC" >&5
2402 echo "${ECHO_T}$CC" >&6; }
2403 else
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2412 for ac_prog in cl.exe
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2435 done
2436 done
2437 IFS=$as_save_IFS
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443 { echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6; }
2445 else
2446 { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2451 test -n "$CC" && break
2452 done
2454 if test -z "$CC"; then
2455 ac_ct_CC=$CC
2456 for ac_prog in cl.exe
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 if test -n "$ac_ct_CC"; then
2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_ac_ct_CC="$ac_prog"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2479 done
2480 done
2481 IFS=$as_save_IFS
2485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2486 if test -n "$ac_ct_CC"; then
2487 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2488 echo "${ECHO_T}$ac_ct_CC" >&6; }
2489 else
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2495 test -n "$ac_ct_CC" && break
2496 done
2498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502 yes:)
2503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504 whose name does not start with the host triplet. If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&5
2506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet. If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509 ac_tool_warned=yes ;;
2510 esac
2511 CC=$ac_ct_CC
2518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: no acceptable C compiler found in \$PATH
2521 See \`config.log' for more details." >&2;}
2522 { (exit 1); exit 1; }; }
2524 # Provide some information about the compiler.
2525 echo "$as_me:$LINENO: checking for C compiler version" >&5
2526 ac_compiler=`set X $ac_compile; echo $2`
2527 { (ac_try="$ac_compiler --version >&5"
2528 case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compiler --version >&5") 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2537 { (ac_try="$ac_compiler -v >&5"
2538 case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compiler -v >&5") 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }
2547 { (ac_try="$ac_compiler -V >&5"
2548 case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_compiler -V >&5") 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2566 main ()
2570 return 0;
2572 _ACEOF
2573 ac_clean_files_save=$ac_clean_files
2574 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2575 # Try to create an executable without -o first, disregard a.out.
2576 # It will help us diagnose broken compilers, and finding out an intuition
2577 # of exeext.
2578 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2579 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2580 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2582 # List of possible output files, starting from the most likely.
2583 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2584 # only as a last resort. b.out is created by i960 compilers.
2585 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2587 # The IRIX 6 linker writes into existing files which may not be
2588 # executable, retaining their permissions. Remove them first so a
2589 # subsequent execution test works.
2590 ac_rmfiles=
2591 for ac_file in $ac_files
2593 case $ac_file in
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2595 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2596 esac
2597 done
2598 rm -f $ac_rmfiles
2600 if { (ac_try="$ac_link_default"
2601 case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2604 esac
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_link_default") 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2611 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2612 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2613 # so that the user can short-circuit this test for compilers unknown to
2614 # Autoconf.
2615 for ac_file in $ac_files ''
2617 test -f "$ac_file" || continue
2618 case $ac_file in
2619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2621 [ab].out )
2622 # We found the default executable, but exeext='' is most
2623 # certainly right.
2624 break;;
2625 *.* )
2626 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2627 then :; else
2628 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2630 # We set ac_cv_exeext here because the later test for it is not
2631 # safe: cross compilers may not add the suffix if given an `-o'
2632 # argument, so we may need to know it at that point already.
2633 # Even if this section looks crufty: it has the advantage of
2634 # actually working.
2635 break;;
2637 break;;
2638 esac
2639 done
2640 test "$ac_cv_exeext" = no && ac_cv_exeext=
2642 else
2643 ac_file=''
2646 { echo "$as_me:$LINENO: result: $ac_file" >&5
2647 echo "${ECHO_T}$ac_file" >&6; }
2648 if test -z "$ac_file"; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2653 See \`config.log' for more details." >&5
2654 echo "$as_me: error: C compiler cannot create executables
2655 See \`config.log' for more details." >&2;}
2656 { (exit 77); exit 77; }; }
2659 ac_exeext=$ac_cv_exeext
2661 # Check that the compiler produces executables we can run. If not, either
2662 # the compiler is broken, or we cross compile.
2663 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2664 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2665 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2666 # If not cross compiling, check that we can run a simple program.
2667 if test "$cross_compiling" != yes; then
2668 if { ac_try='./$ac_file'
2669 { (case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_try") 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 cross_compiling=no
2679 else
2680 if test "$cross_compiling" = maybe; then
2681 cross_compiling=yes
2682 else
2683 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2684 If you meant to cross compile, use \`--host'.
2685 See \`config.log' for more details." >&5
2686 echo "$as_me: error: cannot run C compiled programs.
2687 If you meant to cross compile, use \`--host'.
2688 See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }
2693 { echo "$as_me:$LINENO: result: yes" >&5
2694 echo "${ECHO_T}yes" >&6; }
2696 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2697 ac_clean_files=$ac_clean_files_save
2698 # Check that the compiler produces executables we can run. If not, either
2699 # the compiler is broken, or we cross compile.
2700 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2701 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2702 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2703 echo "${ECHO_T}$cross_compiling" >&6; }
2705 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2706 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2707 if { (ac_try="$ac_link"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_link") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; then
2717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2718 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2719 # work properly (i.e., refer to `conftest.exe'), while it won't with
2720 # `rm'.
2721 for ac_file in conftest.exe conftest conftest.*; do
2722 test -f "$ac_file" || continue
2723 case $ac_file in
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2726 break;;
2727 * ) break;;
2728 esac
2729 done
2730 else
2731 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2734 See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
2738 rm -f conftest$ac_cv_exeext
2739 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2740 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2742 rm -f conftest.$ac_ext
2743 EXEEXT=$ac_cv_exeext
2744 ac_exeext=$EXEEXT
2745 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2746 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2747 if test "${ac_cv_objext+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2758 main ()
2762 return 0;
2764 _ACEOF
2765 rm -f conftest.o conftest.obj
2766 if { (ac_try="$ac_compile"
2767 case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_compile") 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; then
2776 for ac_file in conftest.o conftest.obj conftest.*; do
2777 test -f "$ac_file" || continue;
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2781 break;;
2782 esac
2783 done
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2791 See \`config.log' for more details." >&2;}
2792 { (exit 1); exit 1; }; }
2795 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2797 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2798 echo "${ECHO_T}$ac_cv_objext" >&6; }
2799 OBJEXT=$ac_cv_objext
2800 ac_objext=$OBJEXT
2801 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2814 main ()
2816 #ifndef __GNUC__
2817 choke me
2818 #endif
2821 return 0;
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (ac_try="$ac_compile"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compile") 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } && {
2838 test -z "$ac_c_werror_flag" ||
2839 test ! -s conftest.err
2840 } && test -s conftest.$ac_objext; then
2841 ac_compiler_gnu=yes
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 ac_compiler_gnu=no
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2853 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2855 GCC=`test $ac_compiler_gnu = yes && echo yes`
2856 ac_test_CFLAGS=${CFLAGS+set}
2857 ac_save_CFLAGS=$CFLAGS
2858 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2860 if test "${ac_cv_prog_cc_g+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 ac_save_c_werror_flag=$ac_c_werror_flag
2864 ac_c_werror_flag=yes
2865 ac_cv_prog_cc_g=no
2866 CFLAGS="-g"
2867 cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h. */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2875 main ()
2879 return 0;
2881 _ACEOF
2882 rm -f conftest.$ac_objext
2883 if { (ac_try="$ac_compile"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } && {
2896 test -z "$ac_c_werror_flag" ||
2897 test ! -s conftest.err
2898 } && test -s conftest.$ac_objext; then
2899 ac_cv_prog_cc_g=yes
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2904 CFLAGS=""
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2913 main ()
2917 return 0;
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compile") 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && {
2934 test -z "$ac_c_werror_flag" ||
2935 test ! -s conftest.err
2936 } && test -s conftest.$ac_objext; then
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 ac_c_werror_flag=$ac_save_c_werror_flag
2943 CFLAGS="-g"
2944 cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h. */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2952 main ()
2956 return 0;
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2967 ac_status=$?
2968 grep -v '^ *+' conftest.er1 >conftest.err
2969 rm -f conftest.er1
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && {
2973 test -z "$ac_c_werror_flag" ||
2974 test ! -s conftest.err
2975 } && test -s conftest.$ac_objext; then
2976 ac_cv_prog_cc_g=yes
2977 else
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 ac_c_werror_flag=$ac_save_c_werror_flag
2993 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2994 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2995 if test "$ac_test_CFLAGS" = set; then
2996 CFLAGS=$ac_save_CFLAGS
2997 elif test $ac_cv_prog_cc_g = yes; then
2998 if test "$GCC" = yes; then
2999 CFLAGS="-g -O2"
3000 else
3001 CFLAGS="-g"
3003 else
3004 if test "$GCC" = yes; then
3005 CFLAGS="-O2"
3006 else
3007 CFLAGS=
3010 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3011 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cc_c89+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 ac_cv_prog_cc_c89=no
3016 ac_save_CC=$CC
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #include <stdarg.h>
3024 #include <stdio.h>
3025 #include <sys/types.h>
3026 #include <sys/stat.h>
3027 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3028 struct buf { int x; };
3029 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3030 static char *e (p, i)
3031 char **p;
3032 int i;
3034 return p[i];
3036 static char *f (char * (*g) (char **, int), char **p, ...)
3038 char *s;
3039 va_list v;
3040 va_start (v,p);
3041 s = g (p, va_arg (v,int));
3042 va_end (v);
3043 return s;
3046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3047 function prototypes and stuff, but not '\xHH' hex character constants.
3048 These don't provoke an error unfortunately, instead are silently treated
3049 as 'x'. The following induces an error, until -std is added to get
3050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3051 array size at least. It's necessary to write '\x00'==0 to get something
3052 that's true only with -std. */
3053 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3056 inside strings and character constants. */
3057 #define FOO(x) 'x'
3058 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3060 int test (int i, double x);
3061 struct s1 {int (*f) (int a);};
3062 struct s2 {int (*f) (double a);};
3063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3064 int argc;
3065 char **argv;
3067 main ()
3069 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3071 return 0;
3073 _ACEOF
3074 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3077 CC="$ac_save_CC $ac_arg"
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3086 ac_status=$?
3087 grep -v '^ *+' conftest.er1 >conftest.err
3088 rm -f conftest.er1
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3095 ac_cv_prog_cc_c89=$ac_arg
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3103 rm -f core conftest.err conftest.$ac_objext
3104 test "x$ac_cv_prog_cc_c89" != "xno" && break
3105 done
3106 rm -f conftest.$ac_ext
3107 CC=$ac_save_CC
3110 # AC_CACHE_VAL
3111 case "x$ac_cv_prog_cc_c89" in
3113 { echo "$as_me:$LINENO: result: none needed" >&5
3114 echo "${ECHO_T}none needed" >&6; } ;;
3115 xno)
3116 { echo "$as_me:$LINENO: result: unsupported" >&5
3117 echo "${ECHO_T}unsupported" >&6; } ;;
3119 CC="$CC $ac_cv_prog_cc_c89"
3120 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3121 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3122 esac
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3138 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3139 # On Suns, sometimes $CPP names a directory.
3140 if test -n "$CPP" && test -d "$CPP"; then
3141 CPP=
3143 if test -z "$CPP"; then
3144 if test "${ac_cv_prog_CPP+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 # Double quotes because CPP needs to be expanded
3148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3150 ac_preproc_ok=false
3151 for ac_c_preproc_warn_flag in '' yes
3153 # Use a header file that comes with gcc, so configuring glibc
3154 # with a fresh cross-compiler works.
3155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156 # <limits.h> exists even on freestanding compilers.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3165 #ifdef __STDC__
3166 # include <limits.h>
3167 #else
3168 # include <assert.h>
3169 #endif
3170 Syntax error
3171 _ACEOF
3172 if { (ac_try="$ac_cpp conftest.$ac_ext"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null && {
3185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 }; then
3189 else
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 # Broken: fails on valid input.
3194 continue
3197 rm -f conftest.err conftest.$ac_ext
3199 # OK, works on sane cases. Now check whether nonexistent headers
3200 # can be detected and how.
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207 #include <ac_nonexistent.h>
3208 _ACEOF
3209 if { (ac_try="$ac_cpp conftest.$ac_ext"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null && {
3222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3223 test ! -s conftest.err
3224 }; then
3225 # Broken: success on invalid input.
3226 continue
3227 else
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3231 # Passes both tests.
3232 ac_preproc_ok=:
3233 break
3236 rm -f conftest.err conftest.$ac_ext
3238 done
3239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3240 rm -f conftest.err conftest.$ac_ext
3241 if $ac_preproc_ok; then
3242 break
3245 done
3246 ac_cv_prog_CPP=$CPP
3249 CPP=$ac_cv_prog_CPP
3250 else
3251 ac_cv_prog_CPP=$CPP
3253 { echo "$as_me:$LINENO: result: $CPP" >&5
3254 echo "${ECHO_T}$CPP" >&6; }
3255 ac_preproc_ok=false
3256 for ac_c_preproc_warn_flag in '' yes
3258 # Use a header file that comes with gcc, so configuring glibc
3259 # with a fresh cross-compiler works.
3260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3261 # <limits.h> exists even on freestanding compilers.
3262 # On the NeXT, cc -E runs the code through the compiler's parser,
3263 # not just through cpp. "Syntax error" is here to catch this case.
3264 cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h. */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3270 #ifdef __STDC__
3271 # include <limits.h>
3272 #else
3273 # include <assert.h>
3274 #endif
3275 Syntax error
3276 _ACEOF
3277 if { (ac_try="$ac_cpp conftest.$ac_ext"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } >/dev/null && {
3290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 }; then
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Broken: fails on valid input.
3299 continue
3302 rm -f conftest.err conftest.$ac_ext
3304 # OK, works on sane cases. Now check whether nonexistent headers
3305 # can be detected and how.
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <ac_nonexistent.h>
3313 _ACEOF
3314 if { (ac_try="$ac_cpp conftest.$ac_ext"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } >/dev/null && {
3327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 }; then
3330 # Broken: success on invalid input.
3331 continue
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 # Passes both tests.
3337 ac_preproc_ok=:
3338 break
3341 rm -f conftest.err conftest.$ac_ext
3343 done
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.err conftest.$ac_ext
3346 if $ac_preproc_ok; then
3348 else
3349 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3350 See \`config.log' for more details." >&5
3351 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3352 See \`config.log' for more details." >&2;}
3353 { (exit 1); exit 1; }; }
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3364 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3365 if test "${ac_cv_path_GREP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 # Extract the first word of "grep ggrep" to use in msg output
3369 if test -z "$GREP"; then
3370 set dummy grep ggrep; ac_prog_name=$2
3371 if test "${ac_cv_path_GREP+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 ac_path_GREP_found=false
3375 # Loop through the user's path and test for each of PROGNAME-LIST
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_prog in grep ggrep; do
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3384 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3385 # Check for GNU ac_path_GREP and select it if it is found.
3386 # Check for GNU $ac_path_GREP
3387 case `"$ac_path_GREP" --version 2>&1` in
3388 *GNU*)
3389 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3391 ac_count=0
3392 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3393 while :
3395 cat "conftest.in" "conftest.in" >"conftest.tmp"
3396 mv "conftest.tmp" "conftest.in"
3397 cp "conftest.in" "conftest.nl"
3398 echo 'GREP' >> "conftest.nl"
3399 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3401 ac_count=`expr $ac_count + 1`
3402 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3403 # Best one so far, save it but keep looking for a better one
3404 ac_cv_path_GREP="$ac_path_GREP"
3405 ac_path_GREP_max=$ac_count
3407 # 10*(2^10) chars as input seems more than enough
3408 test $ac_count -gt 10 && break
3409 done
3410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3411 esac
3414 $ac_path_GREP_found && break 3
3415 done
3416 done
3418 done
3419 IFS=$as_save_IFS
3424 GREP="$ac_cv_path_GREP"
3425 if test -z "$GREP"; then
3426 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3427 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3428 { (exit 1); exit 1; }; }
3431 else
3432 ac_cv_path_GREP=$GREP
3437 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3438 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3439 GREP="$ac_cv_path_GREP"
3442 { echo "$as_me:$LINENO: checking for egrep" >&5
3443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3444 if test "${ac_cv_path_EGREP+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3448 then ac_cv_path_EGREP="$GREP -E"
3449 else
3450 # Extract the first word of "egrep" to use in msg output
3451 if test -z "$EGREP"; then
3452 set dummy egrep; ac_prog_name=$2
3453 if test "${ac_cv_path_EGREP+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 ac_path_EGREP_found=false
3457 # Loop through the user's path and test for each of PROGNAME-LIST
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_prog in egrep; do
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3466 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3467 # Check for GNU ac_path_EGREP and select it if it is found.
3468 # Check for GNU $ac_path_EGREP
3469 case `"$ac_path_EGREP" --version 2>&1` in
3470 *GNU*)
3471 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3473 ac_count=0
3474 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3475 while :
3477 cat "conftest.in" "conftest.in" >"conftest.tmp"
3478 mv "conftest.tmp" "conftest.in"
3479 cp "conftest.in" "conftest.nl"
3480 echo 'EGREP' >> "conftest.nl"
3481 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3483 ac_count=`expr $ac_count + 1`
3484 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3485 # Best one so far, save it but keep looking for a better one
3486 ac_cv_path_EGREP="$ac_path_EGREP"
3487 ac_path_EGREP_max=$ac_count
3489 # 10*(2^10) chars as input seems more than enough
3490 test $ac_count -gt 10 && break
3491 done
3492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3493 esac
3496 $ac_path_EGREP_found && break 3
3497 done
3498 done
3500 done
3501 IFS=$as_save_IFS
3506 EGREP="$ac_cv_path_EGREP"
3507 if test -z "$EGREP"; then
3508 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3509 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3510 { (exit 1); exit 1; }; }
3513 else
3514 ac_cv_path_EGREP=$EGREP
3520 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3521 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3522 EGREP="$ac_cv_path_EGREP"
3526 { echo "$as_me:$LINENO: checking for AIX" >&5
3527 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #ifdef _AIX
3536 #endif
3538 _ACEOF
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 $EGREP "yes" >/dev/null 2>&1; then
3541 { echo "$as_me:$LINENO: result: yes" >&5
3542 echo "${ECHO_T}yes" >&6; }
3543 cat >>confdefs.h <<\_ACEOF
3544 #define _ALL_SOURCE 1
3545 _ACEOF
3547 else
3548 { echo "$as_me:$LINENO: result: no" >&5
3549 echo "${ECHO_T}no" >&6; }
3551 rm -f conftest*
3554 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3555 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3556 if test "${ac_cv_header_stdc+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include <stdlib.h>
3566 #include <stdarg.h>
3567 #include <string.h>
3568 #include <float.h>
3571 main ()
3575 return 0;
3577 _ACEOF
3578 rm -f conftest.$ac_objext
3579 if { (ac_try="$ac_compile"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compile") 2>conftest.er1
3586 ac_status=$?
3587 grep -v '^ *+' conftest.er1 >conftest.err
3588 rm -f conftest.er1
3589 cat conftest.err >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } && {
3592 test -z "$ac_c_werror_flag" ||
3593 test ! -s conftest.err
3594 } && test -s conftest.$ac_objext; then
3595 ac_cv_header_stdc=yes
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3600 ac_cv_header_stdc=no
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 if test $ac_cv_header_stdc = yes; then
3606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 #include <string.h>
3615 _ACEOF
3616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3617 $EGREP "memchr" >/dev/null 2>&1; then
3619 else
3620 ac_cv_header_stdc=no
3622 rm -f conftest*
3626 if test $ac_cv_header_stdc = yes; then
3627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h. */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <stdlib.h>
3636 _ACEOF
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638 $EGREP "free" >/dev/null 2>&1; then
3640 else
3641 ac_cv_header_stdc=no
3643 rm -f conftest*
3647 if test $ac_cv_header_stdc = yes; then
3648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3649 if test "$cross_compiling" = yes; then
3651 else
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 #include <ctype.h>
3659 #include <stdlib.h>
3660 #if ((' ' & 0x0FF) == 0x020)
3661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3663 #else
3664 # define ISLOWER(c) \
3665 (('a' <= (c) && (c) <= 'i') \
3666 || ('j' <= (c) && (c) <= 'r') \
3667 || ('s' <= (c) && (c) <= 'z'))
3668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3669 #endif
3671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3673 main ()
3675 int i;
3676 for (i = 0; i < 256; i++)
3677 if (XOR (islower (i), ISLOWER (i))
3678 || toupper (i) != TOUPPER (i))
3679 return 2;
3680 return 0;
3682 _ACEOF
3683 rm -f conftest$ac_exeext
3684 if { (ac_try="$ac_link"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_link") 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3694 { (case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_try") 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3704 else
3705 echo "$as_me: program exited with status $ac_status" >&5
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 ( exit $ac_status )
3710 ac_cv_header_stdc=no
3712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3718 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3719 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3720 if test $ac_cv_header_stdc = yes; then
3722 cat >>confdefs.h <<\_ACEOF
3723 #define STDC_HEADERS 1
3724 _ACEOF
3728 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3738 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3739 inttypes.h stdint.h unistd.h
3741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h. */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 $ac_includes_default
3755 #include <$ac_header>
3756 _ACEOF
3757 rm -f conftest.$ac_objext
3758 if { (ac_try="$ac_compile"
3759 case "(($ac_try" in
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3762 esac
3763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3774 eval "$as_ac_Header=yes"
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3779 eval "$as_ac_Header=no"
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_res=`eval echo '${'$as_ac_Header'}'`
3785 { echo "$as_me:$LINENO: result: $ac_res" >&5
3786 echo "${ECHO_T}$ac_res" >&6; }
3787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3788 cat >>confdefs.h <<_ACEOF
3789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3790 _ACEOF
3794 done
3797 if test "${ac_cv_header_minix_config_h+set}" = set; then
3798 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3799 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3800 if test "${ac_cv_header_minix_config_h+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3804 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3805 else
3806 # Is the header compilable?
3807 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3808 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 $ac_includes_default
3816 #include <minix/config.h>
3817 _ACEOF
3818 rm -f conftest.$ac_objext
3819 if { (ac_try="$ac_compile"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3835 ac_header_compiler=yes
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 ac_header_compiler=no
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845 echo "${ECHO_T}$ac_header_compiler" >&6; }
3847 # Is the header present?
3848 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3849 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <minix/config.h>
3857 _ACEOF
3858 if { (ac_try="$ac_cpp conftest.$ac_ext"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } >/dev/null && {
3871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 }; then
3874 ac_header_preproc=yes
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 ac_header_preproc=no
3882 rm -f conftest.err conftest.$ac_ext
3883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3884 echo "${ECHO_T}$ac_header_preproc" >&6; }
3886 # So? What about this header?
3887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3888 yes:no: )
3889 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3890 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3891 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3892 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3893 ac_header_preproc=yes
3895 no:yes:* )
3896 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3897 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3899 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3901 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3903 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3905 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3907 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3908 ( cat <<\_ASBOX
3909 ## ------------------------------- ##
3910 ## Report this to www.asterisk.org ##
3911 ## ------------------------------- ##
3912 _ASBOX
3913 ) | sed "s/^/$as_me: WARNING: /" >&2
3915 esac
3916 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3917 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3918 if test "${ac_cv_header_minix_config_h+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 ac_cv_header_minix_config_h=$ac_header_preproc
3923 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3924 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3927 if test $ac_cv_header_minix_config_h = yes; then
3928 MINIX=yes
3929 else
3930 MINIX=
3934 if test "$MINIX" = yes; then
3936 cat >>confdefs.h <<\_ACEOF
3937 #define _POSIX_SOURCE 1
3938 _ACEOF
3941 cat >>confdefs.h <<\_ACEOF
3942 #define _POSIX_1_SOURCE 2
3943 _ACEOF
3946 cat >>confdefs.h <<\_ACEOF
3947 #define _MINIX 1
3948 _ACEOF
3962 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3963 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3964 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3974 # define __EXTENSIONS__ 1
3975 $ac_includes_default
3977 main ()
3981 return 0;
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest.$ac_objext; then
4001 ac_cv_safe_to_define___extensions__=yes
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4006 ac_cv_safe_to_define___extensions__=no
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4012 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4013 test $ac_cv_safe_to_define___extensions__ = yes &&
4014 cat >>confdefs.h <<\_ACEOF
4015 #define __EXTENSIONS__ 1
4016 _ACEOF
4018 cat >>confdefs.h <<\_ACEOF
4019 #define _POSIX_PTHREAD_SEMANTICS 1
4020 _ACEOF
4022 cat >>confdefs.h <<\_ACEOF
4023 #define _TANDEM_SOURCE 1
4024 _ACEOF
4026 # note- does not work on FreeBSD
4028 case "${host_os}" in
4029 freebsd*)
4030 ac_default_prefix=/usr/local
4031 CPPFLAGS=-I/usr/local/include
4032 LDFLAGS=-L/usr/local/lib
4036 ac_default_prefix=/usr
4037 if test ${sysconfdir} = '${prefix}/etc'; then
4038 sysconfdir=/etc
4040 if test ${mandir} = '${prefix}/man'; then
4041 mandir=/usr/share/man
4044 esac
4046 if test ${localstatedir} = '${prefix}/var'; then
4047 localstatedir=/var
4050 BUILD_PLATFORM=${build}
4051 BUILD_CPU=${build_cpu}
4052 BUILD_VENDOR=${build_vendor}
4053 BUILD_OS=${build_os}
4060 HOST_PLATFORM=${host}
4061 HOST_CPU=${host_cpu}
4062 HOST_VENDOR=${host_vendor}
4063 HOST_OS=${host_os}
4070 WINARCH=0
4072 case "${host_os}" in
4073 freebsd*)
4074 OSARCH=FreeBSD
4076 netbsd*)
4077 OSARCH=NetBSD
4079 openbsd*)
4080 OSARCH=OpenBSD
4082 solaris*)
4083 OSARCH=SunOS
4085 mingw32)
4086 OSARCH=mingw32
4087 WINARCH=1
4089 cygwin)
4090 OSARCH=cygwin
4091 WINARCH=1
4094 OSARCH=${host_os}
4096 esac
4101 # check for uname
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}uname; ac_word=$2
4105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4107 if test "${ac_cv_path_UNAME+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 case $UNAME in
4111 [\\/]* | ?:[\\/]*)
4112 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4128 IFS=$as_save_IFS
4131 esac
4133 UNAME=$ac_cv_path_UNAME
4134 if test -n "$UNAME"; then
4135 { echo "$as_me:$LINENO: result: $UNAME" >&5
4136 echo "${ECHO_T}$UNAME" >&6; }
4137 else
4138 { echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6; }
4144 if test -z "$ac_cv_path_UNAME"; then
4145 ac_pt_UNAME=$UNAME
4146 # Extract the first word of "uname", so it can be a program name with args.
4147 set dummy uname; ac_word=$2
4148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4150 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 case $ac_pt_UNAME in
4154 [\\/]* | ?:[\\/]*)
4155 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4169 done
4170 done
4171 IFS=$as_save_IFS
4174 esac
4176 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4177 if test -n "$ac_pt_UNAME"; then
4178 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4179 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4180 else
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4185 if test "x$ac_pt_UNAME" = x; then
4186 UNAME="No"
4187 else
4188 case $cross_compiling:$ac_tool_warned in
4189 yes:)
4190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4191 whose name does not start with the host triplet. If you think this
4192 configuration is useful to you, please write to autoconf@gnu.org." >&5
4193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4194 whose name does not start with the host triplet. If you think this
4195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4196 ac_tool_warned=yes ;;
4197 esac
4198 UNAME=$ac_pt_UNAME
4200 else
4201 UNAME="$ac_cv_path_UNAME"
4204 if test ! x"${UNAME}" = xNo; then
4205 PBX_OSREV=$(${UNAME} -r)
4215 # cross-compile checks
4216 if test "${cross_compiling}" = "yes";
4217 then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4223 if test "${ac_cv_prog_CC+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC="$CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4240 done
4241 done
4242 IFS=$as_save_IFS
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248 { echo "$as_me:$LINENO: result: $CC" >&5
4249 echo "${ECHO_T}$CC" >&6; }
4250 else
4251 { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4257 if test -z "$ac_cv_prog_CC"; then
4258 ac_ct_CC=$CC
4259 # Extract the first word of "gcc", so it can be a program name with args.
4260 set dummy gcc; ac_word=$2
4261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 if test -n "$ac_ct_CC"; then
4267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_ac_ct_CC="gcc"
4277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4280 done
4281 done
4282 IFS=$as_save_IFS
4286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4287 if test -n "$ac_ct_CC"; then
4288 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4289 echo "${ECHO_T}$ac_ct_CC" >&6; }
4290 else
4291 { echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6; }
4295 if test "x$ac_ct_CC" = x; then
4296 CC=":"
4297 else
4298 case $cross_compiling:$ac_tool_warned in
4299 yes:)
4300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4301 whose name does not start with the host triplet. If you think this
4302 configuration is useful to you, please write to autoconf@gnu.org." >&5
4303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4304 whose name does not start with the host triplet. If you think this
4305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308 CC=$ac_ct_CC
4310 else
4311 CC="$ac_cv_prog_CC"
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}g++; ac_word=$2
4317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4319 if test "${ac_cv_prog_CXX+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 if test -n "$CXX"; then
4323 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4338 IFS=$as_save_IFS
4342 CXX=$ac_cv_prog_CXX
4343 if test -n "$CXX"; then
4344 { echo "$as_me:$LINENO: result: $CXX" >&5
4345 echo "${ECHO_T}$CXX" >&6; }
4346 else
4347 { echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6; }
4353 if test -z "$ac_cv_prog_CXX"; then
4354 ac_ct_CXX=$CXX
4355 # Extract the first word of "g++", so it can be a program name with args.
4356 set dummy g++; ac_word=$2
4357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4359 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362 if test -n "$ac_ct_CXX"; then
4363 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_ac_ct_CXX="g++"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4383 if test -n "$ac_ct_CXX"; then
4384 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4385 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4386 else
4387 { echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6; }
4391 if test "x$ac_ct_CXX" = x; then
4392 CXX=":"
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4397 whose name does not start with the host triplet. If you think this
4398 configuration is useful to you, please write to autoconf@gnu.org." >&5
4399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4400 whose name does not start with the host triplet. If you think this
4401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 CXX=$ac_ct_CXX
4406 else
4407 CXX="$ac_cv_prog_CXX"
4410 if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}ld; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_LD+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 if test -n "$LD"; then
4419 ac_cv_prog_LD="$LD" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_LD="${ac_tool_prefix}ld"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 LD=$ac_cv_prog_LD
4439 if test -n "$LD"; then
4440 { echo "$as_me:$LINENO: result: $LD" >&5
4441 echo "${ECHO_T}$LD" >&6; }
4442 else
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4449 if test -z "$ac_cv_prog_LD"; then
4450 ac_ct_LD=$LD
4451 # Extract the first word of "ld", so it can be a program name with args.
4452 set dummy ld; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 if test -n "$ac_ct_LD"; then
4459 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_LD="ld"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4474 IFS=$as_save_IFS
4478 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4479 if test -n "$ac_ct_LD"; then
4480 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4481 echo "${ECHO_T}$ac_ct_LD" >&6; }
4482 else
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4487 if test "x$ac_ct_LD" = x; then
4488 LD=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4493 whose name does not start with the host triplet. If you think this
4494 configuration is useful to you, please write to autoconf@gnu.org." >&5
4495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4496 whose name does not start with the host triplet. If you think this
4497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4498 ac_tool_warned=yes ;;
4499 esac
4500 LD=$ac_ct_LD
4502 else
4503 LD="$ac_cv_prog_LD"
4506 if test -n "$ac_tool_prefix"; then
4507 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4508 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511 if test "${ac_cv_prog_RANLIB+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 if test -n "$RANLIB"; then
4515 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4534 RANLIB=$ac_cv_prog_RANLIB
4535 if test -n "$RANLIB"; then
4536 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4537 echo "${ECHO_T}$RANLIB" >&6; }
4538 else
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4545 if test -z "$ac_cv_prog_RANLIB"; then
4546 ac_ct_RANLIB=$RANLIB
4547 # Extract the first word of "ranlib", so it can be a program name with args.
4548 set dummy ranlib; ac_word=$2
4549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 if test -n "$ac_ct_RANLIB"; then
4555 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_ac_ct_RANLIB="ranlib"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4575 if test -n "$ac_ct_RANLIB"; then
4576 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4577 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4578 else
4579 { echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6; }
4583 if test "x$ac_ct_RANLIB" = x; then
4584 RANLIB=":"
4585 else
4586 case $cross_compiling:$ac_tool_warned in
4587 yes:)
4588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4589 whose name does not start with the host triplet. If you think this
4590 configuration is useful to you, please write to autoconf@gnu.org." >&5
4591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4592 whose name does not start with the host triplet. If you think this
4593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4594 ac_tool_warned=yes ;;
4595 esac
4596 RANLIB=$ac_ct_RANLIB
4598 else
4599 RANLIB="$ac_cv_prog_RANLIB"
4604 # Checks for programs.
4605 ac_ext=c
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_prog_CC+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 if test -n "$CC"; then
4619 ac_cv_prog_CC="$CC" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4632 done
4633 done
4634 IFS=$as_save_IFS
4638 CC=$ac_cv_prog_CC
4639 if test -n "$CC"; then
4640 { echo "$as_me:$LINENO: result: $CC" >&5
4641 echo "${ECHO_T}$CC" >&6; }
4642 else
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4649 if test -z "$ac_cv_prog_CC"; then
4650 ac_ct_CC=$CC
4651 # Extract the first word of "gcc", so it can be a program name with args.
4652 set dummy gcc; ac_word=$2
4653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 if test -n "$ac_ct_CC"; then
4659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_ac_ct_CC="gcc"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4679 if test -n "$ac_ct_CC"; then
4680 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4681 echo "${ECHO_T}$ac_ct_CC" >&6; }
4682 else
4683 { echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6; }
4687 if test "x$ac_ct_CC" = x; then
4688 CC=""
4689 else
4690 case $cross_compiling:$ac_tool_warned in
4691 yes:)
4692 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4693 whose name does not start with the host triplet. If you think this
4694 configuration is useful to you, please write to autoconf@gnu.org." >&5
4695 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4696 whose name does not start with the host triplet. If you think this
4697 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 CC=$ac_ct_CC
4702 else
4703 CC="$ac_cv_prog_CC"
4706 if test -z "$CC"; then
4707 if test -n "$ac_tool_prefix"; then
4708 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4709 set dummy ${ac_tool_prefix}cc; ac_word=$2
4710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4712 if test "${ac_cv_prog_CC+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 if test -n "$CC"; then
4716 ac_cv_prog_CC="$CC" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_CC="${ac_tool_prefix}cc"
4726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4729 done
4730 done
4731 IFS=$as_save_IFS
4735 CC=$ac_cv_prog_CC
4736 if test -n "$CC"; then
4737 { echo "$as_me:$LINENO: result: $CC" >&5
4738 echo "${ECHO_T}$CC" >&6; }
4739 else
4740 { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4747 if test -z "$CC"; then
4748 # Extract the first word of "cc", so it can be a program name with args.
4749 set dummy cc; ac_word=$2
4750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4752 if test "${ac_cv_prog_CC+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 if test -n "$CC"; then
4756 ac_cv_prog_CC="$CC" # Let the user override the test.
4757 else
4758 ac_prog_rejected=no
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4767 ac_prog_rejected=yes
4768 continue
4770 ac_cv_prog_CC="cc"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4778 if test $ac_prog_rejected = yes; then
4779 # We found a bogon in the path, so make sure we never use it.
4780 set dummy $ac_cv_prog_CC
4781 shift
4782 if test $# != 0; then
4783 # We chose a different compiler from the bogus one.
4784 # However, it has the same basename, so the bogon will be chosen
4785 # first if we set CC to just the basename; use the full file name.
4786 shift
4787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4792 CC=$ac_cv_prog_CC
4793 if test -n "$CC"; then
4794 { echo "$as_me:$LINENO: result: $CC" >&5
4795 echo "${ECHO_T}$CC" >&6; }
4796 else
4797 { echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6; }
4803 if test -z "$CC"; then
4804 if test -n "$ac_tool_prefix"; then
4805 for ac_prog in cl.exe
4807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_prog_CC+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 if test -n "$CC"; then
4815 ac_cv_prog_CC="$CC" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 CC=$ac_cv_prog_CC
4835 if test -n "$CC"; then
4836 { echo "$as_me:$LINENO: result: $CC" >&5
4837 echo "${ECHO_T}$CC" >&6; }
4838 else
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4844 test -n "$CC" && break
4845 done
4847 if test -z "$CC"; then
4848 ac_ct_CC=$CC
4849 for ac_prog in cl.exe
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852 set dummy $ac_prog; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 if test -n "$ac_ct_CC"; then
4859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_ac_ct_CC="$ac_prog"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4879 if test -n "$ac_ct_CC"; then
4880 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4881 echo "${ECHO_T}$ac_ct_CC" >&6; }
4882 else
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4888 test -n "$ac_ct_CC" && break
4889 done
4891 if test "x$ac_ct_CC" = x; then
4892 CC=""
4893 else
4894 case $cross_compiling:$ac_tool_warned in
4895 yes:)
4896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4897 whose name does not start with the host triplet. If you think this
4898 configuration is useful to you, please write to autoconf@gnu.org." >&5
4899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4900 whose name does not start with the host triplet. If you think this
4901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 CC=$ac_ct_CC
4911 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4912 See \`config.log' for more details." >&5
4913 echo "$as_me: error: no acceptable C compiler found in \$PATH
4914 See \`config.log' for more details." >&2;}
4915 { (exit 1); exit 1; }; }
4917 # Provide some information about the compiler.
4918 echo "$as_me:$LINENO: checking for C compiler version" >&5
4919 ac_compiler=`set X $ac_compile; echo $2`
4920 { (ac_try="$ac_compiler --version >&5"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926 (eval "$ac_compiler --version >&5") 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }
4930 { (ac_try="$ac_compiler -v >&5"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_compiler -v >&5") 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }
4940 { (ac_try="$ac_compiler -V >&5"
4941 case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_compiler -V >&5") 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }
4951 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4952 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4953 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4964 main ()
4966 #ifndef __GNUC__
4967 choke me
4968 #endif
4971 return 0;
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (ac_try="$ac_compile"
4976 case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979 esac
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_compile") 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest.$ac_objext; then
4991 ac_compiler_gnu=yes
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 ac_compiler_gnu=no
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5003 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5004 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5005 GCC=`test $ac_compiler_gnu = yes && echo yes`
5006 ac_test_CFLAGS=${CFLAGS+set}
5007 ac_save_CFLAGS=$CFLAGS
5008 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5009 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_cc_g+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 ac_save_c_werror_flag=$ac_c_werror_flag
5014 ac_c_werror_flag=yes
5015 ac_cv_prog_cc_g=no
5016 CFLAGS="-g"
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h. */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5025 main ()
5029 return 0;
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (ac_try="$ac_compile"
5034 case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037 esac
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_compile") 2>conftest.er1
5040 ac_status=$?
5041 grep -v '^ *+' conftest.er1 >conftest.err
5042 rm -f conftest.er1
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } && {
5046 test -z "$ac_c_werror_flag" ||
5047 test ! -s conftest.err
5048 } && test -s conftest.$ac_objext; then
5049 ac_cv_prog_cc_g=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 CFLAGS=""
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5063 main ()
5067 return 0;
5069 _ACEOF
5070 rm -f conftest.$ac_objext
5071 if { (ac_try="$ac_compile"
5072 case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_compile") 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } && {
5084 test -z "$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 } && test -s conftest.$ac_objext; then
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_c_werror_flag=$ac_save_c_werror_flag
5093 CFLAGS="-g"
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5102 main ()
5106 return 0;
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (ac_try="$ac_compile"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_compile") 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && {
5123 test -z "$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 } && test -s conftest.$ac_objext; then
5126 ac_cv_prog_cc_g=yes
5127 else
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 ac_c_werror_flag=$ac_save_c_werror_flag
5143 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5144 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5145 if test "$ac_test_CFLAGS" = set; then
5146 CFLAGS=$ac_save_CFLAGS
5147 elif test $ac_cv_prog_cc_g = yes; then
5148 if test "$GCC" = yes; then
5149 CFLAGS="-g -O2"
5150 else
5151 CFLAGS="-g"
5153 else
5154 if test "$GCC" = yes; then
5155 CFLAGS="-O2"
5156 else
5157 CFLAGS=
5160 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5161 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5162 if test "${ac_cv_prog_cc_c89+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 ac_cv_prog_cc_c89=no
5166 ac_save_CC=$CC
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 #include <stdarg.h>
5174 #include <stdio.h>
5175 #include <sys/types.h>
5176 #include <sys/stat.h>
5177 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5178 struct buf { int x; };
5179 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5180 static char *e (p, i)
5181 char **p;
5182 int i;
5184 return p[i];
5186 static char *f (char * (*g) (char **, int), char **p, ...)
5188 char *s;
5189 va_list v;
5190 va_start (v,p);
5191 s = g (p, va_arg (v,int));
5192 va_end (v);
5193 return s;
5196 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5197 function prototypes and stuff, but not '\xHH' hex character constants.
5198 These don't provoke an error unfortunately, instead are silently treated
5199 as 'x'. The following induces an error, until -std is added to get
5200 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5201 array size at least. It's necessary to write '\x00'==0 to get something
5202 that's true only with -std. */
5203 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5205 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5206 inside strings and character constants. */
5207 #define FOO(x) 'x'
5208 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5210 int test (int i, double x);
5211 struct s1 {int (*f) (int a);};
5212 struct s2 {int (*f) (double a);};
5213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5214 int argc;
5215 char **argv;
5217 main ()
5219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5221 return 0;
5223 _ACEOF
5224 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5225 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5227 CC="$ac_save_CC $ac_arg"
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5245 ac_cv_prog_cc_c89=$ac_arg
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5253 rm -f core conftest.err conftest.$ac_objext
5254 test "x$ac_cv_prog_cc_c89" != "xno" && break
5255 done
5256 rm -f conftest.$ac_ext
5257 CC=$ac_save_CC
5260 # AC_CACHE_VAL
5261 case "x$ac_cv_prog_cc_c89" in
5263 { echo "$as_me:$LINENO: result: none needed" >&5
5264 echo "${ECHO_T}none needed" >&6; } ;;
5265 xno)
5266 { echo "$as_me:$LINENO: result: unsupported" >&5
5267 echo "${ECHO_T}unsupported" >&6; } ;;
5269 CC="$CC $ac_cv_prog_cc_c89"
5270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5271 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5272 esac
5275 ac_ext=c
5276 ac_cpp='$CPP $CPPFLAGS'
5277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5281 ac_ext=cpp
5282 ac_cpp='$CXXCPP $CPPFLAGS'
5283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5286 if test -z "$CXX"; then
5287 if test -n "$CCC"; then
5288 CXX=$CCC
5289 else
5290 if test -n "$ac_tool_prefix"; then
5291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5297 if test "${ac_cv_prog_CXX+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300 if test -n "$CXX"; then
5301 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 CXX=$ac_cv_prog_CXX
5321 if test -n "$CXX"; then
5322 { echo "$as_me:$LINENO: result: $CXX" >&5
5323 echo "${ECHO_T}$CXX" >&6; }
5324 else
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5330 test -n "$CXX" && break
5331 done
5333 if test -z "$CXX"; then
5334 ac_ct_CXX=$CXX
5335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5337 # Extract the first word of "$ac_prog", so it can be a program name with args.
5338 set dummy $ac_prog; ac_word=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 if test -n "$ac_ct_CXX"; then
5345 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_CXX="$ac_prog"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5365 if test -n "$ac_ct_CXX"; then
5366 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5367 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5368 else
5369 { echo "$as_me:$LINENO: result: no" >&5
5370 echo "${ECHO_T}no" >&6; }
5374 test -n "$ac_ct_CXX" && break
5375 done
5377 if test "x$ac_ct_CXX" = x; then
5378 CXX="g++"
5379 else
5380 case $cross_compiling:$ac_tool_warned in
5381 yes:)
5382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5383 whose name does not start with the host triplet. If you think this
5384 configuration is useful to you, please write to autoconf@gnu.org." >&5
5385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5386 whose name does not start with the host triplet. If you think this
5387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5388 ac_tool_warned=yes ;;
5389 esac
5390 CXX=$ac_ct_CXX
5396 # Provide some information about the compiler.
5397 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5398 ac_compiler=`set X $ac_compile; echo $2`
5399 { (ac_try="$ac_compiler --version >&5"
5400 case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compiler --version >&5") 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }
5409 { (ac_try="$ac_compiler -v >&5"
5410 case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413 esac
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_compiler -v >&5") 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }
5419 { (ac_try="$ac_compiler -V >&5"
5420 case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_compiler -V >&5") 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }
5430 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5431 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5443 main ()
5445 #ifndef __GNUC__
5446 choke me
5447 #endif
5450 return 0;
5452 _ACEOF
5453 rm -f conftest.$ac_objext
5454 if { (ac_try="$ac_compile"
5455 case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458 esac
5459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_compile") 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } && {
5467 test -z "$ac_cxx_werror_flag" ||
5468 test ! -s conftest.err
5469 } && test -s conftest.$ac_objext; then
5470 ac_compiler_gnu=yes
5471 else
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 ac_compiler_gnu=no
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5482 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5483 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5484 GXX=`test $ac_compiler_gnu = yes && echo yes`
5485 ac_test_CXXFLAGS=${CXXFLAGS+set}
5486 ac_save_CXXFLAGS=$CXXFLAGS
5487 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5488 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5489 if test "${ac_cv_prog_cxx_g+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5493 ac_cxx_werror_flag=yes
5494 ac_cv_prog_cxx_g=no
5495 CXXFLAGS="-g"
5496 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5504 main ()
5508 return 0;
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_cxx_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 ac_cv_prog_cxx_g=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 CXXFLAGS=""
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5542 main ()
5546 return 0;
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (ac_try="$ac_compile"
5551 case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_compile") 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } && {
5563 test -z "$ac_cxx_werror_flag" ||
5564 test ! -s conftest.err
5565 } && test -s conftest.$ac_objext; then
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5571 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5572 CXXFLAGS="-g"
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5581 main ()
5585 return 0;
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && {
5602 test -z "$ac_cxx_werror_flag" ||
5603 test ! -s conftest.err
5604 } && test -s conftest.$ac_objext; then
5605 ac_cv_prog_cxx_g=yes
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5624 if test "$ac_test_CXXFLAGS" = set; then
5625 CXXFLAGS=$ac_save_CXXFLAGS
5626 elif test $ac_cv_prog_cxx_g = yes; then
5627 if test "$GXX" = yes; then
5628 CXXFLAGS="-g -O2"
5629 else
5630 CXXFLAGS="-g"
5632 else
5633 if test "$GXX" = yes; then
5634 CXXFLAGS="-O2"
5635 else
5636 CXXFLAGS=
5639 ac_ext=c
5640 ac_cpp='$CPP $CPPFLAGS'
5641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5645 ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5651 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5652 # On Suns, sometimes $CPP names a directory.
5653 if test -n "$CPP" && test -d "$CPP"; then
5654 CPP=
5656 if test -z "$CPP"; then
5657 if test "${ac_cv_prog_CPP+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 # Double quotes because CPP needs to be expanded
5661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5663 ac_preproc_ok=false
5664 for ac_c_preproc_warn_flag in '' yes
5666 # Use a header file that comes with gcc, so configuring glibc
5667 # with a fresh cross-compiler works.
5668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669 # <limits.h> exists even on freestanding compilers.
5670 # On the NeXT, cc -E runs the code through the compiler's parser,
5671 # not just through cpp. "Syntax error" is here to catch this case.
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #ifdef __STDC__
5679 # include <limits.h>
5680 #else
5681 # include <assert.h>
5682 #endif
5683 Syntax error
5684 _ACEOF
5685 if { (ac_try="$ac_cpp conftest.$ac_ext"
5686 case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5692 ac_status=$?
5693 grep -v '^ *+' conftest.er1 >conftest.err
5694 rm -f conftest.er1
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } >/dev/null && {
5698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5699 test ! -s conftest.err
5700 }; then
5702 else
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706 # Broken: fails on valid input.
5707 continue
5710 rm -f conftest.err conftest.$ac_ext
5712 # OK, works on sane cases. Now check whether nonexistent headers
5713 # can be detected and how.
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h. */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <ac_nonexistent.h>
5721 _ACEOF
5722 if { (ac_try="$ac_cpp conftest.$ac_ext"
5723 case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev/null && {
5735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 }; then
5738 # Broken: success on invalid input.
5739 continue
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 # Passes both tests.
5745 ac_preproc_ok=:
5746 break
5749 rm -f conftest.err conftest.$ac_ext
5751 done
5752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5753 rm -f conftest.err conftest.$ac_ext
5754 if $ac_preproc_ok; then
5755 break
5758 done
5759 ac_cv_prog_CPP=$CPP
5762 CPP=$ac_cv_prog_CPP
5763 else
5764 ac_cv_prog_CPP=$CPP
5766 { echo "$as_me:$LINENO: result: $CPP" >&5
5767 echo "${ECHO_T}$CPP" >&6; }
5768 ac_preproc_ok=false
5769 for ac_c_preproc_warn_flag in '' yes
5771 # Use a header file that comes with gcc, so configuring glibc
5772 # with a fresh cross-compiler works.
5773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5774 # <limits.h> exists even on freestanding compilers.
5775 # On the NeXT, cc -E runs the code through the compiler's parser,
5776 # not just through cpp. "Syntax error" is here to catch this case.
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h. */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 #ifdef __STDC__
5784 # include <limits.h>
5785 #else
5786 # include <assert.h>
5787 #endif
5788 Syntax error
5789 _ACEOF
5790 if { (ac_try="$ac_cpp conftest.$ac_ext"
5791 case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } >/dev/null && {
5803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5804 test ! -s conftest.err
5805 }; then
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 # Broken: fails on valid input.
5812 continue
5815 rm -f conftest.err conftest.$ac_ext
5817 # OK, works on sane cases. Now check whether nonexistent headers
5818 # can be detected and how.
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <ac_nonexistent.h>
5826 _ACEOF
5827 if { (ac_try="$ac_cpp conftest.$ac_ext"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev/null && {
5840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 }; then
5843 # Broken: success on invalid input.
5844 continue
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 # Passes both tests.
5850 ac_preproc_ok=:
5851 break
5854 rm -f conftest.err conftest.$ac_ext
5856 done
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.err conftest.$ac_ext
5859 if $ac_preproc_ok; then
5861 else
5862 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5863 See \`config.log' for more details." >&5
5864 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5865 See \`config.log' for more details." >&2;}
5866 { (exit 1); exit 1; }; }
5869 ac_ext=c
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875 ac_ext=cpp
5876 ac_cpp='$CXXCPP $CPPFLAGS'
5877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5880 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5881 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5882 if test -z "$CXXCPP"; then
5883 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 # Double quotes because CXXCPP needs to be expanded
5887 for CXXCPP in "$CXX -E" "/lib/cpp"
5889 ac_preproc_ok=false
5890 for ac_cxx_preproc_warn_flag in '' yes
5892 # Use a header file that comes with gcc, so configuring glibc
5893 # with a fresh cross-compiler works.
5894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5895 # <limits.h> exists even on freestanding compilers.
5896 # On the NeXT, cc -E runs the code through the compiler's parser,
5897 # not just through cpp. "Syntax error" is here to catch this case.
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #ifdef __STDC__
5905 # include <limits.h>
5906 #else
5907 # include <assert.h>
5908 #endif
5909 Syntax error
5910 _ACEOF
5911 if { (ac_try="$ac_cpp conftest.$ac_ext"
5912 case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } >/dev/null && {
5924 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5925 test ! -s conftest.err
5926 }; then
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 # Broken: fails on valid input.
5933 continue
5936 rm -f conftest.err conftest.$ac_ext
5938 # OK, works on sane cases. Now check whether nonexistent headers
5939 # can be detected and how.
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #include <ac_nonexistent.h>
5947 _ACEOF
5948 if { (ac_try="$ac_cpp conftest.$ac_ext"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } >/dev/null && {
5961 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5962 test ! -s conftest.err
5963 }; then
5964 # Broken: success on invalid input.
5965 continue
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 # Passes both tests.
5971 ac_preproc_ok=:
5972 break
5975 rm -f conftest.err conftest.$ac_ext
5977 done
5978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5979 rm -f conftest.err conftest.$ac_ext
5980 if $ac_preproc_ok; then
5981 break
5984 done
5985 ac_cv_prog_CXXCPP=$CXXCPP
5988 CXXCPP=$ac_cv_prog_CXXCPP
5989 else
5990 ac_cv_prog_CXXCPP=$CXXCPP
5992 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5993 echo "${ECHO_T}$CXXCPP" >&6; }
5994 ac_preproc_ok=false
5995 for ac_cxx_preproc_warn_flag in '' yes
5997 # Use a header file that comes with gcc, so configuring glibc
5998 # with a fresh cross-compiler works.
5999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6000 # <limits.h> exists even on freestanding compilers.
6001 # On the NeXT, cc -E runs the code through the compiler's parser,
6002 # not just through cpp. "Syntax error" is here to catch this case.
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 #ifdef __STDC__
6010 # include <limits.h>
6011 #else
6012 # include <assert.h>
6013 #endif
6014 Syntax error
6015 _ACEOF
6016 if { (ac_try="$ac_cpp conftest.$ac_ext"
6017 case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev/null && {
6029 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6030 test ! -s conftest.err
6031 }; then
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 # Broken: fails on valid input.
6038 continue
6041 rm -f conftest.err conftest.$ac_ext
6043 # OK, works on sane cases. Now check whether nonexistent headers
6044 # can be detected and how.
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 #include <ac_nonexistent.h>
6052 _ACEOF
6053 if { (ac_try="$ac_cpp conftest.$ac_ext"
6054 case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057 esac
6058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } >/dev/null && {
6066 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6067 test ! -s conftest.err
6068 }; then
6069 # Broken: success on invalid input.
6070 continue
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6075 # Passes both tests.
6076 ac_preproc_ok=:
6077 break
6080 rm -f conftest.err conftest.$ac_ext
6082 done
6083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6084 rm -f conftest.err conftest.$ac_ext
6085 if $ac_preproc_ok; then
6087 else
6088 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6089 See \`config.log' for more details." >&5
6090 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6091 See \`config.log' for more details." >&2;}
6092 { (exit 1); exit 1; }; }
6095 ac_ext=c
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6101 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6102 # the developers regenerating the configure script don't have to install libtool.
6103 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6104 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6105 if test "${ac_cv_path_SED+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6109 for ac_i in 1 2 3 4 5 6 7; do
6110 ac_script="$ac_script$as_nl$ac_script"
6111 done
6112 echo "$ac_script" | sed 99q >conftest.sed
6113 $as_unset ac_script || ac_script=
6114 # Extract the first word of "sed gsed" to use in msg output
6115 if test -z "$SED"; then
6116 set dummy sed gsed; ac_prog_name=$2
6117 if test "${ac_cv_path_SED+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 ac_path_SED_found=false
6121 # Loop through the user's path and test for each of PROGNAME-LIST
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_prog in sed gsed; do
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6130 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6131 # Check for GNU ac_path_SED and select it if it is found.
6132 # Check for GNU $ac_path_SED
6133 case `"$ac_path_SED" --version 2>&1` in
6134 *GNU*)
6135 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6137 ac_count=0
6138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6139 while :
6141 cat "conftest.in" "conftest.in" >"conftest.tmp"
6142 mv "conftest.tmp" "conftest.in"
6143 cp "conftest.in" "conftest.nl"
6144 echo '' >> "conftest.nl"
6145 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6147 ac_count=`expr $ac_count + 1`
6148 if test $ac_count -gt ${ac_path_SED_max-0}; then
6149 # Best one so far, save it but keep looking for a better one
6150 ac_cv_path_SED="$ac_path_SED"
6151 ac_path_SED_max=$ac_count
6153 # 10*(2^10) chars as input seems more than enough
6154 test $ac_count -gt 10 && break
6155 done
6156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6157 esac
6160 $ac_path_SED_found && break 3
6161 done
6162 done
6164 done
6165 IFS=$as_save_IFS
6170 SED="$ac_cv_path_SED"
6171 if test -z "$SED"; then
6172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6173 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6174 { (exit 1); exit 1; }; }
6177 else
6178 ac_cv_path_SED=$SED
6182 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6183 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6184 SED="$ac_cv_path_SED"
6185 rm -f conftest.sed
6187 { echo "$as_me:$LINENO: checking for egrep" >&5
6188 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_egrep+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6193 then ac_cv_prog_egrep='grep -E'
6194 else ac_cv_prog_egrep='egrep'
6197 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6198 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6199 EGREP=$ac_cv_prog_egrep
6203 # Check whether --with-gnu-ld was given.
6204 if test "${with_gnu_ld+set}" = set; then
6205 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6206 else
6207 with_gnu_ld=no
6210 ac_prog=ld
6211 if test "$GCC" = yes; then
6212 # Check if gcc -print-prog-name=ld gives a path.
6213 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6214 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6215 case $host in
6216 *-*-mingw*)
6217 # gcc leaves a trailing carriage return which upsets mingw
6218 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6220 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6221 esac
6222 case $ac_prog in
6223 # Accept absolute paths.
6224 [\\/]* | ?:[\\/]*)
6225 re_direlt='/[^/][^/]*/\.\./'
6226 # Canonicalize the pathname of ld
6227 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6228 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6229 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6230 done
6231 test -z "$LD" && LD="$ac_prog"
6234 # If it fails, then pretend we aren't using GCC.
6235 ac_prog=ld
6238 # If it is relative, then search for the first ld in PATH.
6239 with_gnu_ld=unknown
6241 esac
6242 elif test "$with_gnu_ld" = yes; then
6243 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6244 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6245 else
6246 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6247 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6249 if test "${lt_cv_path_LD+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 if test -z "$LD"; then
6253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6254 for ac_dir in $PATH; do
6255 IFS="$lt_save_ifs"
6256 test -z "$ac_dir" && ac_dir=.
6257 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6258 lt_cv_path_LD="$ac_dir/$ac_prog"
6259 # Check to see if the program is GNU ld. I'd rather use --version,
6260 # but apparently some variants of GNU ld only accept -v.
6261 # Break only if it was the GNU/non-GNU ld that we prefer.
6262 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6263 *GNU* | *'with BFD'*)
6264 test "$with_gnu_ld" != no && break
6267 test "$with_gnu_ld" != yes && break
6269 esac
6271 done
6272 IFS="$lt_save_ifs"
6273 else
6274 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6278 LD="$lt_cv_path_LD"
6279 if test -n "$LD"; then
6280 { echo "$as_me:$LINENO: result: $LD" >&5
6281 echo "${ECHO_T}$LD" >&6; }
6282 else
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6286 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6287 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6288 { (exit 1); exit 1; }; }
6289 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6290 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6291 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6295 case `$LD -v 2>&1 </dev/null` in
6296 *GNU* | *'with BFD'*)
6297 lt_cv_prog_gnu_ld=yes
6300 lt_cv_prog_gnu_ld=no
6302 esac
6304 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6305 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6306 with_gnu_ld=$lt_cv_prog_gnu_ld
6308 # note, does not work on FreeBSD
6309 for ac_prog in gawk mawk nawk awk
6311 # Extract the first word of "$ac_prog", so it can be a program name with args.
6312 set dummy $ac_prog; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_prog_AWK+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 if test -n "$AWK"; then
6319 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_AWK="$ac_prog"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6332 done
6333 done
6334 IFS=$as_save_IFS
6338 AWK=$ac_cv_prog_AWK
6339 if test -n "$AWK"; then
6340 { echo "$as_me:$LINENO: result: $AWK" >&5
6341 echo "${ECHO_T}$AWK" >&6; }
6342 else
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6348 test -n "$AWK" && break
6349 done
6351 # Find a good install program. We prefer a C program (faster),
6352 # so one script is as good as another. But avoid the broken or
6353 # incompatible versions:
6354 # SysV /etc/install, /usr/sbin/install
6355 # SunOS /usr/etc/install
6356 # IRIX /sbin/install
6357 # AIX /bin/install
6358 # AmigaOS /C/install, which installs bootblocks on floppy discs
6359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6362 # OS/2's system install, which has a completely different semantic
6363 # ./install, which can be erroneously created by make from ./install.sh.
6364 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6365 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6366 if test -z "$INSTALL"; then
6367 if test "${ac_cv_path_install+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 # Account for people who put trailing slashes in PATH elements.
6376 case $as_dir/ in
6377 ./ | .// | /cC/* | \
6378 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6379 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6380 /usr/ucb/* ) ;;
6382 # OSF1 and SCO ODT 3.0 have their own names for install.
6383 # Don't use installbsd from OSF since it installs stuff as root
6384 # by default.
6385 for ac_prog in ginstall scoinst install; do
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6388 if test $ac_prog = install &&
6389 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6390 # AIX install. It has an incompatible calling convention.
6392 elif test $ac_prog = install &&
6393 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6394 # program-specific install script used by HP pwplus--don't use.
6396 else
6397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6398 break 3
6401 done
6402 done
6404 esac
6405 done
6406 IFS=$as_save_IFS
6410 if test "${ac_cv_path_install+set}" = set; then
6411 INSTALL=$ac_cv_path_install
6412 else
6413 # As a last resort, use the slow shell script. Don't cache a
6414 # value for INSTALL within a source directory, because that will
6415 # break other packages using the cache if that directory is
6416 # removed, or if the value is a relative name.
6417 INSTALL=$ac_install_sh
6420 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6421 echo "${ECHO_T}$INSTALL" >&6; }
6423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6424 # It thinks the first close brace ends the variable substitution.
6425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6427 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6429 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6431 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6432 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6433 LN_S=$as_ln_s
6434 if test "$LN_S" = "ln -s"; then
6435 { echo "$as_me:$LINENO: result: yes" >&5
6436 echo "${ECHO_T}yes" >&6; }
6437 else
6438 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6439 echo "${ECHO_T}no, using $LN_S" >&6; }
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_prog_RANLIB+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 if test -n "$RANLIB"; then
6451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6470 RANLIB=$ac_cv_prog_RANLIB
6471 if test -n "$RANLIB"; then
6472 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6473 echo "${ECHO_T}$RANLIB" >&6; }
6474 else
6475 { echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6; }
6481 if test -z "$ac_cv_prog_RANLIB"; then
6482 ac_ct_RANLIB=$RANLIB
6483 # Extract the first word of "ranlib", so it can be a program name with args.
6484 set dummy ranlib; ac_word=$2
6485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 if test -n "$ac_ct_RANLIB"; then
6491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_RANLIB="ranlib"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6504 done
6505 done
6506 IFS=$as_save_IFS
6510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511 if test -n "$ac_ct_RANLIB"; then
6512 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6513 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6514 else
6515 { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6519 if test "x$ac_ct_RANLIB" = x; then
6520 RANLIB=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6525 whose name does not start with the host triplet. If you think this
6526 configuration is useful to you, please write to autoconf@gnu.org." >&5
6527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6528 whose name does not start with the host triplet. If you think this
6529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532 RANLIB=$ac_ct_RANLIB
6534 else
6535 RANLIB="$ac_cv_prog_RANLIB"
6538 { echo "$as_me:$LINENO: checking for GNU make" >&5
6539 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6540 if test "${GNU_MAKE+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 GNU_MAKE='Not Found' ;
6544 GNU_MAKE_VERSION_MAJOR=0 ;
6545 GNU_MAKE_VERSION_MINOR=0 ;
6546 for a in make gmake gnumake ; do
6547 if test -z "$a" ; then continue ; fi ;
6548 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6549 GNU_MAKE=$a ;
6550 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6551 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6552 break;
6554 done ;
6557 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6558 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6559 if test "x$GNU_MAKE" = "xNot Found" ; then
6560 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6561 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6562 { (exit 1); exit 1; }; }
6563 exit 1
6568 if test -n "$ac_tool_prefix"; then
6569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}strip; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_path_STRIP+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 case $STRIP in
6577 [\\/]* | ?:[\\/]*)
6578 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6597 esac
6599 STRIP=$ac_cv_path_STRIP
6600 if test -n "$STRIP"; then
6601 { echo "$as_me:$LINENO: result: $STRIP" >&5
6602 echo "${ECHO_T}$STRIP" >&6; }
6603 else
6604 { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6610 if test -z "$ac_cv_path_STRIP"; then
6611 ac_pt_STRIP=$STRIP
6612 # Extract the first word of "strip", so it can be a program name with args.
6613 set dummy strip; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 case $ac_pt_STRIP in
6620 [\\/]* | ?:[\\/]*)
6621 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6635 done
6636 done
6637 IFS=$as_save_IFS
6640 esac
6642 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6643 if test -n "$ac_pt_STRIP"; then
6644 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6645 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6646 else
6647 { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6651 if test "x$ac_pt_STRIP" = x; then
6652 STRIP=":"
6653 else
6654 case $cross_compiling:$ac_tool_warned in
6655 yes:)
6656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6657 whose name does not start with the host triplet. If you think this
6658 configuration is useful to you, please write to autoconf@gnu.org." >&5
6659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6660 whose name does not start with the host triplet. If you think this
6661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664 STRIP=$ac_pt_STRIP
6666 else
6667 STRIP="$ac_cv_path_STRIP"
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}ar; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_path_AR+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 case $AR in
6679 [\\/]* | ?:[\\/]*)
6680 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6694 done
6695 done
6696 IFS=$as_save_IFS
6699 esac
6701 AR=$ac_cv_path_AR
6702 if test -n "$AR"; then
6703 { echo "$as_me:$LINENO: result: $AR" >&5
6704 echo "${ECHO_T}$AR" >&6; }
6705 else
6706 { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6712 if test -z "$ac_cv_path_AR"; then
6713 ac_pt_AR=$AR
6714 # Extract the first word of "ar", so it can be a program name with args.
6715 set dummy ar; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721 case $ac_pt_AR in
6722 [\\/]* | ?:[\\/]*)
6723 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6737 done
6738 done
6739 IFS=$as_save_IFS
6742 esac
6744 ac_pt_AR=$ac_cv_path_ac_pt_AR
6745 if test -n "$ac_pt_AR"; then
6746 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6747 echo "${ECHO_T}$ac_pt_AR" >&6; }
6748 else
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6753 if test "x$ac_pt_AR" = x; then
6754 AR=":"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet. If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&5
6761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet. If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 AR=$ac_pt_AR
6768 else
6769 AR="$ac_cv_path_AR"
6773 GNU_LD=0
6774 if test "x$with_gnu_ld" = "xyes" ; then
6775 GNU_LD=1
6779 # Extract the first word of "grep", so it can be a program name with args.
6780 set dummy grep; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_path_GREP+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786 case $GREP in
6787 [\\/]* | ?:[\\/]*)
6788 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6802 done
6803 done
6804 IFS=$as_save_IFS
6806 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6808 esac
6810 GREP=$ac_cv_path_GREP
6811 if test -n "$GREP"; then
6812 { echo "$as_me:$LINENO: result: $GREP" >&5
6813 echo "${ECHO_T}$GREP" >&6; }
6814 else
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6820 # Extract the first word of "find", so it can be a program name with args.
6821 set dummy find; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_FIND+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827 case $FIND in
6828 [\\/]* | ?:[\\/]*)
6829 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6843 done
6844 done
6845 IFS=$as_save_IFS
6847 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6849 esac
6851 FIND=$ac_cv_path_FIND
6852 if test -n "$FIND"; then
6853 { echo "$as_me:$LINENO: result: $FIND" >&5
6854 echo "${ECHO_T}$FIND" >&6; }
6855 else
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 # Extract the first word of "compress", so it can be a program name with args.
6862 set dummy compress; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_COMPRESS+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 case $COMPRESS in
6869 [\\/]* | ?:[\\/]*)
6870 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6884 done
6885 done
6886 IFS=$as_save_IFS
6888 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6890 esac
6892 COMPRESS=$ac_cv_path_COMPRESS
6893 if test -n "$COMPRESS"; then
6894 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6895 echo "${ECHO_T}$COMPRESS" >&6; }
6896 else
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6902 # Extract the first word of "basename", so it can be a program name with args.
6903 set dummy basename; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_BASENAME+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 case $BASENAME in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6925 done
6926 done
6927 IFS=$as_save_IFS
6929 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6931 esac
6933 BASENAME=$ac_cv_path_BASENAME
6934 if test -n "$BASENAME"; then
6935 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6936 echo "${ECHO_T}$BASENAME" >&6; }
6937 else
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 # Extract the first word of "id", so it can be a program name with args.
6944 set dummy id; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_ID+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 case $ID in
6951 [\\/]* | ?:[\\/]*)
6952 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6966 done
6967 done
6968 IFS=$as_save_IFS
6970 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6972 esac
6974 ID=$ac_cv_path_ID
6975 if test -n "$ID"; then
6976 { echo "$as_me:$LINENO: result: $ID" >&5
6977 echo "${ECHO_T}$ID" >&6; }
6978 else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "dirname", so it can be a program name with args.
6985 set dummy dirname; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_DIRNAME+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 case $DIRNAME in
6992 [\\/]* | ?:[\\/]*)
6993 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7011 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7013 esac
7015 DIRNAME=$ac_cv_path_DIRNAME
7016 if test -n "$DIRNAME"; then
7017 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7018 echo "${ECHO_T}$DIRNAME" >&6; }
7019 else
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "sh", so it can be a program name with args.
7026 set dummy sh; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_SHELL+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 case $SHELL in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7048 done
7049 done
7050 IFS=$as_save_IFS
7052 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7054 esac
7056 SHELL=$ac_cv_path_SHELL
7057 if test -n "$SHELL"; then
7058 { echo "$as_me:$LINENO: result: $SHELL" >&5
7059 echo "${ECHO_T}$SHELL" >&6; }
7060 else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7066 # Extract the first word of "ln", so it can be a program name with args.
7067 set dummy ln; ac_word=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_LN+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 case $LN in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7093 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7095 esac
7097 LN=$ac_cv_path_LN
7098 if test -n "$LN"; then
7099 { echo "$as_me:$LINENO: result: $LN" >&5
7100 echo "${ECHO_T}$LN" >&6; }
7101 else
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "dot", so it can be a program name with args.
7108 set dummy dot; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_DOT+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 case $DOT in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7130 done
7131 done
7132 IFS=$as_save_IFS
7134 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7136 esac
7138 DOT=$ac_cv_path_DOT
7139 if test -n "$DOT"; then
7140 { echo "$as_me:$LINENO: result: $DOT" >&5
7141 echo "${ECHO_T}$DOT" >&6; }
7142 else
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7148 # Extract the first word of "wget", so it can be a program name with args.
7149 set dummy wget; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_WGET+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 case $WGET in
7156 [\\/]* | ?:[\\/]*)
7157 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7171 done
7172 done
7173 IFS=$as_save_IFS
7175 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7177 esac
7179 WGET=$ac_cv_path_WGET
7180 if test -n "$WGET"; then
7181 { echo "$as_me:$LINENO: result: $WGET" >&5
7182 echo "${ECHO_T}$WGET" >&6; }
7183 else
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7189 # Extract the first word of "rubber", so it can be a program name with args.
7190 set dummy rubber; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_RUBBER+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 case $RUBBER in
7197 [\\/]* | ?:[\\/]*)
7198 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7212 done
7213 done
7214 IFS=$as_save_IFS
7216 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7218 esac
7220 RUBBER=$ac_cv_path_RUBBER
7221 if test -n "$RUBBER"; then
7222 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7223 echo "${ECHO_T}$RUBBER" >&6; }
7224 else
7225 { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7230 # Extract the first word of "kpsewhich", so it can be a program name with args.
7231 set dummy kpsewhich; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 case $KPATHSEA in
7238 [\\/]* | ?:[\\/]*)
7239 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7253 done
7254 done
7255 IFS=$as_save_IFS
7257 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7259 esac
7261 KPATHSEA=$ac_cv_path_KPATHSEA
7262 if test -n "$KPATHSEA"; then
7263 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7264 echo "${ECHO_T}$KPATHSEA" >&6; }
7265 else
7266 { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7271 if test "${WGET}" != ":" ; then
7272 DOWNLOAD=${WGET}
7273 else
7274 # Extract the first word of "fetch", so it can be a program name with args.
7275 set dummy fetch; ac_word=$2
7276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7278 if test "${ac_cv_path_FETCH+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281 case $FETCH in
7282 [\\/]* | ?:[\\/]*)
7283 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7297 done
7298 done
7299 IFS=$as_save_IFS
7301 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7303 esac
7305 FETCH=$ac_cv_path_FETCH
7306 if test -n "$FETCH"; then
7307 { echo "$as_me:$LINENO: result: $FETCH" >&5
7308 echo "${ECHO_T}$FETCH" >&6; }
7309 else
7310 { echo "$as_me:$LINENO: result: no" >&5
7311 echo "${ECHO_T}no" >&6; }
7315 DOWNLOAD=${FETCH}
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 if test -n "$SOXMIX"; then
7328 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7341 done
7342 done
7343 IFS=$as_save_IFS
7347 SOXMIX=$ac_cv_prog_SOXMIX
7348 if test -n "$SOXMIX"; then
7349 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7350 echo "${ECHO_T}$SOXMIX" >&6; }
7351 else
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7358 if test -z "$ac_cv_prog_SOXMIX"; then
7359 ac_ct_SOXMIX=$SOXMIX
7360 # Extract the first word of "soxmix", so it can be a program name with args.
7361 set dummy soxmix; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 if test -n "$ac_ct_SOXMIX"; then
7368 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7383 IFS=$as_save_IFS
7387 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7388 if test -n "$ac_ct_SOXMIX"; then
7389 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7390 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7391 else
7392 { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7396 if test "x$ac_ct_SOXMIX" = x; then
7397 SOXMIX=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7402 whose name does not start with the host triplet. If you think this
7403 configuration is useful to you, please write to autoconf@gnu.org." >&5
7404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7405 whose name does not start with the host triplet. If you think this
7406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409 SOXMIX=$ac_ct_SOXMIX
7411 else
7412 SOXMIX="$ac_cv_prog_SOXMIX"
7415 if test "${SOXMIX}" != ":" ; then
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_SOXMIX 1
7419 _ACEOF
7426 ac_ext=c
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432 acx_pthread_ok=no
7434 # We used to check for pthread.h first, but this fails if pthread.h
7435 # requires special compiler flags (e.g. on True64 or Sequent).
7436 # It gets checked for in the link test anyway.
7438 # First of all, check if the user has set any of the PTHREAD_LIBS,
7439 # etcetera environment variables, and if threads linking works using
7440 # them:
7441 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7442 save_CFLAGS="$CFLAGS"
7443 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7444 save_LIBS="$LIBS"
7445 LIBS="$PTHREAD_LIBS $LIBS"
7446 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7447 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h. */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7455 /* Override any GCC internal prototype to avoid an error.
7456 Use char because int might match the return type of a GCC
7457 builtin and then its argument prototype would still apply. */
7458 #ifdef __cplusplus
7459 extern "C"
7460 #endif
7461 char pthread_join ();
7463 main ()
7465 return pthread_join ();
7467 return 0;
7469 _ACEOF
7470 rm -f conftest.$ac_objext conftest$ac_exeext
7471 if { (ac_try="$ac_link"
7472 case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_link") 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest$ac_exeext &&
7487 $as_test_x conftest$ac_exeext; then
7488 acx_pthread_ok=yes
7489 else
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7497 conftest$ac_exeext conftest.$ac_ext
7498 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7499 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7500 if test x"$acx_pthread_ok" = xno; then
7501 PTHREAD_LIBS=""
7502 PTHREAD_CFLAGS=""
7504 LIBS="$save_LIBS"
7505 CFLAGS="$save_CFLAGS"
7508 # We must check for the threads library under a number of different
7509 # names; the ordering is very important because some systems
7510 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7511 # libraries is broken (non-POSIX).
7513 # Create a list of thread flags to try. Items starting with a "-" are
7514 # C compiler flags, and other items are library names, except for "none"
7515 # which indicates that we try without any flags at all, and "pthread-config"
7516 # which is a program returning the flags for the Pth emulation library.
7518 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7520 # The ordering *is* (sometimes) important. Some notes on the
7521 # individual items follow:
7523 # pthreads: AIX (must check this before -lpthread)
7524 # none: in case threads are in libc; should be tried before -Kthread and
7525 # other compiler flags to prevent continual compiler warnings
7526 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7527 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7528 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7529 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7530 # -pthreads: Solaris/gcc
7531 # -mthreads: Mingw32/gcc, Lynx/gcc
7532 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7533 # doesn't hurt to check since this sometimes defines pthreads too;
7534 # also defines -D_REENTRANT)
7535 # ... -mt is also the pthreads flag for HP/aCC
7536 # pthread: Linux, etcetera
7537 # --thread-safe: KAI C++
7538 # pthread-config: use pthread-config program (for GNU Pth library)
7540 case "${host_cpu}-${host_os}" in
7541 *solaris*)
7543 # On Solaris (at least, for some versions), libc contains stubbed
7544 # (non-functional) versions of the pthreads routines, so link-based
7545 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7546 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7547 # a function called by this macro, so we could check for that, but
7548 # who knows whether they'll stub that too in a future libc.) So,
7549 # we'll just look for -pthreads and -lpthread first:
7551 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7553 esac
7555 if test x"$acx_pthread_ok" = xno; then
7556 for flag in $acx_pthread_flags; do
7558 case $flag in
7559 none)
7560 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7561 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7565 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7566 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7567 PTHREAD_CFLAGS="$flag"
7570 pthread-config)
7571 # Extract the first word of "pthread-config", so it can be a program name with args.
7572 set dummy pthread-config; ac_word=$2
7573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 if test -n "$acx_pthread_config"; then
7579 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_prog_acx_pthread_config="yes"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7592 done
7593 done
7594 IFS=$as_save_IFS
7596 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7599 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7600 if test -n "$acx_pthread_config"; then
7601 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7602 echo "${ECHO_T}$acx_pthread_config" >&6; }
7603 else
7604 { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7609 if test x"$acx_pthread_config" = xno; then continue; fi
7610 PTHREAD_CFLAGS="`pthread-config --cflags`"
7611 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7615 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7616 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7617 PTHREAD_LIBS="-l$flag"
7619 esac
7621 save_LIBS="$LIBS"
7622 save_CFLAGS="$CFLAGS"
7623 LIBS="$PTHREAD_LIBS $LIBS"
7624 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7626 # Check for various functions. We must include pthread.h,
7627 # since some functions may be macros. (On the Sequent, we
7628 # need a special flag -Kthread to make this header compile.)
7629 # We check for pthread_join because it is in -lpthread on IRIX
7630 # while pthread_create is in libc. We check for pthread_attr_init
7631 # due to DEC craziness with -lpthreads. We check for
7632 # pthread_cleanup_push because it is one of the few pthread
7633 # functions on Solaris that doesn't have a non-functional libc stub.
7634 # We try pthread_create on general principles.
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h. */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641 #include <pthread.h>
7643 main ()
7645 pthread_t th; pthread_join(th, 0);
7646 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7647 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (ac_try="$ac_link"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_link") 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_c_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest$ac_exeext &&
7669 $as_test_x conftest$ac_exeext; then
7670 acx_pthread_ok=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7679 conftest$ac_exeext conftest.$ac_ext
7681 LIBS="$save_LIBS"
7682 CFLAGS="$save_CFLAGS"
7684 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7685 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7686 if test "x$acx_pthread_ok" = xyes; then
7687 break;
7690 PTHREAD_LIBS=""
7691 PTHREAD_CFLAGS=""
7692 done
7695 # Various other checks:
7696 if test "x$acx_pthread_ok" = xyes; then
7697 save_LIBS="$LIBS"
7698 LIBS="$PTHREAD_LIBS $LIBS"
7699 save_CFLAGS="$CFLAGS"
7700 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7702 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7703 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7704 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7705 attr_name=unknown
7706 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7707 cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h. */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 #include <pthread.h>
7715 main ()
7717 int attr=$attr; return attr;
7719 return 0;
7721 _ACEOF
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (ac_try="$ac_link"
7724 case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7727 esac
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_link") 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && {
7736 test -z "$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 } && test -s conftest$ac_exeext &&
7739 $as_test_x conftest$ac_exeext; then
7740 attr_name=$attr; break
7741 else
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7749 conftest$ac_exeext conftest.$ac_ext
7750 done
7751 { echo "$as_me:$LINENO: result: $attr_name" >&5
7752 echo "${ECHO_T}$attr_name" >&6; }
7753 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7755 cat >>confdefs.h <<_ACEOF
7756 #define PTHREAD_CREATE_JOINABLE $attr_name
7757 _ACEOF
7761 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7762 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7763 flag=no
7764 case "${host_cpu}-${host_os}" in
7765 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7766 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7767 esac
7768 { echo "$as_me:$LINENO: result: ${flag}" >&5
7769 echo "${ECHO_T}${flag}" >&6; }
7770 if test "x$flag" != xno; then
7771 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7774 LIBS="$save_LIBS"
7775 CFLAGS="$save_CFLAGS"
7777 # More AIX lossage: must compile with xlc_r or cc_r
7778 if test x"$GCC" != xyes; then
7779 for ac_prog in xlc_r cc_r
7781 # Extract the first word of "$ac_prog", so it can be a program name with args.
7782 set dummy $ac_prog; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 if test -n "$PTHREAD_CC"; then
7789 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_prog_PTHREAD_CC="$ac_prog"
7799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7802 done
7803 done
7804 IFS=$as_save_IFS
7808 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7809 if test -n "$PTHREAD_CC"; then
7810 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7811 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7812 else
7813 { echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6; }
7818 test -n "$PTHREAD_CC" && break
7819 done
7820 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7822 else
7823 PTHREAD_CC=$CC
7825 else
7826 PTHREAD_CC="$CC"
7833 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7834 if test x"$acx_pthread_ok" = xyes; then
7836 cat >>confdefs.h <<\_ACEOF
7837 #define HAVE_PTHREAD 1
7838 _ACEOF
7841 else
7842 acx_pthread_ok=no
7845 ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7853 ac_ext=c
7854 ac_cpp='$CPP $CPPFLAGS'
7855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860 # Check whether --enable-dev-mode was given.
7861 if test "${enable_dev_mode+set}" = set; then
7862 enableval=$enable_dev_mode; case "${enableval}" in
7863 y|ye|yes) AST_DEVMODE=yes ;;
7864 n|no) AST_DEVMODE=no ;;
7865 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7866 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7867 { (exit 1); exit 1; }; } ;;
7868 esac
7873 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7874 # various packages.
7875 # $1 is the prefix for the variables in makeopts and autoconfig.h
7876 # $2 is the short comment, $4 is the long comment
7877 # $3 is the name used in --with- or --without- flags for configure.
7879 # Package option names should be in alphabetical order
7880 # by the --with option name (the third field),
7881 # to make things easier for the users.
7884 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7885 ALSA_OPTION="asound"
7887 # Check whether --with-asound was given.
7888 if test "${with_asound+set}" = set; then
7889 withval=$with_asound;
7890 case ${withval} in
7891 n|no)
7892 USE_ALSA=no
7894 y|ye|yes)
7895 ac_mandatory_list="${ac_mandatory_list} ALSA"
7898 ALSA_DIR="${withval}"
7899 ac_mandatory_list="${ac_mandatory_list} ALSA"
7901 esac
7905 PBX_ALSA=0
7912 # BKTR is used for backtrace support on platforms that do not
7913 # have it natively.
7915 BKTR_DESCRIP="Stack Backtrace support"
7916 BKTR_OPTION="execinfo"
7918 # Check whether --with-execinfo was given.
7919 if test "${with_execinfo+set}" = set; then
7920 withval=$with_execinfo;
7921 case ${withval} in
7922 n|no)
7923 USE_BKTR=no
7925 y|ye|yes)
7926 ac_mandatory_list="${ac_mandatory_list} BKTR"
7929 BKTR_DIR="${withval}"
7930 ac_mandatory_list="${ac_mandatory_list} BKTR"
7932 esac
7936 PBX_BKTR=0
7943 CAP_DESCRIP="POSIX 1.e capabilities"
7944 CAP_OPTION="cap"
7946 # Check whether --with-cap was given.
7947 if test "${with_cap+set}" = set; then
7948 withval=$with_cap;
7949 case ${withval} in
7950 n|no)
7951 USE_CAP=no
7953 y|ye|yes)
7954 ac_mandatory_list="${ac_mandatory_list} CAP"
7957 CAP_DIR="${withval}"
7958 ac_mandatory_list="${ac_mandatory_list} CAP"
7960 esac
7964 PBX_CAP=0
7971 CURL_DESCRIP="cURL"
7972 CURL_OPTION="curl"
7974 # Check whether --with-curl was given.
7975 if test "${with_curl+set}" = set; then
7976 withval=$with_curl;
7977 case ${withval} in
7978 n|no)
7979 USE_CURL=no
7981 y|ye|yes)
7982 ac_mandatory_list="${ac_mandatory_list} CURL"
7985 CURL_DIR="${withval}"
7986 ac_mandatory_list="${ac_mandatory_list} CURL"
7988 esac
7992 PBX_CURL=0
7999 CURSES_DESCRIP="curses"
8000 CURSES_OPTION="curses"
8002 # Check whether --with-curses was given.
8003 if test "${with_curses+set}" = set; then
8004 withval=$with_curses;
8005 case ${withval} in
8006 n|no)
8007 USE_CURSES=no
8009 y|ye|yes)
8010 ac_mandatory_list="${ac_mandatory_list} CURSES"
8013 CURSES_DIR="${withval}"
8014 ac_mandatory_list="${ac_mandatory_list} CURSES"
8016 esac
8020 PBX_CURSES=0
8027 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8028 CRYPTO_OPTION="crypto"
8030 # Check whether --with-crypto was given.
8031 if test "${with_crypto+set}" = set; then
8032 withval=$with_crypto;
8033 case ${withval} in
8034 n|no)
8035 USE_CRYPTO=no
8037 y|ye|yes)
8038 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8041 CRYPTO_DIR="${withval}"
8042 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8044 esac
8048 PBX_CRYPTO=0
8055 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8056 FFMPEG_OPTION="avcodec"
8058 # Check whether --with-avcodec was given.
8059 if test "${with_avcodec+set}" = set; then
8060 withval=$with_avcodec;
8061 case ${withval} in
8062 n|no)
8063 USE_FFMPEG=no
8065 y|ye|yes)
8066 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8069 FFMPEG_DIR="${withval}"
8070 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8072 esac
8076 PBX_FFMPEG=0
8083 GSM_DESCRIP="External GSM library"
8084 GSM_OPTION="gsm"
8086 # Check whether --with-gsm was given.
8087 if test "${with_gsm+set}" = set; then
8088 withval=$with_gsm;
8089 case ${withval} in
8090 n|no)
8091 USE_GSM=no
8093 y|ye|yes)
8094 ac_mandatory_list="${ac_mandatory_list} GSM"
8097 GSM_DIR="${withval}"
8098 ac_mandatory_list="${ac_mandatory_list} GSM"
8100 esac
8104 PBX_GSM=0
8111 GTK_DESCRIP="gtk libraries"
8112 GTK_OPTION="gtk"
8114 # Check whether --with-gtk was given.
8115 if test "${with_gtk+set}" = set; then
8116 withval=$with_gtk;
8117 case ${withval} in
8118 n|no)
8119 USE_GTK=no
8121 y|ye|yes)
8122 ac_mandatory_list="${ac_mandatory_list} GTK"
8125 GTK_DIR="${withval}"
8126 ac_mandatory_list="${ac_mandatory_list} GTK"
8128 esac
8132 PBX_GTK=0
8139 GTK2_DESCRIP="gtk2 libraries"
8140 GTK2_OPTION="gtk2"
8142 # Check whether --with-gtk2 was given.
8143 if test "${with_gtk2+set}" = set; then
8144 withval=$with_gtk2;
8145 case ${withval} in
8146 n|no)
8147 USE_GTK2=no
8149 y|ye|yes)
8150 ac_mandatory_list="${ac_mandatory_list} GTK2"
8153 GTK2_DIR="${withval}"
8154 ac_mandatory_list="${ac_mandatory_list} GTK2"
8156 esac
8160 PBX_GTK2=0
8167 GMIME_DESCRIP="GMime library"
8168 GMIME_OPTION="gmime"
8170 # Check whether --with-gmime was given.
8171 if test "${with_gmime+set}" = set; then
8172 withval=$with_gmime;
8173 case ${withval} in
8174 n|no)
8175 USE_GMIME=no
8177 y|ye|yes)
8178 ac_mandatory_list="${ac_mandatory_list} GMIME"
8181 GMIME_DIR="${withval}"
8182 ac_mandatory_list="${ac_mandatory_list} GMIME"
8184 esac
8188 PBX_GMIME=0
8195 ICONV_DESCRIP="Iconv Library"
8196 ICONV_OPTION="iconv"
8198 # Check whether --with-iconv was given.
8199 if test "${with_iconv+set}" = set; then
8200 withval=$with_iconv;
8201 case ${withval} in
8202 n|no)
8203 USE_ICONV=no
8205 y|ye|yes)
8206 ac_mandatory_list="${ac_mandatory_list} ICONV"
8209 ICONV_DIR="${withval}"
8210 ac_mandatory_list="${ac_mandatory_list} ICONV"
8212 esac
8216 PBX_ICONV=0
8223 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8224 IKSEMEL_OPTION="iksemel"
8226 # Check whether --with-iksemel was given.
8227 if test "${with_iksemel+set}" = set; then
8228 withval=$with_iksemel;
8229 case ${withval} in
8230 n|no)
8231 USE_IKSEMEL=no
8233 y|ye|yes)
8234 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8237 IKSEMEL_DIR="${withval}"
8238 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8240 esac
8244 PBX_IKSEMEL=0
8251 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8252 IMAP_TK_OPTION="imap"
8254 # Check whether --with-imap was given.
8255 if test "${with_imap+set}" = set; then
8256 withval=$with_imap;
8257 case ${withval} in
8258 n|no)
8259 USE_IMAP_TK=no
8261 y|ye|yes)
8262 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8265 IMAP_TK_DIR="${withval}"
8266 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8268 esac
8272 PBX_IMAP_TK=0
8279 ISDNNET_DESCRIP="ISDN4Linux Library"
8280 ISDNNET_OPTION="isdnnet"
8282 # Check whether --with-isdnnet was given.
8283 if test "${with_isdnnet+set}" = set; then
8284 withval=$with_isdnnet;
8285 case ${withval} in
8286 n|no)
8287 USE_ISDNNET=no
8289 y|ye|yes)
8290 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8293 ISDNNET_DIR="${withval}"
8294 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8296 esac
8300 PBX_ISDNNET=0
8307 JACK_DESCRIP="Jack Audio Connection Kit"
8308 JACK_OPTION="jack"
8310 # Check whether --with-jack was given.
8311 if test "${with_jack+set}" = set; then
8312 withval=$with_jack;
8313 case ${withval} in
8314 n|no)
8315 USE_JACK=no
8317 y|ye|yes)
8318 ac_mandatory_list="${ac_mandatory_list} JACK"
8321 JACK_DIR="${withval}"
8322 ac_mandatory_list="${ac_mandatory_list} JACK"
8324 esac
8328 PBX_JACK=0
8335 LDAP_DESCRIP="OpenLDAP"
8336 LDAP_OPTION="ldap"
8338 # Check whether --with-ldap was given.
8339 if test "${with_ldap+set}" = set; then
8340 withval=$with_ldap;
8341 case ${withval} in
8342 n|no)
8343 USE_LDAP=no
8345 y|ye|yes)
8346 ac_mandatory_list="${ac_mandatory_list} LDAP"
8349 LDAP_DIR="${withval}"
8350 ac_mandatory_list="${ac_mandatory_list} LDAP"
8352 esac
8356 PBX_LDAP=0
8363 LTDL_DESCRIP="libtool"
8364 LTDL_OPTION="ltdl"
8366 # Check whether --with-ltdl was given.
8367 if test "${with_ltdl+set}" = set; then
8368 withval=$with_ltdl;
8369 case ${withval} in
8370 n|no)
8371 USE_LTDL=no
8373 y|ye|yes)
8374 ac_mandatory_list="${ac_mandatory_list} LTDL"
8377 LTDL_DIR="${withval}"
8378 ac_mandatory_list="${ac_mandatory_list} LTDL"
8380 esac
8384 PBX_LTDL=0
8391 LUA_DESCRIP="Lua"
8392 LUA_OPTION="lua"
8394 # Check whether --with-lua was given.
8395 if test "${with_lua+set}" = set; then
8396 withval=$with_lua;
8397 case ${withval} in
8398 n|no)
8399 USE_LUA=no
8401 y|ye|yes)
8402 ac_mandatory_list="${ac_mandatory_list} LUA"
8405 LUA_DIR="${withval}"
8406 ac_mandatory_list="${ac_mandatory_list} LUA"
8408 esac
8412 PBX_LUA=0
8419 MISDN_DESCRIP="mISDN User Library"
8420 MISDN_OPTION="misdn"
8422 # Check whether --with-misdn was given.
8423 if test "${with_misdn+set}" = set; then
8424 withval=$with_misdn;
8425 case ${withval} in
8426 n|no)
8427 USE_MISDN=no
8429 y|ye|yes)
8430 ac_mandatory_list="${ac_mandatory_list} MISDN"
8433 MISDN_DIR="${withval}"
8434 ac_mandatory_list="${ac_mandatory_list} MISDN"
8436 esac
8440 PBX_MISDN=0
8447 NBS_DESCRIP="Network Broadcast Sound"
8448 NBS_OPTION="nbs"
8450 # Check whether --with-nbs was given.
8451 if test "${with_nbs+set}" = set; then
8452 withval=$with_nbs;
8453 case ${withval} in
8454 n|no)
8455 USE_NBS=no
8457 y|ye|yes)
8458 ac_mandatory_list="${ac_mandatory_list} NBS"
8461 NBS_DIR="${withval}"
8462 ac_mandatory_list="${ac_mandatory_list} NBS"
8464 esac
8468 PBX_NBS=0
8475 NCURSES_DESCRIP="ncurses"
8476 NCURSES_OPTION="ncurses"
8478 # Check whether --with-ncurses was given.
8479 if test "${with_ncurses+set}" = set; then
8480 withval=$with_ncurses;
8481 case ${withval} in
8482 n|no)
8483 USE_NCURSES=no
8485 y|ye|yes)
8486 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8489 NCURSES_DIR="${withval}"
8490 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8492 esac
8496 PBX_NCURSES=0
8503 NETSNMP_DESCRIP="Net-SNMP"
8504 NETSNMP_OPTION="netsnmp"
8506 # Check whether --with-netsnmp was given.
8507 if test "${with_netsnmp+set}" = set; then
8508 withval=$with_netsnmp;
8509 case ${withval} in
8510 n|no)
8511 USE_NETSNMP=no
8513 y|ye|yes)
8514 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8517 NETSNMP_DIR="${withval}"
8518 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8520 esac
8524 PBX_NETSNMP=0
8531 NEWT_DESCRIP="newt"
8532 NEWT_OPTION="newt"
8534 # Check whether --with-newt was given.
8535 if test "${with_newt+set}" = set; then
8536 withval=$with_newt;
8537 case ${withval} in
8538 n|no)
8539 USE_NEWT=no
8541 y|ye|yes)
8542 ac_mandatory_list="${ac_mandatory_list} NEWT"
8545 NEWT_DIR="${withval}"
8546 ac_mandatory_list="${ac_mandatory_list} NEWT"
8548 esac
8552 PBX_NEWT=0
8559 UNIXODBC_DESCRIP="unixODBC"
8560 UNIXODBC_OPTION="odbc"
8562 # Check whether --with-odbc was given.
8563 if test "${with_odbc+set}" = set; then
8564 withval=$with_odbc;
8565 case ${withval} in
8566 n|no)
8567 USE_UNIXODBC=no
8569 y|ye|yes)
8570 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8573 UNIXODBC_DIR="${withval}"
8574 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8576 esac
8580 PBX_UNIXODBC=0
8587 OGG_DESCRIP="OGG"
8588 OGG_OPTION="ogg"
8590 # Check whether --with-ogg was given.
8591 if test "${with_ogg+set}" = set; then
8592 withval=$with_ogg;
8593 case ${withval} in
8594 n|no)
8595 USE_OGG=no
8597 y|ye|yes)
8598 ac_mandatory_list="${ac_mandatory_list} OGG"
8601 OGG_DIR="${withval}"
8602 ac_mandatory_list="${ac_mandatory_list} OGG"
8604 esac
8608 PBX_OGG=0
8615 OSPTK_DESCRIP="OSP Toolkit"
8616 OSPTK_OPTION="osptk"
8618 # Check whether --with-osptk was given.
8619 if test "${with_osptk+set}" = set; then
8620 withval=$with_osptk;
8621 case ${withval} in
8622 n|no)
8623 USE_OSPTK=no
8625 y|ye|yes)
8626 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8629 OSPTK_DIR="${withval}"
8630 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8632 esac
8636 PBX_OSPTK=0
8643 OSS_DESCRIP="Open Sound System"
8644 OSS_OPTION="oss"
8646 # Check whether --with-oss was given.
8647 if test "${with_oss+set}" = set; then
8648 withval=$with_oss;
8649 case ${withval} in
8650 n|no)
8651 USE_OSS=no
8653 y|ye|yes)
8654 ac_mandatory_list="${ac_mandatory_list} OSS"
8657 OSS_DIR="${withval}"
8658 ac_mandatory_list="${ac_mandatory_list} OSS"
8660 esac
8664 PBX_OSS=0
8671 PGSQL_DESCRIP="PostgreSQL"
8672 PGSQL_OPTION="postgres"
8674 # Check whether --with-postgres was given.
8675 if test "${with_postgres+set}" = set; then
8676 withval=$with_postgres;
8677 case ${withval} in
8678 n|no)
8679 USE_PGSQL=no
8681 y|ye|yes)
8682 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8685 PGSQL_DIR="${withval}"
8686 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8688 esac
8692 PBX_PGSQL=0
8699 POPT_DESCRIP="popt"
8700 POPT_OPTION="popt"
8702 # Check whether --with-popt was given.
8703 if test "${with_popt+set}" = set; then
8704 withval=$with_popt;
8705 case ${withval} in
8706 n|no)
8707 USE_POPT=no
8709 y|ye|yes)
8710 ac_mandatory_list="${ac_mandatory_list} POPT"
8713 POPT_DIR="${withval}"
8714 ac_mandatory_list="${ac_mandatory_list} POPT"
8716 esac
8720 PBX_POPT=0
8727 PORTAUDIO_DESCRIP="PortAudio"
8728 PORTAUDIO_OPTION="portaudio"
8730 # Check whether --with-portaudio was given.
8731 if test "${with_portaudio+set}" = set; then
8732 withval=$with_portaudio;
8733 case ${withval} in
8734 n|no)
8735 USE_PORTAUDIO=no
8737 y|ye|yes)
8738 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8741 PORTAUDIO_DIR="${withval}"
8742 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8744 esac
8748 PBX_PORTAUDIO=0
8755 PRI_DESCRIP="ISDN PRI"
8756 PRI_OPTION="pri"
8758 # Check whether --with-pri was given.
8759 if test "${with_pri+set}" = set; then
8760 withval=$with_pri;
8761 case ${withval} in
8762 n|no)
8763 USE_PRI=no
8765 y|ye|yes)
8766 ac_mandatory_list="${ac_mandatory_list} PRI"
8769 PRI_DIR="${withval}"
8770 ac_mandatory_list="${ac_mandatory_list} PRI"
8772 esac
8776 PBX_PRI=0
8783 SS7_DESCRIP="ISDN SS7"
8784 SS7_OPTION="ss7"
8786 # Check whether --with-ss7 was given.
8787 if test "${with_ss7+set}" = set; then
8788 withval=$with_ss7;
8789 case ${withval} in
8790 n|no)
8791 USE_SS7=no
8793 y|ye|yes)
8794 ac_mandatory_list="${ac_mandatory_list} SS7"
8797 SS7_DIR="${withval}"
8798 ac_mandatory_list="${ac_mandatory_list} SS7"
8800 esac
8804 PBX_SS7=0
8811 PWLIB_DESCRIP="PWlib"
8812 PWLIB_OPTION="pwlib"
8814 # Check whether --with-pwlib was given.
8815 if test "${with_pwlib+set}" = set; then
8816 withval=$with_pwlib;
8817 case ${withval} in
8818 n|no)
8819 USE_PWLIB=no
8821 y|ye|yes)
8822 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8825 PWLIB_DIR="${withval}"
8826 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8828 esac
8832 PBX_PWLIB=0
8839 OPENH323_DESCRIP="OpenH323"
8840 OPENH323_OPTION="h323"
8842 # Check whether --with-h323 was given.
8843 if test "${with_h323+set}" = set; then
8844 withval=$with_h323;
8845 case ${withval} in
8846 n|no)
8847 USE_OPENH323=no
8849 y|ye|yes)
8850 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8853 OPENH323_DIR="${withval}"
8854 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8856 esac
8860 PBX_OPENH323=0
8867 RADIUS_DESCRIP="Radius Client"
8868 RADIUS_OPTION="radius"
8870 # Check whether --with-radius was given.
8871 if test "${with_radius+set}" = set; then
8872 withval=$with_radius;
8873 case ${withval} in
8874 n|no)
8875 USE_RADIUS=no
8877 y|ye|yes)
8878 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8881 RADIUS_DIR="${withval}"
8882 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8884 esac
8888 PBX_RADIUS=0
8895 SDL_DESCRIP="Sdl"
8896 SDL_OPTION="sdl"
8898 # Check whether --with-sdl was given.
8899 if test "${with_sdl+set}" = set; then
8900 withval=$with_sdl;
8901 case ${withval} in
8902 n|no)
8903 USE_SDL=no
8905 y|ye|yes)
8906 ac_mandatory_list="${ac_mandatory_list} SDL"
8909 SDL_DIR="${withval}"
8910 ac_mandatory_list="${ac_mandatory_list} SDL"
8912 esac
8916 PBX_SDL=0
8923 SDL_IMAGE_DESCRIP="Sdl Image library"
8924 SDL_IMAGE_OPTION="SDL_image"
8926 # Check whether --with-SDL_image was given.
8927 if test "${with_SDL_image+set}" = set; then
8928 withval=$with_SDL_image;
8929 case ${withval} in
8930 n|no)
8931 USE_SDL_IMAGE=no
8933 y|ye|yes)
8934 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8937 SDL_IMAGE_DIR="${withval}"
8938 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8940 esac
8944 PBX_SDL_IMAGE=0
8951 SPEEX_DESCRIP="Speex"
8952 SPEEX_OPTION="speex"
8954 # Check whether --with-speex was given.
8955 if test "${with_speex+set}" = set; then
8956 withval=$with_speex;
8957 case ${withval} in
8958 n|no)
8959 USE_SPEEX=no
8961 y|ye|yes)
8962 ac_mandatory_list="${ac_mandatory_list} SPEEX"
8965 SPEEX_DIR="${withval}"
8966 ac_mandatory_list="${ac_mandatory_list} SPEEX"
8968 esac
8972 PBX_SPEEX=0
8979 SPEEXDSP_DESCRIP="Speexdsp"
8980 SPEEXDSP_OPTION="speexdsp"
8982 # Check whether --with-speexdsp was given.
8983 if test "${with_speexdsp+set}" = set; then
8984 withval=$with_speexdsp;
8985 case ${withval} in
8986 n|no)
8987 USE_SPEEXDSP=no
8989 y|ye|yes)
8990 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
8993 SPEEXDSP_DIR="${withval}"
8994 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
8996 esac
9000 PBX_SPEEXDSP=0
9007 SQLITE_DESCRIP="SQLite"
9008 SQLITE_OPTION="sqlite"
9010 # Check whether --with-sqlite was given.
9011 if test "${with_sqlite+set}" = set; then
9012 withval=$with_sqlite;
9013 case ${withval} in
9014 n|no)
9015 USE_SQLITE=no
9017 y|ye|yes)
9018 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9021 SQLITE_DIR="${withval}"
9022 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9024 esac
9028 PBX_SQLITE=0
9035 SQLITE3_DESCRIP="SQLite"
9036 SQLITE3_OPTION="sqlite3"
9038 # Check whether --with-sqlite3 was given.
9039 if test "${with_sqlite3+set}" = set; then
9040 withval=$with_sqlite3;
9041 case ${withval} in
9042 n|no)
9043 USE_SQLITE3=no
9045 y|ye|yes)
9046 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9049 SQLITE3_DIR="${withval}"
9050 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9052 esac
9056 PBX_SQLITE3=0
9063 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9064 SUPPSERV_OPTION="suppserv"
9066 # Check whether --with-suppserv was given.
9067 if test "${with_suppserv+set}" = set; then
9068 withval=$with_suppserv;
9069 case ${withval} in
9070 n|no)
9071 USE_SUPPSERV=no
9073 y|ye|yes)
9074 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9077 SUPPSERV_DIR="${withval}"
9078 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9080 esac
9084 PBX_SUPPSERV=0
9091 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9092 OPENSSL_OPTION="ssl"
9094 # Check whether --with-ssl was given.
9095 if test "${with_ssl+set}" = set; then
9096 withval=$with_ssl;
9097 case ${withval} in
9098 n|no)
9099 USE_OPENSSL=no
9101 y|ye|yes)
9102 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9105 OPENSSL_DIR="${withval}"
9106 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9108 esac
9112 PBX_OPENSSL=0
9119 FREETDS_DESCRIP="FreeTDS"
9120 FREETDS_OPTION="tds"
9122 # Check whether --with-tds was given.
9123 if test "${with_tds+set}" = set; then
9124 withval=$with_tds;
9125 case ${withval} in
9126 n|no)
9127 USE_FREETDS=no
9129 y|ye|yes)
9130 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9133 FREETDS_DIR="${withval}"
9134 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9136 esac
9140 PBX_FREETDS=0
9147 TERMCAP_DESCRIP="Termcap"
9148 TERMCAP_OPTION="termcap"
9150 # Check whether --with-termcap was given.
9151 if test "${with_termcap+set}" = set; then
9152 withval=$with_termcap;
9153 case ${withval} in
9154 n|no)
9155 USE_TERMCAP=no
9157 y|ye|yes)
9158 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9161 TERMCAP_DIR="${withval}"
9162 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9164 esac
9168 PBX_TERMCAP=0
9175 TINFO_DESCRIP="Term Info"
9176 TINFO_OPTION="tinfo"
9178 # Check whether --with-tinfo was given.
9179 if test "${with_tinfo+set}" = set; then
9180 withval=$with_tinfo;
9181 case ${withval} in
9182 n|no)
9183 USE_TINFO=no
9185 y|ye|yes)
9186 ac_mandatory_list="${ac_mandatory_list} TINFO"
9189 TINFO_DIR="${withval}"
9190 ac_mandatory_list="${ac_mandatory_list} TINFO"
9192 esac
9196 PBX_TINFO=0
9203 TONEZONE_DESCRIP="tonezone"
9204 TONEZONE_OPTION="tonezone"
9206 # Check whether --with-tonezone was given.
9207 if test "${with_tonezone+set}" = set; then
9208 withval=$with_tonezone;
9209 case ${withval} in
9210 n|no)
9211 USE_TONEZONE=no
9213 y|ye|yes)
9214 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9217 TONEZONE_DIR="${withval}"
9218 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9220 esac
9224 PBX_TONEZONE=0
9231 USB_DESCRIP="usb"
9232 USB_OPTION="usb"
9234 # Check whether --with-usb was given.
9235 if test "${with_usb+set}" = set; then
9236 withval=$with_usb;
9237 case ${withval} in
9238 n|no)
9239 USE_USB=no
9241 y|ye|yes)
9242 ac_mandatory_list="${ac_mandatory_list} USB"
9245 USB_DIR="${withval}"
9246 ac_mandatory_list="${ac_mandatory_list} USB"
9248 esac
9252 PBX_USB=0
9259 VORBIS_DESCRIP="Vorbis"
9260 VORBIS_OPTION="vorbis"
9262 # Check whether --with-vorbis was given.
9263 if test "${with_vorbis+set}" = set; then
9264 withval=$with_vorbis;
9265 case ${withval} in
9266 n|no)
9267 USE_VORBIS=no
9269 y|ye|yes)
9270 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9273 VORBIS_DIR="${withval}"
9274 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9276 esac
9280 PBX_VORBIS=0
9287 VPB_DESCRIP="Voicetronix API"
9288 VPB_OPTION="vpb"
9290 # Check whether --with-vpb was given.
9291 if test "${with_vpb+set}" = set; then
9292 withval=$with_vpb;
9293 case ${withval} in
9294 n|no)
9295 USE_VPB=no
9297 y|ye|yes)
9298 ac_mandatory_list="${ac_mandatory_list} VPB"
9301 VPB_DIR="${withval}"
9302 ac_mandatory_list="${ac_mandatory_list} VPB"
9304 esac
9308 PBX_VPB=0
9315 X11_DESCRIP="X11 support"
9316 X11_OPTION="x11"
9318 # Check whether --with-x11 was given.
9319 if test "${with_x11+set}" = set; then
9320 withval=$with_x11;
9321 case ${withval} in
9322 n|no)
9323 USE_X11=no
9325 y|ye|yes)
9326 ac_mandatory_list="${ac_mandatory_list} X11"
9329 X11_DIR="${withval}"
9330 ac_mandatory_list="${ac_mandatory_list} X11"
9332 esac
9336 PBX_X11=0
9343 ZLIB_DESCRIP="zlib"
9344 ZLIB_OPTION="z"
9346 # Check whether --with-z was given.
9347 if test "${with_z+set}" = set; then
9348 withval=$with_z;
9349 case ${withval} in
9350 n|no)
9351 USE_ZLIB=no
9353 y|ye|yes)
9354 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9357 ZLIB_DIR="${withval}"
9358 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9360 esac
9364 PBX_ZLIB=0
9371 ZAPTEL_DESCRIP="Zaptel"
9372 ZAPTEL_OPTION="zaptel"
9374 # Check whether --with-zaptel was given.
9375 if test "${with_zaptel+set}" = set; then
9376 withval=$with_zaptel;
9377 case ${withval} in
9378 n|no)
9379 USE_ZAPTEL=no
9381 y|ye|yes)
9382 ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
9385 ZAPTEL_DIR="${withval}"
9386 ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
9388 esac
9392 PBX_ZAPTEL=0
9399 # check for basic system features and functionality before
9400 # checking for package libraries
9402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9403 # for constant arguments. Useless!
9404 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9405 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9406 if test "${ac_cv_working_alloca_h+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 #include <alloca.h>
9417 main ()
9419 char *p = (char *) alloca (2 * sizeof (int));
9420 if (p) return 0;
9422 return 0;
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9427 case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430 esac
9431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_link") 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && {
9439 test -z "$ac_c_werror_flag" ||
9440 test ! -s conftest.err
9441 } && test -s conftest$ac_exeext &&
9442 $as_test_x conftest$ac_exeext; then
9443 ac_cv_working_alloca_h=yes
9444 else
9445 echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9448 ac_cv_working_alloca_h=no
9451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452 conftest$ac_exeext conftest.$ac_ext
9454 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9455 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9456 if test $ac_cv_working_alloca_h = yes; then
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_ALLOCA_H 1
9460 _ACEOF
9464 { echo "$as_me:$LINENO: checking for alloca" >&5
9465 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9466 if test "${ac_cv_func_alloca_works+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 #ifdef __GNUC__
9476 # define alloca __builtin_alloca
9477 #else
9478 # ifdef _MSC_VER
9479 # include <malloc.h>
9480 # define alloca _alloca
9481 # else
9482 # ifdef HAVE_ALLOCA_H
9483 # include <alloca.h>
9484 # else
9485 # ifdef _AIX
9486 #pragma alloca
9487 # else
9488 # ifndef alloca /* predefined by HP cc +Olibcalls */
9489 char *alloca ();
9490 # endif
9491 # endif
9492 # endif
9493 # endif
9494 #endif
9497 main ()
9499 char *p = (char *) alloca (1);
9500 if (p) return 0;
9502 return 0;
9504 _ACEOF
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (ac_try="$ac_link"
9507 case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9510 esac
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_link") 2>conftest.er1
9513 ac_status=$?
9514 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && {
9519 test -z "$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 } && test -s conftest$ac_exeext &&
9522 $as_test_x conftest$ac_exeext; then
9523 ac_cv_func_alloca_works=yes
9524 else
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ac_cv_func_alloca_works=no
9531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9532 conftest$ac_exeext conftest.$ac_ext
9534 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9535 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9537 if test $ac_cv_func_alloca_works = yes; then
9539 cat >>confdefs.h <<\_ACEOF
9540 #define HAVE_ALLOCA 1
9541 _ACEOF
9543 else
9544 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9545 # that cause trouble. Some versions do not even contain alloca or
9546 # contain a buggy version. If you still want to use their alloca,
9547 # use ar to extract alloca.o from them instead of compiling alloca.c.
9549 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9551 cat >>confdefs.h <<\_ACEOF
9552 #define C_ALLOCA 1
9553 _ACEOF
9556 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9557 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9558 if test "${ac_cv_os_cray+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 #if defined CRAY && ! defined CRAY2
9568 webecray
9569 #else
9570 wenotbecray
9571 #endif
9573 _ACEOF
9574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9575 $EGREP "webecray" >/dev/null 2>&1; then
9576 ac_cv_os_cray=yes
9577 else
9578 ac_cv_os_cray=no
9580 rm -f conftest*
9583 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9584 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9585 if test $ac_cv_os_cray = yes; then
9586 for ac_func in _getb67 GETB67 getb67; do
9587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h. */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9601 #define $ac_func innocuous_$ac_func
9603 /* System header to define __stub macros and hopefully few prototypes,
9604 which can conflict with char $ac_func (); below.
9605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9606 <limits.h> exists even on freestanding compilers. */
9608 #ifdef __STDC__
9609 # include <limits.h>
9610 #else
9611 # include <assert.h>
9612 #endif
9614 #undef $ac_func
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 char $ac_func ();
9623 /* The GNU C library defines this for functions which it implements
9624 to always fail with ENOSYS. Some functions are actually named
9625 something starting with __ and the normal name is an alias. */
9626 #if defined __stub_$ac_func || defined __stub___$ac_func
9627 choke me
9628 #endif
9631 main ()
9633 return $ac_func ();
9635 return 0;
9637 _ACEOF
9638 rm -f conftest.$ac_objext conftest$ac_exeext
9639 if { (ac_try="$ac_link"
9640 case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_link") 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && {
9652 test -z "$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 } && test -s conftest$ac_exeext &&
9655 $as_test_x conftest$ac_exeext; then
9656 eval "$as_ac_var=yes"
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9661 eval "$as_ac_var=no"
9664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665 conftest$ac_exeext conftest.$ac_ext
9667 ac_res=`eval echo '${'$as_ac_var'}'`
9668 { echo "$as_me:$LINENO: result: $ac_res" >&5
9669 echo "${ECHO_T}$ac_res" >&6; }
9670 if test `eval echo '${'$as_ac_var'}'` = yes; then
9672 cat >>confdefs.h <<_ACEOF
9673 #define CRAY_STACKSEG_END $ac_func
9674 _ACEOF
9676 break
9679 done
9682 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9683 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9684 if test "${ac_cv_c_stack_direction+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687 if test "$cross_compiling" = yes; then
9688 ac_cv_c_stack_direction=0
9689 else
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h. */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 $ac_includes_default
9698 find_stack_direction ()
9700 static char *addr = 0;
9701 auto char dummy;
9702 if (addr == 0)
9704 addr = &dummy;
9705 return find_stack_direction ();
9707 else
9708 return (&dummy > addr) ? 1 : -1;
9712 main ()
9714 return find_stack_direction () < 0;
9716 _ACEOF
9717 rm -f conftest$ac_exeext
9718 if { (ac_try="$ac_link"
9719 case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722 esac
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_link") 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9728 { (case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_try") 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_c_stack_direction=1
9738 else
9739 echo "$as_me: program exited with status $ac_status" >&5
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ( exit $ac_status )
9744 ac_cv_c_stack_direction=-1
9746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9751 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9752 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9754 cat >>confdefs.h <<_ACEOF
9755 #define STACK_DIRECTION $ac_cv_c_stack_direction
9756 _ACEOF
9766 ac_header_dirent=no
9767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9768 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9769 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9770 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h. */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780 #include <sys/types.h>
9781 #include <$ac_hdr>
9784 main ()
9786 if ((DIR *) 0)
9787 return 0;
9789 return 0;
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (ac_try="$ac_compile"
9794 case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_compile") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && {
9806 test -z "$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 } && test -s conftest.$ac_objext; then
9809 eval "$as_ac_Header=yes"
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 eval "$as_ac_Header=no"
9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819 ac_res=`eval echo '${'$as_ac_Header'}'`
9820 { echo "$as_me:$LINENO: result: $ac_res" >&5
9821 echo "${ECHO_T}$ac_res" >&6; }
9822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9823 cat >>confdefs.h <<_ACEOF
9824 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9825 _ACEOF
9827 ac_header_dirent=$ac_hdr; break
9830 done
9831 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9832 if test $ac_header_dirent = dirent.h; then
9833 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9834 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9835 if test "${ac_cv_search_opendir+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838 ac_func_search_save_LIBS=$LIBS
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char opendir ();
9854 main ()
9856 return opendir ();
9858 return 0;
9860 _ACEOF
9861 for ac_lib in '' dir; do
9862 if test -z "$ac_lib"; then
9863 ac_res="none required"
9864 else
9865 ac_res=-l$ac_lib
9866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9870 case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_link") 2>conftest.er1
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } && {
9882 test -z "$ac_c_werror_flag" ||
9883 test ! -s conftest.err
9884 } && test -s conftest$ac_exeext &&
9885 $as_test_x conftest$ac_exeext; then
9886 ac_cv_search_opendir=$ac_res
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9895 conftest$ac_exeext
9896 if test "${ac_cv_search_opendir+set}" = set; then
9897 break
9899 done
9900 if test "${ac_cv_search_opendir+set}" = set; then
9902 else
9903 ac_cv_search_opendir=no
9905 rm conftest.$ac_ext
9906 LIBS=$ac_func_search_save_LIBS
9908 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9909 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9910 ac_res=$ac_cv_search_opendir
9911 if test "$ac_res" != no; then
9912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9916 else
9917 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9918 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9919 if test "${ac_cv_search_opendir+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922 ac_func_search_save_LIBS=$LIBS
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9930 /* Override any GCC internal prototype to avoid an error.
9931 Use char because int might match the return type of a GCC
9932 builtin and then its argument prototype would still apply. */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 char opendir ();
9938 main ()
9940 return opendir ();
9942 return 0;
9944 _ACEOF
9945 for ac_lib in '' x; do
9946 if test -z "$ac_lib"; then
9947 ac_res="none required"
9948 else
9949 ac_res=-l$ac_lib
9950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext &&
9969 $as_test_x conftest$ac_exeext; then
9970 ac_cv_search_opendir=$ac_res
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext
9980 if test "${ac_cv_search_opendir+set}" = set; then
9981 break
9983 done
9984 if test "${ac_cv_search_opendir+set}" = set; then
9986 else
9987 ac_cv_search_opendir=no
9989 rm conftest.$ac_ext
9990 LIBS=$ac_func_search_save_LIBS
9992 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9993 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9994 ac_res=$ac_cv_search_opendir
9995 if test "$ac_res" != no; then
9996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10002 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10003 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10004 if test "${ac_cv_header_stdc+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <stdlib.h>
10014 #include <stdarg.h>
10015 #include <string.h>
10016 #include <float.h>
10019 main ()
10023 return 0;
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (ac_try="$ac_compile"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_compile") 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest.$ac_objext; then
10043 ac_cv_header_stdc=yes
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_cv_header_stdc=no
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 if test $ac_cv_header_stdc = yes; then
10054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10055 cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h. */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061 #include <string.h>
10063 _ACEOF
10064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10065 $EGREP "memchr" >/dev/null 2>&1; then
10067 else
10068 ac_cv_header_stdc=no
10070 rm -f conftest*
10074 if test $ac_cv_header_stdc = yes; then
10075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 #include <stdlib.h>
10084 _ACEOF
10085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10086 $EGREP "free" >/dev/null 2>&1; then
10088 else
10089 ac_cv_header_stdc=no
10091 rm -f conftest*
10095 if test $ac_cv_header_stdc = yes; then
10096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10097 if test "$cross_compiling" = yes; then
10099 else
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h. */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 #include <ctype.h>
10107 #include <stdlib.h>
10108 #if ((' ' & 0x0FF) == 0x020)
10109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10111 #else
10112 # define ISLOWER(c) \
10113 (('a' <= (c) && (c) <= 'i') \
10114 || ('j' <= (c) && (c) <= 'r') \
10115 || ('s' <= (c) && (c) <= 'z'))
10116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10117 #endif
10119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10121 main ()
10123 int i;
10124 for (i = 0; i < 256; i++)
10125 if (XOR (islower (i), ISLOWER (i))
10126 || toupper (i) != TOUPPER (i))
10127 return 2;
10128 return 0;
10130 _ACEOF
10131 rm -f conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_link") 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10142 { (case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_try") 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10152 else
10153 echo "$as_me: program exited with status $ac_status" >&5
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ( exit $ac_status )
10158 ac_cv_header_stdc=no
10160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10166 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10167 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10168 if test $ac_cv_header_stdc = yes; then
10170 cat >>confdefs.h <<\_ACEOF
10171 #define STDC_HEADERS 1
10172 _ACEOF
10176 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10177 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10178 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h. */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 #include <sys/types.h>
10188 #include <sys/wait.h>
10189 #ifndef WEXITSTATUS
10190 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10191 #endif
10192 #ifndef WIFEXITED
10193 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10194 #endif
10197 main ()
10199 int s;
10200 wait (&s);
10201 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10203 return 0;
10205 _ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (ac_try="$ac_compile"
10208 case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211 esac
10212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213 (eval "$ac_compile") 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } && {
10220 test -z "$ac_c_werror_flag" ||
10221 test ! -s conftest.err
10222 } && test -s conftest.$ac_objext; then
10223 ac_cv_header_sys_wait_h=yes
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ac_cv_header_sys_wait_h=no
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10234 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10235 if test $ac_cv_header_sys_wait_h = yes; then
10237 cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_SYS_WAIT_H 1
10239 _ACEOF
10266 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
10268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 ac_res=`eval echo '${'$as_ac_Header'}'`
10276 { echo "$as_me:$LINENO: result: $ac_res" >&5
10277 echo "${ECHO_T}$ac_res" >&6; }
10278 else
10279 # Is the header compilable?
10280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
10289 #include <$ac_header>
10290 _ACEOF
10291 rm -f conftest.$ac_objext
10292 if { (ac_try="$ac_compile"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_compile") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest.$ac_objext; then
10308 ac_header_compiler=yes
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 ac_header_compiler=no
10316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10318 echo "${ECHO_T}$ac_header_compiler" >&6; }
10320 # Is the header present?
10321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 #include <$ac_header>
10330 _ACEOF
10331 if { (ac_try="$ac_cpp conftest.$ac_ext"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } >/dev/null && {
10344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 }; then
10347 ac_header_preproc=yes
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_header_preproc=no
10355 rm -f conftest.err conftest.$ac_ext
10356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10357 echo "${ECHO_T}$ac_header_preproc" >&6; }
10359 # So? What about this header?
10360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10361 yes:no: )
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10366 ac_header_preproc=yes
10368 no:yes:* )
10369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10381 ( cat <<\_ASBOX
10382 ## ------------------------------- ##
10383 ## Report this to www.asterisk.org ##
10384 ## ------------------------------- ##
10385 _ASBOX
10386 ) | sed "s/^/$as_me: WARNING: /" >&2
10388 esac
10389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 eval "$as_ac_Header=\$ac_header_preproc"
10396 ac_res=`eval echo '${'$as_ac_Header'}'`
10397 { echo "$as_me:$LINENO: result: $ac_res" >&5
10398 echo "${ECHO_T}$ac_res" >&6; }
10401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10402 cat >>confdefs.h <<_ACEOF
10403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10404 _ACEOF
10408 done
10413 for ac_header in winsock.h winsock2.h
10415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_res=`eval echo '${'$as_ac_Header'}'`
10423 { echo "$as_me:$LINENO: result: $ac_res" >&5
10424 echo "${ECHO_T}$ac_res" >&6; }
10425 else
10426 # Is the header compilable?
10427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10436 #include <$ac_header>
10437 _ACEOF
10438 rm -f conftest.$ac_objext
10439 if { (ac_try="$ac_compile"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_compile") 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest.$ac_objext; then
10455 ac_header_compiler=yes
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 ac_header_compiler=no
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10465 echo "${ECHO_T}$ac_header_compiler" >&6; }
10467 # Is the header present?
10468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #include <$ac_header>
10477 _ACEOF
10478 if { (ac_try="$ac_cpp conftest.$ac_ext"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev/null && {
10491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 }; then
10494 ac_header_preproc=yes
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_header_preproc=no
10502 rm -f conftest.err conftest.$ac_ext
10503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10504 echo "${ECHO_T}$ac_header_preproc" >&6; }
10506 # So? What about this header?
10507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10508 yes:no: )
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10513 ac_header_preproc=yes
10515 no:yes:* )
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10528 ( cat <<\_ASBOX
10529 ## ------------------------------- ##
10530 ## Report this to www.asterisk.org ##
10531 ## ------------------------------- ##
10532 _ASBOX
10533 ) | sed "s/^/$as_me: WARNING: /" >&2
10535 esac
10536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541 eval "$as_ac_Header=\$ac_header_preproc"
10543 ac_res=`eval echo '${'$as_ac_Header'}'`
10544 { echo "$as_me:$LINENO: result: $ac_res" >&5
10545 echo "${ECHO_T}$ac_res" >&6; }
10548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10549 cat >>confdefs.h <<_ACEOF
10550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10551 _ACEOF
10555 done
10558 # Check whether --enable-largefile was given.
10559 if test "${enable_largefile+set}" = set; then
10560 enableval=$enable_largefile;
10563 if test "$enable_largefile" != no; then
10565 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10566 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10567 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570 ac_cv_sys_largefile_CC=no
10571 if test "$GCC" != yes; then
10572 ac_save_CC=$CC
10573 while :; do
10574 # IRIX 6.2 and later do not support large files by default,
10575 # so use the C compiler's -n32 option if that helps.
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <sys/types.h>
10583 /* Check that off_t can represent 2**63 - 1 correctly.
10584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10585 since some C++ compilers masquerading as C compilers
10586 incorrectly reject 9223372036854775807. */
10587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10589 && LARGE_OFF_T % 2147483647 == 1)
10590 ? 1 : -1];
10592 main ()
10596 return 0;
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (ac_try="$ac_compile"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_compile") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest.$ac_objext; then
10616 break
10617 else
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10624 rm -f core conftest.err conftest.$ac_objext
10625 CC="$CC -n32"
10626 rm -f conftest.$ac_objext
10627 if { (ac_try="$ac_compile"
10628 case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_compile") 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && {
10640 test -z "$ac_c_werror_flag" ||
10641 test ! -s conftest.err
10642 } && test -s conftest.$ac_objext; then
10643 ac_cv_sys_largefile_CC=' -n32'; break
10644 else
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10651 rm -f core conftest.err conftest.$ac_objext
10652 break
10653 done
10654 CC=$ac_save_CC
10655 rm -f conftest.$ac_ext
10658 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10659 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10660 if test "$ac_cv_sys_largefile_CC" != no; then
10661 CC=$CC$ac_cv_sys_largefile_CC
10664 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10665 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10666 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 while :; do
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h. */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 #include <sys/types.h>
10677 /* Check that off_t can represent 2**63 - 1 correctly.
10678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10679 since some C++ compilers masquerading as C compilers
10680 incorrectly reject 9223372036854775807. */
10681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10683 && LARGE_OFF_T % 2147483647 == 1)
10684 ? 1 : -1];
10686 main ()
10690 return 0;
10692 _ACEOF
10693 rm -f conftest.$ac_objext
10694 if { (ac_try="$ac_compile"
10695 case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10698 esac
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_compile") 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && {
10707 test -z "$ac_c_werror_flag" ||
10708 test ! -s conftest.err
10709 } && test -s conftest.$ac_objext; then
10710 ac_cv_sys_file_offset_bits=no; break
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 #define _FILE_OFFSET_BITS 64
10726 #include <sys/types.h>
10727 /* Check that off_t can represent 2**63 - 1 correctly.
10728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10729 since some C++ compilers masquerading as C compilers
10730 incorrectly reject 9223372036854775807. */
10731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10733 && LARGE_OFF_T % 2147483647 == 1)
10734 ? 1 : -1];
10736 main ()
10740 return 0;
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (ac_try="$ac_compile"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_compile") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest.$ac_objext; then
10760 ac_cv_sys_file_offset_bits=64; break
10761 else
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 ac_cv_sys_file_offset_bits=unknown
10770 break
10771 done
10773 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10774 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10775 case $ac_cv_sys_file_offset_bits in #(
10776 no | unknown) ;;
10778 cat >>confdefs.h <<_ACEOF
10779 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10780 _ACEOF
10782 esac
10783 rm -f conftest*
10784 if test $ac_cv_sys_file_offset_bits = unknown; then
10785 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10786 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10787 if test "${ac_cv_sys_large_files+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 while :; do
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <sys/types.h>
10798 /* Check that off_t can represent 2**63 - 1 correctly.
10799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10800 since some C++ compilers masquerading as C compilers
10801 incorrectly reject 9223372036854775807. */
10802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10804 && LARGE_OFF_T % 2147483647 == 1)
10805 ? 1 : -1];
10807 main ()
10811 return 0;
10813 _ACEOF
10814 rm -f conftest.$ac_objext
10815 if { (ac_try="$ac_compile"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_compile") 2>conftest.er1
10822 ac_status=$?
10823 grep -v '^ *+' conftest.er1 >conftest.err
10824 rm -f conftest.er1
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest.$ac_objext; then
10831 ac_cv_sys_large_files=no; break
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 #define _LARGE_FILES 1
10847 #include <sys/types.h>
10848 /* Check that off_t can represent 2**63 - 1 correctly.
10849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10850 since some C++ compilers masquerading as C compilers
10851 incorrectly reject 9223372036854775807. */
10852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10854 && LARGE_OFF_T % 2147483647 == 1)
10855 ? 1 : -1];
10857 main ()
10861 return 0;
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (ac_try="$ac_compile"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_compile") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest.$ac_objext; then
10881 ac_cv_sys_large_files=1; break
10882 else
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890 ac_cv_sys_large_files=unknown
10891 break
10892 done
10894 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10895 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10896 case $ac_cv_sys_large_files in #(
10897 no | unknown) ;;
10899 cat >>confdefs.h <<_ACEOF
10900 #define _LARGE_FILES $ac_cv_sys_large_files
10901 _ACEOF
10903 esac
10904 rm -f conftest*
10909 # Checks for typedefs, structures, and compiler characteristics.
10910 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10911 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10912 if test "${ac_cv_header_stdbool_h+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10922 #include <stdbool.h>
10923 #ifndef bool
10924 "error: bool is not defined"
10925 #endif
10926 #ifndef false
10927 "error: false is not defined"
10928 #endif
10929 #if false
10930 "error: false is not 0"
10931 #endif
10932 #ifndef true
10933 "error: true is not defined"
10934 #endif
10935 #if true != 1
10936 "error: true is not 1"
10937 #endif
10938 #ifndef __bool_true_false_are_defined
10939 "error: __bool_true_false_are_defined is not defined"
10940 #endif
10942 struct s { _Bool s: 1; _Bool t; } s;
10944 char a[true == 1 ? 1 : -1];
10945 char b[false == 0 ? 1 : -1];
10946 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10947 char d[(bool) 0.5 == true ? 1 : -1];
10948 bool e = &s;
10949 char f[(_Bool) 0.0 == false ? 1 : -1];
10950 char g[true];
10951 char h[sizeof (_Bool)];
10952 char i[sizeof s.t];
10953 enum { j = false, k = true, l = false * true, m = true * 256 };
10954 _Bool n[m];
10955 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10956 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10957 # if defined __xlc__ || defined __GNUC__
10958 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10959 reported by James Lemley on 2005-10-05; see
10960 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10961 This test is not quite right, since xlc is allowed to
10962 reject this program, as the initializer for xlcbug is
10963 not one of the forms that C requires support for.
10964 However, doing the test right would require a runtime
10965 test, and that would make cross-compilation harder.
10966 Let us hope that IBM fixes the xlc bug, and also adds
10967 support for this kind of constant expression. In the
10968 meantime, this test will reject xlc, which is OK, since
10969 our stdbool.h substitute should suffice. We also test
10970 this with GCC, where it should work, to detect more
10971 quickly whether someone messes up the test in the
10972 future. */
10973 char digs[] = "0123456789";
10974 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10975 # endif
10976 /* Catch a bug in an HP-UX C compiler. See
10977 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10978 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10980 _Bool q = true;
10981 _Bool *pq = &q;
10984 main ()
10987 *pq |= q;
10988 *pq |= ! q;
10989 /* Refer to every declared value, to avoid compiler optimizations. */
10990 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10991 + !m + !n + !o + !p + !q + !pq);
10994 return 0;
10996 _ACEOF
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_compile") 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } && {
11011 test -z "$ac_c_werror_flag" ||
11012 test ! -s conftest.err
11013 } && test -s conftest.$ac_objext; then
11014 ac_cv_header_stdbool_h=yes
11015 else
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 ac_cv_header_stdbool_h=no
11022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11025 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11026 { echo "$as_me:$LINENO: checking for _Bool" >&5
11027 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11028 if test "${ac_cv_type__Bool+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031 cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h. */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11037 $ac_includes_default
11038 typedef _Bool ac__type_new_;
11040 main ()
11042 if ((ac__type_new_ *) 0)
11043 return 0;
11044 if (sizeof (ac__type_new_))
11045 return 0;
11047 return 0;
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_compile") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest.$ac_objext; then
11067 ac_cv_type__Bool=yes
11068 else
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_cv_type__Bool=no
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11078 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11079 if test $ac_cv_type__Bool = yes; then
11081 cat >>confdefs.h <<_ACEOF
11082 #define HAVE__BOOL 1
11083 _ACEOF
11088 if test $ac_cv_header_stdbool_h = yes; then
11090 cat >>confdefs.h <<\_ACEOF
11091 #define HAVE_STDBOOL_H 1
11092 _ACEOF
11096 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11097 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11098 if test "${ac_cv_c_const+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 else
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h. */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11109 main ()
11111 /* FIXME: Include the comments suggested by Paul. */
11112 #ifndef __cplusplus
11113 /* Ultrix mips cc rejects this. */
11114 typedef int charset[2];
11115 const charset cs;
11116 /* SunOS 4.1.1 cc rejects this. */
11117 char const *const *pcpcc;
11118 char **ppc;
11119 /* NEC SVR4.0.2 mips cc rejects this. */
11120 struct point {int x, y;};
11121 static struct point const zero = {0,0};
11122 /* AIX XL C 1.02.0.0 rejects this.
11123 It does not let you subtract one const X* pointer from another in
11124 an arm of an if-expression whose if-part is not a constant
11125 expression */
11126 const char *g = "string";
11127 pcpcc = &g + (g ? g-g : 0);
11128 /* HPUX 7.0 cc rejects these. */
11129 ++pcpcc;
11130 ppc = (char**) pcpcc;
11131 pcpcc = (char const *const *) ppc;
11132 { /* SCO 3.2v4 cc rejects this. */
11133 char *t;
11134 char const *s = 0 ? (char *) 0 : (char const *) 0;
11136 *t++ = 0;
11137 if (s) return 0;
11139 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11140 int x[] = {25, 17};
11141 const int *foo = &x[0];
11142 ++foo;
11144 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11145 typedef const int *iptr;
11146 iptr p = 0;
11147 ++p;
11149 { /* AIX XL C 1.02.0.0 rejects this saying
11150 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11151 struct s { int j; const int *ap[3]; };
11152 struct s *b; b->j = 5;
11154 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11155 const int foo = 10;
11156 if (!foo) return 0;
11158 return !cs[0] && !zero.x;
11159 #endif
11162 return 0;
11164 _ACEOF
11165 rm -f conftest.$ac_objext
11166 if { (ac_try="$ac_compile"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_compile") 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } && {
11179 test -z "$ac_c_werror_flag" ||
11180 test ! -s conftest.err
11181 } && test -s conftest.$ac_objext; then
11182 ac_cv_c_const=yes
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_cv_c_const=no
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11193 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11194 if test $ac_cv_c_const = no; then
11196 cat >>confdefs.h <<\_ACEOF
11197 #define const
11198 _ACEOF
11202 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11203 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11204 if test "${ac_cv_type_uid_t+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 #include <sys/types.h>
11215 _ACEOF
11216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11217 $EGREP "uid_t" >/dev/null 2>&1; then
11218 ac_cv_type_uid_t=yes
11219 else
11220 ac_cv_type_uid_t=no
11222 rm -f conftest*
11225 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11226 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11227 if test $ac_cv_type_uid_t = no; then
11229 cat >>confdefs.h <<\_ACEOF
11230 #define uid_t int
11231 _ACEOF
11234 cat >>confdefs.h <<\_ACEOF
11235 #define gid_t int
11236 _ACEOF
11240 { echo "$as_me:$LINENO: checking for inline" >&5
11241 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11242 if test "${ac_cv_c_inline+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245 ac_cv_c_inline=no
11246 for ac_kw in inline __inline__ __inline; do
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h. */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253 #ifndef __cplusplus
11254 typedef int foo_t;
11255 static $ac_kw foo_t static_foo () {return 0; }
11256 $ac_kw foo_t foo () {return 0; }
11257 #endif
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_compile") 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest.$ac_objext; then
11277 ac_cv_c_inline=$ac_kw
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11286 test "$ac_cv_c_inline" != no && break
11287 done
11290 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11291 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11294 case $ac_cv_c_inline in
11295 inline | yes) ;;
11297 case $ac_cv_c_inline in
11298 no) ac_val=;;
11299 *) ac_val=$ac_cv_c_inline;;
11300 esac
11301 cat >>confdefs.h <<_ACEOF
11302 #ifndef __cplusplus
11303 #define inline $ac_val
11304 #endif
11305 _ACEOF
11307 esac
11309 { echo "$as_me:$LINENO: checking for mode_t" >&5
11310 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11311 if test "${ac_cv_type_mode_t+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h. */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 $ac_includes_default
11321 typedef mode_t ac__type_new_;
11323 main ()
11325 if ((ac__type_new_ *) 0)
11326 return 0;
11327 if (sizeof (ac__type_new_))
11328 return 0;
11330 return 0;
11332 _ACEOF
11333 rm -f conftest.$ac_objext
11334 if { (ac_try="$ac_compile"
11335 case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338 esac
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_compile") 2>conftest.er1
11341 ac_status=$?
11342 grep -v '^ *+' conftest.er1 >conftest.err
11343 rm -f conftest.er1
11344 cat conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } && {
11347 test -z "$ac_c_werror_flag" ||
11348 test ! -s conftest.err
11349 } && test -s conftest.$ac_objext; then
11350 ac_cv_type_mode_t=yes
11351 else
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11355 ac_cv_type_mode_t=no
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11361 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11362 if test $ac_cv_type_mode_t = yes; then
11364 else
11366 cat >>confdefs.h <<_ACEOF
11367 #define mode_t int
11368 _ACEOF
11372 { echo "$as_me:$LINENO: checking for off_t" >&5
11373 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11374 if test "${ac_cv_type_off_t+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h. */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 $ac_includes_default
11384 typedef off_t ac__type_new_;
11386 main ()
11388 if ((ac__type_new_ *) 0)
11389 return 0;
11390 if (sizeof (ac__type_new_))
11391 return 0;
11393 return 0;
11395 _ACEOF
11396 rm -f conftest.$ac_objext
11397 if { (ac_try="$ac_compile"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11413 ac_cv_type_off_t=yes
11414 else
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_cv_type_off_t=no
11421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11423 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11424 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11425 if test $ac_cv_type_off_t = yes; then
11427 else
11429 cat >>confdefs.h <<_ACEOF
11430 #define off_t long int
11431 _ACEOF
11435 { echo "$as_me:$LINENO: checking for pid_t" >&5
11436 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11437 if test "${ac_cv_type_pid_t+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h. */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 $ac_includes_default
11447 typedef pid_t ac__type_new_;
11449 main ()
11451 if ((ac__type_new_ *) 0)
11452 return 0;
11453 if (sizeof (ac__type_new_))
11454 return 0;
11456 return 0;
11458 _ACEOF
11459 rm -f conftest.$ac_objext
11460 if { (ac_try="$ac_compile"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest.$ac_objext; then
11476 ac_cv_type_pid_t=yes
11477 else
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ac_cv_type_pid_t=no
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11487 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11488 if test $ac_cv_type_pid_t = yes; then
11490 else
11492 cat >>confdefs.h <<_ACEOF
11493 #define pid_t int
11494 _ACEOF
11498 { echo "$as_me:$LINENO: checking for size_t" >&5
11499 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11500 if test "${ac_cv_type_size_t+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 $ac_includes_default
11510 typedef size_t ac__type_new_;
11512 main ()
11514 if ((ac__type_new_ *) 0)
11515 return 0;
11516 if (sizeof (ac__type_new_))
11517 return 0;
11519 return 0;
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (ac_try="$ac_compile"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_compile") 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && {
11536 test -z "$ac_c_werror_flag" ||
11537 test ! -s conftest.err
11538 } && test -s conftest.$ac_objext; then
11539 ac_cv_type_size_t=yes
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_cv_type_size_t=no
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11550 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11551 if test $ac_cv_type_size_t = yes; then
11553 else
11555 cat >>confdefs.h <<_ACEOF
11556 #define size_t unsigned int
11557 _ACEOF
11561 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11562 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11563 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 $ac_includes_default
11574 main ()
11576 static struct stat ac_aggr;
11577 if (ac_aggr.st_blksize)
11578 return 0;
11580 return 0;
11582 _ACEOF
11583 rm -f conftest.$ac_objext
11584 if { (ac_try="$ac_compile"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_compile") 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } && {
11597 test -z "$ac_c_werror_flag" ||
11598 test ! -s conftest.err
11599 } && test -s conftest.$ac_objext; then
11600 ac_cv_member_struct_stat_st_blksize=yes
11601 else
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
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
11613 main ()
11615 static struct stat ac_aggr;
11616 if (sizeof ac_aggr.st_blksize)
11617 return 0;
11619 return 0;
11621 _ACEOF
11622 rm -f conftest.$ac_objext
11623 if { (ac_try="$ac_compile"
11624 case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627 esac
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629 (eval "$ac_compile") 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_c_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest.$ac_objext; then
11639 ac_cv_member_struct_stat_st_blksize=yes
11640 else
11641 echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11644 ac_cv_member_struct_stat_st_blksize=no
11647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11653 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11654 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11656 cat >>confdefs.h <<_ACEOF
11657 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11658 _ACEOF
11663 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11664 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11665 if test "${ac_cv_header_time+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 #include <sys/types.h>
11675 #include <sys/time.h>
11676 #include <time.h>
11679 main ()
11681 if ((struct tm *) 0)
11682 return 0;
11684 return 0;
11686 _ACEOF
11687 rm -f conftest.$ac_objext
11688 if { (ac_try="$ac_compile"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_compile") 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && {
11701 test -z "$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11703 } && test -s conftest.$ac_objext; then
11704 ac_cv_header_time=yes
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_cv_header_time=no
11712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11715 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11716 if test $ac_cv_header_time = yes; then
11718 cat >>confdefs.h <<\_ACEOF
11719 #define TIME_WITH_SYS_TIME 1
11720 _ACEOF
11724 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11725 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11726 if test "${ac_cv_struct_tm+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h. */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 #include <sys/types.h>
11736 #include <time.h>
11739 main ()
11741 struct tm tm;
11742 int *p = &tm.tm_sec;
11743 return !p;
11745 return 0;
11747 _ACEOF
11748 rm -f conftest.$ac_objext
11749 if { (ac_try="$ac_compile"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_compile") 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest.$ac_objext; then
11765 ac_cv_struct_tm=time.h
11766 else
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 ac_cv_struct_tm=sys/time.h
11773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11776 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11777 if test $ac_cv_struct_tm = sys/time.h; then
11779 cat >>confdefs.h <<\_ACEOF
11780 #define TM_IN_SYS_TIME 1
11781 _ACEOF
11785 { echo "$as_me:$LINENO: checking for working volatile" >&5
11786 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11787 if test "${ac_cv_c_volatile+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11798 main ()
11801 volatile int x;
11802 int * volatile y = (int *) 0;
11803 return !x && !y;
11805 return 0;
11807 _ACEOF
11808 rm -f conftest.$ac_objext
11809 if { (ac_try="$ac_compile"
11810 case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_compile") 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } && {
11822 test -z "$ac_c_werror_flag" ||
11823 test ! -s conftest.err
11824 } && test -s conftest.$ac_objext; then
11825 ac_cv_c_volatile=yes
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 ac_cv_c_volatile=no
11833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11836 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11837 if test $ac_cv_c_volatile = no; then
11839 cat >>confdefs.h <<\_ACEOF
11840 #define volatile
11841 _ACEOF
11845 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11846 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11847 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h. */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11857 typedef ptrdiff_t ac__type_new_;
11859 main ()
11861 if ((ac__type_new_ *) 0)
11862 return 0;
11863 if (sizeof (ac__type_new_))
11864 return 0;
11866 return 0;
11868 _ACEOF
11869 rm -f conftest.$ac_objext
11870 if { (ac_try="$ac_compile"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest.$ac_objext; then
11886 ac_cv_type_ptrdiff_t=yes
11887 else
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_cv_type_ptrdiff_t=no
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11897 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11898 if test $ac_cv_type_ptrdiff_t = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_PTRDIFF_T 1
11902 _ACEOF
11908 # Checks for library functions.
11910 for ac_header in unistd.h
11912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 ac_res=`eval echo '${'$as_ac_Header'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11922 else
11923 # Is the header compilable?
11924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 $ac_includes_default
11933 #include <$ac_header>
11934 _ACEOF
11935 rm -f conftest.$ac_objext
11936 if { (ac_try="$ac_compile"
11937 case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_compile") 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest.$ac_objext; then
11952 ac_header_compiler=yes
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_header_compiler=no
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11962 echo "${ECHO_T}$ac_header_compiler" >&6; }
11964 # Is the header present?
11965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <$ac_header>
11974 _ACEOF
11975 if { (ac_try="$ac_cpp conftest.$ac_ext"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } >/dev/null && {
11988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 }; then
11991 ac_header_preproc=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_header_preproc=no
11999 rm -f conftest.err conftest.$ac_ext
12000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001 echo "${ECHO_T}$ac_header_preproc" >&6; }
12003 # So? What about this header?
12004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12005 yes:no: )
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12010 ac_header_preproc=yes
12012 no:yes:* )
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12025 ( cat <<\_ASBOX
12026 ## ------------------------------- ##
12027 ## Report this to www.asterisk.org ##
12028 ## ------------------------------- ##
12029 _ASBOX
12030 ) | sed "s/^/$as_me: WARNING: /" >&2
12032 esac
12033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038 eval "$as_ac_Header=\$ac_header_preproc"
12040 ac_res=`eval echo '${'$as_ac_Header'}'`
12041 { echo "$as_me:$LINENO: result: $ac_res" >&5
12042 echo "${ECHO_T}$ac_res" >&6; }
12045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12046 cat >>confdefs.h <<_ACEOF
12047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048 _ACEOF
12052 done
12054 { echo "$as_me:$LINENO: checking for working chown" >&5
12055 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12056 if test "${ac_cv_func_chown_works+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 if test "$cross_compiling" = yes; then
12060 ac_cv_func_chown_works=no
12061 else
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 $ac_includes_default
12069 #include <fcntl.h>
12072 main ()
12074 char *f = "conftest.chown";
12075 struct stat before, after;
12077 if (creat (f, 0600) < 0)
12078 return 1;
12079 if (stat (f, &before) < 0)
12080 return 1;
12081 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12082 return 1;
12083 if (stat (f, &after) < 0)
12084 return 1;
12085 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12088 return 0;
12090 _ACEOF
12091 rm -f conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_link") 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_cv_func_chown_works=yes
12112 else
12113 echo "$as_me: program exited with status $ac_status" >&5
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 ( exit $ac_status )
12118 ac_cv_func_chown_works=no
12120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12124 rm -f conftest.chown
12127 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12128 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12129 if test $ac_cv_func_chown_works = yes; then
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_CHOWN 1
12133 _ACEOF
12137 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12138 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12139 if test "${ac_cv_func_closedir_void+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 else
12142 if test "$cross_compiling" = yes; then
12143 ac_cv_func_closedir_void=yes
12144 else
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h. */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12152 #include <$ac_header_dirent>
12153 #ifndef __cplusplus
12154 int closedir ();
12155 #endif
12158 main ()
12160 return closedir (opendir (".")) != 0;
12162 return 0;
12164 _ACEOF
12165 rm -f conftest$ac_exeext
12166 if { (ac_try="$ac_link"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_link") 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 ac_cv_func_closedir_void=no
12186 else
12187 echo "$as_me: program exited with status $ac_status" >&5
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191 ( exit $ac_status )
12192 ac_cv_func_closedir_void=yes
12194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12199 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12200 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12201 if test $ac_cv_func_closedir_void = yes; then
12203 cat >>confdefs.h <<\_ACEOF
12204 #define CLOSEDIR_VOID 1
12205 _ACEOF
12209 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12210 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12211 if test "${ac_cv_lib_error_at_line+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 #include <error.h>
12222 main ()
12224 error_at_line (0, 0, "", 0, "an error occurred");
12226 return 0;
12228 _ACEOF
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_link") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest$ac_exeext &&
12246 $as_test_x conftest$ac_exeext; then
12247 ac_cv_lib_error_at_line=yes
12248 else
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 ac_cv_lib_error_at_line=no
12255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12256 conftest$ac_exeext conftest.$ac_ext
12258 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12259 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12260 if test $ac_cv_lib_error_at_line = no; then
12261 case " $LIBOBJS " in
12262 *" error.$ac_objext "* ) ;;
12263 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12265 esac
12270 for ac_header in vfork.h
12272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 ac_res=`eval echo '${'$as_ac_Header'}'`
12280 { echo "$as_me:$LINENO: result: $ac_res" >&5
12281 echo "${ECHO_T}$ac_res" >&6; }
12282 else
12283 # Is the header compilable?
12284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12293 #include <$ac_header>
12294 _ACEOF
12295 rm -f conftest.$ac_objext
12296 if { (ac_try="$ac_compile"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_compile") 2>conftest.er1
12303 ac_status=$?
12304 grep -v '^ *+' conftest.er1 >conftest.err
12305 rm -f conftest.er1
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest.$ac_objext; then
12312 ac_header_compiler=yes
12313 else
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_header_compiler=no
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12322 echo "${ECHO_T}$ac_header_compiler" >&6; }
12324 # Is the header present?
12325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 #include <$ac_header>
12334 _ACEOF
12335 if { (ac_try="$ac_cpp conftest.$ac_ext"
12336 case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } >/dev/null && {
12348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 }; then
12351 ac_header_preproc=yes
12352 else
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 ac_header_preproc=no
12359 rm -f conftest.err conftest.$ac_ext
12360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12361 echo "${ECHO_T}$ac_header_preproc" >&6; }
12363 # So? What about this header?
12364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12365 yes:no: )
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12370 ac_header_preproc=yes
12372 no:yes:* )
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12385 ( cat <<\_ASBOX
12386 ## ------------------------------- ##
12387 ## Report this to www.asterisk.org ##
12388 ## ------------------------------- ##
12389 _ASBOX
12390 ) | sed "s/^/$as_me: WARNING: /" >&2
12392 esac
12393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398 eval "$as_ac_Header=\$ac_header_preproc"
12400 ac_res=`eval echo '${'$as_ac_Header'}'`
12401 { echo "$as_me:$LINENO: result: $ac_res" >&5
12402 echo "${ECHO_T}$ac_res" >&6; }
12405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12406 cat >>confdefs.h <<_ACEOF
12407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12408 _ACEOF
12412 done
12416 for ac_func in fork vfork
12418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12432 #define $ac_func innocuous_$ac_func
12434 /* System header to define __stub macros and hopefully few prototypes,
12435 which can conflict with char $ac_func (); below.
12436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437 <limits.h> exists even on freestanding compilers. */
12439 #ifdef __STDC__
12440 # include <limits.h>
12441 #else
12442 # include <assert.h>
12443 #endif
12445 #undef $ac_func
12447 /* Override any GCC internal prototype to avoid an error.
12448 Use char because int might match the return type of a GCC
12449 builtin and then its argument prototype would still apply. */
12450 #ifdef __cplusplus
12451 extern "C"
12452 #endif
12453 char $ac_func ();
12454 /* The GNU C library defines this for functions which it implements
12455 to always fail with ENOSYS. Some functions are actually named
12456 something starting with __ and the normal name is an alias. */
12457 #if defined __stub_$ac_func || defined __stub___$ac_func
12458 choke me
12459 #endif
12462 main ()
12464 return $ac_func ();
12466 return 0;
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_link") 2>conftest.er1
12477 ac_status=$?
12478 grep -v '^ *+' conftest.er1 >conftest.err
12479 rm -f conftest.er1
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest$ac_exeext &&
12486 $as_test_x conftest$ac_exeext; then
12487 eval "$as_ac_var=yes"
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 eval "$as_ac_var=no"
12495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12496 conftest$ac_exeext conftest.$ac_ext
12498 ac_res=`eval echo '${'$as_ac_var'}'`
12499 { echo "$as_me:$LINENO: result: $ac_res" >&5
12500 echo "${ECHO_T}$ac_res" >&6; }
12501 if test `eval echo '${'$as_ac_var'}'` = yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12504 _ACEOF
12507 done
12509 if test "x$ac_cv_func_fork" = xyes; then
12510 { echo "$as_me:$LINENO: checking for working fork" >&5
12511 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12512 if test "${ac_cv_func_fork_works+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515 if test "$cross_compiling" = yes; then
12516 ac_cv_func_fork_works=cross
12517 else
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 $ac_includes_default
12526 main ()
12529 /* By Ruediger Kuhlmann. */
12530 return fork () < 0;
12533 return 0;
12535 _ACEOF
12536 rm -f conftest$ac_exeext
12537 if { (ac_try="$ac_link"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_link") 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_cv_func_fork_works=yes
12557 else
12558 echo "$as_me: program exited with status $ac_status" >&5
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ( exit $ac_status )
12563 ac_cv_func_fork_works=no
12565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12570 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12571 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12573 else
12574 ac_cv_func_fork_works=$ac_cv_func_fork
12576 if test "x$ac_cv_func_fork_works" = xcross; then
12577 case $host in
12578 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12579 # Override, as these systems have only a dummy fork() stub
12580 ac_cv_func_fork_works=no
12583 ac_cv_func_fork_works=yes
12585 esac
12586 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12587 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12589 ac_cv_func_vfork_works=$ac_cv_func_vfork
12590 if test "x$ac_cv_func_vfork" = xyes; then
12591 { echo "$as_me:$LINENO: checking for working vfork" >&5
12592 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12593 if test "${ac_cv_func_vfork_works+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 if test "$cross_compiling" = yes; then
12597 ac_cv_func_vfork_works=cross
12598 else
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 /* Thanks to Paul Eggert for this test. */
12606 $ac_includes_default
12607 #include <sys/wait.h>
12608 #ifdef HAVE_VFORK_H
12609 # include <vfork.h>
12610 #endif
12611 /* On some sparc systems, changes by the child to local and incoming
12612 argument registers are propagated back to the parent. The compiler
12613 is told about this with #include <vfork.h>, but some compilers
12614 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12615 static variable whose address is put into a register that is
12616 clobbered by the vfork. */
12617 static void
12618 #ifdef __cplusplus
12619 sparc_address_test (int arg)
12620 # else
12621 sparc_address_test (arg) int arg;
12622 #endif
12624 static pid_t child;
12625 if (!child) {
12626 child = vfork ();
12627 if (child < 0) {
12628 perror ("vfork");
12629 _exit(2);
12631 if (!child) {
12632 arg = getpid();
12633 write(-1, "", 0);
12634 _exit (arg);
12640 main ()
12642 pid_t parent = getpid ();
12643 pid_t child;
12645 sparc_address_test (0);
12647 child = vfork ();
12649 if (child == 0) {
12650 /* Here is another test for sparc vfork register problems. This
12651 test uses lots of local variables, at least as many local
12652 variables as main has allocated so far including compiler
12653 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12654 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12655 reuse the register of parent for one of the local variables,
12656 since it will think that parent can't possibly be used any more
12657 in this routine. Assigning to the local variable will thus
12658 munge parent in the parent process. */
12659 pid_t
12660 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12661 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12662 /* Convince the compiler that p..p7 are live; otherwise, it might
12663 use the same hardware register for all 8 local variables. */
12664 if (p != p1 || p != p2 || p != p3 || p != p4
12665 || p != p5 || p != p6 || p != p7)
12666 _exit(1);
12668 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12669 from child file descriptors. If the child closes a descriptor
12670 before it execs or exits, this munges the parent's descriptor
12671 as well. Test for this by closing stdout in the child. */
12672 _exit(close(fileno(stdout)) != 0);
12673 } else {
12674 int status;
12675 struct stat st;
12677 while (wait(&status) != child)
12679 return (
12680 /* Was there some problem with vforking? */
12681 child < 0
12683 /* Did the child fail? (This shouldn't happen.) */
12684 || status
12686 /* Did the vfork/compiler bug occur? */
12687 || parent != getpid()
12689 /* Did the file descriptor bug occur? */
12690 || fstat(fileno(stdout), &st) != 0
12694 _ACEOF
12695 rm -f conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700 esac
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_link") 2>&5
12703 ac_status=$?
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12706 { (case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_try") 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_cv_func_vfork_works=yes
12716 else
12717 echo "$as_me: program exited with status $ac_status" >&5
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 ( exit $ac_status )
12722 ac_cv_func_vfork_works=no
12724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12729 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12730 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12733 if test "x$ac_cv_func_fork_works" = xcross; then
12734 ac_cv_func_vfork_works=$ac_cv_func_vfork
12735 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12736 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12739 if test "x$ac_cv_func_vfork_works" = xyes; then
12741 cat >>confdefs.h <<\_ACEOF
12742 #define HAVE_WORKING_VFORK 1
12743 _ACEOF
12745 else
12747 cat >>confdefs.h <<\_ACEOF
12748 #define vfork fork
12749 _ACEOF
12752 if test "x$ac_cv_func_fork_works" = xyes; then
12754 cat >>confdefs.h <<\_ACEOF
12755 #define HAVE_WORKING_FORK 1
12756 _ACEOF
12760 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12761 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12762 if test "${ac_cv_sys_largefile_source+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765 while :; do
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 #include <sys/types.h> /* for off_t */
12773 #include <stdio.h>
12775 main ()
12777 int (*fp) (FILE *, off_t, int) = fseeko;
12778 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12780 return 0;
12782 _ACEOF
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (ac_try="$ac_link"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788 esac
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_link") 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest$ac_exeext &&
12800 $as_test_x conftest$ac_exeext; then
12801 ac_cv_sys_largefile_source=no; break
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12810 conftest$ac_exeext conftest.$ac_ext
12811 cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h. */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12817 #define _LARGEFILE_SOURCE 1
12818 #include <sys/types.h> /* for off_t */
12819 #include <stdio.h>
12821 main ()
12823 int (*fp) (FILE *, off_t, int) = fseeko;
12824 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12826 return 0;
12828 _ACEOF
12829 rm -f conftest.$ac_objext conftest$ac_exeext
12830 if { (ac_try="$ac_link"
12831 case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12834 esac
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_link") 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest$ac_exeext &&
12846 $as_test_x conftest$ac_exeext; then
12847 ac_cv_sys_largefile_source=1; break
12848 else
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12856 conftest$ac_exeext conftest.$ac_ext
12857 ac_cv_sys_largefile_source=unknown
12858 break
12859 done
12861 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12862 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12863 case $ac_cv_sys_largefile_source in #(
12864 no | unknown) ;;
12866 cat >>confdefs.h <<_ACEOF
12867 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12868 _ACEOF
12870 esac
12871 rm -f conftest*
12873 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12874 # in glibc 2.1.3, but that breaks too many other things.
12875 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12876 if test $ac_cv_sys_largefile_source != unknown; then
12878 cat >>confdefs.h <<\_ACEOF
12879 #define HAVE_FSEEKO 1
12880 _ACEOF
12884 if test $ac_cv_c_compiler_gnu = yes; then
12885 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12886 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12887 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890 ac_pattern="Autoconf.*'x'"
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 #include <sgtty.h>
12898 Autoconf TIOCGETP
12899 _ACEOF
12900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12901 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12902 ac_cv_prog_gcc_traditional=yes
12903 else
12904 ac_cv_prog_gcc_traditional=no
12906 rm -f conftest*
12909 if test $ac_cv_prog_gcc_traditional = no; then
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h. */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916 #include <termio.h>
12917 Autoconf TCGETA
12918 _ACEOF
12919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12920 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12921 ac_cv_prog_gcc_traditional=yes
12923 rm -f conftest*
12927 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12928 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12929 if test $ac_cv_prog_gcc_traditional = yes; then
12930 CC="$CC -traditional"
12934 # XXX: these are commented out until we determine whether it matters if our malloc()
12935 # acts exactly like glibc's or not
12936 # AC_FUNC_MALLOC
12937 # AC_FUNC_REALLOC
12938 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12939 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12940 if test "${ac_cv_func_memcmp_working+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943 if test "$cross_compiling" = yes; then
12944 ac_cv_func_memcmp_working=no
12945 else
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12954 main ()
12957 /* Some versions of memcmp are not 8-bit clean. */
12958 char c0 = '\100', c1 = '\200', c2 = '\201';
12959 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12960 return 1;
12962 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12963 or more and with at least one buffer not starting on a 4-byte boundary.
12964 William Lewis provided this test program. */
12966 char foo[21];
12967 char bar[21];
12968 int i;
12969 for (i = 0; i < 4; i++)
12971 char *a = foo + i;
12972 char *b = bar + i;
12973 strcpy (a, "--------01111111");
12974 strcpy (b, "--------10000000");
12975 if (memcmp (a, b, 16) >= 0)
12976 return 1;
12978 return 0;
12982 return 0;
12984 _ACEOF
12985 rm -f conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12996 { (case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_try") 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_func_memcmp_working=yes
13006 else
13007 echo "$as_me: program exited with status $ac_status" >&5
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 ( exit $ac_status )
13012 ac_cv_func_memcmp_working=no
13014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13019 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13020 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13021 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13022 *" memcmp.$ac_objext "* ) ;;
13023 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13025 esac
13030 for ac_header in stdlib.h unistd.h
13032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 ac_res=`eval echo '${'$as_ac_Header'}'`
13040 { echo "$as_me:$LINENO: result: $ac_res" >&5
13041 echo "${ECHO_T}$ac_res" >&6; }
13042 else
13043 # Is the header compilable?
13044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h. */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 $ac_includes_default
13053 #include <$ac_header>
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (ac_try="$ac_compile"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_compile") 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } && {
13069 test -z "$ac_c_werror_flag" ||
13070 test ! -s conftest.err
13071 } && test -s conftest.$ac_objext; then
13072 ac_header_compiler=yes
13073 else
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 ac_header_compiler=no
13080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13082 echo "${ECHO_T}$ac_header_compiler" >&6; }
13084 # Is the header present?
13085 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13087 cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h. */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 #include <$ac_header>
13094 _ACEOF
13095 if { (ac_try="$ac_cpp conftest.$ac_ext"
13096 case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099 esac
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } >/dev/null && {
13108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13109 test ! -s conftest.err
13110 }; then
13111 ac_header_preproc=yes
13112 else
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13116 ac_header_preproc=no
13119 rm -f conftest.err conftest.$ac_ext
13120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13121 echo "${ECHO_T}$ac_header_preproc" >&6; }
13123 # So? What about this header?
13124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125 yes:no: )
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13130 ac_header_preproc=yes
13132 no:yes:* )
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13145 ( cat <<\_ASBOX
13146 ## ------------------------------- ##
13147 ## Report this to www.asterisk.org ##
13148 ## ------------------------------- ##
13149 _ASBOX
13150 ) | sed "s/^/$as_me: WARNING: /" >&2
13152 esac
13153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158 eval "$as_ac_Header=\$ac_header_preproc"
13160 ac_res=`eval echo '${'$as_ac_Header'}'`
13161 { echo "$as_me:$LINENO: result: $ac_res" >&5
13162 echo "${ECHO_T}$ac_res" >&6; }
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166 cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13168 _ACEOF
13172 done
13175 for ac_func in getpagesize
13177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13191 #define $ac_func innocuous_$ac_func
13193 /* System header to define __stub macros and hopefully few prototypes,
13194 which can conflict with char $ac_func (); below.
13195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13196 <limits.h> exists even on freestanding compilers. */
13198 #ifdef __STDC__
13199 # include <limits.h>
13200 #else
13201 # include <assert.h>
13202 #endif
13204 #undef $ac_func
13206 /* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13209 #ifdef __cplusplus
13210 extern "C"
13211 #endif
13212 char $ac_func ();
13213 /* The GNU C library defines this for functions which it implements
13214 to always fail with ENOSYS. Some functions are actually named
13215 something starting with __ and the normal name is an alias. */
13216 #if defined __stub_$ac_func || defined __stub___$ac_func
13217 choke me
13218 #endif
13221 main ()
13223 return $ac_func ();
13225 return 0;
13227 _ACEOF
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (ac_try="$ac_link"
13230 case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_link") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext &&
13245 $as_test_x conftest$ac_exeext; then
13246 eval "$as_ac_var=yes"
13247 else
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 eval "$as_ac_var=no"
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255 conftest$ac_exeext conftest.$ac_ext
13257 ac_res=`eval echo '${'$as_ac_var'}'`
13258 { echo "$as_me:$LINENO: result: $ac_res" >&5
13259 echo "${ECHO_T}$ac_res" >&6; }
13260 if test `eval echo '${'$as_ac_var'}'` = yes; then
13261 cat >>confdefs.h <<_ACEOF
13262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13263 _ACEOF
13266 done
13268 { echo "$as_me:$LINENO: checking for working mmap" >&5
13269 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13270 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273 if test "$cross_compiling" = yes; then
13274 ac_cv_func_mmap_fixed_mapped=no
13275 else
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 $ac_includes_default
13283 /* malloc might have been renamed as rpl_malloc. */
13284 #undef malloc
13286 /* Thanks to Mike Haertel and Jim Avera for this test.
13287 Here is a matrix of mmap possibilities:
13288 mmap private not fixed
13289 mmap private fixed at somewhere currently unmapped
13290 mmap private fixed at somewhere already mapped
13291 mmap shared not fixed
13292 mmap shared fixed at somewhere currently unmapped
13293 mmap shared fixed at somewhere already mapped
13294 For private mappings, we should verify that changes cannot be read()
13295 back from the file, nor mmap's back from the file at a different
13296 address. (There have been systems where private was not correctly
13297 implemented like the infamous i386 svr4.0, and systems where the
13298 VM page cache was not coherent with the file system buffer cache
13299 like early versions of FreeBSD and possibly contemporary NetBSD.)
13300 For shared mappings, we should conversely verify that changes get
13301 propagated back to all the places they're supposed to be.
13303 Grep wants private fixed already mapped.
13304 The main things grep needs to know about mmap are:
13305 * does it exist and is it safe to write into the mmap'd area
13306 * how to use it (BSD variants) */
13308 #include <fcntl.h>
13309 #include <sys/mman.h>
13311 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13312 char *malloc ();
13313 #endif
13315 /* This mess was copied from the GNU getpagesize.h. */
13316 #ifndef HAVE_GETPAGESIZE
13317 /* Assume that all systems that can run configure have sys/param.h. */
13318 # ifndef HAVE_SYS_PARAM_H
13319 # define HAVE_SYS_PARAM_H 1
13320 # endif
13322 # ifdef _SC_PAGESIZE
13323 # define getpagesize() sysconf(_SC_PAGESIZE)
13324 # else /* no _SC_PAGESIZE */
13325 # ifdef HAVE_SYS_PARAM_H
13326 # include <sys/param.h>
13327 # ifdef EXEC_PAGESIZE
13328 # define getpagesize() EXEC_PAGESIZE
13329 # else /* no EXEC_PAGESIZE */
13330 # ifdef NBPG
13331 # define getpagesize() NBPG * CLSIZE
13332 # ifndef CLSIZE
13333 # define CLSIZE 1
13334 # endif /* no CLSIZE */
13335 # else /* no NBPG */
13336 # ifdef NBPC
13337 # define getpagesize() NBPC
13338 # else /* no NBPC */
13339 # ifdef PAGESIZE
13340 # define getpagesize() PAGESIZE
13341 # endif /* PAGESIZE */
13342 # endif /* no NBPC */
13343 # endif /* no NBPG */
13344 # endif /* no EXEC_PAGESIZE */
13345 # else /* no HAVE_SYS_PARAM_H */
13346 # define getpagesize() 8192 /* punt totally */
13347 # endif /* no HAVE_SYS_PARAM_H */
13348 # endif /* no _SC_PAGESIZE */
13350 #endif /* no HAVE_GETPAGESIZE */
13353 main ()
13355 char *data, *data2, *data3;
13356 int i, pagesize;
13357 int fd;
13359 pagesize = getpagesize ();
13361 /* First, make a file with some known garbage in it. */
13362 data = (char *) malloc (pagesize);
13363 if (!data)
13364 return 1;
13365 for (i = 0; i < pagesize; ++i)
13366 *(data + i) = rand ();
13367 umask (0);
13368 fd = creat ("conftest.mmap", 0600);
13369 if (fd < 0)
13370 return 1;
13371 if (write (fd, data, pagesize) != pagesize)
13372 return 1;
13373 close (fd);
13375 /* Next, try to mmap the file at a fixed address which already has
13376 something else allocated at it. If we can, also make sure that
13377 we see the same garbage. */
13378 fd = open ("conftest.mmap", O_RDWR);
13379 if (fd < 0)
13380 return 1;
13381 data2 = (char *) malloc (2 * pagesize);
13382 if (!data2)
13383 return 1;
13384 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13385 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13386 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13387 return 1;
13388 for (i = 0; i < pagesize; ++i)
13389 if (*(data + i) != *(data2 + i))
13390 return 1;
13392 /* Finally, make sure that changes to the mapped area do not
13393 percolate back to the file as seen by read(). (This is a bug on
13394 some variants of i386 svr4.0.) */
13395 for (i = 0; i < pagesize; ++i)
13396 *(data2 + i) = *(data2 + i) + 1;
13397 data3 = (char *) malloc (pagesize);
13398 if (!data3)
13399 return 1;
13400 if (read (fd, data3, pagesize) != pagesize)
13401 return 1;
13402 for (i = 0; i < pagesize; ++i)
13403 if (*(data + i) != *(data3 + i))
13404 return 1;
13405 close (fd);
13406 return 0;
13408 _ACEOF
13409 rm -f conftest$ac_exeext
13410 if { (ac_try="$ac_link"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_link") 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_cv_func_mmap_fixed_mapped=yes
13430 else
13431 echo "$as_me: program exited with status $ac_status" >&5
13432 echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13435 ( exit $ac_status )
13436 ac_cv_func_mmap_fixed_mapped=no
13438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13443 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13444 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13445 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13447 cat >>confdefs.h <<\_ACEOF
13448 #define HAVE_MMAP 1
13449 _ACEOF
13452 rm -f conftest.mmap
13456 for ac_header in sys/select.h sys/socket.h
13458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 ac_res=`eval echo '${'$as_ac_Header'}'`
13466 { echo "$as_me:$LINENO: result: $ac_res" >&5
13467 echo "${ECHO_T}$ac_res" >&6; }
13468 else
13469 # Is the header compilable?
13470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13472 cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h. */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13479 #include <$ac_header>
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13489 ac_status=$?
13490 grep -v '^ *+' conftest.er1 >conftest.err
13491 rm -f conftest.er1
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13498 ac_header_compiler=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_compiler=no
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13508 echo "${ECHO_T}$ac_header_compiler" >&6; }
13510 # Is the header present?
13511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519 #include <$ac_header>
13520 _ACEOF
13521 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
13528 ac_status=$?
13529 grep -v '^ *+' conftest.er1 >conftest.err
13530 rm -f conftest.er1
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } >/dev/null && {
13534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13536 }; then
13537 ac_header_preproc=yes
13538 else
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_header_preproc=no
13545 rm -f conftest.err conftest.$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6; }
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551 yes:no: )
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13558 no:yes:* )
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13571 ( cat <<\_ASBOX
13572 ## ------------------------------- ##
13573 ## Report this to www.asterisk.org ##
13574 ## ------------------------------- ##
13575 _ASBOX
13576 ) | sed "s/^/$as_me: WARNING: /" >&2
13578 esac
13579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584 eval "$as_ac_Header=\$ac_header_preproc"
13586 ac_res=`eval echo '${'$as_ac_Header'}'`
13587 { echo "$as_me:$LINENO: result: $ac_res" >&5
13588 echo "${ECHO_T}$ac_res" >&6; }
13591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13592 cat >>confdefs.h <<_ACEOF
13593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13594 _ACEOF
13598 done
13600 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13601 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13602 if test "${ac_cv_func_select_args+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13606 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13607 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h. */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 $ac_includes_default
13615 #ifdef HAVE_SYS_SELECT_H
13616 # include <sys/select.h>
13617 #endif
13618 #ifdef HAVE_SYS_SOCKET_H
13619 # include <sys/socket.h>
13620 #endif
13623 main ()
13625 extern int select ($ac_arg1,
13626 $ac_arg234, $ac_arg234, $ac_arg234,
13627 $ac_arg5);
13629 return 0;
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (ac_try="$ac_compile"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compile") 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && {
13646 test -z "$ac_c_werror_flag" ||
13647 test ! -s conftest.err
13648 } && test -s conftest.$ac_objext; then
13649 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 done
13659 done
13660 done
13661 # Provide a safe default value.
13662 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13665 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13666 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13667 ac_save_IFS=$IFS; IFS=','
13668 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13669 IFS=$ac_save_IFS
13670 shift
13672 cat >>confdefs.h <<_ACEOF
13673 #define SELECT_TYPE_ARG1 $1
13674 _ACEOF
13677 cat >>confdefs.h <<_ACEOF
13678 #define SELECT_TYPE_ARG234 ($2)
13679 _ACEOF
13682 cat >>confdefs.h <<_ACEOF
13683 #define SELECT_TYPE_ARG5 ($3)
13684 _ACEOF
13686 rm -f conftest*
13688 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13689 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13690 if test "$ac_cv_prog_cc_c89" != no; then
13691 { echo "$as_me:$LINENO: result: yes" >&5
13692 echo "${ECHO_T}yes" >&6; }
13694 cat >>confdefs.h <<\_ACEOF
13695 #define PROTOTYPES 1
13696 _ACEOF
13699 cat >>confdefs.h <<\_ACEOF
13700 #define __PROTOTYPES 1
13701 _ACEOF
13703 else
13704 { echo "$as_me:$LINENO: result: no" >&5
13705 echo "${ECHO_T}no" >&6; }
13708 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13709 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13710 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713 ac_cv_func_setvbuf_reversed=no
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h. */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 #include <stdio.h>
13721 # ifdef PROTOTYPES
13722 int (setvbuf) (FILE *, int, char *, size_t);
13723 # endif
13725 main ()
13727 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13729 return 0;
13731 _ACEOF
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest$ac_exeext &&
13749 $as_test_x conftest$ac_exeext; then
13750 cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h. */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 #include <stdio.h>
13757 # ifdef PROTOTYPES
13758 int (setvbuf) (FILE *, int, char *, size_t);
13759 # endif
13761 main ()
13763 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13765 return 0;
13767 _ACEOF
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (ac_try="$ac_link"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_link") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest$ac_exeext &&
13785 $as_test_x conftest$ac_exeext; then
13786 # It compiles and links either way, so it must not be declared
13787 # with a prototype and most likely this is a K&R C compiler.
13788 # Try running it.
13789 if test "$cross_compiling" = yes; then
13790 : # Assume setvbuf is not reversed when cross-compiling.
13791 else
13792 cat >conftest.$ac_ext <<_ACEOF
13793 /* confdefs.h. */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 $ac_includes_default
13800 main ()
13802 /* This call has the arguments reversed.
13803 A reversed system may check and see that the address of buf
13804 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13805 char buf;
13806 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13807 return 1;
13808 putchar ('\r');
13809 return 0; /* Non-reversed systems SEGV here. */
13811 return 0;
13813 _ACEOF
13814 rm -f conftest$ac_exeext
13815 if { (ac_try="$ac_link"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_link") 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_func_setvbuf_reversed=yes
13835 else
13836 echo "$as_me: program exited with status $ac_status" >&5
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13845 ac_cv_func_setvbuf_reversed=yes
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13854 conftest$ac_exeext conftest.$ac_ext
13855 else
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13863 conftest$ac_exeext conftest.$ac_ext
13865 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13866 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13867 if test $ac_cv_func_setvbuf_reversed = yes; then
13869 cat >>confdefs.h <<\_ACEOF
13870 #define SETVBUF_REVERSED 1
13871 _ACEOF
13875 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13876 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13877 if test "${ac_cv_type_signal+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13880 cat >conftest.$ac_ext <<_ACEOF
13881 /* confdefs.h. */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 #include <sys/types.h>
13887 #include <signal.h>
13890 main ()
13892 return *(signal (0, 0)) (0) == 1;
13894 return 0;
13896 _ACEOF
13897 rm -f conftest.$ac_objext
13898 if { (ac_try="$ac_compile"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_compile") 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest.$ac_objext; then
13914 ac_cv_type_signal=int
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ac_cv_type_signal=void
13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13925 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13927 cat >>confdefs.h <<_ACEOF
13928 #define RETSIGTYPE $ac_cv_type_signal
13929 _ACEOF
13932 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13933 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13934 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 rm -f conftest.sym conftest.file
13938 echo >conftest.file
13939 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13940 if test "$cross_compiling" = yes; then
13941 ac_cv_func_lstat_dereferences_slashed_symlink=no
13942 else
13943 cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h. */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 $ac_includes_default
13951 main ()
13953 struct stat sbuf;
13954 /* Linux will dereference the symlink and fail.
13955 That is better in the sense that it means we will not
13956 have to compile and use the lstat wrapper. */
13957 return lstat ("conftest.sym/", &sbuf) == 0;
13959 return 0;
13961 _ACEOF
13962 rm -f conftest$ac_exeext
13963 if { (ac_try="$ac_link"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_link") 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13973 { (case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_try") 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13983 else
13984 echo "$as_me: program exited with status $ac_status" >&5
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 ( exit $ac_status )
13989 ac_cv_func_lstat_dereferences_slashed_symlink=no
13991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13995 else
13996 # If the `ln -s' command failed, then we probably don't even
13997 # have an lstat function.
13998 ac_cv_func_lstat_dereferences_slashed_symlink=no
14000 rm -f conftest.sym conftest.file
14003 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14004 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14006 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14008 cat >>confdefs.h <<_ACEOF
14009 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14010 _ACEOF
14013 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14014 case " $LIBOBJS " in
14015 *" lstat.$ac_objext "* ) ;;
14016 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14018 esac
14022 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14023 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14024 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027 if test "$cross_compiling" = yes; then
14028 ac_cv_func_stat_empty_string_bug=yes
14029 else
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036 $ac_includes_default
14038 main ()
14040 struct stat sbuf;
14041 return stat ("", &sbuf) == 0;
14043 return 0;
14045 _ACEOF
14046 rm -f conftest$ac_exeext
14047 if { (ac_try="$ac_link"
14048 case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_link") 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_func_stat_empty_string_bug=no
14067 else
14068 echo "$as_me: program exited with status $ac_status" >&5
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ( exit $ac_status )
14073 ac_cv_func_stat_empty_string_bug=yes
14075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14080 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14081 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14082 if test $ac_cv_func_stat_empty_string_bug = yes; then
14083 case " $LIBOBJS " in
14084 *" stat.$ac_objext "* ) ;;
14085 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14087 esac
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_STAT_EMPTY_STRING_BUG 1
14092 _ACEOF
14096 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14097 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14098 if test "${ac_cv_func_strcoll_works+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101 if test "$cross_compiling" = yes; then
14102 ac_cv_func_strcoll_works=no
14103 else
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h. */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 $ac_includes_default
14112 main ()
14114 return (strcoll ("abc", "def") >= 0 ||
14115 strcoll ("ABC", "DEF") >= 0 ||
14116 strcoll ("123", "456") >= 0)
14118 return 0;
14120 _ACEOF
14121 rm -f conftest$ac_exeext
14122 if { (ac_try="$ac_link"
14123 case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_link") 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_func_strcoll_works=yes
14142 else
14143 echo "$as_me: program exited with status $ac_status" >&5
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ( exit $ac_status )
14148 ac_cv_func_strcoll_works=no
14150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14155 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14156 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14157 if test $ac_cv_func_strcoll_works = yes; then
14159 cat >>confdefs.h <<\_ACEOF
14160 #define HAVE_STRCOLL 1
14161 _ACEOF
14166 for ac_func in strftime
14168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14182 #define $ac_func innocuous_$ac_func
14184 /* System header to define __stub macros and hopefully few prototypes,
14185 which can conflict with char $ac_func (); below.
14186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14187 <limits.h> exists even on freestanding compilers. */
14189 #ifdef __STDC__
14190 # include <limits.h>
14191 #else
14192 # include <assert.h>
14193 #endif
14195 #undef $ac_func
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14200 #ifdef __cplusplus
14201 extern "C"
14202 #endif
14203 char $ac_func ();
14204 /* The GNU C library defines this for functions which it implements
14205 to always fail with ENOSYS. Some functions are actually named
14206 something starting with __ and the normal name is an alias. */
14207 #if defined __stub_$ac_func || defined __stub___$ac_func
14208 choke me
14209 #endif
14212 main ()
14214 return $ac_func ();
14216 return 0;
14218 _ACEOF
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (ac_try="$ac_link"
14221 case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_link") 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } && {
14233 test -z "$ac_c_werror_flag" ||
14234 test ! -s conftest.err
14235 } && test -s conftest$ac_exeext &&
14236 $as_test_x conftest$ac_exeext; then
14237 eval "$as_ac_var=yes"
14238 else
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242 eval "$as_ac_var=no"
14245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14246 conftest$ac_exeext conftest.$ac_ext
14248 ac_res=`eval echo '${'$as_ac_var'}'`
14249 { echo "$as_me:$LINENO: result: $ac_res" >&5
14250 echo "${ECHO_T}$ac_res" >&6; }
14251 if test `eval echo '${'$as_ac_var'}'` = yes; then
14252 cat >>confdefs.h <<_ACEOF
14253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14254 _ACEOF
14256 else
14257 # strftime is in -lintl on SCO UNIX.
14258 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14259 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14260 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263 ac_check_lib_save_LIBS=$LIBS
14264 LIBS="-lintl $LIBS"
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14272 /* Override any GCC internal prototype to avoid an error.
14273 Use char because int might match the return type of a GCC
14274 builtin and then its argument prototype would still apply. */
14275 #ifdef __cplusplus
14276 extern "C"
14277 #endif
14278 char strftime ();
14280 main ()
14282 return strftime ();
14284 return 0;
14286 _ACEOF
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288 if { (ac_try="$ac_link"
14289 case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292 esac
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_link") 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } && {
14301 test -z "$ac_c_werror_flag" ||
14302 test ! -s conftest.err
14303 } && test -s conftest$ac_exeext &&
14304 $as_test_x conftest$ac_exeext; then
14305 ac_cv_lib_intl_strftime=yes
14306 else
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_cv_lib_intl_strftime=no
14313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314 conftest$ac_exeext conftest.$ac_ext
14315 LIBS=$ac_check_lib_save_LIBS
14317 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14318 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14319 if test $ac_cv_lib_intl_strftime = yes; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_STRFTIME 1
14322 _ACEOF
14324 LIBS="-lintl $LIBS"
14328 done
14330 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14331 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14332 if test "${ac_cv_func_strnlen_working+set}" = set; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335 if test "$cross_compiling" = yes; then
14336 ac_cv_func_strnlen_working=no
14337 else
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 $ac_includes_default
14346 main ()
14349 #define S "foobar"
14350 #define S_LEN (sizeof S - 1)
14352 /* At least one implementation is buggy: that of AIX 4.3 would
14353 give strnlen (S, 1) == 3. */
14355 int i;
14356 for (i = 0; i < S_LEN + 1; ++i)
14358 int expected = i <= S_LEN ? i : S_LEN;
14359 if (strnlen (S, i) != expected)
14360 return 1;
14362 return 0;
14365 return 0;
14367 _ACEOF
14368 rm -f conftest$ac_exeext
14369 if { (ac_try="$ac_link"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14379 { (case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_try") 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14388 ac_cv_func_strnlen_working=yes
14389 else
14390 echo "$as_me: program exited with status $ac_status" >&5
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ( exit $ac_status )
14395 ac_cv_func_strnlen_working=no
14397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14402 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14403 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14404 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14405 *" strnlen.$ac_objext "* ) ;;
14406 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14408 esac
14411 { echo "$as_me:$LINENO: checking for working strtod" >&5
14412 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14413 if test "${ac_cv_func_strtod+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 else
14416 if test "$cross_compiling" = yes; then
14417 ac_cv_func_strtod=no
14418 else
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14426 $ac_includes_default
14427 #ifndef strtod
14428 double strtod ();
14429 #endif
14431 main()
14434 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14435 char *string = " +69";
14436 char *term;
14437 double value;
14438 value = strtod (string, &term);
14439 if (value != 69 || term != (string + 4))
14440 return 1;
14444 /* Under Solaris 2.4, strtod returns the wrong value for the
14445 terminating character under some conditions. */
14446 char *string = "NaN";
14447 char *term;
14448 strtod (string, &term);
14449 if (term != string && *(term - 1) == 0)
14450 return 1;
14452 return 0;
14455 _ACEOF
14456 rm -f conftest$ac_exeext
14457 if { (ac_try="$ac_link"
14458 case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_link") 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14467 { (case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_try") 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_func_strtod=yes
14477 else
14478 echo "$as_me: program exited with status $ac_status" >&5
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ( exit $ac_status )
14483 ac_cv_func_strtod=no
14485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14490 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14491 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14492 if test $ac_cv_func_strtod = no; then
14493 case " $LIBOBJS " in
14494 *" strtod.$ac_objext "* ) ;;
14495 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14497 esac
14499 { echo "$as_me:$LINENO: checking for pow" >&5
14500 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14501 if test "${ac_cv_func_pow+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14512 #define pow innocuous_pow
14514 /* System header to define __stub macros and hopefully few prototypes,
14515 which can conflict with char pow (); below.
14516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14517 <limits.h> exists even on freestanding compilers. */
14519 #ifdef __STDC__
14520 # include <limits.h>
14521 #else
14522 # include <assert.h>
14523 #endif
14525 #undef pow
14527 /* Override any GCC internal prototype to avoid an error.
14528 Use char because int might match the return type of a GCC
14529 builtin and then its argument prototype would still apply. */
14530 #ifdef __cplusplus
14531 extern "C"
14532 #endif
14533 char pow ();
14534 /* The GNU C library defines this for functions which it implements
14535 to always fail with ENOSYS. Some functions are actually named
14536 something starting with __ and the normal name is an alias. */
14537 #if defined __stub_pow || defined __stub___pow
14538 choke me
14539 #endif
14542 main ()
14544 return pow ();
14546 return 0;
14548 _ACEOF
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (ac_try="$ac_link"
14551 case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_link") 2>conftest.er1
14557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest$ac_exeext &&
14566 $as_test_x conftest$ac_exeext; then
14567 ac_cv_func_pow=yes
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ac_cv_func_pow=no
14575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14576 conftest$ac_exeext conftest.$ac_ext
14578 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14579 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14581 if test $ac_cv_func_pow = no; then
14582 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14583 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14584 if test "${ac_cv_lib_m_pow+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587 ac_check_lib_save_LIBS=$LIBS
14588 LIBS="-lm $LIBS"
14589 cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h. */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14596 /* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14599 #ifdef __cplusplus
14600 extern "C"
14601 #endif
14602 char pow ();
14604 main ()
14606 return pow ();
14608 return 0;
14610 _ACEOF
14611 rm -f conftest.$ac_objext conftest$ac_exeext
14612 if { (ac_try="$ac_link"
14613 case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616 esac
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_link") 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest$ac_exeext &&
14628 $as_test_x conftest$ac_exeext; then
14629 ac_cv_lib_m_pow=yes
14630 else
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_lib_m_pow=no
14637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14638 conftest$ac_exeext conftest.$ac_ext
14639 LIBS=$ac_check_lib_save_LIBS
14641 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14642 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14643 if test $ac_cv_lib_m_pow = yes; then
14644 POW_LIB=-lm
14645 else
14646 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14647 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14658 for ac_header in $ac_header_list
14660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14667 ac_res=`eval echo '${'$as_ac_Header'}'`
14668 { echo "$as_me:$LINENO: result: $ac_res" >&5
14669 echo "${ECHO_T}$ac_res" >&6; }
14670 else
14671 # Is the header compilable?
14672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 $ac_includes_default
14681 #include <$ac_header>
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_compile") 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && {
14697 test -z "$ac_c_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest.$ac_objext; then
14700 ac_header_compiler=yes
14701 else
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_header_compiler=no
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14710 echo "${ECHO_T}$ac_header_compiler" >&6; }
14712 # Is the header present?
14713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14715 cat >conftest.$ac_ext <<_ACEOF
14716 /* confdefs.h. */
14717 _ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14721 #include <$ac_header>
14722 _ACEOF
14723 if { (ac_try="$ac_cpp conftest.$ac_ext"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } >/dev/null && {
14736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14737 test ! -s conftest.err
14738 }; then
14739 ac_header_preproc=yes
14740 else
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_header_preproc=no
14747 rm -f conftest.err conftest.$ac_ext
14748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14749 echo "${ECHO_T}$ac_header_preproc" >&6; }
14751 # So? What about this header?
14752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14753 yes:no: )
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14758 ac_header_preproc=yes
14760 no:yes:* )
14761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14773 ( cat <<\_ASBOX
14774 ## ------------------------------- ##
14775 ## Report this to www.asterisk.org ##
14776 ## ------------------------------- ##
14777 _ASBOX
14778 ) | sed "s/^/$as_me: WARNING: /" >&2
14780 esac
14781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786 eval "$as_ac_Header=\$ac_header_preproc"
14788 ac_res=`eval echo '${'$as_ac_Header'}'`
14789 { echo "$as_me:$LINENO: result: $ac_res" >&5
14790 echo "${ECHO_T}$ac_res" >&6; }
14793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14794 cat >>confdefs.h <<_ACEOF
14795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14796 _ACEOF
14800 done
14810 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14811 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14812 if test "${ac_cv_func_utime_null+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815 rm -f conftest.data; >conftest.data
14816 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14817 if test "$cross_compiling" = yes; then
14818 ac_cv_func_utime_null=no
14819 else
14820 cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h. */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 $ac_includes_default
14827 #ifdef HAVE_UTIME_H
14828 # include <utime.h>
14829 #endif
14831 main ()
14833 struct stat s, t;
14834 return ! (stat ("conftest.data", &s) == 0
14835 && utime ("conftest.data", 0) == 0
14836 && stat ("conftest.data", &t) == 0
14837 && t.st_mtime >= s.st_mtime
14838 && t.st_mtime - s.st_mtime < 120);
14840 return 0;
14842 _ACEOF
14843 rm -f conftest$ac_exeext
14844 if { (ac_try="$ac_link"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_link") 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14854 { (case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14857 esac
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_try") 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 ac_cv_func_utime_null=yes
14864 else
14865 echo "$as_me: program exited with status $ac_status" >&5
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ( exit $ac_status )
14870 ac_cv_func_utime_null=no
14872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14877 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14878 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14879 if test $ac_cv_func_utime_null = yes; then
14881 cat >>confdefs.h <<\_ACEOF
14882 #define HAVE_UTIME_NULL 1
14883 _ACEOF
14886 rm -f conftest.data
14889 for ac_func in vprintf
14891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14905 #define $ac_func innocuous_$ac_func
14907 /* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char $ac_func (); below.
14909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14910 <limits.h> exists even on freestanding compilers. */
14912 #ifdef __STDC__
14913 # include <limits.h>
14914 #else
14915 # include <assert.h>
14916 #endif
14918 #undef $ac_func
14920 /* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
14923 #ifdef __cplusplus
14924 extern "C"
14925 #endif
14926 char $ac_func ();
14927 /* The GNU C library defines this for functions which it implements
14928 to always fail with ENOSYS. Some functions are actually named
14929 something starting with __ and the normal name is an alias. */
14930 #if defined __stub_$ac_func || defined __stub___$ac_func
14931 choke me
14932 #endif
14935 main ()
14937 return $ac_func ();
14939 return 0;
14941 _ACEOF
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (ac_try="$ac_link"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_link") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest$ac_exeext &&
14959 $as_test_x conftest$ac_exeext; then
14960 eval "$as_ac_var=yes"
14961 else
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 eval "$as_ac_var=no"
14968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14969 conftest$ac_exeext conftest.$ac_ext
14971 ac_res=`eval echo '${'$as_ac_var'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14974 if test `eval echo '${'$as_ac_var'}'` = yes; then
14975 cat >>confdefs.h <<_ACEOF
14976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14977 _ACEOF
14979 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14980 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14981 if test "${ac_cv_func__doprnt+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984 cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h. */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14992 #define _doprnt innocuous__doprnt
14994 /* System header to define __stub macros and hopefully few prototypes,
14995 which can conflict with char _doprnt (); below.
14996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14997 <limits.h> exists even on freestanding compilers. */
14999 #ifdef __STDC__
15000 # include <limits.h>
15001 #else
15002 # include <assert.h>
15003 #endif
15005 #undef _doprnt
15007 /* Override any GCC internal prototype to avoid an error.
15008 Use char because int might match the return type of a GCC
15009 builtin and then its argument prototype would still apply. */
15010 #ifdef __cplusplus
15011 extern "C"
15012 #endif
15013 char _doprnt ();
15014 /* The GNU C library defines this for functions which it implements
15015 to always fail with ENOSYS. Some functions are actually named
15016 something starting with __ and the normal name is an alias. */
15017 #if defined __stub__doprnt || defined __stub____doprnt
15018 choke me
15019 #endif
15022 main ()
15024 return _doprnt ();
15026 return 0;
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (ac_try="$ac_link"
15031 case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_link") 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } && {
15043 test -z "$ac_c_werror_flag" ||
15044 test ! -s conftest.err
15045 } && test -s conftest$ac_exeext &&
15046 $as_test_x conftest$ac_exeext; then
15047 ac_cv_func__doprnt=yes
15048 else
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_cv_func__doprnt=no
15055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15056 conftest$ac_exeext conftest.$ac_ext
15058 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15059 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15060 if test $ac_cv_func__doprnt = yes; then
15062 cat >>confdefs.h <<\_ACEOF
15063 #define HAVE_DOPRNT 1
15064 _ACEOF
15069 done
15117 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
15119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h. */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15133 #define $ac_func innocuous_$ac_func
15135 /* System header to define __stub macros and hopefully few prototypes,
15136 which can conflict with char $ac_func (); below.
15137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15138 <limits.h> exists even on freestanding compilers. */
15140 #ifdef __STDC__
15141 # include <limits.h>
15142 #else
15143 # include <assert.h>
15144 #endif
15146 #undef $ac_func
15148 /* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply. */
15151 #ifdef __cplusplus
15152 extern "C"
15153 #endif
15154 char $ac_func ();
15155 /* The GNU C library defines this for functions which it implements
15156 to always fail with ENOSYS. Some functions are actually named
15157 something starting with __ and the normal name is an alias. */
15158 #if defined __stub_$ac_func || defined __stub___$ac_func
15159 choke me
15160 #endif
15163 main ()
15165 return $ac_func ();
15167 return 0;
15169 _ACEOF
15170 rm -f conftest.$ac_objext conftest$ac_exeext
15171 if { (ac_try="$ac_link"
15172 case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15175 esac
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_link") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest$ac_exeext &&
15187 $as_test_x conftest$ac_exeext; then
15188 eval "$as_ac_var=yes"
15189 else
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 eval "$as_ac_var=no"
15196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15197 conftest$ac_exeext conftest.$ac_ext
15199 ac_res=`eval echo '${'$as_ac_var'}'`
15200 { echo "$as_me:$LINENO: result: $ac_res" >&5
15201 echo "${ECHO_T}$ac_res" >&6; }
15202 if test `eval echo '${'$as_ac_var'}'` = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15205 _ACEOF
15208 done
15212 for ac_func in glob
15214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 else
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h. */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15228 #define $ac_func innocuous_$ac_func
15230 /* System header to define __stub macros and hopefully few prototypes,
15231 which can conflict with char $ac_func (); below.
15232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15233 <limits.h> exists even on freestanding compilers. */
15235 #ifdef __STDC__
15236 # include <limits.h>
15237 #else
15238 # include <assert.h>
15239 #endif
15241 #undef $ac_func
15243 /* Override any GCC internal prototype to avoid an error.
15244 Use char because int might match the return type of a GCC
15245 builtin and then its argument prototype would still apply. */
15246 #ifdef __cplusplus
15247 extern "C"
15248 #endif
15249 char $ac_func ();
15250 /* The GNU C library defines this for functions which it implements
15251 to always fail with ENOSYS. Some functions are actually named
15252 something starting with __ and the normal name is an alias. */
15253 #if defined __stub_$ac_func || defined __stub___$ac_func
15254 choke me
15255 #endif
15258 main ()
15260 return $ac_func ();
15262 return 0;
15264 _ACEOF
15265 rm -f conftest.$ac_objext conftest$ac_exeext
15266 if { (ac_try="$ac_link"
15267 case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15270 esac
15271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15272 (eval "$ac_link") 2>conftest.er1
15273 ac_status=$?
15274 grep -v '^ *+' conftest.er1 >conftest.err
15275 rm -f conftest.er1
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && {
15279 test -z "$ac_c_werror_flag" ||
15280 test ! -s conftest.err
15281 } && test -s conftest$ac_exeext &&
15282 $as_test_x conftest$ac_exeext; then
15283 eval "$as_ac_var=yes"
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 eval "$as_ac_var=no"
15291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15292 conftest$ac_exeext conftest.$ac_ext
15294 ac_res=`eval echo '${'$as_ac_var'}'`
15295 { echo "$as_me:$LINENO: result: $ac_res" >&5
15296 echo "${ECHO_T}$ac_res" >&6; }
15297 if test `eval echo '${'$as_ac_var'}'` = yes; then
15298 cat >>confdefs.h <<_ACEOF
15299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15300 _ACEOF
15303 done
15306 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15307 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h. */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <sys/time.h>
15316 main ()
15318 struct timeval *a; timersub(a, a, a);
15320 return 0;
15322 _ACEOF
15323 rm -f conftest.$ac_objext conftest$ac_exeext
15324 if { (ac_try="$ac_link"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_link") 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } && {
15337 test -z "$ac_c_werror_flag" ||
15338 test ! -s conftest.err
15339 } && test -s conftest$ac_exeext &&
15340 $as_test_x conftest$ac_exeext; then
15341 { echo "$as_me:$LINENO: result: yes" >&5
15342 echo "${ECHO_T}yes" >&6; }
15344 cat >>confdefs.h <<\_ACEOF
15345 #define HAVE_TIMERSUB 1
15346 _ACEOF
15348 else
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 { echo "$as_me:$LINENO: result: no" >&5
15353 echo "${ECHO_T}no" >&6; }
15357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15358 conftest$ac_exeext conftest.$ac_ext
15360 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15361 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15362 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15363 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15367 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15368 else
15369 # Is the header compilable?
15370 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15371 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h. */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 $ac_includes_default
15379 #include <sys/poll.h>
15380 _ACEOF
15381 rm -f conftest.$ac_objext
15382 if { (ac_try="$ac_compile"
15383 case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15386 esac
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_compile") 2>conftest.er1
15389 ac_status=$?
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } && {
15395 test -z "$ac_c_werror_flag" ||
15396 test ! -s conftest.err
15397 } && test -s conftest.$ac_objext; then
15398 ac_header_compiler=yes
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_header_compiler=no
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15408 echo "${ECHO_T}$ac_header_compiler" >&6; }
15410 # Is the header present?
15411 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15412 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15413 cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h. */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 #include <sys/poll.h>
15420 _ACEOF
15421 if { (ac_try="$ac_cpp conftest.$ac_ext"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } >/dev/null && {
15434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15435 test ! -s conftest.err
15436 }; then
15437 ac_header_preproc=yes
15438 else
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_header_preproc=no
15445 rm -f conftest.err conftest.$ac_ext
15446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15447 echo "${ECHO_T}$ac_header_preproc" >&6; }
15449 # So? What about this header?
15450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15451 yes:no: )
15452 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15453 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15455 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15456 ac_header_preproc=yes
15458 no:yes:* )
15459 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15460 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15462 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15464 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15466 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15468 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15470 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15471 ( cat <<\_ASBOX
15472 ## ------------------------------- ##
15473 ## Report this to www.asterisk.org ##
15474 ## ------------------------------- ##
15475 _ASBOX
15476 ) | sed "s/^/$as_me: WARNING: /" >&2
15478 esac
15479 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15480 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15481 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484 ac_cv_header_sys_poll_h=$ac_header_preproc
15486 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15487 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15490 if test $ac_cv_header_sys_poll_h = yes; then
15491 HAS_POLL=1
15493 cat >>confdefs.h <<\_ACEOF
15494 #define HAVE_SYS_POLL_H 1
15495 _ACEOF
15502 # https support (in main/http.c) uses funopen on BSD systems,
15503 # fopencookie on linux
15506 for ac_func in funopen fopencookie
15508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15522 #define $ac_func innocuous_$ac_func
15524 /* System header to define __stub macros and hopefully few prototypes,
15525 which can conflict with char $ac_func (); below.
15526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15527 <limits.h> exists even on freestanding compilers. */
15529 #ifdef __STDC__
15530 # include <limits.h>
15531 #else
15532 # include <assert.h>
15533 #endif
15535 #undef $ac_func
15537 /* Override any GCC internal prototype to avoid an error.
15538 Use char because int might match the return type of a GCC
15539 builtin and then its argument prototype would still apply. */
15540 #ifdef __cplusplus
15541 extern "C"
15542 #endif
15543 char $ac_func ();
15544 /* The GNU C library defines this for functions which it implements
15545 to always fail with ENOSYS. Some functions are actually named
15546 something starting with __ and the normal name is an alias. */
15547 #if defined __stub_$ac_func || defined __stub___$ac_func
15548 choke me
15549 #endif
15552 main ()
15554 return $ac_func ();
15556 return 0;
15558 _ACEOF
15559 rm -f conftest.$ac_objext conftest$ac_exeext
15560 if { (ac_try="$ac_link"
15561 case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_link") 2>conftest.er1
15567 ac_status=$?
15568 grep -v '^ *+' conftest.er1 >conftest.err
15569 rm -f conftest.er1
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } && {
15573 test -z "$ac_c_werror_flag" ||
15574 test ! -s conftest.err
15575 } && test -s conftest$ac_exeext &&
15576 $as_test_x conftest$ac_exeext; then
15577 eval "$as_ac_var=yes"
15578 else
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 eval "$as_ac_var=no"
15585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15586 conftest$ac_exeext conftest.$ac_ext
15588 ac_res=`eval echo '${'$as_ac_var'}'`
15589 { echo "$as_me:$LINENO: result: $ac_res" >&5
15590 echo "${ECHO_T}$ac_res" >&6; }
15591 if test `eval echo '${'$as_ac_var'}'` = yes; then
15592 cat >>confdefs.h <<_ACEOF
15593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15594 _ACEOF
15597 done
15601 for ac_func in inet_aton
15603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 else
15609 cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h. */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15617 #define $ac_func innocuous_$ac_func
15619 /* System header to define __stub macros and hopefully few prototypes,
15620 which can conflict with char $ac_func (); below.
15621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622 <limits.h> exists even on freestanding compilers. */
15624 #ifdef __STDC__
15625 # include <limits.h>
15626 #else
15627 # include <assert.h>
15628 #endif
15630 #undef $ac_func
15632 /* Override any GCC internal prototype to avoid an error.
15633 Use char because int might match the return type of a GCC
15634 builtin and then its argument prototype would still apply. */
15635 #ifdef __cplusplus
15636 extern "C"
15637 #endif
15638 char $ac_func ();
15639 /* The GNU C library defines this for functions which it implements
15640 to always fail with ENOSYS. Some functions are actually named
15641 something starting with __ and the normal name is an alias. */
15642 #if defined __stub_$ac_func || defined __stub___$ac_func
15643 choke me
15644 #endif
15647 main ()
15649 return $ac_func ();
15651 return 0;
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest$ac_exeext &&
15671 $as_test_x conftest$ac_exeext; then
15672 eval "$as_ac_var=yes"
15673 else
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 eval "$as_ac_var=no"
15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15681 conftest$ac_exeext conftest.$ac_ext
15683 ac_res=`eval echo '${'$as_ac_var'}'`
15684 { echo "$as_me:$LINENO: result: $ac_res" >&5
15685 echo "${ECHO_T}$ac_res" >&6; }
15686 if test `eval echo '${'$as_ac_var'}'` = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15689 _ACEOF
15692 done
15695 # check if we have IP_PKTINFO constant defined
15696 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15697 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 #include <netinet/in.h>
15706 main ()
15708 int pi = IP_PKTINFO;
15710 return 0;
15712 _ACEOF
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (ac_try="$ac_link"
15715 case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15718 esac
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_link") 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && {
15727 test -z "$ac_c_werror_flag" ||
15728 test ! -s conftest.err
15729 } && test -s conftest$ac_exeext &&
15730 $as_test_x conftest$ac_exeext; then
15731 { echo "$as_me:$LINENO: result: yes" >&5
15732 echo "${ECHO_T}yes" >&6; }
15734 cat >>confdefs.h <<\_ACEOF
15735 #define HAVE_PKTINFO 1
15736 _ACEOF
15738 else
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 { echo "$as_me:$LINENO: result: no" >&5
15743 echo "${ECHO_T}no" >&6; }
15747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15748 conftest$ac_exeext conftest.$ac_ext
15750 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15751 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15752 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15753 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 else
15756 ac_func_search_save_LIBS=$LIBS
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h. */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15764 /* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15767 #ifdef __cplusplus
15768 extern "C"
15769 #endif
15770 char gethostbyname_r ();
15772 main ()
15774 return gethostbyname_r ();
15776 return 0;
15778 _ACEOF
15779 for ac_lib in '' socket nsl; do
15780 if test -z "$ac_lib"; then
15781 ac_res="none required"
15782 else
15783 ac_res=-l$ac_lib
15784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_c_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest$ac_exeext &&
15803 $as_test_x conftest$ac_exeext; then
15804 ac_cv_search_gethostbyname_r=$ac_res
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15813 conftest$ac_exeext
15814 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15815 break
15817 done
15818 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15820 else
15821 ac_cv_search_gethostbyname_r=no
15823 rm conftest.$ac_ext
15824 LIBS=$ac_func_search_save_LIBS
15826 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15827 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15828 ac_res=$ac_cv_search_gethostbyname_r
15829 if test "$ac_res" != no; then
15830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15835 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15836 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15837 cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h. */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843 #include <stdlib.h>
15844 #include <netdb.h>
15846 main ()
15848 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15850 return 0;
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (ac_try="$ac_link"
15855 case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15858 esac
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_link") 2>conftest.er1
15861 ac_status=$?
15862 grep -v '^ *+' conftest.er1 >conftest.err
15863 rm -f conftest.er1
15864 cat conftest.err >&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } && {
15867 test -z "$ac_c_werror_flag" ||
15868 test ! -s conftest.err
15869 } && test -s conftest$ac_exeext &&
15870 $as_test_x conftest$ac_exeext; then
15871 { echo "$as_me:$LINENO: result: yes" >&5
15872 echo "${ECHO_T}yes" >&6; }
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE_GETHOSTBYNAME_R_6 1
15876 _ACEOF
15878 else
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 { echo "$as_me:$LINENO: result: no" >&5
15883 echo "${ECHO_T}no" >&6; }
15887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15888 conftest$ac_exeext conftest.$ac_ext
15890 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
15891 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h. */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 #include <stdlib.h>
15899 #include <netdb.h>
15901 main ()
15903 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
15905 return 0;
15907 _ACEOF
15908 rm -f conftest.$ac_objext conftest$ac_exeext
15909 if { (ac_try="$ac_link"
15910 case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913 esac
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_link") 2>conftest.er1
15916 ac_status=$?
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } && {
15922 test -z "$ac_c_werror_flag" ||
15923 test ! -s conftest.err
15924 } && test -s conftest$ac_exeext &&
15925 $as_test_x conftest$ac_exeext; then
15926 { echo "$as_me:$LINENO: result: yes" >&5
15927 echo "${ECHO_T}yes" >&6; }
15929 cat >>confdefs.h <<\_ACEOF
15930 #define HAVE_GETHOSTBYNAME_R_5 1
15931 _ACEOF
15933 else
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 { echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6; }
15942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15943 conftest$ac_exeext conftest.$ac_ext
15945 if test "${ac_cv_header_byteswap_h+set}" = set; then
15946 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
15947 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
15948 if test "${ac_cv_header_byteswap_h+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
15952 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
15953 else
15954 # Is the header compilable?
15955 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
15956 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h. */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 $ac_includes_default
15964 #include <byteswap.h>
15965 _ACEOF
15966 rm -f conftest.$ac_objext
15967 if { (ac_try="$ac_compile"
15968 case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15971 esac
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_compile") 2>conftest.er1
15974 ac_status=$?
15975 grep -v '^ *+' conftest.er1 >conftest.err
15976 rm -f conftest.er1
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } && {
15980 test -z "$ac_c_werror_flag" ||
15981 test ! -s conftest.err
15982 } && test -s conftest.$ac_objext; then
15983 ac_header_compiler=yes
15984 else
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_header_compiler=no
15991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15993 echo "${ECHO_T}$ac_header_compiler" >&6; }
15995 # Is the header present?
15996 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
15997 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
15998 cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h. */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h. */
16004 #include <byteswap.h>
16005 _ACEOF
16006 if { (ac_try="$ac_cpp conftest.$ac_ext"
16007 case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16010 esac
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16013 ac_status=$?
16014 grep -v '^ *+' conftest.er1 >conftest.err
16015 rm -f conftest.er1
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } >/dev/null && {
16019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16020 test ! -s conftest.err
16021 }; then
16022 ac_header_preproc=yes
16023 else
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ac_header_preproc=no
16030 rm -f conftest.err conftest.$ac_ext
16031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16032 echo "${ECHO_T}$ac_header_preproc" >&6; }
16034 # So? What about this header?
16035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16036 yes:no: )
16037 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16038 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16040 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16041 ac_header_preproc=yes
16043 no:yes:* )
16044 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16045 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16047 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16049 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16050 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16051 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16053 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16055 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16056 ( cat <<\_ASBOX
16057 ## ------------------------------- ##
16058 ## Report this to www.asterisk.org ##
16059 ## ------------------------------- ##
16060 _ASBOX
16061 ) | sed "s/^/$as_me: WARNING: /" >&2
16063 esac
16064 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16065 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16066 if test "${ac_cv_header_byteswap_h+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 else
16069 ac_cv_header_byteswap_h=$ac_header_preproc
16071 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16072 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16075 if test $ac_cv_header_byteswap_h = yes; then
16077 cat >>confdefs.h <<_ACEOF
16078 #define HAVE_BYTESWAP_H 1
16079 _ACEOF
16085 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16086 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h. */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 #include <sys/endian.h>
16095 main ()
16097 int a = 1; int b = __swap16(a);
16099 return 0;
16101 _ACEOF
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (ac_try="$ac_link"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107 esac
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_link") 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest$ac_exeext &&
16119 $as_test_x conftest$ac_exeext; then
16120 { echo "$as_me:$LINENO: result: yes" >&5
16121 echo "${ECHO_T}yes" >&6; }
16123 cat >>confdefs.h <<\_ACEOF
16124 #define HAVE_SYS_ENDIAN_SWAP16 1
16125 _ACEOF
16127 else
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 { echo "$as_me:$LINENO: result: no" >&5
16132 echo "${ECHO_T}no" >&6; }
16136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16137 conftest$ac_exeext conftest.$ac_ext
16139 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16140 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 #include <sys/endian.h>
16149 main ()
16151 int a = 1; int b = bswap16(a);
16153 return 0;
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (ac_try="$ac_link"
16158 case "(($ac_try" in
16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160 *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_link") 2>conftest.er1
16164 ac_status=$?
16165 grep -v '^ *+' conftest.er1 >conftest.err
16166 rm -f conftest.er1
16167 cat conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } && {
16170 test -z "$ac_c_werror_flag" ||
16171 test ! -s conftest.err
16172 } && test -s conftest$ac_exeext &&
16173 $as_test_x conftest$ac_exeext; then
16174 { echo "$as_me:$LINENO: result: yes" >&5
16175 echo "${ECHO_T}yes" >&6; }
16177 cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_SYS_ENDIAN_BSWAP16 1
16179 _ACEOF
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 { echo "$as_me:$LINENO: result: no" >&5
16186 echo "${ECHO_T}no" >&6; }
16190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16191 conftest$ac_exeext conftest.$ac_ext
16193 if test "${cross_compiling}" = "no";
16194 then
16195 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16196 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16197 if test "${ac_cv_file__dev_urandom+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 else
16200 test "$cross_compiling" = yes &&
16201 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16202 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16203 { (exit 1); exit 1; }; }
16204 if test -r "/dev/urandom"; then
16205 ac_cv_file__dev_urandom=yes
16206 else
16207 ac_cv_file__dev_urandom=no
16210 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16211 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16212 if test $ac_cv_file__dev_urandom = yes; then
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_DEV_URANDOM 1
16216 _ACEOF
16223 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16224 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16225 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16226 saved_cppflags="${CPPFLAGS}"
16227 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16228 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16230 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
16232 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h. */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 #include <pthread.h>
16240 main ()
16242 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16243 int foo = 0;
16244 #else
16245 int foo = bar;
16246 #endif
16250 return 0;
16252 _ACEOF
16253 rm -f conftest.$ac_objext
16254 if { (ac_try="$ac_compile"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.$ac_objext; then
16270 { echo "$as_me:$LINENO: result: yes" >&5
16271 echo "${ECHO_T}yes" >&6; }
16272 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16274 cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16276 _ACEOF
16279 cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16281 _ACEOF
16284 else
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 { echo "$as_me:$LINENO: result: no" >&5
16289 echo "${ECHO_T}no" >&6; }
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 CPPFLAGS="${saved_cppflags}"
16299 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16300 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16301 cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h. */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 #include <pthread.h>
16309 main ()
16311 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16313 return 0;
16315 _ACEOF
16316 rm -f conftest.$ac_objext conftest$ac_exeext
16317 if { (ac_try="$ac_link"
16318 case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_link") 2>conftest.er1
16324 ac_status=$?
16325 grep -v '^ *+' conftest.er1 >conftest.err
16326 rm -f conftest.er1
16327 cat conftest.err >&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } && {
16330 test -z "$ac_c_werror_flag" ||
16331 test ! -s conftest.err
16332 } && test -s conftest$ac_exeext &&
16333 $as_test_x conftest$ac_exeext; then
16334 { echo "$as_me:$LINENO: result: yes" >&5
16335 echo "${ECHO_T}yes" >&6; }
16337 cat >>confdefs.h <<\_ACEOF
16338 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16339 _ACEOF
16341 else
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16345 { echo "$as_me:$LINENO: result: no" >&5
16346 echo "${ECHO_T}no" >&6; }
16350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16351 conftest$ac_exeext conftest.$ac_ext
16353 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16354 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16355 cat >conftest.$ac_ext <<_ACEOF
16356 /* confdefs.h. */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 #include <pthread.h>
16363 main ()
16365 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16367 return 0;
16369 _ACEOF
16370 rm -f conftest.$ac_objext conftest$ac_exeext
16371 if { (ac_try="$ac_link"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_link") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext &&
16387 $as_test_x conftest$ac_exeext; then
16388 { echo "$as_me:$LINENO: result: yes" >&5
16389 echo "${ECHO_T}yes" >&6; }
16391 cat >>confdefs.h <<\_ACEOF
16392 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16393 _ACEOF
16395 else
16396 echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 { echo "$as_me:$LINENO: result: no" >&5
16400 echo "${ECHO_T}no" >&6; }
16404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16405 conftest$ac_exeext conftest.$ac_ext
16408 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16409 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16410 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16411 saved_cppflags="${CPPFLAGS}"
16412 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16413 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16415 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
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 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16428 int foo = 0;
16429 #else
16430 int foo = bar;
16431 #endif
16435 return 0;
16437 _ACEOF
16438 rm -f conftest.$ac_objext
16439 if { (ac_try="$ac_compile"
16440 case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443 esac
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_compile") 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } && {
16452 test -z "$ac_c_werror_flag" ||
16453 test ! -s conftest.err
16454 } && test -s conftest.$ac_objext; then
16455 { echo "$as_me:$LINENO: result: yes" >&5
16456 echo "${ECHO_T}yes" >&6; }
16457 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16459 cat >>confdefs.h <<\_ACEOF
16460 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16461 _ACEOF
16464 cat >>confdefs.h <<\_ACEOF
16465 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16466 _ACEOF
16469 else
16470 echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16473 { echo "$as_me:$LINENO: result: no" >&5
16474 echo "${ECHO_T}no" >&6; }
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 CPPFLAGS="${saved_cppflags}"
16484 #if test "${cross_compiling}" = "no";
16485 #then
16486 #AC_MSG_CHECKING(for working epoll support)
16487 #AC_LINK_IFELSE(
16488 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16489 # if (res < 0)
16490 # return 1;
16491 # close (res);
16492 # return 0;]),
16493 #AC_MSG_RESULT(yes)
16494 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16495 #AC_MSG_RESULT(no)
16499 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16500 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16501 cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h. */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16509 main ()
16511 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16513 return 0;
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_link") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest$ac_exeext &&
16533 $as_test_x conftest$ac_exeext; then
16534 { echo "$as_me:$LINENO: result: yes" >&5
16535 echo "${ECHO_T}yes" >&6; }
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_GCC_ATOMICS 1
16539 _ACEOF
16541 else
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16551 conftest$ac_exeext conftest.$ac_ext
16554 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16555 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16556 cat >conftest.$ac_ext <<_ACEOF
16557 /* confdefs.h. */
16558 _ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562 static int __attribute__((pure)) test(void) {}
16564 main ()
16568 return 0;
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest.$ac_objext; then
16588 { echo "$as_me:$LINENO: result: yes" >&5
16589 echo "${ECHO_T}yes" >&6; }
16591 cat >>confdefs.h <<_ACEOF
16592 #define HAVE_ATTRIBUTE_pure 1
16593 _ACEOF
16595 else
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 { echo "$as_me:$LINENO: result: no" >&5
16600 echo "${ECHO_T}no" >&6; }
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16607 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16608 cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h. */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 static int __attribute__((malloc)) test(void) {}
16616 main ()
16620 return 0;
16622 _ACEOF
16623 rm -f conftest.$ac_objext
16624 if { (ac_try="$ac_compile"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_compile") 2>conftest.er1
16631 ac_status=$?
16632 grep -v '^ *+' conftest.er1 >conftest.err
16633 rm -f conftest.er1
16634 cat conftest.err >&5
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } && {
16637 test -z "$ac_c_werror_flag" ||
16638 test ! -s conftest.err
16639 } && test -s conftest.$ac_objext; then
16640 { echo "$as_me:$LINENO: result: yes" >&5
16641 echo "${ECHO_T}yes" >&6; }
16643 cat >>confdefs.h <<_ACEOF
16644 #define HAVE_ATTRIBUTE_malloc 1
16645 _ACEOF
16647 else
16648 echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16651 { echo "$as_me:$LINENO: result: no" >&5
16652 echo "${ECHO_T}no" >&6; }
16655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16659 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h. */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 static int __attribute__((const)) test(void) {}
16668 main ()
16672 return 0;
16674 _ACEOF
16675 rm -f conftest.$ac_objext
16676 if { (ac_try="$ac_compile"
16677 case "(($ac_try" in
16678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679 *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682 (eval "$ac_compile") 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } && {
16689 test -z "$ac_c_werror_flag" ||
16690 test ! -s conftest.err
16691 } && test -s conftest.$ac_objext; then
16692 { echo "$as_me:$LINENO: result: yes" >&5
16693 echo "${ECHO_T}yes" >&6; }
16695 cat >>confdefs.h <<_ACEOF
16696 #define HAVE_ATTRIBUTE_const 1
16697 _ACEOF
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 { echo "$as_me:$LINENO: result: no" >&5
16704 echo "${ECHO_T}no" >&6; }
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16711 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 static int __attribute__((unused)) test(void) {}
16720 main ()
16724 return 0;
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (ac_try="$ac_compile"
16729 case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16732 esac
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_compile") 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest.$ac_objext; then
16744 { echo "$as_me:$LINENO: result: yes" >&5
16745 echo "${ECHO_T}yes" >&6; }
16747 cat >>confdefs.h <<_ACEOF
16748 #define HAVE_ATTRIBUTE_unused 1
16749 _ACEOF
16751 else
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 { echo "$as_me:$LINENO: result: no" >&5
16756 echo "${ECHO_T}no" >&6; }
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16763 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 static int __attribute__((always_inline)) test(void) {}
16772 main ()
16776 return 0;
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (ac_try="$ac_compile"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_compile") 2>conftest.er1
16787 ac_status=$?
16788 grep -v '^ *+' conftest.er1 >conftest.err
16789 rm -f conftest.er1
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } && {
16793 test -z "$ac_c_werror_flag" ||
16794 test ! -s conftest.err
16795 } && test -s conftest.$ac_objext; then
16796 { echo "$as_me:$LINENO: result: yes" >&5
16797 echo "${ECHO_T}yes" >&6; }
16799 cat >>confdefs.h <<_ACEOF
16800 #define HAVE_ATTRIBUTE_always_inline 1
16801 _ACEOF
16803 else
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 { echo "$as_me:$LINENO: result: no" >&5
16808 echo "${ECHO_T}no" >&6; }
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16815 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 static int __attribute__((deprecated)) test(void) {}
16824 main ()
16828 return 0;
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (ac_try="$ac_compile"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_compile") 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } && {
16845 test -z "$ac_c_werror_flag" ||
16846 test ! -s conftest.err
16847 } && test -s conftest.$ac_objext; then
16848 { echo "$as_me:$LINENO: result: yes" >&5
16849 echo "${ECHO_T}yes" >&6; }
16851 cat >>confdefs.h <<_ACEOF
16852 #define HAVE_ATTRIBUTE_deprecated 1
16853 _ACEOF
16855 else
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16859 { echo "$as_me:$LINENO: result: no" >&5
16860 echo "${ECHO_T}no" >&6; }
16863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
16867 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
16868 saved_CFLAGS="${CFLAGS}"
16869 CFLAGS="${CFLAGS} -ffunction-sections"
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h. */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16878 main ()
16880 int x = 1;
16882 return 0;
16884 _ACEOF
16885 rm -f conftest.$ac_objext
16886 if { (ac_try="$ac_compile"
16887 case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_compile") 2>conftest.er1
16893 ac_status=$?
16894 grep -v '^ *+' conftest.er1 >conftest.err
16895 rm -f conftest.er1
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } && {
16899 test -z "$ac_c_werror_flag" ||
16900 test ! -s conftest.err
16901 } && test -s conftest.$ac_objext; then
16902 { echo "$as_me:$LINENO: result: yes" >&5
16903 echo "${ECHO_T}yes" >&6; }
16904 saved_LDFLAGS="${LDFLAGS}"
16905 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
16906 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
16907 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h. */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16916 main ()
16918 int x = 1;
16920 return 0;
16922 _ACEOF
16923 rm -f conftest.$ac_objext conftest$ac_exeext
16924 if { (ac_try="$ac_link"
16925 case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_link") 2>conftest.er1
16931 ac_status=$?
16932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } && {
16937 test -z "$ac_c_werror_flag" ||
16938 test ! -s conftest.err
16939 } && test -s conftest$ac_exeext &&
16940 $as_test_x conftest$ac_exeext; then
16941 { echo "$as_me:$LINENO: result: yes" >&5
16942 echo "${ECHO_T}yes" >&6; }
16943 GC_CFLAGS="-ffunction-sections"
16944 GC_LDFLAGS="-Wl,--gc-sections"
16945 else
16946 echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 { echo "$as_me:$LINENO: result: no" >&5
16950 echo "${ECHO_T}no" >&6; }
16954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16955 conftest$ac_exeext conftest.$ac_ext
16956 LDFLAGS="${saved_LDFLAGS}"
16957 else
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 { echo "$as_me:$LINENO: result: no" >&5
16962 echo "${ECHO_T}no" >&6; }
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 CFLAGS="${saved_CFLAGS}"
16971 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
16972 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
16973 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
16974 { echo "$as_me:$LINENO: result: yes" >&5
16975 echo "${ECHO_T}yes" >&6; }
16976 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
16977 else
16978 { echo "$as_me:$LINENO: result: no" >&5
16979 echo "${ECHO_T}no" >&6; }
16980 AST_DECLARATION_AFTER_STATEMENT=
16984 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
16985 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
16986 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
16987 { echo "$as_me:$LINENO: result: yes" >&5
16988 echo "${ECHO_T}yes" >&6; }
16989 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
16990 else
16991 { echo "$as_me:$LINENO: result: no" >&5
16992 echo "${ECHO_T}no" >&6; }
16993 AST_NO_STRICT_OVERFLOW=
16997 { echo "$as_me:$LINENO: checking for sysinfo" >&5
16998 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
16999 cat >conftest.$ac_ext <<_ACEOF
17000 /* confdefs.h. */
17001 _ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h. */
17005 #include <sys/sysinfo.h>
17007 main ()
17009 struct sysinfo sys_info; int uptime = sys_info.uptime
17011 return 0;
17013 _ACEOF
17014 rm -f conftest.$ac_objext conftest$ac_exeext
17015 if { (ac_try="$ac_link"
17016 case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_link") 2>conftest.er1
17022 ac_status=$?
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } && {
17028 test -z "$ac_c_werror_flag" ||
17029 test ! -s conftest.err
17030 } && test -s conftest$ac_exeext &&
17031 $as_test_x conftest$ac_exeext; then
17032 { echo "$as_me:$LINENO: result: yes" >&5
17033 echo "${ECHO_T}yes" >&6; }
17035 cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_SYSINFO 1
17037 _ACEOF
17039 else
17040 echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17043 { echo "$as_me:$LINENO: result: no" >&5
17044 echo "${ECHO_T}no" >&6; }
17048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17049 conftest$ac_exeext conftest.$ac_ext
17051 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17052 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17053 cat >conftest.$ac_ext <<_ACEOF
17054 /* confdefs.h. */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17059 #include <resolv.h>
17061 main ()
17063 int foo = res_ninit(NULL);
17065 return 0;
17067 _ACEOF
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (ac_try="$ac_link"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_link") 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } && {
17082 test -z "$ac_c_werror_flag" ||
17083 test ! -s conftest.err
17084 } && test -s conftest$ac_exeext &&
17085 $as_test_x conftest$ac_exeext; then
17086 { echo "$as_me:$LINENO: result: yes" >&5
17087 echo "${ECHO_T}yes" >&6; }
17089 cat >>confdefs.h <<\_ACEOF
17090 #define HAVE_RES_NINIT 1
17091 _ACEOF
17093 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17094 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17095 cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h. */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101 #include <resolv.h>
17103 main ()
17105 int foo = res_ndestroy(NULL);
17107 return 0;
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 { echo "$as_me:$LINENO: result: yes" >&5
17129 echo "${ECHO_T}yes" >&6; }
17131 cat >>confdefs.h <<\_ACEOF
17132 #define HAVE_RES_NDESTROY 1
17133 _ACEOF
17135 else
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 { echo "$as_me:$LINENO: result: no" >&5
17140 echo "${ECHO_T}no" >&6; }
17144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17145 conftest$ac_exeext conftest.$ac_ext
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 { echo "$as_me:$LINENO: result: no" >&5
17151 echo "${ECHO_T}no" >&6; }
17155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17156 conftest$ac_exeext conftest.$ac_ext
17159 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17160 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17161 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17162 saved_cppflags="${CPPFLAGS}"
17163 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17164 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17166 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
17168 cat >conftest.$ac_ext <<_ACEOF
17169 /* confdefs.h. */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 #include <dlfcn.h>
17176 main ()
17178 #if defined(RTLD_NOLOAD)
17179 int foo = 0;
17180 #else
17181 int foo = bar;
17182 #endif
17186 return 0;
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (ac_try="$ac_compile"
17191 case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest.$ac_objext; then
17206 { echo "$as_me:$LINENO: result: yes" >&5
17207 echo "${ECHO_T}yes" >&6; }
17208 PBX_RTLD_NOLOAD=1
17210 cat >>confdefs.h <<\_ACEOF
17211 #define HAVE_RTLD_NOLOAD 1
17212 _ACEOF
17215 cat >>confdefs.h <<\_ACEOF
17216 #define HAVE_RTLD_NOLOAD_VERSION
17217 _ACEOF
17220 else
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17224 { echo "$as_me:$LINENO: result: no" >&5
17225 echo "${ECHO_T}no" >&6; }
17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230 CPPFLAGS="${saved_cppflags}"
17236 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17237 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17238 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17239 saved_cppflags="${CPPFLAGS}"
17240 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17241 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17243 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17245 cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h. */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251 #include <netinet/in.h>
17253 main ()
17255 #if defined(IP_MTU_DISCOVER)
17256 int foo = 0;
17257 #else
17258 int foo = bar;
17259 #endif
17263 return 0;
17265 _ACEOF
17266 rm -f conftest.$ac_objext
17267 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
17283 { echo "$as_me:$LINENO: result: yes" >&5
17284 echo "${ECHO_T}yes" >&6; }
17285 PBX_IP_MTU_DISCOVER=1
17287 cat >>confdefs.h <<\_ACEOF
17288 #define HAVE_IP_MTU_DISCOVER 1
17289 _ACEOF
17292 cat >>confdefs.h <<\_ACEOF
17293 #define HAVE_IP_MTU_DISCOVER_VERSION
17294 _ACEOF
17297 else
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 { echo "$as_me:$LINENO: result: no" >&5
17302 echo "${ECHO_T}no" >&6; }
17306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17307 CPPFLAGS="${saved_cppflags}"
17312 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17313 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17314 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17315 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17319 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17320 else
17321 # Is the header compilable?
17322 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17323 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17324 cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h. */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330 $ac_includes_default
17331 #include <libkern/OSAtomic.h>
17332 _ACEOF
17333 rm -f conftest.$ac_objext
17334 if { (ac_try="$ac_compile"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_compile") 2>conftest.er1
17341 ac_status=$?
17342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } && {
17347 test -z "$ac_c_werror_flag" ||
17348 test ! -s conftest.err
17349 } && test -s conftest.$ac_objext; then
17350 ac_header_compiler=yes
17351 else
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_header_compiler=no
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17360 echo "${ECHO_T}$ac_header_compiler" >&6; }
17362 # Is the header present?
17363 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17364 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 #include <libkern/OSAtomic.h>
17372 _ACEOF
17373 if { (ac_try="$ac_cpp conftest.$ac_ext"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } >/dev/null && {
17386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17388 }; then
17389 ac_header_preproc=yes
17390 else
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_header_preproc=no
17397 rm -f conftest.err conftest.$ac_ext
17398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17399 echo "${ECHO_T}$ac_header_preproc" >&6; }
17401 # So? What about this header?
17402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17403 yes:no: )
17404 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17405 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17406 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17407 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17408 ac_header_preproc=yes
17410 no:yes:* )
17411 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17412 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17413 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17414 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17415 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17416 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17417 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17418 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17419 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17420 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17421 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17422 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17423 ( cat <<\_ASBOX
17424 ## ------------------------------- ##
17425 ## Report this to www.asterisk.org ##
17426 ## ------------------------------- ##
17427 _ASBOX
17428 ) | sed "s/^/$as_me: WARNING: /" >&2
17430 esac
17431 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17432 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17433 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17438 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17439 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17442 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17444 cat >>confdefs.h <<_ACEOF
17445 #define HAVE_OSX_ATOMICS 1
17446 _ACEOF
17452 { echo "$as_me:$LINENO: checking for int" >&5
17453 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17454 if test "${ac_cv_type_int+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 $ac_includes_default
17464 typedef int ac__type_new_;
17466 main ()
17468 if ((ac__type_new_ *) 0)
17469 return 0;
17470 if (sizeof (ac__type_new_))
17471 return 0;
17473 return 0;
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && {
17490 test -z "$ac_c_werror_flag" ||
17491 test ! -s conftest.err
17492 } && test -s conftest.$ac_objext; then
17493 ac_cv_type_int=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_cv_type_int=no
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17504 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17506 # The cast to long int works around a bug in the HP C Compiler
17507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17509 # This bug is HP SR number 8606223364.
17510 { echo "$as_me:$LINENO: checking size of int" >&5
17511 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17512 if test "${ac_cv_sizeof_int+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515 if test "$cross_compiling" = yes; then
17516 # Depending upon the size, compute the lo and hi bounds.
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 $ac_includes_default
17524 typedef int ac__type_sizeof_;
17526 main ()
17528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17529 test_array [0] = 0
17532 return 0;
17534 _ACEOF
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_compile") 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest.$ac_objext; then
17552 ac_lo=0 ac_mid=0
17553 while :; do
17554 cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h. */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17560 $ac_includes_default
17561 typedef int ac__type_sizeof_;
17563 main ()
17565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17566 test_array [0] = 0
17569 return 0;
17571 _ACEOF
17572 rm -f conftest.$ac_objext
17573 if { (ac_try="$ac_compile"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_compile") 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && {
17586 test -z "$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17588 } && test -s conftest.$ac_objext; then
17589 ac_hi=$ac_mid; break
17590 else
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ac_lo=`expr $ac_mid + 1`
17595 if test $ac_lo -le $ac_mid; then
17596 ac_lo= ac_hi=
17597 break
17599 ac_mid=`expr 2 '*' $ac_mid + 1`
17602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17603 done
17604 else
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17608 cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h. */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17614 $ac_includes_default
17615 typedef int ac__type_sizeof_;
17617 main ()
17619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17620 test_array [0] = 0
17623 return 0;
17625 _ACEOF
17626 rm -f conftest.$ac_objext
17627 if { (ac_try="$ac_compile"
17628 case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_compile") 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest.$ac_objext; then
17643 ac_hi=-1 ac_mid=-1
17644 while :; do
17645 cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h. */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 $ac_includes_default
17652 typedef int ac__type_sizeof_;
17654 main ()
17656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17657 test_array [0] = 0
17660 return 0;
17662 _ACEOF
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_compile") 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && {
17677 test -z "$ac_c_werror_flag" ||
17678 test ! -s conftest.err
17679 } && test -s conftest.$ac_objext; then
17680 ac_lo=$ac_mid; break
17681 else
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ac_hi=`expr '(' $ac_mid ')' - 1`
17686 if test $ac_mid -le $ac_hi; then
17687 ac_lo= ac_hi=
17688 break
17690 ac_mid=`expr 2 '*' $ac_mid`
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694 done
17695 else
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ac_lo= ac_hi=
17702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 # Binary search between lo and hi bounds.
17707 while test "x$ac_lo" != "x$ac_hi"; do
17708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17709 cat >conftest.$ac_ext <<_ACEOF
17710 /* confdefs.h. */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17715 $ac_includes_default
17716 typedef int ac__type_sizeof_;
17718 main ()
17720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17721 test_array [0] = 0
17724 return 0;
17726 _ACEOF
17727 rm -f conftest.$ac_objext
17728 if { (ac_try="$ac_compile"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_compile") 2>conftest.er1
17735 ac_status=$?
17736 grep -v '^ *+' conftest.er1 >conftest.err
17737 rm -f conftest.er1
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } && {
17741 test -z "$ac_c_werror_flag" ||
17742 test ! -s conftest.err
17743 } && test -s conftest.$ac_objext; then
17744 ac_hi=$ac_mid
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ac_lo=`expr '(' $ac_mid ')' + 1`
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 done
17754 case $ac_lo in
17755 ?*) ac_cv_sizeof_int=$ac_lo;;
17756 '') if test "$ac_cv_type_int" = yes; then
17757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
17758 See \`config.log' for more details." >&5
17759 echo "$as_me: error: cannot compute sizeof (int)
17760 See \`config.log' for more details." >&2;}
17761 { (exit 77); exit 77; }; }
17762 else
17763 ac_cv_sizeof_int=0
17764 fi ;;
17765 esac
17766 else
17767 cat >conftest.$ac_ext <<_ACEOF
17768 /* confdefs.h. */
17769 _ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 $ac_includes_default
17774 typedef int ac__type_sizeof_;
17775 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
17776 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
17777 #include <stdio.h>
17778 #include <stdlib.h>
17780 main ()
17783 FILE *f = fopen ("conftest.val", "w");
17784 if (! f)
17785 return 1;
17786 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
17788 long int i = longval ();
17789 if (i != ((long int) (sizeof (ac__type_sizeof_))))
17790 return 1;
17791 fprintf (f, "%ld\n", i);
17793 else
17795 unsigned long int i = ulongval ();
17796 if (i != ((long int) (sizeof (ac__type_sizeof_))))
17797 return 1;
17798 fprintf (f, "%lu\n", i);
17800 return ferror (f) || fclose (f) != 0;
17803 return 0;
17805 _ACEOF
17806 rm -f conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_link") 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17817 { (case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_try") 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_cv_sizeof_int=`cat conftest.val`
17827 else
17828 echo "$as_me: program exited with status $ac_status" >&5
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ( exit $ac_status )
17833 if test "$ac_cv_type_int" = yes; then
17834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
17835 See \`config.log' for more details." >&5
17836 echo "$as_me: error: cannot compute sizeof (int)
17837 See \`config.log' for more details." >&2;}
17838 { (exit 77); exit 77; }; }
17839 else
17840 ac_cv_sizeof_int=0
17843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17845 rm -f conftest.val
17847 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17848 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
17852 cat >>confdefs.h <<_ACEOF
17853 #define SIZEOF_INT $ac_cv_sizeof_int
17854 _ACEOF
17858 # do the package library checks now
17861 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
17862 pbxlibdir=""
17863 # if --with-ALSA=DIR has been specified, use it.
17864 if test "x${ALSA_DIR}" != "x"; then
17865 if test -d ${ALSA_DIR}/lib; then
17866 pbxlibdir="-L${ALSA_DIR}/lib"
17867 else
17868 pbxlibdir="-L${ALSA_DIR}"
17871 pbxfuncname="snd_spcm_init"
17872 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
17873 AST_ALSA_FOUND=yes
17874 else
17875 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
17876 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
17877 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
17878 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881 ac_check_lib_save_LIBS=$LIBS
17882 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h. */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17890 /* Override any GCC internal prototype to avoid an error.
17891 Use char because int might match the return type of a GCC
17892 builtin and then its argument prototype would still apply. */
17893 #ifdef __cplusplus
17894 extern "C"
17895 #endif
17896 char ${pbxfuncname} ();
17898 main ()
17900 return ${pbxfuncname} ();
17902 return 0;
17904 _ACEOF
17905 rm -f conftest.$ac_objext conftest$ac_exeext
17906 if { (ac_try="$ac_link"
17907 case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_link") 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } && {
17919 test -z "$ac_c_werror_flag" ||
17920 test ! -s conftest.err
17921 } && test -s conftest$ac_exeext &&
17922 $as_test_x conftest$ac_exeext; then
17923 eval "$as_ac_Lib=yes"
17924 else
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 eval "$as_ac_Lib=no"
17931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17932 conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17935 ac_res=`eval echo '${'$as_ac_Lib'}'`
17936 { echo "$as_me:$LINENO: result: $ac_res" >&5
17937 echo "${ECHO_T}$ac_res" >&6; }
17938 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17939 AST_ALSA_FOUND=yes
17940 else
17941 AST_ALSA_FOUND=no
17946 # now check for the header.
17947 if test "${AST_ALSA_FOUND}" = "yes"; then
17948 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
17949 # if --with-ALSA=DIR has been specified, use it.
17950 if test "x${ALSA_DIR}" != "x"; then
17951 ALSA_INCLUDE="-I${ALSA_DIR}/include"
17953 ALSA_INCLUDE="${ALSA_INCLUDE} "
17954 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
17955 ALSA_HEADER_FOUND="1"
17956 else # check for the header
17957 saved_cppflags="${CPPFLAGS}"
17958 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE} "
17959 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
17960 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
17961 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
17962 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
17966 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
17967 else
17968 # Is the header compilable?
17969 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
17970 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
17971 cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h. */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 $ac_includes_default
17978 #include <alsa/asoundlib.h>
17979 _ACEOF
17980 rm -f conftest.$ac_objext
17981 if { (ac_try="$ac_compile"
17982 case "(($ac_try" in
17983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17985 esac
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987 (eval "$ac_compile") 2>conftest.er1
17988 ac_status=$?
17989 grep -v '^ *+' conftest.er1 >conftest.err
17990 rm -f conftest.er1
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } && {
17994 test -z "$ac_c_werror_flag" ||
17995 test ! -s conftest.err
17996 } && test -s conftest.$ac_objext; then
17997 ac_header_compiler=yes
17998 else
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_header_compiler=no
18005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18007 echo "${ECHO_T}$ac_header_compiler" >&6; }
18009 # Is the header present?
18010 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18011 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18012 cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h. */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018 #include <alsa/asoundlib.h>
18019 _ACEOF
18020 if { (ac_try="$ac_cpp conftest.$ac_ext"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } >/dev/null && {
18033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 }; then
18036 ac_header_preproc=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ac_header_preproc=no
18044 rm -f conftest.err conftest.$ac_ext
18045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18046 echo "${ECHO_T}$ac_header_preproc" >&6; }
18048 # So? What about this header?
18049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18050 yes:no: )
18051 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18052 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18053 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18054 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18055 ac_header_preproc=yes
18057 no:yes:* )
18058 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18059 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18060 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18061 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18062 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18063 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18064 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18065 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18066 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18067 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18068 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18069 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18070 ( cat <<\_ASBOX
18071 ## ------------------------------- ##
18072 ## Report this to www.asterisk.org ##
18073 ## ------------------------------- ##
18074 _ASBOX
18075 ) | sed "s/^/$as_me: WARNING: /" >&2
18077 esac
18078 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18079 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18080 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 else
18083 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18085 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18086 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18089 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18090 ALSA_HEADER_FOUND=1
18091 else
18092 ALSA_HEADER_FOUND=0
18096 CPPFLAGS="${saved_cppflags}"
18098 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18099 ALSA_LIB=""
18100 ALSA_INCLUDE=""
18101 else
18102 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18103 ALSA_LIB=""
18105 PBX_ALSA=1
18106 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18108 cat >>confdefs.h <<_ACEOF
18109 #define HAVE_ALSA 1
18110 _ACEOF
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_ALSA_VERSION
18115 _ACEOF
18123 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18124 pbxlibdir=""
18125 # if --with-CURSES=DIR has been specified, use it.
18126 if test "x${CURSES_DIR}" != "x"; then
18127 if test -d ${CURSES_DIR}/lib; then
18128 pbxlibdir="-L${CURSES_DIR}/lib"
18129 else
18130 pbxlibdir="-L${CURSES_DIR}"
18133 pbxfuncname="initscr"
18134 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18135 AST_CURSES_FOUND=yes
18136 else
18137 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18138 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18139 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18140 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143 ac_check_lib_save_LIBS=$LIBS
18144 LIBS="-lcurses ${pbxlibdir} $LIBS"
18145 cat >conftest.$ac_ext <<_ACEOF
18146 /* confdefs.h. */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18152 /* Override any GCC internal prototype to avoid an error.
18153 Use char because int might match the return type of a GCC
18154 builtin and then its argument prototype would still apply. */
18155 #ifdef __cplusplus
18156 extern "C"
18157 #endif
18158 char ${pbxfuncname} ();
18160 main ()
18162 return ${pbxfuncname} ();
18164 return 0;
18166 _ACEOF
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext &&
18184 $as_test_x conftest$ac_exeext; then
18185 eval "$as_ac_Lib=yes"
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 eval "$as_ac_Lib=no"
18193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18194 conftest$ac_exeext conftest.$ac_ext
18195 LIBS=$ac_check_lib_save_LIBS
18197 ac_res=`eval echo '${'$as_ac_Lib'}'`
18198 { echo "$as_me:$LINENO: result: $ac_res" >&5
18199 echo "${ECHO_T}$ac_res" >&6; }
18200 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18201 AST_CURSES_FOUND=yes
18202 else
18203 AST_CURSES_FOUND=no
18208 # now check for the header.
18209 if test "${AST_CURSES_FOUND}" = "yes"; then
18210 CURSES_LIB="${pbxlibdir} -lcurses "
18211 # if --with-CURSES=DIR has been specified, use it.
18212 if test "x${CURSES_DIR}" != "x"; then
18213 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18215 CURSES_INCLUDE="${CURSES_INCLUDE} "
18216 if test "xcurses.h" = "x" ; then # no header, assume found
18217 CURSES_HEADER_FOUND="1"
18218 else # check for the header
18219 saved_cppflags="${CPPFLAGS}"
18220 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE} "
18221 if test "${ac_cv_header_curses_h+set}" = set; then
18222 { echo "$as_me:$LINENO: checking for curses.h" >&5
18223 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18224 if test "${ac_cv_header_curses_h+set}" = set; then
18225 echo $ECHO_N "(cached) $ECHO_C" >&6
18227 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18228 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18229 else
18230 # Is the header compilable?
18231 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18232 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18233 cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h. */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 $ac_includes_default
18240 #include <curses.h>
18241 _ACEOF
18242 rm -f conftest.$ac_objext
18243 if { (ac_try="$ac_compile"
18244 case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18247 esac
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_compile") 2>conftest.er1
18250 ac_status=$?
18251 grep -v '^ *+' conftest.er1 >conftest.err
18252 rm -f conftest.er1
18253 cat conftest.err >&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && {
18256 test -z "$ac_c_werror_flag" ||
18257 test ! -s conftest.err
18258 } && test -s conftest.$ac_objext; then
18259 ac_header_compiler=yes
18260 else
18261 echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18264 ac_header_compiler=no
18267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18269 echo "${ECHO_T}$ac_header_compiler" >&6; }
18271 # Is the header present?
18272 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18273 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h. */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18280 #include <curses.h>
18281 _ACEOF
18282 if { (ac_try="$ac_cpp conftest.$ac_ext"
18283 case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } >/dev/null && {
18295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18296 test ! -s conftest.err
18297 }; then
18298 ac_header_preproc=yes
18299 else
18300 echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18303 ac_header_preproc=no
18306 rm -f conftest.err conftest.$ac_ext
18307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18308 echo "${ECHO_T}$ac_header_preproc" >&6; }
18310 # So? What about this header?
18311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18312 yes:no: )
18313 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18314 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18315 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18316 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18317 ac_header_preproc=yes
18319 no:yes:* )
18320 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18321 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18322 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18323 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18324 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18325 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18327 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18328 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18329 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18330 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18331 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18332 ( cat <<\_ASBOX
18333 ## ------------------------------- ##
18334 ## Report this to www.asterisk.org ##
18335 ## ------------------------------- ##
18336 _ASBOX
18337 ) | sed "s/^/$as_me: WARNING: /" >&2
18339 esac
18340 { echo "$as_me:$LINENO: checking for curses.h" >&5
18341 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18342 if test "${ac_cv_header_curses_h+set}" = set; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 else
18345 ac_cv_header_curses_h=$ac_header_preproc
18347 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18348 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18351 if test $ac_cv_header_curses_h = yes; then
18352 CURSES_HEADER_FOUND=1
18353 else
18354 CURSES_HEADER_FOUND=0
18358 CPPFLAGS="${saved_cppflags}"
18360 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18361 CURSES_LIB=""
18362 CURSES_INCLUDE=""
18363 else
18364 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18365 CURSES_LIB=""
18367 PBX_CURSES=1
18368 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18370 cat >>confdefs.h <<_ACEOF
18371 #define HAVE_CURSES 1
18372 _ACEOF
18375 cat >>confdefs.h <<_ACEOF
18376 #define HAVE_CURSES_VERSION
18377 _ACEOF
18384 if test "x${host_os}" = "xlinux-gnu" ; then
18386 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18387 pbxlibdir=""
18388 # if --with-CAP=DIR has been specified, use it.
18389 if test "x${CAP_DIR}" != "x"; then
18390 if test -d ${CAP_DIR}/lib; then
18391 pbxlibdir="-L${CAP_DIR}/lib"
18392 else
18393 pbxlibdir="-L${CAP_DIR}"
18396 pbxfuncname="cap_from_text"
18397 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18398 AST_CAP_FOUND=yes
18399 else
18400 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18401 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18402 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18403 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406 ac_check_lib_save_LIBS=$LIBS
18407 LIBS="-lcap ${pbxlibdir} $LIBS"
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h. */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18415 /* Override any GCC internal prototype to avoid an error.
18416 Use char because int might match the return type of a GCC
18417 builtin and then its argument prototype would still apply. */
18418 #ifdef __cplusplus
18419 extern "C"
18420 #endif
18421 char ${pbxfuncname} ();
18423 main ()
18425 return ${pbxfuncname} ();
18427 return 0;
18429 _ACEOF
18430 rm -f conftest.$ac_objext conftest$ac_exeext
18431 if { (ac_try="$ac_link"
18432 case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_link") 2>conftest.er1
18438 ac_status=$?
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
18441 cat conftest.err >&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && {
18444 test -z "$ac_c_werror_flag" ||
18445 test ! -s conftest.err
18446 } && test -s conftest$ac_exeext &&
18447 $as_test_x conftest$ac_exeext; then
18448 eval "$as_ac_Lib=yes"
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 eval "$as_ac_Lib=no"
18456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18457 conftest$ac_exeext conftest.$ac_ext
18458 LIBS=$ac_check_lib_save_LIBS
18460 ac_res=`eval echo '${'$as_ac_Lib'}'`
18461 { echo "$as_me:$LINENO: result: $ac_res" >&5
18462 echo "${ECHO_T}$ac_res" >&6; }
18463 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18464 AST_CAP_FOUND=yes
18465 else
18466 AST_CAP_FOUND=no
18471 # now check for the header.
18472 if test "${AST_CAP_FOUND}" = "yes"; then
18473 CAP_LIB="${pbxlibdir} -lcap "
18474 # if --with-CAP=DIR has been specified, use it.
18475 if test "x${CAP_DIR}" != "x"; then
18476 CAP_INCLUDE="-I${CAP_DIR}/include"
18478 CAP_INCLUDE="${CAP_INCLUDE} "
18479 if test "xsys/capability.h" = "x" ; then # no header, assume found
18480 CAP_HEADER_FOUND="1"
18481 else # check for the header
18482 saved_cppflags="${CPPFLAGS}"
18483 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE} "
18484 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18485 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18486 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18487 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18491 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18492 else
18493 # Is the header compilable?
18494 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18495 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18496 cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h. */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 $ac_includes_default
18503 #include <sys/capability.h>
18504 _ACEOF
18505 rm -f conftest.$ac_objext
18506 if { (ac_try="$ac_compile"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && {
18519 test -z "$ac_c_werror_flag" ||
18520 test ! -s conftest.err
18521 } && test -s conftest.$ac_objext; then
18522 ac_header_compiler=yes
18523 else
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 ac_header_compiler=no
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18532 echo "${ECHO_T}$ac_header_compiler" >&6; }
18534 # Is the header present?
18535 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
18536 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
18537 cat >conftest.$ac_ext <<_ACEOF
18538 /* confdefs.h. */
18539 _ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 #include <sys/capability.h>
18544 _ACEOF
18545 if { (ac_try="$ac_cpp conftest.$ac_ext"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } >/dev/null && {
18558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18559 test ! -s conftest.err
18560 }; then
18561 ac_header_preproc=yes
18562 else
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_header_preproc=no
18569 rm -f conftest.err conftest.$ac_ext
18570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18571 echo "${ECHO_T}$ac_header_preproc" >&6; }
18573 # So? What about this header?
18574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18575 yes:no: )
18576 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
18577 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
18579 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
18580 ac_header_preproc=yes
18582 no:yes:* )
18583 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
18584 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
18585 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
18586 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
18587 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
18588 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
18590 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
18591 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
18592 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
18593 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
18594 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
18595 ( cat <<\_ASBOX
18596 ## ------------------------------- ##
18597 ## Report this to www.asterisk.org ##
18598 ## ------------------------------- ##
18599 _ASBOX
18600 ) | sed "s/^/$as_me: WARNING: /" >&2
18602 esac
18603 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18604 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18605 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608 ac_cv_header_sys_capability_h=$ac_header_preproc
18610 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18611 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18614 if test $ac_cv_header_sys_capability_h = yes; then
18615 CAP_HEADER_FOUND=1
18616 else
18617 CAP_HEADER_FOUND=0
18621 CPPFLAGS="${saved_cppflags}"
18623 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
18624 CAP_LIB=""
18625 CAP_INCLUDE=""
18626 else
18627 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18628 CAP_LIB=""
18630 PBX_CAP=1
18631 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18633 cat >>confdefs.h <<_ACEOF
18634 #define HAVE_CAP 1
18635 _ACEOF
18638 cat >>confdefs.h <<_ACEOF
18639 #define HAVE_CAP_VERSION
18640 _ACEOF
18648 # BSD might not have exp2, and/or log2
18650 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
18651 pbxlibdir=""
18652 # if --with-EXP2L=DIR has been specified, use it.
18653 if test "x${EXP2L_DIR}" != "x"; then
18654 if test -d ${EXP2L_DIR}/lib; then
18655 pbxlibdir="-L${EXP2L_DIR}/lib"
18656 else
18657 pbxlibdir="-L${EXP2L_DIR}"
18660 pbxfuncname="exp2l"
18661 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18662 AST_EXP2L_FOUND=yes
18663 else
18664 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
18665 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
18666 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
18667 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670 ac_check_lib_save_LIBS=$LIBS
18671 LIBS="-lm ${pbxlibdir} $LIBS"
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h. */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18679 /* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18682 #ifdef __cplusplus
18683 extern "C"
18684 #endif
18685 char ${pbxfuncname} ();
18687 main ()
18689 return ${pbxfuncname} ();
18691 return 0;
18693 _ACEOF
18694 rm -f conftest.$ac_objext conftest$ac_exeext
18695 if { (ac_try="$ac_link"
18696 case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18699 esac
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_link") 2>conftest.er1
18702 ac_status=$?
18703 grep -v '^ *+' conftest.er1 >conftest.err
18704 rm -f conftest.er1
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } && {
18708 test -z "$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18710 } && test -s conftest$ac_exeext &&
18711 $as_test_x conftest$ac_exeext; then
18712 eval "$as_ac_Lib=yes"
18713 else
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18717 eval "$as_ac_Lib=no"
18720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18721 conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18724 ac_res=`eval echo '${'$as_ac_Lib'}'`
18725 { echo "$as_me:$LINENO: result: $ac_res" >&5
18726 echo "${ECHO_T}$ac_res" >&6; }
18727 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18728 AST_EXP2L_FOUND=yes
18729 else
18730 AST_EXP2L_FOUND=no
18735 # now check for the header.
18736 if test "${AST_EXP2L_FOUND}" = "yes"; then
18737 EXP2L_LIB="${pbxlibdir} -lm "
18738 # if --with-EXP2L=DIR has been specified, use it.
18739 if test "x${EXP2L_DIR}" != "x"; then
18740 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
18742 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
18743 if test "x" = "x" ; then # no header, assume found
18744 EXP2L_HEADER_FOUND="1"
18745 else # check for the header
18746 saved_cppflags="${CPPFLAGS}"
18747 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE} "
18748 if test "${ac_cv_header_+set}" = set; then
18749 { echo "$as_me:$LINENO: checking for " >&5
18750 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
18751 if test "${ac_cv_header_+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
18755 echo "${ECHO_T}$ac_cv_header_" >&6; }
18756 else
18757 # Is the header compilable?
18758 { echo "$as_me:$LINENO: checking usability" >&5
18759 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h. */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 $ac_includes_default
18767 #include <>
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (ac_try="$ac_compile"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_compile") 2>conftest.er1
18777 ac_status=$?
18778 grep -v '^ *+' conftest.er1 >conftest.err
18779 rm -f conftest.er1
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest.$ac_objext; then
18786 ac_header_compiler=yes
18787 else
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_header_compiler=no
18794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18796 echo "${ECHO_T}$ac_header_compiler" >&6; }
18798 # Is the header present?
18799 { echo "$as_me:$LINENO: checking presence" >&5
18800 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
18801 cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h. */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 #include <>
18808 _ACEOF
18809 if { (ac_try="$ac_cpp conftest.$ac_ext"
18810 case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18816 ac_status=$?
18817 grep -v '^ *+' conftest.er1 >conftest.err
18818 rm -f conftest.er1
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } >/dev/null && {
18822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18823 test ! -s conftest.err
18824 }; then
18825 ac_header_preproc=yes
18826 else
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 ac_header_preproc=no
18833 rm -f conftest.err conftest.$ac_ext
18834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18835 echo "${ECHO_T}$ac_header_preproc" >&6; }
18837 # So? What about this header?
18838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18839 yes:no: )
18840 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
18841 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
18843 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
18844 ac_header_preproc=yes
18846 no:yes:* )
18847 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
18848 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
18849 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
18850 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
18851 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
18852 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
18853 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
18854 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
18855 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
18856 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
18857 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
18858 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
18859 ( cat <<\_ASBOX
18860 ## ------------------------------- ##
18861 ## Report this to www.asterisk.org ##
18862 ## ------------------------------- ##
18863 _ASBOX
18864 ) | sed "s/^/$as_me: WARNING: /" >&2
18866 esac
18867 { echo "$as_me:$LINENO: checking for " >&5
18868 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
18869 if test "${ac_cv_header_+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872 ac_cv_header_=$ac_header_preproc
18874 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
18875 echo "${ECHO_T}$ac_cv_header_" >&6; }
18878 if test $ac_cv_header_ = yes; then
18879 EXP2L_HEADER_FOUND=1
18880 else
18881 EXP2L_HEADER_FOUND=0
18885 CPPFLAGS="${saved_cppflags}"
18887 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
18888 EXP2L_LIB=""
18889 EXP2L_INCLUDE=""
18890 else
18891 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18892 EXP2L_LIB=""
18894 PBX_EXP2L=1
18895 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_EXP2L 1
18899 _ACEOF
18902 cat >>confdefs.h <<_ACEOF
18903 #define HAVE_EXP2L_VERSION
18904 _ACEOF
18911 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
18912 pbxlibdir=""
18913 # if --with-LOG2L=DIR has been specified, use it.
18914 if test "x${LOG2L_DIR}" != "x"; then
18915 if test -d ${LOG2L_DIR}/lib; then
18916 pbxlibdir="-L${LOG2L_DIR}/lib"
18917 else
18918 pbxlibdir="-L${LOG2L_DIR}"
18921 pbxfuncname="log2l"
18922 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18923 AST_LOG2L_FOUND=yes
18924 else
18925 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
18926 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
18927 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
18928 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931 ac_check_lib_save_LIBS=$LIBS
18932 LIBS="-lm ${pbxlibdir} $LIBS"
18933 cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h. */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18940 /* Override any GCC internal prototype to avoid an error.
18941 Use char because int might match the return type of a GCC
18942 builtin and then its argument prototype would still apply. */
18943 #ifdef __cplusplus
18944 extern "C"
18945 #endif
18946 char ${pbxfuncname} ();
18948 main ()
18950 return ${pbxfuncname} ();
18952 return 0;
18954 _ACEOF
18955 rm -f conftest.$ac_objext conftest$ac_exeext
18956 if { (ac_try="$ac_link"
18957 case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18960 esac
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_link") 2>conftest.er1
18963 ac_status=$?
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } && {
18969 test -z "$ac_c_werror_flag" ||
18970 test ! -s conftest.err
18971 } && test -s conftest$ac_exeext &&
18972 $as_test_x conftest$ac_exeext; then
18973 eval "$as_ac_Lib=yes"
18974 else
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 eval "$as_ac_Lib=no"
18981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18982 conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18985 ac_res=`eval echo '${'$as_ac_Lib'}'`
18986 { echo "$as_me:$LINENO: result: $ac_res" >&5
18987 echo "${ECHO_T}$ac_res" >&6; }
18988 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18989 AST_LOG2L_FOUND=yes
18990 else
18991 AST_LOG2L_FOUND=no
18996 # now check for the header.
18997 if test "${AST_LOG2L_FOUND}" = "yes"; then
18998 LOG2L_LIB="${pbxlibdir} -lm "
18999 # if --with-LOG2L=DIR has been specified, use it.
19000 if test "x${LOG2L_DIR}" != "x"; then
19001 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19003 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19004 if test "x" = "x" ; then # no header, assume found
19005 LOG2L_HEADER_FOUND="1"
19006 else # check for the header
19007 saved_cppflags="${CPPFLAGS}"
19008 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE} "
19009 if test "${ac_cv_header_+set}" = set; then
19010 { echo "$as_me:$LINENO: checking for " >&5
19011 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19012 if test "${ac_cv_header_+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19016 echo "${ECHO_T}$ac_cv_header_" >&6; }
19017 else
19018 # Is the header compilable?
19019 { echo "$as_me:$LINENO: checking usability" >&5
19020 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19021 cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h. */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19027 $ac_includes_default
19028 #include <>
19029 _ACEOF
19030 rm -f conftest.$ac_objext
19031 if { (ac_try="$ac_compile"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_compile") 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } && {
19044 test -z "$ac_c_werror_flag" ||
19045 test ! -s conftest.err
19046 } && test -s conftest.$ac_objext; then
19047 ac_header_compiler=yes
19048 else
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ac_header_compiler=no
19055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19057 echo "${ECHO_T}$ac_header_compiler" >&6; }
19059 # Is the header present?
19060 { echo "$as_me:$LINENO: checking presence" >&5
19061 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19062 cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h. */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068 #include <>
19069 _ACEOF
19070 if { (ac_try="$ac_cpp conftest.$ac_ext"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } >/dev/null && {
19083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 }; then
19086 ac_header_preproc=yes
19087 else
19088 echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19091 ac_header_preproc=no
19094 rm -f conftest.err conftest.$ac_ext
19095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19096 echo "${ECHO_T}$ac_header_preproc" >&6; }
19098 # So? What about this header?
19099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19100 yes:no: )
19101 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19102 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19103 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19104 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19105 ac_header_preproc=yes
19107 no:yes:* )
19108 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19109 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19110 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19111 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19112 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19113 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19114 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19115 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19116 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19117 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19118 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19119 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19120 ( cat <<\_ASBOX
19121 ## ------------------------------- ##
19122 ## Report this to www.asterisk.org ##
19123 ## ------------------------------- ##
19124 _ASBOX
19125 ) | sed "s/^/$as_me: WARNING: /" >&2
19127 esac
19128 { echo "$as_me:$LINENO: checking for " >&5
19129 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19130 if test "${ac_cv_header_+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19133 ac_cv_header_=$ac_header_preproc
19135 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19136 echo "${ECHO_T}$ac_cv_header_" >&6; }
19139 if test $ac_cv_header_ = yes; then
19140 LOG2L_HEADER_FOUND=1
19141 else
19142 LOG2L_HEADER_FOUND=0
19146 CPPFLAGS="${saved_cppflags}"
19148 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19149 LOG2L_LIB=""
19150 LOG2L_INCLUDE=""
19151 else
19152 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19153 LOG2L_LIB=""
19155 PBX_LOG2L=1
19156 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19158 cat >>confdefs.h <<_ACEOF
19159 #define HAVE_LOG2L 1
19160 _ACEOF
19163 cat >>confdefs.h <<_ACEOF
19164 #define HAVE_LOG2L_VERSION
19165 _ACEOF
19172 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19173 pbxlibdir=""
19174 # if --with-EXP10L=DIR has been specified, use it.
19175 if test "x${EXP10L_DIR}" != "x"; then
19176 if test -d ${EXP10L_DIR}/lib; then
19177 pbxlibdir="-L${EXP10L_DIR}/lib"
19178 else
19179 pbxlibdir="-L${EXP10L_DIR}"
19182 pbxfuncname="exp10l"
19183 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19184 AST_EXP10L_FOUND=yes
19185 else
19186 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19187 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19188 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19189 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 else
19192 ac_check_lib_save_LIBS=$LIBS
19193 LIBS="-lm ${pbxlibdir} $LIBS"
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h. */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19201 /* Override any GCC internal prototype to avoid an error.
19202 Use char because int might match the return type of a GCC
19203 builtin and then its argument prototype would still apply. */
19204 #ifdef __cplusplus
19205 extern "C"
19206 #endif
19207 char ${pbxfuncname} ();
19209 main ()
19211 return ${pbxfuncname} ();
19213 return 0;
19215 _ACEOF
19216 rm -f conftest.$ac_objext conftest$ac_exeext
19217 if { (ac_try="$ac_link"
19218 case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_link") 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } && {
19230 test -z "$ac_c_werror_flag" ||
19231 test ! -s conftest.err
19232 } && test -s conftest$ac_exeext &&
19233 $as_test_x conftest$ac_exeext; then
19234 eval "$as_ac_Lib=yes"
19235 else
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 eval "$as_ac_Lib=no"
19242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19243 conftest$ac_exeext conftest.$ac_ext
19244 LIBS=$ac_check_lib_save_LIBS
19246 ac_res=`eval echo '${'$as_ac_Lib'}'`
19247 { echo "$as_me:$LINENO: result: $ac_res" >&5
19248 echo "${ECHO_T}$ac_res" >&6; }
19249 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19250 AST_EXP10L_FOUND=yes
19251 else
19252 AST_EXP10L_FOUND=no
19257 # now check for the header.
19258 if test "${AST_EXP10L_FOUND}" = "yes"; then
19259 EXP10L_LIB="${pbxlibdir} -lm "
19260 # if --with-EXP10L=DIR has been specified, use it.
19261 if test "x${EXP10L_DIR}" != "x"; then
19262 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19264 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19265 if test "x" = "x" ; then # no header, assume found
19266 EXP10L_HEADER_FOUND="1"
19267 else # check for the header
19268 saved_cppflags="${CPPFLAGS}"
19269 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE} "
19270 if test "${ac_cv_header_+set}" = set; then
19271 { echo "$as_me:$LINENO: checking for " >&5
19272 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19273 if test "${ac_cv_header_+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19277 echo "${ECHO_T}$ac_cv_header_" >&6; }
19278 else
19279 # Is the header compilable?
19280 { echo "$as_me:$LINENO: checking usability" >&5
19281 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19282 cat >conftest.$ac_ext <<_ACEOF
19283 /* confdefs.h. */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19288 $ac_includes_default
19289 #include <>
19290 _ACEOF
19291 rm -f conftest.$ac_objext
19292 if { (ac_try="$ac_compile"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_compile") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest.$ac_objext; then
19308 ac_header_compiler=yes
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_header_compiler=no
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19318 echo "${ECHO_T}$ac_header_compiler" >&6; }
19320 # Is the header present?
19321 { echo "$as_me:$LINENO: checking presence" >&5
19322 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 #include <>
19330 _ACEOF
19331 if { (ac_try="$ac_cpp conftest.$ac_ext"
19332 case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19335 esac
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19338 ac_status=$?
19339 grep -v '^ *+' conftest.er1 >conftest.err
19340 rm -f conftest.er1
19341 cat conftest.err >&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } >/dev/null && {
19344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19345 test ! -s conftest.err
19346 }; then
19347 ac_header_preproc=yes
19348 else
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 ac_header_preproc=no
19355 rm -f conftest.err conftest.$ac_ext
19356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19357 echo "${ECHO_T}$ac_header_preproc" >&6; }
19359 # So? What about this header?
19360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19361 yes:no: )
19362 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19363 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19364 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19365 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19366 ac_header_preproc=yes
19368 no:yes:* )
19369 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19370 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19371 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19372 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19373 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19374 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19375 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19376 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19377 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19378 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19379 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19380 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19381 ( cat <<\_ASBOX
19382 ## ------------------------------- ##
19383 ## Report this to www.asterisk.org ##
19384 ## ------------------------------- ##
19385 _ASBOX
19386 ) | sed "s/^/$as_me: WARNING: /" >&2
19388 esac
19389 { echo "$as_me:$LINENO: checking for " >&5
19390 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19391 if test "${ac_cv_header_+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394 ac_cv_header_=$ac_header_preproc
19396 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19397 echo "${ECHO_T}$ac_cv_header_" >&6; }
19400 if test $ac_cv_header_ = yes; then
19401 EXP10L_HEADER_FOUND=1
19402 else
19403 EXP10L_HEADER_FOUND=0
19407 CPPFLAGS="${saved_cppflags}"
19409 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19410 EXP10L_LIB=""
19411 EXP10L_INCLUDE=""
19412 else
19413 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19414 EXP10L_LIB=""
19416 PBX_EXP10L=1
19417 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19419 cat >>confdefs.h <<_ACEOF
19420 #define HAVE_EXP10L 1
19421 _ACEOF
19424 cat >>confdefs.h <<_ACEOF
19425 #define HAVE_EXP10L_VERSION
19426 _ACEOF
19433 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19434 pbxlibdir=""
19435 # if --with-LOG10L=DIR has been specified, use it.
19436 if test "x${LOG10L_DIR}" != "x"; then
19437 if test -d ${LOG10L_DIR}/lib; then
19438 pbxlibdir="-L${LOG10L_DIR}/lib"
19439 else
19440 pbxlibdir="-L${LOG10L_DIR}"
19443 pbxfuncname="log10l"
19444 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19445 AST_LOG10L_FOUND=yes
19446 else
19447 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19448 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19449 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19450 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 else
19453 ac_check_lib_save_LIBS=$LIBS
19454 LIBS="-lm ${pbxlibdir} $LIBS"
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19462 /* Override any GCC internal prototype to avoid an error.
19463 Use char because int might match the return type of a GCC
19464 builtin and then its argument prototype would still apply. */
19465 #ifdef __cplusplus
19466 extern "C"
19467 #endif
19468 char ${pbxfuncname} ();
19470 main ()
19472 return ${pbxfuncname} ();
19474 return 0;
19476 _ACEOF
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_link") 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest$ac_exeext &&
19494 $as_test_x conftest$ac_exeext; then
19495 eval "$as_ac_Lib=yes"
19496 else
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19500 eval "$as_ac_Lib=no"
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504 conftest$ac_exeext conftest.$ac_ext
19505 LIBS=$ac_check_lib_save_LIBS
19507 ac_res=`eval echo '${'$as_ac_Lib'}'`
19508 { echo "$as_me:$LINENO: result: $ac_res" >&5
19509 echo "${ECHO_T}$ac_res" >&6; }
19510 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19511 AST_LOG10L_FOUND=yes
19512 else
19513 AST_LOG10L_FOUND=no
19518 # now check for the header.
19519 if test "${AST_LOG10L_FOUND}" = "yes"; then
19520 LOG10L_LIB="${pbxlibdir} -lm "
19521 # if --with-LOG10L=DIR has been specified, use it.
19522 if test "x${LOG10L_DIR}" != "x"; then
19523 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
19525 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
19526 if test "x" = "x" ; then # no header, assume found
19527 LOG10L_HEADER_FOUND="1"
19528 else # check for the header
19529 saved_cppflags="${CPPFLAGS}"
19530 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE} "
19531 if test "${ac_cv_header_+set}" = set; then
19532 { echo "$as_me:$LINENO: checking for " >&5
19533 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19534 if test "${ac_cv_header_+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19537 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19538 echo "${ECHO_T}$ac_cv_header_" >&6; }
19539 else
19540 # Is the header compilable?
19541 { echo "$as_me:$LINENO: checking usability" >&5
19542 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19543 cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h. */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19549 $ac_includes_default
19550 #include <>
19551 _ACEOF
19552 rm -f conftest.$ac_objext
19553 if { (ac_try="$ac_compile"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_compile") 2>conftest.er1
19560 ac_status=$?
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest.$ac_objext; then
19569 ac_header_compiler=yes
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_header_compiler=no
19577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19579 echo "${ECHO_T}$ac_header_compiler" >&6; }
19581 # Is the header present?
19582 { echo "$as_me:$LINENO: checking presence" >&5
19583 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19584 cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h. */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 #include <>
19591 _ACEOF
19592 if { (ac_try="$ac_cpp conftest.$ac_ext"
19593 case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19599 ac_status=$?
19600 grep -v '^ *+' conftest.er1 >conftest.err
19601 rm -f conftest.er1
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } >/dev/null && {
19605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19606 test ! -s conftest.err
19607 }; then
19608 ac_header_preproc=yes
19609 else
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19613 ac_header_preproc=no
19616 rm -f conftest.err conftest.$ac_ext
19617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19618 echo "${ECHO_T}$ac_header_preproc" >&6; }
19620 # So? What about this header?
19621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19622 yes:no: )
19623 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19624 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19626 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19627 ac_header_preproc=yes
19629 no:yes:* )
19630 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19631 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19633 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19635 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19637 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19638 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19639 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19640 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19641 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19642 ( cat <<\_ASBOX
19643 ## ------------------------------- ##
19644 ## Report this to www.asterisk.org ##
19645 ## ------------------------------- ##
19646 _ASBOX
19647 ) | sed "s/^/$as_me: WARNING: /" >&2
19649 esac
19650 { echo "$as_me:$LINENO: checking for " >&5
19651 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19652 if test "${ac_cv_header_+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 ac_cv_header_=$ac_header_preproc
19657 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19658 echo "${ECHO_T}$ac_cv_header_" >&6; }
19661 if test $ac_cv_header_ = yes; then
19662 LOG10L_HEADER_FOUND=1
19663 else
19664 LOG10L_HEADER_FOUND=0
19668 CPPFLAGS="${saved_cppflags}"
19670 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
19671 LOG10L_LIB=""
19672 LOG10L_INCLUDE=""
19673 else
19674 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19675 LOG10L_LIB=""
19677 PBX_LOG10L=1
19678 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19680 cat >>confdefs.h <<_ACEOF
19681 #define HAVE_LOG10L 1
19682 _ACEOF
19685 cat >>confdefs.h <<_ACEOF
19686 #define HAVE_LOG10L_VERSION
19687 _ACEOF
19694 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
19695 pbxlibdir=""
19696 # if --with-SINL=DIR has been specified, use it.
19697 if test "x${SINL_DIR}" != "x"; then
19698 if test -d ${SINL_DIR}/lib; then
19699 pbxlibdir="-L${SINL_DIR}/lib"
19700 else
19701 pbxlibdir="-L${SINL_DIR}"
19704 pbxfuncname="sinl"
19705 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19706 AST_SINL_FOUND=yes
19707 else
19708 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19709 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19710 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19711 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lm ${pbxlibdir} $LIBS"
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h. */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19726 #ifdef __cplusplus
19727 extern "C"
19728 #endif
19729 char ${pbxfuncname} ();
19731 main ()
19733 return ${pbxfuncname} ();
19735 return 0;
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_link") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest$ac_exeext &&
19755 $as_test_x conftest$ac_exeext; then
19756 eval "$as_ac_Lib=yes"
19757 else
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 eval "$as_ac_Lib=no"
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19768 ac_res=`eval echo '${'$as_ac_Lib'}'`
19769 { echo "$as_me:$LINENO: result: $ac_res" >&5
19770 echo "${ECHO_T}$ac_res" >&6; }
19771 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19772 AST_SINL_FOUND=yes
19773 else
19774 AST_SINL_FOUND=no
19779 # now check for the header.
19780 if test "${AST_SINL_FOUND}" = "yes"; then
19781 SINL_LIB="${pbxlibdir} -lm "
19782 # if --with-SINL=DIR has been specified, use it.
19783 if test "x${SINL_DIR}" != "x"; then
19784 SINL_INCLUDE="-I${SINL_DIR}/include"
19786 SINL_INCLUDE="${SINL_INCLUDE} "
19787 if test "x" = "x" ; then # no header, assume found
19788 SINL_HEADER_FOUND="1"
19789 else # check for the header
19790 saved_cppflags="${CPPFLAGS}"
19791 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE} "
19792 if test "${ac_cv_header_+set}" = set; then
19793 { echo "$as_me:$LINENO: checking for " >&5
19794 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19795 if test "${ac_cv_header_+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19799 echo "${ECHO_T}$ac_cv_header_" >&6; }
19800 else
19801 # Is the header compilable?
19802 { echo "$as_me:$LINENO: checking usability" >&5
19803 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19804 cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h. */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810 $ac_includes_default
19811 #include <>
19812 _ACEOF
19813 rm -f conftest.$ac_objext
19814 if { (ac_try="$ac_compile"
19815 case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_compile") 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest.$ac_objext; then
19830 ac_header_compiler=yes
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_header_compiler=no
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19840 echo "${ECHO_T}$ac_header_compiler" >&6; }
19842 # Is the header present?
19843 { echo "$as_me:$LINENO: checking presence" >&5
19844 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 #include <>
19852 _ACEOF
19853 if { (ac_try="$ac_cpp conftest.$ac_ext"
19854 case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19860 ac_status=$?
19861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } >/dev/null && {
19866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19867 test ! -s conftest.err
19868 }; then
19869 ac_header_preproc=yes
19870 else
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_header_preproc=no
19877 rm -f conftest.err conftest.$ac_ext
19878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879 echo "${ECHO_T}$ac_header_preproc" >&6; }
19881 # So? What about this header?
19882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19883 yes:no: )
19884 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19885 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19887 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19888 ac_header_preproc=yes
19890 no:yes:* )
19891 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19892 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19894 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19896 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19898 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19900 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19902 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19903 ( cat <<\_ASBOX
19904 ## ------------------------------- ##
19905 ## Report this to www.asterisk.org ##
19906 ## ------------------------------- ##
19907 _ASBOX
19908 ) | sed "s/^/$as_me: WARNING: /" >&2
19910 esac
19911 { echo "$as_me:$LINENO: checking for " >&5
19912 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19913 if test "${ac_cv_header_+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916 ac_cv_header_=$ac_header_preproc
19918 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19919 echo "${ECHO_T}$ac_cv_header_" >&6; }
19922 if test $ac_cv_header_ = yes; then
19923 SINL_HEADER_FOUND=1
19924 else
19925 SINL_HEADER_FOUND=0
19929 CPPFLAGS="${saved_cppflags}"
19931 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
19932 SINL_LIB=""
19933 SINL_INCLUDE=""
19934 else
19935 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19936 SINL_LIB=""
19938 PBX_SINL=1
19939 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_SINL 1
19943 _ACEOF
19946 cat >>confdefs.h <<_ACEOF
19947 #define HAVE_SINL_VERSION
19948 _ACEOF
19955 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
19956 pbxlibdir=""
19957 # if --with-COSL=DIR has been specified, use it.
19958 if test "x${COSL_DIR}" != "x"; then
19959 if test -d ${COSL_DIR}/lib; then
19960 pbxlibdir="-L${COSL_DIR}/lib"
19961 else
19962 pbxlibdir="-L${COSL_DIR}"
19965 pbxfuncname="cosl"
19966 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19967 AST_COSL_FOUND=yes
19968 else
19969 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19970 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19971 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19972 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 ac_check_lib_save_LIBS=$LIBS
19976 LIBS="-lm ${pbxlibdir} $LIBS"
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19984 /* Override any GCC internal prototype to avoid an error.
19985 Use char because int might match the return type of a GCC
19986 builtin and then its argument prototype would still apply. */
19987 #ifdef __cplusplus
19988 extern "C"
19989 #endif
19990 char ${pbxfuncname} ();
19992 main ()
19994 return ${pbxfuncname} ();
19996 return 0;
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (ac_try="$ac_link"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest$ac_exeext &&
20016 $as_test_x conftest$ac_exeext; then
20017 eval "$as_ac_Lib=yes"
20018 else
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 eval "$as_ac_Lib=no"
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026 conftest$ac_exeext conftest.$ac_ext
20027 LIBS=$ac_check_lib_save_LIBS
20029 ac_res=`eval echo '${'$as_ac_Lib'}'`
20030 { echo "$as_me:$LINENO: result: $ac_res" >&5
20031 echo "${ECHO_T}$ac_res" >&6; }
20032 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20033 AST_COSL_FOUND=yes
20034 else
20035 AST_COSL_FOUND=no
20040 # now check for the header.
20041 if test "${AST_COSL_FOUND}" = "yes"; then
20042 COSL_LIB="${pbxlibdir} -lm "
20043 # if --with-COSL=DIR has been specified, use it.
20044 if test "x${COSL_DIR}" != "x"; then
20045 COSL_INCLUDE="-I${COSL_DIR}/include"
20047 COSL_INCLUDE="${COSL_INCLUDE} "
20048 if test "x" = "x" ; then # no header, assume found
20049 COSL_HEADER_FOUND="1"
20050 else # check for the header
20051 saved_cppflags="${CPPFLAGS}"
20052 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE} "
20053 if test "${ac_cv_header_+set}" = set; then
20054 { echo "$as_me:$LINENO: checking for " >&5
20055 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20056 if test "${ac_cv_header_+set}" = set; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20060 echo "${ECHO_T}$ac_cv_header_" >&6; }
20061 else
20062 # Is the header compilable?
20063 { echo "$as_me:$LINENO: checking usability" >&5
20064 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h. */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 $ac_includes_default
20072 #include <>
20073 _ACEOF
20074 rm -f conftest.$ac_objext
20075 if { (ac_try="$ac_compile"
20076 case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20079 esac
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081 (eval "$ac_compile") 2>conftest.er1
20082 ac_status=$?
20083 grep -v '^ *+' conftest.er1 >conftest.err
20084 rm -f conftest.er1
20085 cat conftest.err >&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } && {
20088 test -z "$ac_c_werror_flag" ||
20089 test ! -s conftest.err
20090 } && test -s conftest.$ac_objext; then
20091 ac_header_compiler=yes
20092 else
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_header_compiler=no
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20101 echo "${ECHO_T}$ac_header_compiler" >&6; }
20103 # Is the header present?
20104 { echo "$as_me:$LINENO: checking presence" >&5
20105 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20106 cat >conftest.$ac_ext <<_ACEOF
20107 /* confdefs.h. */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20112 #include <>
20113 _ACEOF
20114 if { (ac_try="$ac_cpp conftest.$ac_ext"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } >/dev/null && {
20127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 }; then
20130 ac_header_preproc=yes
20131 else
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 ac_header_preproc=no
20138 rm -f conftest.err conftest.$ac_ext
20139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20140 echo "${ECHO_T}$ac_header_preproc" >&6; }
20142 # So? What about this header?
20143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20144 yes:no: )
20145 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20146 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20147 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20148 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20149 ac_header_preproc=yes
20151 no:yes:* )
20152 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20153 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20155 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20157 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20159 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20161 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20162 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20163 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20164 ( cat <<\_ASBOX
20165 ## ------------------------------- ##
20166 ## Report this to www.asterisk.org ##
20167 ## ------------------------------- ##
20168 _ASBOX
20169 ) | sed "s/^/$as_me: WARNING: /" >&2
20171 esac
20172 { echo "$as_me:$LINENO: checking for " >&5
20173 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20174 if test "${ac_cv_header_+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 ac_cv_header_=$ac_header_preproc
20179 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20180 echo "${ECHO_T}$ac_cv_header_" >&6; }
20183 if test $ac_cv_header_ = yes; then
20184 COSL_HEADER_FOUND=1
20185 else
20186 COSL_HEADER_FOUND=0
20190 CPPFLAGS="${saved_cppflags}"
20192 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20193 COSL_LIB=""
20194 COSL_INCLUDE=""
20195 else
20196 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20197 COSL_LIB=""
20199 PBX_COSL=1
20200 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20202 cat >>confdefs.h <<_ACEOF
20203 #define HAVE_COSL 1
20204 _ACEOF
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_COSL_VERSION
20209 _ACEOF
20216 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20217 pbxlibdir=""
20218 # if --with-TANL=DIR has been specified, use it.
20219 if test "x${TANL_DIR}" != "x"; then
20220 if test -d ${TANL_DIR}/lib; then
20221 pbxlibdir="-L${TANL_DIR}/lib"
20222 else
20223 pbxlibdir="-L${TANL_DIR}"
20226 pbxfuncname="tanl"
20227 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20228 AST_TANL_FOUND=yes
20229 else
20230 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20231 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20232 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20233 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236 ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-lm ${pbxlibdir} $LIBS"
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char ${pbxfuncname} ();
20253 main ()
20255 return ${pbxfuncname} ();
20257 return 0;
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest$ac_exeext &&
20277 $as_test_x conftest$ac_exeext; then
20278 eval "$as_ac_Lib=yes"
20279 else
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 eval "$as_ac_Lib=no"
20286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20287 conftest$ac_exeext conftest.$ac_ext
20288 LIBS=$ac_check_lib_save_LIBS
20290 ac_res=`eval echo '${'$as_ac_Lib'}'`
20291 { echo "$as_me:$LINENO: result: $ac_res" >&5
20292 echo "${ECHO_T}$ac_res" >&6; }
20293 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20294 AST_TANL_FOUND=yes
20295 else
20296 AST_TANL_FOUND=no
20301 # now check for the header.
20302 if test "${AST_TANL_FOUND}" = "yes"; then
20303 TANL_LIB="${pbxlibdir} -lm "
20304 # if --with-TANL=DIR has been specified, use it.
20305 if test "x${TANL_DIR}" != "x"; then
20306 TANL_INCLUDE="-I${TANL_DIR}/include"
20308 TANL_INCLUDE="${TANL_INCLUDE} "
20309 if test "x" = "x" ; then # no header, assume found
20310 TANL_HEADER_FOUND="1"
20311 else # check for the header
20312 saved_cppflags="${CPPFLAGS}"
20313 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE} "
20314 if test "${ac_cv_header_+set}" = set; then
20315 { echo "$as_me:$LINENO: checking for " >&5
20316 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20317 if test "${ac_cv_header_+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20321 echo "${ECHO_T}$ac_cv_header_" >&6; }
20322 else
20323 # Is the header compilable?
20324 { echo "$as_me:$LINENO: checking usability" >&5
20325 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332 $ac_includes_default
20333 #include <>
20334 _ACEOF
20335 rm -f conftest.$ac_objext
20336 if { (ac_try="$ac_compile"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_compile") 2>conftest.er1
20343 ac_status=$?
20344 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } && {
20349 test -z "$ac_c_werror_flag" ||
20350 test ! -s conftest.err
20351 } && test -s conftest.$ac_objext; then
20352 ac_header_compiler=yes
20353 else
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20357 ac_header_compiler=no
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20362 echo "${ECHO_T}$ac_header_compiler" >&6; }
20364 # Is the header present?
20365 { echo "$as_me:$LINENO: checking presence" >&5
20366 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20367 cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h. */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 #include <>
20374 _ACEOF
20375 if { (ac_try="$ac_cpp conftest.$ac_ext"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } >/dev/null && {
20388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20389 test ! -s conftest.err
20390 }; then
20391 ac_header_preproc=yes
20392 else
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_header_preproc=no
20399 rm -f conftest.err conftest.$ac_ext
20400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20401 echo "${ECHO_T}$ac_header_preproc" >&6; }
20403 # So? What about this header?
20404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20405 yes:no: )
20406 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20407 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20409 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20410 ac_header_preproc=yes
20412 no:yes:* )
20413 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20414 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20416 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20418 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20420 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20422 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20424 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20425 ( cat <<\_ASBOX
20426 ## ------------------------------- ##
20427 ## Report this to www.asterisk.org ##
20428 ## ------------------------------- ##
20429 _ASBOX
20430 ) | sed "s/^/$as_me: WARNING: /" >&2
20432 esac
20433 { echo "$as_me:$LINENO: checking for " >&5
20434 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20435 if test "${ac_cv_header_+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438 ac_cv_header_=$ac_header_preproc
20440 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20441 echo "${ECHO_T}$ac_cv_header_" >&6; }
20444 if test $ac_cv_header_ = yes; then
20445 TANL_HEADER_FOUND=1
20446 else
20447 TANL_HEADER_FOUND=0
20451 CPPFLAGS="${saved_cppflags}"
20453 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
20454 TANL_LIB=""
20455 TANL_INCLUDE=""
20456 else
20457 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20458 TANL_LIB=""
20460 PBX_TANL=1
20461 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20463 cat >>confdefs.h <<_ACEOF
20464 #define HAVE_TANL 1
20465 _ACEOF
20468 cat >>confdefs.h <<_ACEOF
20469 #define HAVE_TANL_VERSION
20470 _ACEOF
20477 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
20478 pbxlibdir=""
20479 # if --with-ASINL=DIR has been specified, use it.
20480 if test "x${ASINL_DIR}" != "x"; then
20481 if test -d ${ASINL_DIR}/lib; then
20482 pbxlibdir="-L${ASINL_DIR}/lib"
20483 else
20484 pbxlibdir="-L${ASINL_DIR}"
20487 pbxfuncname="asinl"
20488 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20489 AST_ASINL_FOUND=yes
20490 else
20491 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20492 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20493 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20494 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497 ac_check_lib_save_LIBS=$LIBS
20498 LIBS="-lm ${pbxlibdir} $LIBS"
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h. */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20506 /* Override any GCC internal prototype to avoid an error.
20507 Use char because int might match the return type of a GCC
20508 builtin and then its argument prototype would still apply. */
20509 #ifdef __cplusplus
20510 extern "C"
20511 #endif
20512 char ${pbxfuncname} ();
20514 main ()
20516 return ${pbxfuncname} ();
20518 return 0;
20520 _ACEOF
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_link") 2>conftest.er1
20529 ac_status=$?
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } && {
20535 test -z "$ac_c_werror_flag" ||
20536 test ! -s conftest.err
20537 } && test -s conftest$ac_exeext &&
20538 $as_test_x conftest$ac_exeext; then
20539 eval "$as_ac_Lib=yes"
20540 else
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 eval "$as_ac_Lib=no"
20547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20548 conftest$ac_exeext conftest.$ac_ext
20549 LIBS=$ac_check_lib_save_LIBS
20551 ac_res=`eval echo '${'$as_ac_Lib'}'`
20552 { echo "$as_me:$LINENO: result: $ac_res" >&5
20553 echo "${ECHO_T}$ac_res" >&6; }
20554 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20555 AST_ASINL_FOUND=yes
20556 else
20557 AST_ASINL_FOUND=no
20562 # now check for the header.
20563 if test "${AST_ASINL_FOUND}" = "yes"; then
20564 ASINL_LIB="${pbxlibdir} -lm "
20565 # if --with-ASINL=DIR has been specified, use it.
20566 if test "x${ASINL_DIR}" != "x"; then
20567 ASINL_INCLUDE="-I${ASINL_DIR}/include"
20569 ASINL_INCLUDE="${ASINL_INCLUDE} "
20570 if test "x" = "x" ; then # no header, assume found
20571 ASINL_HEADER_FOUND="1"
20572 else # check for the header
20573 saved_cppflags="${CPPFLAGS}"
20574 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE} "
20575 if test "${ac_cv_header_+set}" = set; then
20576 { echo "$as_me:$LINENO: checking for " >&5
20577 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20578 if test "${ac_cv_header_+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20582 echo "${ECHO_T}$ac_cv_header_" >&6; }
20583 else
20584 # Is the header compilable?
20585 { echo "$as_me:$LINENO: checking usability" >&5
20586 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 $ac_includes_default
20594 #include <>
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20601 esac
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_compile") 2>conftest.er1
20604 ac_status=$?
20605 grep -v '^ *+' conftest.er1 >conftest.err
20606 rm -f conftest.er1
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } && {
20610 test -z "$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20612 } && test -s conftest.$ac_objext; then
20613 ac_header_compiler=yes
20614 else
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_header_compiler=no
20621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20623 echo "${ECHO_T}$ac_header_compiler" >&6; }
20625 # Is the header present?
20626 { echo "$as_me:$LINENO: checking presence" >&5
20627 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20628 cat >conftest.$ac_ext <<_ACEOF
20629 /* confdefs.h. */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20634 #include <>
20635 _ACEOF
20636 if { (ac_try="$ac_cpp conftest.$ac_ext"
20637 case "(($ac_try" in
20638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639 *) ac_try_echo=$ac_try;;
20640 esac
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20643 ac_status=$?
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } >/dev/null && {
20649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20650 test ! -s conftest.err
20651 }; then
20652 ac_header_preproc=yes
20653 else
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ac_header_preproc=no
20660 rm -f conftest.err conftest.$ac_ext
20661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20662 echo "${ECHO_T}$ac_header_preproc" >&6; }
20664 # So? What about this header?
20665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20666 yes:no: )
20667 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20668 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20670 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20671 ac_header_preproc=yes
20673 no:yes:* )
20674 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20675 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20676 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20677 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20678 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20679 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20680 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20681 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20682 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20683 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20685 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20686 ( cat <<\_ASBOX
20687 ## ------------------------------- ##
20688 ## Report this to www.asterisk.org ##
20689 ## ------------------------------- ##
20690 _ASBOX
20691 ) | sed "s/^/$as_me: WARNING: /" >&2
20693 esac
20694 { echo "$as_me:$LINENO: checking for " >&5
20695 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20696 if test "${ac_cv_header_+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699 ac_cv_header_=$ac_header_preproc
20701 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20702 echo "${ECHO_T}$ac_cv_header_" >&6; }
20705 if test $ac_cv_header_ = yes; then
20706 ASINL_HEADER_FOUND=1
20707 else
20708 ASINL_HEADER_FOUND=0
20712 CPPFLAGS="${saved_cppflags}"
20714 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
20715 ASINL_LIB=""
20716 ASINL_INCLUDE=""
20717 else
20718 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20719 ASINL_LIB=""
20721 PBX_ASINL=1
20722 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20724 cat >>confdefs.h <<_ACEOF
20725 #define HAVE_ASINL 1
20726 _ACEOF
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_ASINL_VERSION
20731 _ACEOF
20738 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
20739 pbxlibdir=""
20740 # if --with-ACOSL=DIR has been specified, use it.
20741 if test "x${ACOSL_DIR}" != "x"; then
20742 if test -d ${ACOSL_DIR}/lib; then
20743 pbxlibdir="-L${ACOSL_DIR}/lib"
20744 else
20745 pbxlibdir="-L${ACOSL_DIR}"
20748 pbxfuncname="acosl"
20749 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20750 AST_ACOSL_FOUND=yes
20751 else
20752 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20753 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20754 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20755 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758 ac_check_lib_save_LIBS=$LIBS
20759 LIBS="-lm ${pbxlibdir} $LIBS"
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h. */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20767 /* Override any GCC internal prototype to avoid an error.
20768 Use char because int might match the return type of a GCC
20769 builtin and then its argument prototype would still apply. */
20770 #ifdef __cplusplus
20771 extern "C"
20772 #endif
20773 char ${pbxfuncname} ();
20775 main ()
20777 return ${pbxfuncname} ();
20779 return 0;
20781 _ACEOF
20782 rm -f conftest.$ac_objext conftest$ac_exeext
20783 if { (ac_try="$ac_link"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_link") 2>conftest.er1
20790 ac_status=$?
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } && {
20796 test -z "$ac_c_werror_flag" ||
20797 test ! -s conftest.err
20798 } && test -s conftest$ac_exeext &&
20799 $as_test_x conftest$ac_exeext; then
20800 eval "$as_ac_Lib=yes"
20801 else
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 eval "$as_ac_Lib=no"
20808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20809 conftest$ac_exeext conftest.$ac_ext
20810 LIBS=$ac_check_lib_save_LIBS
20812 ac_res=`eval echo '${'$as_ac_Lib'}'`
20813 { echo "$as_me:$LINENO: result: $ac_res" >&5
20814 echo "${ECHO_T}$ac_res" >&6; }
20815 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20816 AST_ACOSL_FOUND=yes
20817 else
20818 AST_ACOSL_FOUND=no
20823 # now check for the header.
20824 if test "${AST_ACOSL_FOUND}" = "yes"; then
20825 ACOSL_LIB="${pbxlibdir} -lm "
20826 # if --with-ACOSL=DIR has been specified, use it.
20827 if test "x${ACOSL_DIR}" != "x"; then
20828 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
20830 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
20831 if test "x" = "x" ; then # no header, assume found
20832 ACOSL_HEADER_FOUND="1"
20833 else # check for the header
20834 saved_cppflags="${CPPFLAGS}"
20835 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE} "
20836 if test "${ac_cv_header_+set}" = set; then
20837 { echo "$as_me:$LINENO: checking for " >&5
20838 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20839 if test "${ac_cv_header_+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20843 echo "${ECHO_T}$ac_cv_header_" >&6; }
20844 else
20845 # Is the header compilable?
20846 { echo "$as_me:$LINENO: checking usability" >&5
20847 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 $ac_includes_default
20855 #include <>
20856 _ACEOF
20857 rm -f conftest.$ac_objext
20858 if { (ac_try="$ac_compile"
20859 case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20862 esac
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_compile") 2>conftest.er1
20865 ac_status=$?
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } && {
20871 test -z "$ac_c_werror_flag" ||
20872 test ! -s conftest.err
20873 } && test -s conftest.$ac_objext; then
20874 ac_header_compiler=yes
20875 else
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ac_header_compiler=no
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20884 echo "${ECHO_T}$ac_header_compiler" >&6; }
20886 # Is the header present?
20887 { echo "$as_me:$LINENO: checking presence" >&5
20888 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 #include <>
20896 _ACEOF
20897 if { (ac_try="$ac_cpp conftest.$ac_ext"
20898 case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } >/dev/null && {
20910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20912 }; then
20913 ac_header_preproc=yes
20914 else
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 ac_header_preproc=no
20921 rm -f conftest.err conftest.$ac_ext
20922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20923 echo "${ECHO_T}$ac_header_preproc" >&6; }
20925 # So? What about this header?
20926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20927 yes:no: )
20928 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20929 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20931 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20932 ac_header_preproc=yes
20934 no:yes:* )
20935 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20936 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20938 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20940 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20942 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20944 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20946 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20947 ( cat <<\_ASBOX
20948 ## ------------------------------- ##
20949 ## Report this to www.asterisk.org ##
20950 ## ------------------------------- ##
20951 _ASBOX
20952 ) | sed "s/^/$as_me: WARNING: /" >&2
20954 esac
20955 { echo "$as_me:$LINENO: checking for " >&5
20956 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20957 if test "${ac_cv_header_+set}" = set; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960 ac_cv_header_=$ac_header_preproc
20962 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20963 echo "${ECHO_T}$ac_cv_header_" >&6; }
20966 if test $ac_cv_header_ = yes; then
20967 ACOSL_HEADER_FOUND=1
20968 else
20969 ACOSL_HEADER_FOUND=0
20973 CPPFLAGS="${saved_cppflags}"
20975 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
20976 ACOSL_LIB=""
20977 ACOSL_INCLUDE=""
20978 else
20979 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20980 ACOSL_LIB=""
20982 PBX_ACOSL=1
20983 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20985 cat >>confdefs.h <<_ACEOF
20986 #define HAVE_ACOSL 1
20987 _ACEOF
20990 cat >>confdefs.h <<_ACEOF
20991 #define HAVE_ACOSL_VERSION
20992 _ACEOF
20999 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21000 pbxlibdir=""
21001 # if --with-ATANL=DIR has been specified, use it.
21002 if test "x${ATANL_DIR}" != "x"; then
21003 if test -d ${ATANL_DIR}/lib; then
21004 pbxlibdir="-L${ATANL_DIR}/lib"
21005 else
21006 pbxlibdir="-L${ATANL_DIR}"
21009 pbxfuncname="atanl"
21010 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21011 AST_ATANL_FOUND=yes
21012 else
21013 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21014 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21015 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21016 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019 ac_check_lib_save_LIBS=$LIBS
21020 LIBS="-lm ${pbxlibdir} $LIBS"
21021 cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h. */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21028 /* Override any GCC internal prototype to avoid an error.
21029 Use char because int might match the return type of a GCC
21030 builtin and then its argument prototype would still apply. */
21031 #ifdef __cplusplus
21032 extern "C"
21033 #endif
21034 char ${pbxfuncname} ();
21036 main ()
21038 return ${pbxfuncname} ();
21040 return 0;
21042 _ACEOF
21043 rm -f conftest.$ac_objext conftest$ac_exeext
21044 if { (ac_try="$ac_link"
21045 case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_link") 2>conftest.er1
21051 ac_status=$?
21052 grep -v '^ *+' conftest.er1 >conftest.err
21053 rm -f conftest.er1
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && {
21057 test -z "$ac_c_werror_flag" ||
21058 test ! -s conftest.err
21059 } && test -s conftest$ac_exeext &&
21060 $as_test_x conftest$ac_exeext; then
21061 eval "$as_ac_Lib=yes"
21062 else
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 eval "$as_ac_Lib=no"
21069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21070 conftest$ac_exeext conftest.$ac_ext
21071 LIBS=$ac_check_lib_save_LIBS
21073 ac_res=`eval echo '${'$as_ac_Lib'}'`
21074 { echo "$as_me:$LINENO: result: $ac_res" >&5
21075 echo "${ECHO_T}$ac_res" >&6; }
21076 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21077 AST_ATANL_FOUND=yes
21078 else
21079 AST_ATANL_FOUND=no
21084 # now check for the header.
21085 if test "${AST_ATANL_FOUND}" = "yes"; then
21086 ATANL_LIB="${pbxlibdir} -lm "
21087 # if --with-ATANL=DIR has been specified, use it.
21088 if test "x${ATANL_DIR}" != "x"; then
21089 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21091 ATANL_INCLUDE="${ATANL_INCLUDE} "
21092 if test "x" = "x" ; then # no header, assume found
21093 ATANL_HEADER_FOUND="1"
21094 else # check for the header
21095 saved_cppflags="${CPPFLAGS}"
21096 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE} "
21097 if test "${ac_cv_header_+set}" = set; then
21098 { echo "$as_me:$LINENO: checking for " >&5
21099 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21100 if test "${ac_cv_header_+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21104 echo "${ECHO_T}$ac_cv_header_" >&6; }
21105 else
21106 # Is the header compilable?
21107 { echo "$as_me:$LINENO: checking usability" >&5
21108 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21109 cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h. */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 $ac_includes_default
21116 #include <>
21117 _ACEOF
21118 rm -f conftest.$ac_objext
21119 if { (ac_try="$ac_compile"
21120 case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21123 esac
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_compile") 2>conftest.er1
21126 ac_status=$?
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest.$ac_objext; then
21135 ac_header_compiler=yes
21136 else
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ac_header_compiler=no
21143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21145 echo "${ECHO_T}$ac_header_compiler" >&6; }
21147 # Is the header present?
21148 { echo "$as_me:$LINENO: checking presence" >&5
21149 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21150 cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h. */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 #include <>
21157 _ACEOF
21158 if { (ac_try="$ac_cpp conftest.$ac_ext"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } >/dev/null && {
21171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 }; then
21174 ac_header_preproc=yes
21175 else
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 ac_header_preproc=no
21182 rm -f conftest.err conftest.$ac_ext
21183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21184 echo "${ECHO_T}$ac_header_preproc" >&6; }
21186 # So? What about this header?
21187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21188 yes:no: )
21189 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21190 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21191 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21192 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21193 ac_header_preproc=yes
21195 no:yes:* )
21196 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21197 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21199 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21201 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21203 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21205 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21207 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21208 ( cat <<\_ASBOX
21209 ## ------------------------------- ##
21210 ## Report this to www.asterisk.org ##
21211 ## ------------------------------- ##
21212 _ASBOX
21213 ) | sed "s/^/$as_me: WARNING: /" >&2
21215 esac
21216 { echo "$as_me:$LINENO: checking for " >&5
21217 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21218 if test "${ac_cv_header_+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221 ac_cv_header_=$ac_header_preproc
21223 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21224 echo "${ECHO_T}$ac_cv_header_" >&6; }
21227 if test $ac_cv_header_ = yes; then
21228 ATANL_HEADER_FOUND=1
21229 else
21230 ATANL_HEADER_FOUND=0
21234 CPPFLAGS="${saved_cppflags}"
21236 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21237 ATANL_LIB=""
21238 ATANL_INCLUDE=""
21239 else
21240 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21241 ATANL_LIB=""
21243 PBX_ATANL=1
21244 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21246 cat >>confdefs.h <<_ACEOF
21247 #define HAVE_ATANL 1
21248 _ACEOF
21251 cat >>confdefs.h <<_ACEOF
21252 #define HAVE_ATANL_VERSION
21253 _ACEOF
21260 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21261 pbxlibdir=""
21262 # if --with-ATAN2L=DIR has been specified, use it.
21263 if test "x${ATAN2L_DIR}" != "x"; then
21264 if test -d ${ATAN2L_DIR}/lib; then
21265 pbxlibdir="-L${ATAN2L_DIR}/lib"
21266 else
21267 pbxlibdir="-L${ATAN2L_DIR}"
21270 pbxfuncname="atan2l"
21271 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21272 AST_ATAN2L_FOUND=yes
21273 else
21274 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21275 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21276 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21277 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 else
21280 ac_check_lib_save_LIBS=$LIBS
21281 LIBS="-lm ${pbxlibdir} $LIBS"
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h. */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21289 /* Override any GCC internal prototype to avoid an error.
21290 Use char because int might match the return type of a GCC
21291 builtin and then its argument prototype would still apply. */
21292 #ifdef __cplusplus
21293 extern "C"
21294 #endif
21295 char ${pbxfuncname} ();
21297 main ()
21299 return ${pbxfuncname} ();
21301 return 0;
21303 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_link") 2>conftest.er1
21312 ac_status=$?
21313 grep -v '^ *+' conftest.er1 >conftest.err
21314 rm -f conftest.er1
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } && {
21318 test -z "$ac_c_werror_flag" ||
21319 test ! -s conftest.err
21320 } && test -s conftest$ac_exeext &&
21321 $as_test_x conftest$ac_exeext; then
21322 eval "$as_ac_Lib=yes"
21323 else
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 eval "$as_ac_Lib=no"
21330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21331 conftest$ac_exeext conftest.$ac_ext
21332 LIBS=$ac_check_lib_save_LIBS
21334 ac_res=`eval echo '${'$as_ac_Lib'}'`
21335 { echo "$as_me:$LINENO: result: $ac_res" >&5
21336 echo "${ECHO_T}$ac_res" >&6; }
21337 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21338 AST_ATAN2L_FOUND=yes
21339 else
21340 AST_ATAN2L_FOUND=no
21345 # now check for the header.
21346 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21347 ATAN2L_LIB="${pbxlibdir} -lm "
21348 # if --with-ATAN2L=DIR has been specified, use it.
21349 if test "x${ATAN2L_DIR}" != "x"; then
21350 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21352 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21353 if test "x" = "x" ; then # no header, assume found
21354 ATAN2L_HEADER_FOUND="1"
21355 else # check for the header
21356 saved_cppflags="${CPPFLAGS}"
21357 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE} "
21358 if test "${ac_cv_header_+set}" = set; then
21359 { echo "$as_me:$LINENO: checking for " >&5
21360 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21361 if test "${ac_cv_header_+set}" = set; then
21362 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21365 echo "${ECHO_T}$ac_cv_header_" >&6; }
21366 else
21367 # Is the header compilable?
21368 { echo "$as_me:$LINENO: checking usability" >&5
21369 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h. */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 $ac_includes_default
21377 #include <>
21378 _ACEOF
21379 rm -f conftest.$ac_objext
21380 if { (ac_try="$ac_compile"
21381 case "(($ac_try" in
21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383 *) ac_try_echo=$ac_try;;
21384 esac
21385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386 (eval "$ac_compile") 2>conftest.er1
21387 ac_status=$?
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } && {
21393 test -z "$ac_c_werror_flag" ||
21394 test ! -s conftest.err
21395 } && test -s conftest.$ac_objext; then
21396 ac_header_compiler=yes
21397 else
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_header_compiler=no
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21406 echo "${ECHO_T}$ac_header_compiler" >&6; }
21408 # Is the header present?
21409 { echo "$as_me:$LINENO: checking presence" >&5
21410 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h. */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 #include <>
21418 _ACEOF
21419 if { (ac_try="$ac_cpp conftest.$ac_ext"
21420 case "(($ac_try" in
21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21423 esac
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21426 ac_status=$?
21427 grep -v '^ *+' conftest.er1 >conftest.err
21428 rm -f conftest.er1
21429 cat conftest.err >&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } >/dev/null && {
21432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21433 test ! -s conftest.err
21434 }; then
21435 ac_header_preproc=yes
21436 else
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ac_header_preproc=no
21443 rm -f conftest.err conftest.$ac_ext
21444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21445 echo "${ECHO_T}$ac_header_preproc" >&6; }
21447 # So? What about this header?
21448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21449 yes:no: )
21450 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21451 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21453 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21454 ac_header_preproc=yes
21456 no:yes:* )
21457 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21458 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21460 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21462 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21464 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21466 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21468 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21469 ( cat <<\_ASBOX
21470 ## ------------------------------- ##
21471 ## Report this to www.asterisk.org ##
21472 ## ------------------------------- ##
21473 _ASBOX
21474 ) | sed "s/^/$as_me: WARNING: /" >&2
21476 esac
21477 { echo "$as_me:$LINENO: checking for " >&5
21478 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21479 if test "${ac_cv_header_+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482 ac_cv_header_=$ac_header_preproc
21484 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21485 echo "${ECHO_T}$ac_cv_header_" >&6; }
21488 if test $ac_cv_header_ = yes; then
21489 ATAN2L_HEADER_FOUND=1
21490 else
21491 ATAN2L_HEADER_FOUND=0
21495 CPPFLAGS="${saved_cppflags}"
21497 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
21498 ATAN2L_LIB=""
21499 ATAN2L_INCLUDE=""
21500 else
21501 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21502 ATAN2L_LIB=""
21504 PBX_ATAN2L=1
21505 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21507 cat >>confdefs.h <<_ACEOF
21508 #define HAVE_ATAN2L 1
21509 _ACEOF
21512 cat >>confdefs.h <<_ACEOF
21513 #define HAVE_ATAN2L_VERSION
21514 _ACEOF
21521 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
21522 pbxlibdir=""
21523 # if --with-POWL=DIR has been specified, use it.
21524 if test "x${POWL_DIR}" != "x"; then
21525 if test -d ${POWL_DIR}/lib; then
21526 pbxlibdir="-L${POWL_DIR}/lib"
21527 else
21528 pbxlibdir="-L${POWL_DIR}"
21531 pbxfuncname="powl"
21532 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21533 AST_POWL_FOUND=yes
21534 else
21535 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21536 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21537 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21538 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 else
21541 ac_check_lib_save_LIBS=$LIBS
21542 LIBS="-lm ${pbxlibdir} $LIBS"
21543 cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h. */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21550 /* Override any GCC internal prototype to avoid an error.
21551 Use char because int might match the return type of a GCC
21552 builtin and then its argument prototype would still apply. */
21553 #ifdef __cplusplus
21554 extern "C"
21555 #endif
21556 char ${pbxfuncname} ();
21558 main ()
21560 return ${pbxfuncname} ();
21562 return 0;
21564 _ACEOF
21565 rm -f conftest.$ac_objext conftest$ac_exeext
21566 if { (ac_try="$ac_link"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21570 esac
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_link") 2>conftest.er1
21573 ac_status=$?
21574 grep -v '^ *+' conftest.er1 >conftest.err
21575 rm -f conftest.er1
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } && {
21579 test -z "$ac_c_werror_flag" ||
21580 test ! -s conftest.err
21581 } && test -s conftest$ac_exeext &&
21582 $as_test_x conftest$ac_exeext; then
21583 eval "$as_ac_Lib=yes"
21584 else
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 eval "$as_ac_Lib=no"
21591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21592 conftest$ac_exeext conftest.$ac_ext
21593 LIBS=$ac_check_lib_save_LIBS
21595 ac_res=`eval echo '${'$as_ac_Lib'}'`
21596 { echo "$as_me:$LINENO: result: $ac_res" >&5
21597 echo "${ECHO_T}$ac_res" >&6; }
21598 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21599 AST_POWL_FOUND=yes
21600 else
21601 AST_POWL_FOUND=no
21606 # now check for the header.
21607 if test "${AST_POWL_FOUND}" = "yes"; then
21608 POWL_LIB="${pbxlibdir} -lm "
21609 # if --with-POWL=DIR has been specified, use it.
21610 if test "x${POWL_DIR}" != "x"; then
21611 POWL_INCLUDE="-I${POWL_DIR}/include"
21613 POWL_INCLUDE="${POWL_INCLUDE} "
21614 if test "x" = "x" ; then # no header, assume found
21615 POWL_HEADER_FOUND="1"
21616 else # check for the header
21617 saved_cppflags="${CPPFLAGS}"
21618 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE} "
21619 if test "${ac_cv_header_+set}" = set; then
21620 { echo "$as_me:$LINENO: checking for " >&5
21621 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21622 if test "${ac_cv_header_+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21626 echo "${ECHO_T}$ac_cv_header_" >&6; }
21627 else
21628 # Is the header compilable?
21629 { echo "$as_me:$LINENO: checking usability" >&5
21630 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21631 cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h. */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21637 $ac_includes_default
21638 #include <>
21639 _ACEOF
21640 rm -f conftest.$ac_objext
21641 if { (ac_try="$ac_compile"
21642 case "(($ac_try" in
21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644 *) ac_try_echo=$ac_try;;
21645 esac
21646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21647 (eval "$ac_compile") 2>conftest.er1
21648 ac_status=$?
21649 grep -v '^ *+' conftest.er1 >conftest.err
21650 rm -f conftest.er1
21651 cat conftest.err >&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } && {
21654 test -z "$ac_c_werror_flag" ||
21655 test ! -s conftest.err
21656 } && test -s conftest.$ac_objext; then
21657 ac_header_compiler=yes
21658 else
21659 echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21662 ac_header_compiler=no
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21667 echo "${ECHO_T}$ac_header_compiler" >&6; }
21669 # Is the header present?
21670 { echo "$as_me:$LINENO: checking presence" >&5
21671 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21672 cat >conftest.$ac_ext <<_ACEOF
21673 /* confdefs.h. */
21674 _ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 #include <>
21679 _ACEOF
21680 if { (ac_try="$ac_cpp conftest.$ac_ext"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } >/dev/null && {
21693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 }; then
21696 ac_header_preproc=yes
21697 else
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ac_header_preproc=no
21704 rm -f conftest.err conftest.$ac_ext
21705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21706 echo "${ECHO_T}$ac_header_preproc" >&6; }
21708 # So? What about this header?
21709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21710 yes:no: )
21711 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21712 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21714 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21715 ac_header_preproc=yes
21717 no:yes:* )
21718 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21719 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21721 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21723 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21725 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21727 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21728 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21729 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21730 ( cat <<\_ASBOX
21731 ## ------------------------------- ##
21732 ## Report this to www.asterisk.org ##
21733 ## ------------------------------- ##
21734 _ASBOX
21735 ) | sed "s/^/$as_me: WARNING: /" >&2
21737 esac
21738 { echo "$as_me:$LINENO: checking for " >&5
21739 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21740 if test "${ac_cv_header_+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743 ac_cv_header_=$ac_header_preproc
21745 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21746 echo "${ECHO_T}$ac_cv_header_" >&6; }
21749 if test $ac_cv_header_ = yes; then
21750 POWL_HEADER_FOUND=1
21751 else
21752 POWL_HEADER_FOUND=0
21756 CPPFLAGS="${saved_cppflags}"
21758 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
21759 POWL_LIB=""
21760 POWL_INCLUDE=""
21761 else
21762 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21763 POWL_LIB=""
21765 PBX_POWL=1
21766 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21768 cat >>confdefs.h <<_ACEOF
21769 #define HAVE_POWL 1
21770 _ACEOF
21773 cat >>confdefs.h <<_ACEOF
21774 #define HAVE_POWL_VERSION
21775 _ACEOF
21782 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
21783 pbxlibdir=""
21784 # if --with-SQRTL=DIR has been specified, use it.
21785 if test "x${SQRTL_DIR}" != "x"; then
21786 if test -d ${SQRTL_DIR}/lib; then
21787 pbxlibdir="-L${SQRTL_DIR}/lib"
21788 else
21789 pbxlibdir="-L${SQRTL_DIR}"
21792 pbxfuncname="sqrtl"
21793 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21794 AST_SQRTL_FOUND=yes
21795 else
21796 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21797 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21798 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21799 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 else
21802 ac_check_lib_save_LIBS=$LIBS
21803 LIBS="-lm ${pbxlibdir} $LIBS"
21804 cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h. */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21811 /* Override any GCC internal prototype to avoid an error.
21812 Use char because int might match the return type of a GCC
21813 builtin and then its argument prototype would still apply. */
21814 #ifdef __cplusplus
21815 extern "C"
21816 #endif
21817 char ${pbxfuncname} ();
21819 main ()
21821 return ${pbxfuncname} ();
21823 return 0;
21825 _ACEOF
21826 rm -f conftest.$ac_objext conftest$ac_exeext
21827 if { (ac_try="$ac_link"
21828 case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21831 esac
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_link") 2>conftest.er1
21834 ac_status=$?
21835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_c_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest$ac_exeext &&
21843 $as_test_x conftest$ac_exeext; then
21844 eval "$as_ac_Lib=yes"
21845 else
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 eval "$as_ac_Lib=no"
21852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21853 conftest$ac_exeext conftest.$ac_ext
21854 LIBS=$ac_check_lib_save_LIBS
21856 ac_res=`eval echo '${'$as_ac_Lib'}'`
21857 { echo "$as_me:$LINENO: result: $ac_res" >&5
21858 echo "${ECHO_T}$ac_res" >&6; }
21859 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21860 AST_SQRTL_FOUND=yes
21861 else
21862 AST_SQRTL_FOUND=no
21867 # now check for the header.
21868 if test "${AST_SQRTL_FOUND}" = "yes"; then
21869 SQRTL_LIB="${pbxlibdir} -lm "
21870 # if --with-SQRTL=DIR has been specified, use it.
21871 if test "x${SQRTL_DIR}" != "x"; then
21872 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
21874 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
21875 if test "x" = "x" ; then # no header, assume found
21876 SQRTL_HEADER_FOUND="1"
21877 else # check for the header
21878 saved_cppflags="${CPPFLAGS}"
21879 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE} "
21880 if test "${ac_cv_header_+set}" = set; then
21881 { echo "$as_me:$LINENO: checking for " >&5
21882 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21883 if test "${ac_cv_header_+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21887 echo "${ECHO_T}$ac_cv_header_" >&6; }
21888 else
21889 # Is the header compilable?
21890 { echo "$as_me:$LINENO: checking usability" >&5
21891 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21892 cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h. */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898 $ac_includes_default
21899 #include <>
21900 _ACEOF
21901 rm -f conftest.$ac_objext
21902 if { (ac_try="$ac_compile"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_compile") 2>conftest.er1
21909 ac_status=$?
21910 grep -v '^ *+' conftest.er1 >conftest.err
21911 rm -f conftest.er1
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } && {
21915 test -z "$ac_c_werror_flag" ||
21916 test ! -s conftest.err
21917 } && test -s conftest.$ac_objext; then
21918 ac_header_compiler=yes
21919 else
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ac_header_compiler=no
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21928 echo "${ECHO_T}$ac_header_compiler" >&6; }
21930 # Is the header present?
21931 { echo "$as_me:$LINENO: checking presence" >&5
21932 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h. */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 #include <>
21940 _ACEOF
21941 if { (ac_try="$ac_cpp conftest.$ac_ext"
21942 case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21948 ac_status=$?
21949 grep -v '^ *+' conftest.er1 >conftest.err
21950 rm -f conftest.er1
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } >/dev/null && {
21954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21955 test ! -s conftest.err
21956 }; then
21957 ac_header_preproc=yes
21958 else
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_header_preproc=no
21965 rm -f conftest.err conftest.$ac_ext
21966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21967 echo "${ECHO_T}$ac_header_preproc" >&6; }
21969 # So? What about this header?
21970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21971 yes:no: )
21972 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21973 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21975 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21976 ac_header_preproc=yes
21978 no:yes:* )
21979 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21980 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21982 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21983 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21984 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21985 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21986 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21987 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21988 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21989 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21990 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21991 ( cat <<\_ASBOX
21992 ## ------------------------------- ##
21993 ## Report this to www.asterisk.org ##
21994 ## ------------------------------- ##
21995 _ASBOX
21996 ) | sed "s/^/$as_me: WARNING: /" >&2
21998 esac
21999 { echo "$as_me:$LINENO: checking for " >&5
22000 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22001 if test "${ac_cv_header_+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004 ac_cv_header_=$ac_header_preproc
22006 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22007 echo "${ECHO_T}$ac_cv_header_" >&6; }
22010 if test $ac_cv_header_ = yes; then
22011 SQRTL_HEADER_FOUND=1
22012 else
22013 SQRTL_HEADER_FOUND=0
22017 CPPFLAGS="${saved_cppflags}"
22019 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22020 SQRTL_LIB=""
22021 SQRTL_INCLUDE=""
22022 else
22023 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22024 SQRTL_LIB=""
22026 PBX_SQRTL=1
22027 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_SQRTL 1
22031 _ACEOF
22034 cat >>confdefs.h <<_ACEOF
22035 #define HAVE_SQRTL_VERSION
22036 _ACEOF
22043 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22044 pbxlibdir=""
22045 # if --with-RINTL=DIR has been specified, use it.
22046 if test "x${RINTL_DIR}" != "x"; then
22047 if test -d ${RINTL_DIR}/lib; then
22048 pbxlibdir="-L${RINTL_DIR}/lib"
22049 else
22050 pbxlibdir="-L${RINTL_DIR}"
22053 pbxfuncname="rintl"
22054 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22055 AST_RINTL_FOUND=yes
22056 else
22057 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22058 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22059 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22060 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063 ac_check_lib_save_LIBS=$LIBS
22064 LIBS="-lm ${pbxlibdir} $LIBS"
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h. */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22072 /* Override any GCC internal prototype to avoid an error.
22073 Use char because int might match the return type of a GCC
22074 builtin and then its argument prototype would still apply. */
22075 #ifdef __cplusplus
22076 extern "C"
22077 #endif
22078 char ${pbxfuncname} ();
22080 main ()
22082 return ${pbxfuncname} ();
22084 return 0;
22086 _ACEOF
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_link") 2>conftest.er1
22095 ac_status=$?
22096 grep -v '^ *+' conftest.er1 >conftest.err
22097 rm -f conftest.er1
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } && {
22101 test -z "$ac_c_werror_flag" ||
22102 test ! -s conftest.err
22103 } && test -s conftest$ac_exeext &&
22104 $as_test_x conftest$ac_exeext; then
22105 eval "$as_ac_Lib=yes"
22106 else
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 eval "$as_ac_Lib=no"
22113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22114 conftest$ac_exeext conftest.$ac_ext
22115 LIBS=$ac_check_lib_save_LIBS
22117 ac_res=`eval echo '${'$as_ac_Lib'}'`
22118 { echo "$as_me:$LINENO: result: $ac_res" >&5
22119 echo "${ECHO_T}$ac_res" >&6; }
22120 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22121 AST_RINTL_FOUND=yes
22122 else
22123 AST_RINTL_FOUND=no
22128 # now check for the header.
22129 if test "${AST_RINTL_FOUND}" = "yes"; then
22130 RINTL_LIB="${pbxlibdir} -lm "
22131 # if --with-RINTL=DIR has been specified, use it.
22132 if test "x${RINTL_DIR}" != "x"; then
22133 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22135 RINTL_INCLUDE="${RINTL_INCLUDE} "
22136 if test "x" = "x" ; then # no header, assume found
22137 RINTL_HEADER_FOUND="1"
22138 else # check for the header
22139 saved_cppflags="${CPPFLAGS}"
22140 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE} "
22141 if test "${ac_cv_header_+set}" = set; then
22142 { echo "$as_me:$LINENO: checking for " >&5
22143 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22144 if test "${ac_cv_header_+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22148 echo "${ECHO_T}$ac_cv_header_" >&6; }
22149 else
22150 # Is the header compilable?
22151 { echo "$as_me:$LINENO: checking usability" >&5
22152 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22153 cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h. */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 $ac_includes_default
22160 #include <>
22161 _ACEOF
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166 *) ac_try_echo=$ac_try;;
22167 esac
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169 (eval "$ac_compile") 2>conftest.er1
22170 ac_status=$?
22171 grep -v '^ *+' conftest.er1 >conftest.err
22172 rm -f conftest.er1
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest.$ac_objext; then
22179 ac_header_compiler=yes
22180 else
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ac_header_compiler=no
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22189 echo "${ECHO_T}$ac_header_compiler" >&6; }
22191 # Is the header present?
22192 { echo "$as_me:$LINENO: checking presence" >&5
22193 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22194 cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h. */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 #include <>
22201 _ACEOF
22202 if { (ac_try="$ac_cpp conftest.$ac_ext"
22203 case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22209 ac_status=$?
22210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } >/dev/null && {
22215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22216 test ! -s conftest.err
22217 }; then
22218 ac_header_preproc=yes
22219 else
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 ac_header_preproc=no
22226 rm -f conftest.err conftest.$ac_ext
22227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22228 echo "${ECHO_T}$ac_header_preproc" >&6; }
22230 # So? What about this header?
22231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22232 yes:no: )
22233 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22234 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22236 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22237 ac_header_preproc=yes
22239 no:yes:* )
22240 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22241 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22242 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22243 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22244 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22245 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22246 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22247 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22248 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22249 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22251 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22252 ( cat <<\_ASBOX
22253 ## ------------------------------- ##
22254 ## Report this to www.asterisk.org ##
22255 ## ------------------------------- ##
22256 _ASBOX
22257 ) | sed "s/^/$as_me: WARNING: /" >&2
22259 esac
22260 { echo "$as_me:$LINENO: checking for " >&5
22261 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22262 if test "${ac_cv_header_+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22265 ac_cv_header_=$ac_header_preproc
22267 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22268 echo "${ECHO_T}$ac_cv_header_" >&6; }
22271 if test $ac_cv_header_ = yes; then
22272 RINTL_HEADER_FOUND=1
22273 else
22274 RINTL_HEADER_FOUND=0
22278 CPPFLAGS="${saved_cppflags}"
22280 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22281 RINTL_LIB=""
22282 RINTL_INCLUDE=""
22283 else
22284 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22285 RINTL_LIB=""
22287 PBX_RINTL=1
22288 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22290 cat >>confdefs.h <<_ACEOF
22291 #define HAVE_RINTL 1
22292 _ACEOF
22295 cat >>confdefs.h <<_ACEOF
22296 #define HAVE_RINTL_VERSION
22297 _ACEOF
22304 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22305 pbxlibdir=""
22306 # if --with-EXPL=DIR has been specified, use it.
22307 if test "x${EXPL_DIR}" != "x"; then
22308 if test -d ${EXPL_DIR}/lib; then
22309 pbxlibdir="-L${EXPL_DIR}/lib"
22310 else
22311 pbxlibdir="-L${EXPL_DIR}"
22314 pbxfuncname="expl"
22315 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22316 AST_EXPL_FOUND=yes
22317 else
22318 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22319 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22320 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22321 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324 ac_check_lib_save_LIBS=$LIBS
22325 LIBS="-lm ${pbxlibdir} $LIBS"
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h. */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22333 /* Override any GCC internal prototype to avoid an error.
22334 Use char because int might match the return type of a GCC
22335 builtin and then its argument prototype would still apply. */
22336 #ifdef __cplusplus
22337 extern "C"
22338 #endif
22339 char ${pbxfuncname} ();
22341 main ()
22343 return ${pbxfuncname} ();
22345 return 0;
22347 _ACEOF
22348 rm -f conftest.$ac_objext conftest$ac_exeext
22349 if { (ac_try="$ac_link"
22350 case "(($ac_try" in
22351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352 *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355 (eval "$ac_link") 2>conftest.er1
22356 ac_status=$?
22357 grep -v '^ *+' conftest.er1 >conftest.err
22358 rm -f conftest.er1
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } && {
22362 test -z "$ac_c_werror_flag" ||
22363 test ! -s conftest.err
22364 } && test -s conftest$ac_exeext &&
22365 $as_test_x conftest$ac_exeext; then
22366 eval "$as_ac_Lib=yes"
22367 else
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 eval "$as_ac_Lib=no"
22374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22375 conftest$ac_exeext conftest.$ac_ext
22376 LIBS=$ac_check_lib_save_LIBS
22378 ac_res=`eval echo '${'$as_ac_Lib'}'`
22379 { echo "$as_me:$LINENO: result: $ac_res" >&5
22380 echo "${ECHO_T}$ac_res" >&6; }
22381 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22382 AST_EXPL_FOUND=yes
22383 else
22384 AST_EXPL_FOUND=no
22389 # now check for the header.
22390 if test "${AST_EXPL_FOUND}" = "yes"; then
22391 EXPL_LIB="${pbxlibdir} -lm "
22392 # if --with-EXPL=DIR has been specified, use it.
22393 if test "x${EXPL_DIR}" != "x"; then
22394 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22396 EXPL_INCLUDE="${EXPL_INCLUDE} "
22397 if test "x" = "x" ; then # no header, assume found
22398 EXPL_HEADER_FOUND="1"
22399 else # check for the header
22400 saved_cppflags="${CPPFLAGS}"
22401 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE} "
22402 if test "${ac_cv_header_+set}" = set; then
22403 { echo "$as_me:$LINENO: checking for " >&5
22404 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22405 if test "${ac_cv_header_+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22409 echo "${ECHO_T}$ac_cv_header_" >&6; }
22410 else
22411 # Is the header compilable?
22412 { echo "$as_me:$LINENO: checking usability" >&5
22413 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22414 cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h. */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 $ac_includes_default
22421 #include <>
22422 _ACEOF
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22428 esac
22429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_compile") 2>conftest.er1
22431 ac_status=$?
22432 grep -v '^ *+' conftest.er1 >conftest.err
22433 rm -f conftest.er1
22434 cat conftest.err >&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } && {
22437 test -z "$ac_c_werror_flag" ||
22438 test ! -s conftest.err
22439 } && test -s conftest.$ac_objext; then
22440 ac_header_compiler=yes
22441 else
22442 echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_header_compiler=no
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22450 echo "${ECHO_T}$ac_header_compiler" >&6; }
22452 # Is the header present?
22453 { echo "$as_me:$LINENO: checking presence" >&5
22454 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h. */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 #include <>
22462 _ACEOF
22463 if { (ac_try="$ac_cpp conftest.$ac_ext"
22464 case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22470 ac_status=$?
22471 grep -v '^ *+' conftest.er1 >conftest.err
22472 rm -f conftest.er1
22473 cat conftest.err >&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } >/dev/null && {
22476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22477 test ! -s conftest.err
22478 }; then
22479 ac_header_preproc=yes
22480 else
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_header_preproc=no
22487 rm -f conftest.err conftest.$ac_ext
22488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22489 echo "${ECHO_T}$ac_header_preproc" >&6; }
22491 # So? What about this header?
22492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22493 yes:no: )
22494 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22495 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22496 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22497 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22498 ac_header_preproc=yes
22500 no:yes:* )
22501 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22502 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22503 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22504 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22505 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22506 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22507 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22508 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22509 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22510 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22511 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22512 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22513 ( cat <<\_ASBOX
22514 ## ------------------------------- ##
22515 ## Report this to www.asterisk.org ##
22516 ## ------------------------------- ##
22517 _ASBOX
22518 ) | sed "s/^/$as_me: WARNING: /" >&2
22520 esac
22521 { echo "$as_me:$LINENO: checking for " >&5
22522 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22523 if test "${ac_cv_header_+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526 ac_cv_header_=$ac_header_preproc
22528 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22529 echo "${ECHO_T}$ac_cv_header_" >&6; }
22532 if test $ac_cv_header_ = yes; then
22533 EXPL_HEADER_FOUND=1
22534 else
22535 EXPL_HEADER_FOUND=0
22539 CPPFLAGS="${saved_cppflags}"
22541 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
22542 EXPL_LIB=""
22543 EXPL_INCLUDE=""
22544 else
22545 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22546 EXPL_LIB=""
22548 PBX_EXPL=1
22549 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_EXPL 1
22553 _ACEOF
22556 cat >>confdefs.h <<_ACEOF
22557 #define HAVE_EXPL_VERSION
22558 _ACEOF
22565 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
22566 pbxlibdir=""
22567 # if --with-LOGL=DIR has been specified, use it.
22568 if test "x${LOGL_DIR}" != "x"; then
22569 if test -d ${LOGL_DIR}/lib; then
22570 pbxlibdir="-L${LOGL_DIR}/lib"
22571 else
22572 pbxlibdir="-L${LOGL_DIR}"
22575 pbxfuncname="logl"
22576 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22577 AST_LOGL_FOUND=yes
22578 else
22579 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22580 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22581 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22582 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585 ac_check_lib_save_LIBS=$LIBS
22586 LIBS="-lm ${pbxlibdir} $LIBS"
22587 cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h. */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22594 /* Override any GCC internal prototype to avoid an error.
22595 Use char because int might match the return type of a GCC
22596 builtin and then its argument prototype would still apply. */
22597 #ifdef __cplusplus
22598 extern "C"
22599 #endif
22600 char ${pbxfuncname} ();
22602 main ()
22604 return ${pbxfuncname} ();
22606 return 0;
22608 _ACEOF
22609 rm -f conftest.$ac_objext conftest$ac_exeext
22610 if { (ac_try="$ac_link"
22611 case "(($ac_try" in
22612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22613 *) ac_try_echo=$ac_try;;
22614 esac
22615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22616 (eval "$ac_link") 2>conftest.er1
22617 ac_status=$?
22618 grep -v '^ *+' conftest.er1 >conftest.err
22619 rm -f conftest.er1
22620 cat conftest.err >&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } && {
22623 test -z "$ac_c_werror_flag" ||
22624 test ! -s conftest.err
22625 } && test -s conftest$ac_exeext &&
22626 $as_test_x conftest$ac_exeext; then
22627 eval "$as_ac_Lib=yes"
22628 else
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 eval "$as_ac_Lib=no"
22635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22636 conftest$ac_exeext conftest.$ac_ext
22637 LIBS=$ac_check_lib_save_LIBS
22639 ac_res=`eval echo '${'$as_ac_Lib'}'`
22640 { echo "$as_me:$LINENO: result: $ac_res" >&5
22641 echo "${ECHO_T}$ac_res" >&6; }
22642 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22643 AST_LOGL_FOUND=yes
22644 else
22645 AST_LOGL_FOUND=no
22650 # now check for the header.
22651 if test "${AST_LOGL_FOUND}" = "yes"; then
22652 LOGL_LIB="${pbxlibdir} -lm "
22653 # if --with-LOGL=DIR has been specified, use it.
22654 if test "x${LOGL_DIR}" != "x"; then
22655 LOGL_INCLUDE="-I${LOGL_DIR}/include"
22657 LOGL_INCLUDE="${LOGL_INCLUDE} "
22658 if test "x" = "x" ; then # no header, assume found
22659 LOGL_HEADER_FOUND="1"
22660 else # check for the header
22661 saved_cppflags="${CPPFLAGS}"
22662 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE} "
22663 if test "${ac_cv_header_+set}" = set; then
22664 { echo "$as_me:$LINENO: checking for " >&5
22665 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22666 if test "${ac_cv_header_+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22670 echo "${ECHO_T}$ac_cv_header_" >&6; }
22671 else
22672 # Is the header compilable?
22673 { echo "$as_me:$LINENO: checking usability" >&5
22674 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22675 cat >conftest.$ac_ext <<_ACEOF
22676 /* confdefs.h. */
22677 _ACEOF
22678 cat confdefs.h >>conftest.$ac_ext
22679 cat >>conftest.$ac_ext <<_ACEOF
22680 /* end confdefs.h. */
22681 $ac_includes_default
22682 #include <>
22683 _ACEOF
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 ac_header_compiler=yes
22702 else
22703 echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22706 ac_header_compiler=no
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22711 echo "${ECHO_T}$ac_header_compiler" >&6; }
22713 # Is the header present?
22714 { echo "$as_me:$LINENO: checking presence" >&5
22715 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22716 cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h. */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 #include <>
22723 _ACEOF
22724 if { (ac_try="$ac_cpp conftest.$ac_ext"
22725 case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22731 ac_status=$?
22732 grep -v '^ *+' conftest.er1 >conftest.err
22733 rm -f conftest.er1
22734 cat conftest.err >&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } >/dev/null && {
22737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 }; then
22740 ac_header_preproc=yes
22741 else
22742 echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 ac_header_preproc=no
22748 rm -f conftest.err conftest.$ac_ext
22749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22750 echo "${ECHO_T}$ac_header_preproc" >&6; }
22752 # So? What about this header?
22753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22754 yes:no: )
22755 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22756 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22757 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22758 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22759 ac_header_preproc=yes
22761 no:yes:* )
22762 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22763 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22764 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22765 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22766 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22767 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22768 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22769 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22770 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22771 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22772 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22773 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22774 ( cat <<\_ASBOX
22775 ## ------------------------------- ##
22776 ## Report this to www.asterisk.org ##
22777 ## ------------------------------- ##
22778 _ASBOX
22779 ) | sed "s/^/$as_me: WARNING: /" >&2
22781 esac
22782 { echo "$as_me:$LINENO: checking for " >&5
22783 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22784 if test "${ac_cv_header_+set}" = set; then
22785 echo $ECHO_N "(cached) $ECHO_C" >&6
22786 else
22787 ac_cv_header_=$ac_header_preproc
22789 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22790 echo "${ECHO_T}$ac_cv_header_" >&6; }
22793 if test $ac_cv_header_ = yes; then
22794 LOGL_HEADER_FOUND=1
22795 else
22796 LOGL_HEADER_FOUND=0
22800 CPPFLAGS="${saved_cppflags}"
22802 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
22803 LOGL_LIB=""
22804 LOGL_INCLUDE=""
22805 else
22806 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22807 LOGL_LIB=""
22809 PBX_LOGL=1
22810 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22812 cat >>confdefs.h <<_ACEOF
22813 #define HAVE_LOGL 1
22814 _ACEOF
22817 cat >>confdefs.h <<_ACEOF
22818 #define HAVE_LOGL_VERSION
22819 _ACEOF
22826 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
22827 pbxlibdir=""
22828 # if --with-REMAINDERL=DIR has been specified, use it.
22829 if test "x${REMAINDERL_DIR}" != "x"; then
22830 if test -d ${REMAINDERL_DIR}/lib; then
22831 pbxlibdir="-L${REMAINDERL_DIR}/lib"
22832 else
22833 pbxlibdir="-L${REMAINDERL_DIR}"
22836 pbxfuncname="remainderl"
22837 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22838 AST_REMAINDERL_FOUND=yes
22839 else
22840 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22841 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22842 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22843 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846 ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lm ${pbxlibdir} $LIBS"
22848 cat >conftest.$ac_ext <<_ACEOF
22849 /* confdefs.h. */
22850 _ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22855 /* Override any GCC internal prototype to avoid an error.
22856 Use char because int might match the return type of a GCC
22857 builtin and then its argument prototype would still apply. */
22858 #ifdef __cplusplus
22859 extern "C"
22860 #endif
22861 char ${pbxfuncname} ();
22863 main ()
22865 return ${pbxfuncname} ();
22867 return 0;
22869 _ACEOF
22870 rm -f conftest.$ac_objext conftest$ac_exeext
22871 if { (ac_try="$ac_link"
22872 case "(($ac_try" in
22873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874 *) ac_try_echo=$ac_try;;
22875 esac
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877 (eval "$ac_link") 2>conftest.er1
22878 ac_status=$?
22879 grep -v '^ *+' conftest.er1 >conftest.err
22880 rm -f conftest.er1
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } && {
22884 test -z "$ac_c_werror_flag" ||
22885 test ! -s conftest.err
22886 } && test -s conftest$ac_exeext &&
22887 $as_test_x conftest$ac_exeext; then
22888 eval "$as_ac_Lib=yes"
22889 else
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 eval "$as_ac_Lib=no"
22896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22897 conftest$ac_exeext conftest.$ac_ext
22898 LIBS=$ac_check_lib_save_LIBS
22900 ac_res=`eval echo '${'$as_ac_Lib'}'`
22901 { echo "$as_me:$LINENO: result: $ac_res" >&5
22902 echo "${ECHO_T}$ac_res" >&6; }
22903 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22904 AST_REMAINDERL_FOUND=yes
22905 else
22906 AST_REMAINDERL_FOUND=no
22911 # now check for the header.
22912 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
22913 REMAINDERL_LIB="${pbxlibdir} -lm "
22914 # if --with-REMAINDERL=DIR has been specified, use it.
22915 if test "x${REMAINDERL_DIR}" != "x"; then
22916 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
22918 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
22919 if test "x" = "x" ; then # no header, assume found
22920 REMAINDERL_HEADER_FOUND="1"
22921 else # check for the header
22922 saved_cppflags="${CPPFLAGS}"
22923 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE} "
22924 if test "${ac_cv_header_+set}" = set; then
22925 { echo "$as_me:$LINENO: checking for " >&5
22926 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22927 if test "${ac_cv_header_+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22930 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22931 echo "${ECHO_T}$ac_cv_header_" >&6; }
22932 else
22933 # Is the header compilable?
22934 { echo "$as_me:$LINENO: checking usability" >&5
22935 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22936 cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h. */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 $ac_includes_default
22943 #include <>
22944 _ACEOF
22945 rm -f conftest.$ac_objext
22946 if { (ac_try="$ac_compile"
22947 case "(($ac_try" in
22948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949 *) ac_try_echo=$ac_try;;
22950 esac
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952 (eval "$ac_compile") 2>conftest.er1
22953 ac_status=$?
22954 grep -v '^ *+' conftest.er1 >conftest.err
22955 rm -f conftest.er1
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && {
22959 test -z "$ac_c_werror_flag" ||
22960 test ! -s conftest.err
22961 } && test -s conftest.$ac_objext; then
22962 ac_header_compiler=yes
22963 else
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ac_header_compiler=no
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22972 echo "${ECHO_T}$ac_header_compiler" >&6; }
22974 # Is the header present?
22975 { echo "$as_me:$LINENO: checking presence" >&5
22976 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h. */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 #include <>
22984 _ACEOF
22985 if { (ac_try="$ac_cpp conftest.$ac_ext"
22986 case "(($ac_try" in
22987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22992 ac_status=$?
22993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } >/dev/null && {
22998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23000 }; then
23001 ac_header_preproc=yes
23002 else
23003 echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23006 ac_header_preproc=no
23009 rm -f conftest.err conftest.$ac_ext
23010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23011 echo "${ECHO_T}$ac_header_preproc" >&6; }
23013 # So? What about this header?
23014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23015 yes:no: )
23016 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23017 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23018 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23019 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23020 ac_header_preproc=yes
23022 no:yes:* )
23023 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23024 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23025 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23026 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23027 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23028 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23029 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23030 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23031 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23032 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23033 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23034 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23035 ( cat <<\_ASBOX
23036 ## ------------------------------- ##
23037 ## Report this to www.asterisk.org ##
23038 ## ------------------------------- ##
23039 _ASBOX
23040 ) | sed "s/^/$as_me: WARNING: /" >&2
23042 esac
23043 { echo "$as_me:$LINENO: checking for " >&5
23044 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23045 if test "${ac_cv_header_+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23048 ac_cv_header_=$ac_header_preproc
23050 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23051 echo "${ECHO_T}$ac_cv_header_" >&6; }
23054 if test $ac_cv_header_ = yes; then
23055 REMAINDERL_HEADER_FOUND=1
23056 else
23057 REMAINDERL_HEADER_FOUND=0
23061 CPPFLAGS="${saved_cppflags}"
23063 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23064 REMAINDERL_LIB=""
23065 REMAINDERL_INCLUDE=""
23066 else
23067 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23068 REMAINDERL_LIB=""
23070 PBX_REMAINDERL=1
23071 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23073 cat >>confdefs.h <<_ACEOF
23074 #define HAVE_REMAINDERL 1
23075 _ACEOF
23078 cat >>confdefs.h <<_ACEOF
23079 #define HAVE_REMAINDERL_VERSION
23080 _ACEOF
23087 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23088 pbxlibdir=""
23089 # if --with-FMODL=DIR has been specified, use it.
23090 if test "x${FMODL_DIR}" != "x"; then
23091 if test -d ${FMODL_DIR}/lib; then
23092 pbxlibdir="-L${FMODL_DIR}/lib"
23093 else
23094 pbxlibdir="-L${FMODL_DIR}"
23097 pbxfuncname="fmodl"
23098 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23099 AST_FMODL_FOUND=yes
23100 else
23101 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23102 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23103 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23104 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107 ac_check_lib_save_LIBS=$LIBS
23108 LIBS="-lm ${pbxlibdir} $LIBS"
23109 cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h. */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23116 /* Override any GCC internal prototype to avoid an error.
23117 Use char because int might match the return type of a GCC
23118 builtin and then its argument prototype would still apply. */
23119 #ifdef __cplusplus
23120 extern "C"
23121 #endif
23122 char ${pbxfuncname} ();
23124 main ()
23126 return ${pbxfuncname} ();
23128 return 0;
23130 _ACEOF
23131 rm -f conftest.$ac_objext conftest$ac_exeext
23132 if { (ac_try="$ac_link"
23133 case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_link") 2>conftest.er1
23139 ac_status=$?
23140 grep -v '^ *+' conftest.er1 >conftest.err
23141 rm -f conftest.er1
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && {
23145 test -z "$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 } && test -s conftest$ac_exeext &&
23148 $as_test_x conftest$ac_exeext; then
23149 eval "$as_ac_Lib=yes"
23150 else
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 eval "$as_ac_Lib=no"
23157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23158 conftest$ac_exeext conftest.$ac_ext
23159 LIBS=$ac_check_lib_save_LIBS
23161 ac_res=`eval echo '${'$as_ac_Lib'}'`
23162 { echo "$as_me:$LINENO: result: $ac_res" >&5
23163 echo "${ECHO_T}$ac_res" >&6; }
23164 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23165 AST_FMODL_FOUND=yes
23166 else
23167 AST_FMODL_FOUND=no
23172 # now check for the header.
23173 if test "${AST_FMODL_FOUND}" = "yes"; then
23174 FMODL_LIB="${pbxlibdir} -lm "
23175 # if --with-FMODL=DIR has been specified, use it.
23176 if test "x${FMODL_DIR}" != "x"; then
23177 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23179 FMODL_INCLUDE="${FMODL_INCLUDE} "
23180 if test "x" = "x" ; then # no header, assume found
23181 FMODL_HEADER_FOUND="1"
23182 else # check for the header
23183 saved_cppflags="${CPPFLAGS}"
23184 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE} "
23185 if test "${ac_cv_header_+set}" = set; then
23186 { echo "$as_me:$LINENO: checking for " >&5
23187 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23188 if test "${ac_cv_header_+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23191 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23192 echo "${ECHO_T}$ac_cv_header_" >&6; }
23193 else
23194 # Is the header compilable?
23195 { echo "$as_me:$LINENO: checking usability" >&5
23196 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23197 cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h. */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 $ac_includes_default
23204 #include <>
23205 _ACEOF
23206 rm -f conftest.$ac_objext
23207 if { (ac_try="$ac_compile"
23208 case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_compile") 2>conftest.er1
23214 ac_status=$?
23215 grep -v '^ *+' conftest.er1 >conftest.err
23216 rm -f conftest.er1
23217 cat conftest.err >&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } && {
23220 test -z "$ac_c_werror_flag" ||
23221 test ! -s conftest.err
23222 } && test -s conftest.$ac_objext; then
23223 ac_header_compiler=yes
23224 else
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23228 ac_header_compiler=no
23231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23233 echo "${ECHO_T}$ac_header_compiler" >&6; }
23235 # Is the header present?
23236 { echo "$as_me:$LINENO: checking presence" >&5
23237 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23238 cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h. */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 #include <>
23245 _ACEOF
23246 if { (ac_try="$ac_cpp conftest.$ac_ext"
23247 case "(($ac_try" in
23248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249 *) ac_try_echo=$ac_try;;
23250 esac
23251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23253 ac_status=$?
23254 grep -v '^ *+' conftest.er1 >conftest.err
23255 rm -f conftest.er1
23256 cat conftest.err >&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } >/dev/null && {
23259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23260 test ! -s conftest.err
23261 }; then
23262 ac_header_preproc=yes
23263 else
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23267 ac_header_preproc=no
23270 rm -f conftest.err conftest.$ac_ext
23271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23272 echo "${ECHO_T}$ac_header_preproc" >&6; }
23274 # So? What about this header?
23275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23276 yes:no: )
23277 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23278 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23279 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23280 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23281 ac_header_preproc=yes
23283 no:yes:* )
23284 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23285 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23286 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23287 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23288 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23289 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23290 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23291 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23292 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23293 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23294 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23295 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23296 ( cat <<\_ASBOX
23297 ## ------------------------------- ##
23298 ## Report this to www.asterisk.org ##
23299 ## ------------------------------- ##
23300 _ASBOX
23301 ) | sed "s/^/$as_me: WARNING: /" >&2
23303 esac
23304 { echo "$as_me:$LINENO: checking for " >&5
23305 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23306 if test "${ac_cv_header_+set}" = set; then
23307 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 else
23309 ac_cv_header_=$ac_header_preproc
23311 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23312 echo "${ECHO_T}$ac_cv_header_" >&6; }
23315 if test $ac_cv_header_ = yes; then
23316 FMODL_HEADER_FOUND=1
23317 else
23318 FMODL_HEADER_FOUND=0
23322 CPPFLAGS="${saved_cppflags}"
23324 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23325 FMODL_LIB=""
23326 FMODL_INCLUDE=""
23327 else
23328 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23329 FMODL_LIB=""
23331 PBX_FMODL=1
23332 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23334 cat >>confdefs.h <<_ACEOF
23335 #define HAVE_FMODL 1
23336 _ACEOF
23339 cat >>confdefs.h <<_ACEOF
23340 #define HAVE_FMODL_VERSION
23341 _ACEOF
23348 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23349 pbxlibdir=""
23350 # if --with-ROUNDL=DIR has been specified, use it.
23351 if test "x${ROUNDL_DIR}" != "x"; then
23352 if test -d ${ROUNDL_DIR}/lib; then
23353 pbxlibdir="-L${ROUNDL_DIR}/lib"
23354 else
23355 pbxlibdir="-L${ROUNDL_DIR}"
23358 pbxfuncname="roundl"
23359 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23360 AST_ROUNDL_FOUND=yes
23361 else
23362 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23363 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23364 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23365 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23368 ac_check_lib_save_LIBS=$LIBS
23369 LIBS="-lm ${pbxlibdir} $LIBS"
23370 cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h. */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h. */
23377 /* Override any GCC internal prototype to avoid an error.
23378 Use char because int might match the return type of a GCC
23379 builtin and then its argument prototype would still apply. */
23380 #ifdef __cplusplus
23381 extern "C"
23382 #endif
23383 char ${pbxfuncname} ();
23385 main ()
23387 return ${pbxfuncname} ();
23389 return 0;
23391 _ACEOF
23392 rm -f conftest.$ac_objext conftest$ac_exeext
23393 if { (ac_try="$ac_link"
23394 case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_link") 2>conftest.er1
23400 ac_status=$?
23401 grep -v '^ *+' conftest.er1 >conftest.err
23402 rm -f conftest.er1
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } && {
23406 test -z "$ac_c_werror_flag" ||
23407 test ! -s conftest.err
23408 } && test -s conftest$ac_exeext &&
23409 $as_test_x conftest$ac_exeext; then
23410 eval "$as_ac_Lib=yes"
23411 else
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 eval "$as_ac_Lib=no"
23418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23419 conftest$ac_exeext conftest.$ac_ext
23420 LIBS=$ac_check_lib_save_LIBS
23422 ac_res=`eval echo '${'$as_ac_Lib'}'`
23423 { echo "$as_me:$LINENO: result: $ac_res" >&5
23424 echo "${ECHO_T}$ac_res" >&6; }
23425 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23426 AST_ROUNDL_FOUND=yes
23427 else
23428 AST_ROUNDL_FOUND=no
23433 # now check for the header.
23434 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23435 ROUNDL_LIB="${pbxlibdir} -lm "
23436 # if --with-ROUNDL=DIR has been specified, use it.
23437 if test "x${ROUNDL_DIR}" != "x"; then
23438 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23440 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23441 if test "x" = "x" ; then # no header, assume found
23442 ROUNDL_HEADER_FOUND="1"
23443 else # check for the header
23444 saved_cppflags="${CPPFLAGS}"
23445 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE} "
23446 if test "${ac_cv_header_+set}" = set; then
23447 { echo "$as_me:$LINENO: checking for " >&5
23448 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23449 if test "${ac_cv_header_+set}" = set; then
23450 echo $ECHO_N "(cached) $ECHO_C" >&6
23452 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23453 echo "${ECHO_T}$ac_cv_header_" >&6; }
23454 else
23455 # Is the header compilable?
23456 { echo "$as_me:$LINENO: checking usability" >&5
23457 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23458 cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h. */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 $ac_includes_default
23465 #include <>
23466 _ACEOF
23467 rm -f conftest.$ac_objext
23468 if { (ac_try="$ac_compile"
23469 case "(($ac_try" in
23470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_compile") 2>conftest.er1
23475 ac_status=$?
23476 grep -v '^ *+' conftest.er1 >conftest.err
23477 rm -f conftest.er1
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest.$ac_objext; then
23484 ac_header_compiler=yes
23485 else
23486 echo "$as_me: failed program was:" >&5
23487 sed 's/^/| /' conftest.$ac_ext >&5
23489 ac_header_compiler=no
23492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23494 echo "${ECHO_T}$ac_header_compiler" >&6; }
23496 # Is the header present?
23497 { echo "$as_me:$LINENO: checking presence" >&5
23498 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 #include <>
23506 _ACEOF
23507 if { (ac_try="$ac_cpp conftest.$ac_ext"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23514 ac_status=$?
23515 grep -v '^ *+' conftest.er1 >conftest.err
23516 rm -f conftest.er1
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } >/dev/null && {
23520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 }; then
23523 ac_header_preproc=yes
23524 else
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_header_preproc=no
23531 rm -f conftest.err conftest.$ac_ext
23532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23533 echo "${ECHO_T}$ac_header_preproc" >&6; }
23535 # So? What about this header?
23536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23537 yes:no: )
23538 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23539 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23540 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23541 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23542 ac_header_preproc=yes
23544 no:yes:* )
23545 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23546 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23547 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23548 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23549 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23550 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23551 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23552 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23553 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23554 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23555 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23556 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23557 ( cat <<\_ASBOX
23558 ## ------------------------------- ##
23559 ## Report this to www.asterisk.org ##
23560 ## ------------------------------- ##
23561 _ASBOX
23562 ) | sed "s/^/$as_me: WARNING: /" >&2
23564 esac
23565 { echo "$as_me:$LINENO: checking for " >&5
23566 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23567 if test "${ac_cv_header_+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570 ac_cv_header_=$ac_header_preproc
23572 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23573 echo "${ECHO_T}$ac_cv_header_" >&6; }
23576 if test $ac_cv_header_ = yes; then
23577 ROUNDL_HEADER_FOUND=1
23578 else
23579 ROUNDL_HEADER_FOUND=0
23583 CPPFLAGS="${saved_cppflags}"
23585 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
23586 ROUNDL_LIB=""
23587 ROUNDL_INCLUDE=""
23588 else
23589 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23590 ROUNDL_LIB=""
23592 PBX_ROUNDL=1
23593 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23595 cat >>confdefs.h <<_ACEOF
23596 #define HAVE_ROUNDL 1
23597 _ACEOF
23600 cat >>confdefs.h <<_ACEOF
23601 #define HAVE_ROUNDL_VERSION
23602 _ACEOF
23609 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
23610 pbxlibdir=""
23611 # if --with-TRUNCL=DIR has been specified, use it.
23612 if test "x${TRUNCL_DIR}" != "x"; then
23613 if test -d ${TRUNCL_DIR}/lib; then
23614 pbxlibdir="-L${TRUNCL_DIR}/lib"
23615 else
23616 pbxlibdir="-L${TRUNCL_DIR}"
23619 pbxfuncname="truncl"
23620 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23621 AST_TRUNCL_FOUND=yes
23622 else
23623 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23624 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23625 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23626 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629 ac_check_lib_save_LIBS=$LIBS
23630 LIBS="-lm ${pbxlibdir} $LIBS"
23631 cat >conftest.$ac_ext <<_ACEOF
23632 /* confdefs.h. */
23633 _ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h. */
23638 /* Override any GCC internal prototype to avoid an error.
23639 Use char because int might match the return type of a GCC
23640 builtin and then its argument prototype would still apply. */
23641 #ifdef __cplusplus
23642 extern "C"
23643 #endif
23644 char ${pbxfuncname} ();
23646 main ()
23648 return ${pbxfuncname} ();
23650 return 0;
23652 _ACEOF
23653 rm -f conftest.$ac_objext conftest$ac_exeext
23654 if { (ac_try="$ac_link"
23655 case "(($ac_try" in
23656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23657 *) ac_try_echo=$ac_try;;
23658 esac
23659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23660 (eval "$ac_link") 2>conftest.er1
23661 ac_status=$?
23662 grep -v '^ *+' conftest.er1 >conftest.err
23663 rm -f conftest.er1
23664 cat conftest.err >&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); } && {
23667 test -z "$ac_c_werror_flag" ||
23668 test ! -s conftest.err
23669 } && test -s conftest$ac_exeext &&
23670 $as_test_x conftest$ac_exeext; then
23671 eval "$as_ac_Lib=yes"
23672 else
23673 echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23676 eval "$as_ac_Lib=no"
23679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23680 conftest$ac_exeext conftest.$ac_ext
23681 LIBS=$ac_check_lib_save_LIBS
23683 ac_res=`eval echo '${'$as_ac_Lib'}'`
23684 { echo "$as_me:$LINENO: result: $ac_res" >&5
23685 echo "${ECHO_T}$ac_res" >&6; }
23686 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23687 AST_TRUNCL_FOUND=yes
23688 else
23689 AST_TRUNCL_FOUND=no
23694 # now check for the header.
23695 if test "${AST_TRUNCL_FOUND}" = "yes"; then
23696 TRUNCL_LIB="${pbxlibdir} -lm "
23697 # if --with-TRUNCL=DIR has been specified, use it.
23698 if test "x${TRUNCL_DIR}" != "x"; then
23699 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
23701 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
23702 if test "x" = "x" ; then # no header, assume found
23703 TRUNCL_HEADER_FOUND="1"
23704 else # check for the header
23705 saved_cppflags="${CPPFLAGS}"
23706 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE} "
23707 if test "${ac_cv_header_+set}" = set; then
23708 { echo "$as_me:$LINENO: checking for " >&5
23709 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23710 if test "${ac_cv_header_+set}" = set; then
23711 echo $ECHO_N "(cached) $ECHO_C" >&6
23713 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23714 echo "${ECHO_T}$ac_cv_header_" >&6; }
23715 else
23716 # Is the header compilable?
23717 { echo "$as_me:$LINENO: checking usability" >&5
23718 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23719 cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h. */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 $ac_includes_default
23726 #include <>
23727 _ACEOF
23728 rm -f conftest.$ac_objext
23729 if { (ac_try="$ac_compile"
23730 case "(($ac_try" in
23731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23733 esac
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735 (eval "$ac_compile") 2>conftest.er1
23736 ac_status=$?
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } && {
23742 test -z "$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 } && test -s conftest.$ac_objext; then
23745 ac_header_compiler=yes
23746 else
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23750 ac_header_compiler=no
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23755 echo "${ECHO_T}$ac_header_compiler" >&6; }
23757 # Is the header present?
23758 { echo "$as_me:$LINENO: checking presence" >&5
23759 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23760 cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h. */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 #include <>
23767 _ACEOF
23768 if { (ac_try="$ac_cpp conftest.$ac_ext"
23769 case "(($ac_try" in
23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23772 esac
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23775 ac_status=$?
23776 grep -v '^ *+' conftest.er1 >conftest.err
23777 rm -f conftest.er1
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } >/dev/null && {
23781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23782 test ! -s conftest.err
23783 }; then
23784 ac_header_preproc=yes
23785 else
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23789 ac_header_preproc=no
23792 rm -f conftest.err conftest.$ac_ext
23793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23794 echo "${ECHO_T}$ac_header_preproc" >&6; }
23796 # So? What about this header?
23797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23798 yes:no: )
23799 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23800 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23801 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23802 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23803 ac_header_preproc=yes
23805 no:yes:* )
23806 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23807 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23808 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23809 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23810 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23811 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23812 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23813 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23814 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23815 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23816 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23817 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23818 ( cat <<\_ASBOX
23819 ## ------------------------------- ##
23820 ## Report this to www.asterisk.org ##
23821 ## ------------------------------- ##
23822 _ASBOX
23823 ) | sed "s/^/$as_me: WARNING: /" >&2
23825 esac
23826 { echo "$as_me:$LINENO: checking for " >&5
23827 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23828 if test "${ac_cv_header_+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23830 else
23831 ac_cv_header_=$ac_header_preproc
23833 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23834 echo "${ECHO_T}$ac_cv_header_" >&6; }
23837 if test $ac_cv_header_ = yes; then
23838 TRUNCL_HEADER_FOUND=1
23839 else
23840 TRUNCL_HEADER_FOUND=0
23844 CPPFLAGS="${saved_cppflags}"
23846 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
23847 TRUNCL_LIB=""
23848 TRUNCL_INCLUDE=""
23849 else
23850 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23851 TRUNCL_LIB=""
23853 PBX_TRUNCL=1
23854 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23856 cat >>confdefs.h <<_ACEOF
23857 #define HAVE_TRUNCL 1
23858 _ACEOF
23861 cat >>confdefs.h <<_ACEOF
23862 #define HAVE_TRUNCL_VERSION
23863 _ACEOF
23870 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
23871 pbxlibdir=""
23872 # if --with-STRTOLD=DIR has been specified, use it.
23873 if test "x${STRTOLD_DIR}" != "x"; then
23874 if test -d ${STRTOLD_DIR}/lib; then
23875 pbxlibdir="-L${STRTOLD_DIR}/lib"
23876 else
23877 pbxlibdir="-L${STRTOLD_DIR}"
23880 pbxfuncname="strtold"
23881 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23882 AST_STRTOLD_FOUND=yes
23883 else
23884 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
23885 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
23886 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
23887 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23888 echo $ECHO_N "(cached) $ECHO_C" >&6
23889 else
23890 ac_check_lib_save_LIBS=$LIBS
23891 LIBS="-lc ${pbxlibdir} $LIBS"
23892 cat >conftest.$ac_ext <<_ACEOF
23893 /* confdefs.h. */
23894 _ACEOF
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h. */
23899 /* Override any GCC internal prototype to avoid an error.
23900 Use char because int might match the return type of a GCC
23901 builtin and then its argument prototype would still apply. */
23902 #ifdef __cplusplus
23903 extern "C"
23904 #endif
23905 char ${pbxfuncname} ();
23907 main ()
23909 return ${pbxfuncname} ();
23911 return 0;
23913 _ACEOF
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921 (eval "$ac_link") 2>conftest.er1
23922 ac_status=$?
23923 grep -v '^ *+' conftest.er1 >conftest.err
23924 rm -f conftest.er1
23925 cat conftest.err >&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); } && {
23928 test -z "$ac_c_werror_flag" ||
23929 test ! -s conftest.err
23930 } && test -s conftest$ac_exeext &&
23931 $as_test_x conftest$ac_exeext; then
23932 eval "$as_ac_Lib=yes"
23933 else
23934 echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23937 eval "$as_ac_Lib=no"
23940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23941 conftest$ac_exeext conftest.$ac_ext
23942 LIBS=$ac_check_lib_save_LIBS
23944 ac_res=`eval echo '${'$as_ac_Lib'}'`
23945 { echo "$as_me:$LINENO: result: $ac_res" >&5
23946 echo "${ECHO_T}$ac_res" >&6; }
23947 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23948 AST_STRTOLD_FOUND=yes
23949 else
23950 AST_STRTOLD_FOUND=no
23955 # now check for the header.
23956 if test "${AST_STRTOLD_FOUND}" = "yes"; then
23957 STRTOLD_LIB="${pbxlibdir} -lc "
23958 # if --with-STRTOLD=DIR has been specified, use it.
23959 if test "x${STRTOLD_DIR}" != "x"; then
23960 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
23962 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
23963 if test "xstdlib.h" = "x" ; then # no header, assume found
23964 STRTOLD_HEADER_FOUND="1"
23965 else # check for the header
23966 saved_cppflags="${CPPFLAGS}"
23967 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE} "
23968 if test "${ac_cv_header_stdlib_h+set}" = set; then
23969 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
23970 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
23971 if test "${ac_cv_header_stdlib_h+set}" = set; then
23972 echo $ECHO_N "(cached) $ECHO_C" >&6
23974 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
23975 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
23976 else
23977 # Is the header compilable?
23978 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
23979 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
23980 cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h. */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 $ac_includes_default
23987 #include <stdlib.h>
23988 _ACEOF
23989 rm -f conftest.$ac_objext
23990 if { (ac_try="$ac_compile"
23991 case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23994 esac
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996 (eval "$ac_compile") 2>conftest.er1
23997 ac_status=$?
23998 grep -v '^ *+' conftest.er1 >conftest.err
23999 rm -f conftest.er1
24000 cat conftest.err >&5
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && {
24003 test -z "$ac_c_werror_flag" ||
24004 test ! -s conftest.err
24005 } && test -s conftest.$ac_objext; then
24006 ac_header_compiler=yes
24007 else
24008 echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24011 ac_header_compiler=no
24014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24016 echo "${ECHO_T}$ac_header_compiler" >&6; }
24018 # Is the header present?
24019 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24020 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h. */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 #include <stdlib.h>
24028 _ACEOF
24029 if { (ac_try="$ac_cpp conftest.$ac_ext"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24033 esac
24034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24036 ac_status=$?
24037 grep -v '^ *+' conftest.er1 >conftest.err
24038 rm -f conftest.er1
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } >/dev/null && {
24042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24043 test ! -s conftest.err
24044 }; then
24045 ac_header_preproc=yes
24046 else
24047 echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24050 ac_header_preproc=no
24053 rm -f conftest.err conftest.$ac_ext
24054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24055 echo "${ECHO_T}$ac_header_preproc" >&6; }
24057 # So? What about this header?
24058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24059 yes:no: )
24060 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24061 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24062 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24063 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24064 ac_header_preproc=yes
24066 no:yes:* )
24067 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24068 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24069 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24070 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24071 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24072 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24073 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24074 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24075 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24076 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24077 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24078 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24079 ( cat <<\_ASBOX
24080 ## ------------------------------- ##
24081 ## Report this to www.asterisk.org ##
24082 ## ------------------------------- ##
24083 _ASBOX
24084 ) | sed "s/^/$as_me: WARNING: /" >&2
24086 esac
24087 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24088 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24089 if test "${ac_cv_header_stdlib_h+set}" = set; then
24090 echo $ECHO_N "(cached) $ECHO_C" >&6
24091 else
24092 ac_cv_header_stdlib_h=$ac_header_preproc
24094 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24095 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24098 if test $ac_cv_header_stdlib_h = yes; then
24099 STRTOLD_HEADER_FOUND=1
24100 else
24101 STRTOLD_HEADER_FOUND=0
24105 CPPFLAGS="${saved_cppflags}"
24107 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24108 STRTOLD_LIB=""
24109 STRTOLD_INCLUDE=""
24110 else
24111 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24112 STRTOLD_LIB=""
24114 PBX_STRTOLD=1
24115 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24117 cat >>confdefs.h <<_ACEOF
24118 #define HAVE_STRTOLD 1
24119 _ACEOF
24122 cat >>confdefs.h <<_ACEOF
24123 #define HAVE_STRTOLD_VERSION
24124 _ACEOF
24131 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24132 pbxlibdir=""
24133 # if --with-FLOORL=DIR has been specified, use it.
24134 if test "x${FLOORL_DIR}" != "x"; then
24135 if test -d ${FLOORL_DIR}/lib; then
24136 pbxlibdir="-L${FLOORL_DIR}/lib"
24137 else
24138 pbxlibdir="-L${FLOORL_DIR}"
24141 pbxfuncname="floorl"
24142 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24143 AST_FLOORL_FOUND=yes
24144 else
24145 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24146 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24147 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24148 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150 else
24151 ac_check_lib_save_LIBS=$LIBS
24152 LIBS="-lm ${pbxlibdir} $LIBS"
24153 cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h. */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24160 /* Override any GCC internal prototype to avoid an error.
24161 Use char because int might match the return type of a GCC
24162 builtin and then its argument prototype would still apply. */
24163 #ifdef __cplusplus
24164 extern "C"
24165 #endif
24166 char ${pbxfuncname} ();
24168 main ()
24170 return ${pbxfuncname} ();
24172 return 0;
24174 _ACEOF
24175 rm -f conftest.$ac_objext conftest$ac_exeext
24176 if { (ac_try="$ac_link"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24180 esac
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182 (eval "$ac_link") 2>conftest.er1
24183 ac_status=$?
24184 grep -v '^ *+' conftest.er1 >conftest.err
24185 rm -f conftest.er1
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && {
24189 test -z "$ac_c_werror_flag" ||
24190 test ! -s conftest.err
24191 } && test -s conftest$ac_exeext &&
24192 $as_test_x conftest$ac_exeext; then
24193 eval "$as_ac_Lib=yes"
24194 else
24195 echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198 eval "$as_ac_Lib=no"
24201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24202 conftest$ac_exeext conftest.$ac_ext
24203 LIBS=$ac_check_lib_save_LIBS
24205 ac_res=`eval echo '${'$as_ac_Lib'}'`
24206 { echo "$as_me:$LINENO: result: $ac_res" >&5
24207 echo "${ECHO_T}$ac_res" >&6; }
24208 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24209 AST_FLOORL_FOUND=yes
24210 else
24211 AST_FLOORL_FOUND=no
24216 # now check for the header.
24217 if test "${AST_FLOORL_FOUND}" = "yes"; then
24218 FLOORL_LIB="${pbxlibdir} -lm "
24219 # if --with-FLOORL=DIR has been specified, use it.
24220 if test "x${FLOORL_DIR}" != "x"; then
24221 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24223 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24224 if test "x" = "x" ; then # no header, assume found
24225 FLOORL_HEADER_FOUND="1"
24226 else # check for the header
24227 saved_cppflags="${CPPFLAGS}"
24228 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE} "
24229 if test "${ac_cv_header_+set}" = set; then
24230 { echo "$as_me:$LINENO: checking for " >&5
24231 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24232 if test "${ac_cv_header_+set}" = set; then
24233 echo $ECHO_N "(cached) $ECHO_C" >&6
24235 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24236 echo "${ECHO_T}$ac_cv_header_" >&6; }
24237 else
24238 # Is the header compilable?
24239 { echo "$as_me:$LINENO: checking usability" >&5
24240 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24241 cat >conftest.$ac_ext <<_ACEOF
24242 /* confdefs.h. */
24243 _ACEOF
24244 cat confdefs.h >>conftest.$ac_ext
24245 cat >>conftest.$ac_ext <<_ACEOF
24246 /* end confdefs.h. */
24247 $ac_includes_default
24248 #include <>
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_compile") 2>conftest.er1
24258 ac_status=$?
24259 grep -v '^ *+' conftest.er1 >conftest.err
24260 rm -f conftest.er1
24261 cat conftest.err >&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && {
24264 test -z "$ac_c_werror_flag" ||
24265 test ! -s conftest.err
24266 } && test -s conftest.$ac_objext; then
24267 ac_header_compiler=yes
24268 else
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 ac_header_compiler=no
24275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24277 echo "${ECHO_T}$ac_header_compiler" >&6; }
24279 # Is the header present?
24280 { echo "$as_me:$LINENO: checking presence" >&5
24281 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24282 cat >conftest.$ac_ext <<_ACEOF
24283 /* confdefs.h. */
24284 _ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24288 #include <>
24289 _ACEOF
24290 if { (ac_try="$ac_cpp conftest.$ac_ext"
24291 case "(($ac_try" in
24292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293 *) ac_try_echo=$ac_try;;
24294 esac
24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24297 ac_status=$?
24298 grep -v '^ *+' conftest.er1 >conftest.err
24299 rm -f conftest.er1
24300 cat conftest.err >&5
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); } >/dev/null && {
24303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24304 test ! -s conftest.err
24305 }; then
24306 ac_header_preproc=yes
24307 else
24308 echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24311 ac_header_preproc=no
24314 rm -f conftest.err conftest.$ac_ext
24315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24316 echo "${ECHO_T}$ac_header_preproc" >&6; }
24318 # So? What about this header?
24319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24320 yes:no: )
24321 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24322 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24323 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24324 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24325 ac_header_preproc=yes
24327 no:yes:* )
24328 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24329 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24330 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24331 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24332 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24333 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24334 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24335 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24336 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24337 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24338 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24339 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24340 ( cat <<\_ASBOX
24341 ## ------------------------------- ##
24342 ## Report this to www.asterisk.org ##
24343 ## ------------------------------- ##
24344 _ASBOX
24345 ) | sed "s/^/$as_me: WARNING: /" >&2
24347 esac
24348 { echo "$as_me:$LINENO: checking for " >&5
24349 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24350 if test "${ac_cv_header_+set}" = set; then
24351 echo $ECHO_N "(cached) $ECHO_C" >&6
24352 else
24353 ac_cv_header_=$ac_header_preproc
24355 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24356 echo "${ECHO_T}$ac_cv_header_" >&6; }
24359 if test $ac_cv_header_ = yes; then
24360 FLOORL_HEADER_FOUND=1
24361 else
24362 FLOORL_HEADER_FOUND=0
24366 CPPFLAGS="${saved_cppflags}"
24368 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24369 FLOORL_LIB=""
24370 FLOORL_INCLUDE=""
24371 else
24372 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24373 FLOORL_LIB=""
24375 PBX_FLOORL=1
24376 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24378 cat >>confdefs.h <<_ACEOF
24379 #define HAVE_FLOORL 1
24380 _ACEOF
24383 cat >>confdefs.h <<_ACEOF
24384 #define HAVE_FLOORL_VERSION
24385 _ACEOF
24392 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24393 pbxlibdir=""
24394 # if --with-CEILL=DIR has been specified, use it.
24395 if test "x${CEILL_DIR}" != "x"; then
24396 if test -d ${CEILL_DIR}/lib; then
24397 pbxlibdir="-L${CEILL_DIR}/lib"
24398 else
24399 pbxlibdir="-L${CEILL_DIR}"
24402 pbxfuncname="ceill"
24403 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24404 AST_CEILL_FOUND=yes
24405 else
24406 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24407 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24408 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24409 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24411 else
24412 ac_check_lib_save_LIBS=$LIBS
24413 LIBS="-lm ${pbxlibdir} $LIBS"
24414 cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h. */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24421 /* Override any GCC internal prototype to avoid an error.
24422 Use char because int might match the return type of a GCC
24423 builtin and then its argument prototype would still apply. */
24424 #ifdef __cplusplus
24425 extern "C"
24426 #endif
24427 char ${pbxfuncname} ();
24429 main ()
24431 return ${pbxfuncname} ();
24433 return 0;
24435 _ACEOF
24436 rm -f conftest.$ac_objext conftest$ac_exeext
24437 if { (ac_try="$ac_link"
24438 case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24441 esac
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_link") 2>conftest.er1
24444 ac_status=$?
24445 grep -v '^ *+' conftest.er1 >conftest.err
24446 rm -f conftest.er1
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && {
24450 test -z "$ac_c_werror_flag" ||
24451 test ! -s conftest.err
24452 } && test -s conftest$ac_exeext &&
24453 $as_test_x conftest$ac_exeext; then
24454 eval "$as_ac_Lib=yes"
24455 else
24456 echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 eval "$as_ac_Lib=no"
24462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24463 conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24466 ac_res=`eval echo '${'$as_ac_Lib'}'`
24467 { echo "$as_me:$LINENO: result: $ac_res" >&5
24468 echo "${ECHO_T}$ac_res" >&6; }
24469 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24470 AST_CEILL_FOUND=yes
24471 else
24472 AST_CEILL_FOUND=no
24477 # now check for the header.
24478 if test "${AST_CEILL_FOUND}" = "yes"; then
24479 CEILL_LIB="${pbxlibdir} -lm "
24480 # if --with-CEILL=DIR has been specified, use it.
24481 if test "x${CEILL_DIR}" != "x"; then
24482 CEILL_INCLUDE="-I${CEILL_DIR}/include"
24484 CEILL_INCLUDE="${CEILL_INCLUDE} "
24485 if test "x" = "x" ; then # no header, assume found
24486 CEILL_HEADER_FOUND="1"
24487 else # check for the header
24488 saved_cppflags="${CPPFLAGS}"
24489 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE} "
24490 if test "${ac_cv_header_+set}" = set; then
24491 { echo "$as_me:$LINENO: checking for " >&5
24492 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24493 if test "${ac_cv_header_+set}" = set; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24496 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24497 echo "${ECHO_T}$ac_cv_header_" >&6; }
24498 else
24499 # Is the header compilable?
24500 { echo "$as_me:$LINENO: checking usability" >&5
24501 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24502 cat >conftest.$ac_ext <<_ACEOF
24503 /* confdefs.h. */
24504 _ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h. */
24508 $ac_includes_default
24509 #include <>
24510 _ACEOF
24511 rm -f conftest.$ac_objext
24512 if { (ac_try="$ac_compile"
24513 case "(($ac_try" in
24514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515 *) ac_try_echo=$ac_try;;
24516 esac
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518 (eval "$ac_compile") 2>conftest.er1
24519 ac_status=$?
24520 grep -v '^ *+' conftest.er1 >conftest.err
24521 rm -f conftest.er1
24522 cat conftest.err >&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } && {
24525 test -z "$ac_c_werror_flag" ||
24526 test ! -s conftest.err
24527 } && test -s conftest.$ac_objext; then
24528 ac_header_compiler=yes
24529 else
24530 echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.$ac_ext >&5
24533 ac_header_compiler=no
24536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24538 echo "${ECHO_T}$ac_header_compiler" >&6; }
24540 # Is the header present?
24541 { echo "$as_me:$LINENO: checking presence" >&5
24542 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24543 cat >conftest.$ac_ext <<_ACEOF
24544 /* confdefs.h. */
24545 _ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24549 #include <>
24550 _ACEOF
24551 if { (ac_try="$ac_cpp conftest.$ac_ext"
24552 case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555 esac
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24558 ac_status=$?
24559 grep -v '^ *+' conftest.er1 >conftest.err
24560 rm -f conftest.er1
24561 cat conftest.err >&5
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } >/dev/null && {
24564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24565 test ! -s conftest.err
24566 }; then
24567 ac_header_preproc=yes
24568 else
24569 echo "$as_me: failed program was:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24572 ac_header_preproc=no
24575 rm -f conftest.err conftest.$ac_ext
24576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24577 echo "${ECHO_T}$ac_header_preproc" >&6; }
24579 # So? What about this header?
24580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24581 yes:no: )
24582 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24583 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24584 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24585 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24586 ac_header_preproc=yes
24588 no:yes:* )
24589 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24590 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24591 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24592 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24593 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24594 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24595 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24596 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24597 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24598 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24599 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24600 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24601 ( cat <<\_ASBOX
24602 ## ------------------------------- ##
24603 ## Report this to www.asterisk.org ##
24604 ## ------------------------------- ##
24605 _ASBOX
24606 ) | sed "s/^/$as_me: WARNING: /" >&2
24608 esac
24609 { echo "$as_me:$LINENO: checking for " >&5
24610 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24611 if test "${ac_cv_header_+set}" = set; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614 ac_cv_header_=$ac_header_preproc
24616 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24617 echo "${ECHO_T}$ac_cv_header_" >&6; }
24620 if test $ac_cv_header_ = yes; then
24621 CEILL_HEADER_FOUND=1
24622 else
24623 CEILL_HEADER_FOUND=0
24627 CPPFLAGS="${saved_cppflags}"
24629 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
24630 CEILL_LIB=""
24631 CEILL_INCLUDE=""
24632 else
24633 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24634 CEILL_LIB=""
24636 PBX_CEILL=1
24637 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24639 cat >>confdefs.h <<_ACEOF
24640 #define HAVE_CEILL 1
24641 _ACEOF
24644 cat >>confdefs.h <<_ACEOF
24645 #define HAVE_CEILL_VERSION
24646 _ACEOF
24653 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
24654 pbxlibdir=""
24655 # if --with-EXP2=DIR has been specified, use it.
24656 if test "x${EXP2_DIR}" != "x"; then
24657 if test -d ${EXP2_DIR}/lib; then
24658 pbxlibdir="-L${EXP2_DIR}/lib"
24659 else
24660 pbxlibdir="-L${EXP2_DIR}"
24663 pbxfuncname="exp2"
24664 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24665 AST_EXP2_FOUND=yes
24666 else
24667 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24668 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24669 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24670 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24671 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 else
24673 ac_check_lib_save_LIBS=$LIBS
24674 LIBS="-lm ${pbxlibdir} $LIBS"
24675 cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h. */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h. */
24682 /* Override any GCC internal prototype to avoid an error.
24683 Use char because int might match the return type of a GCC
24684 builtin and then its argument prototype would still apply. */
24685 #ifdef __cplusplus
24686 extern "C"
24687 #endif
24688 char ${pbxfuncname} ();
24690 main ()
24692 return ${pbxfuncname} ();
24694 return 0;
24696 _ACEOF
24697 rm -f conftest.$ac_objext conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24702 esac
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704 (eval "$ac_link") 2>conftest.er1
24705 ac_status=$?
24706 grep -v '^ *+' conftest.er1 >conftest.err
24707 rm -f conftest.er1
24708 cat conftest.err >&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } && {
24711 test -z "$ac_c_werror_flag" ||
24712 test ! -s conftest.err
24713 } && test -s conftest$ac_exeext &&
24714 $as_test_x conftest$ac_exeext; then
24715 eval "$as_ac_Lib=yes"
24716 else
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 eval "$as_ac_Lib=no"
24723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24724 conftest$ac_exeext conftest.$ac_ext
24725 LIBS=$ac_check_lib_save_LIBS
24727 ac_res=`eval echo '${'$as_ac_Lib'}'`
24728 { echo "$as_me:$LINENO: result: $ac_res" >&5
24729 echo "${ECHO_T}$ac_res" >&6; }
24730 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24731 AST_EXP2_FOUND=yes
24732 else
24733 AST_EXP2_FOUND=no
24738 # now check for the header.
24739 if test "${AST_EXP2_FOUND}" = "yes"; then
24740 EXP2_LIB="${pbxlibdir} -lm "
24741 # if --with-EXP2=DIR has been specified, use it.
24742 if test "x${EXP2_DIR}" != "x"; then
24743 EXP2_INCLUDE="-I${EXP2_DIR}/include"
24745 EXP2_INCLUDE="${EXP2_INCLUDE} "
24746 if test "x" = "x" ; then # no header, assume found
24747 EXP2_HEADER_FOUND="1"
24748 else # check for the header
24749 saved_cppflags="${CPPFLAGS}"
24750 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE} "
24751 if test "${ac_cv_header_+set}" = set; then
24752 { echo "$as_me:$LINENO: checking for " >&5
24753 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24754 if test "${ac_cv_header_+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24758 echo "${ECHO_T}$ac_cv_header_" >&6; }
24759 else
24760 # Is the header compilable?
24761 { echo "$as_me:$LINENO: checking usability" >&5
24762 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24763 cat >conftest.$ac_ext <<_ACEOF
24764 /* confdefs.h. */
24765 _ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h. */
24769 $ac_includes_default
24770 #include <>
24771 _ACEOF
24772 rm -f conftest.$ac_objext
24773 if { (ac_try="$ac_compile"
24774 case "(($ac_try" in
24775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24776 *) ac_try_echo=$ac_try;;
24777 esac
24778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24779 (eval "$ac_compile") 2>conftest.er1
24780 ac_status=$?
24781 grep -v '^ *+' conftest.er1 >conftest.err
24782 rm -f conftest.er1
24783 cat conftest.err >&5
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } && {
24786 test -z "$ac_c_werror_flag" ||
24787 test ! -s conftest.err
24788 } && test -s conftest.$ac_objext; then
24789 ac_header_compiler=yes
24790 else
24791 echo "$as_me: failed program was:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24794 ac_header_compiler=no
24797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24799 echo "${ECHO_T}$ac_header_compiler" >&6; }
24801 # Is the header present?
24802 { echo "$as_me:$LINENO: checking presence" >&5
24803 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24804 cat >conftest.$ac_ext <<_ACEOF
24805 /* confdefs.h. */
24806 _ACEOF
24807 cat confdefs.h >>conftest.$ac_ext
24808 cat >>conftest.$ac_ext <<_ACEOF
24809 /* end confdefs.h. */
24810 #include <>
24811 _ACEOF
24812 if { (ac_try="$ac_cpp conftest.$ac_ext"
24813 case "(($ac_try" in
24814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24815 *) ac_try_echo=$ac_try;;
24816 esac
24817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24819 ac_status=$?
24820 grep -v '^ *+' conftest.er1 >conftest.err
24821 rm -f conftest.er1
24822 cat conftest.err >&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } >/dev/null && {
24825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24826 test ! -s conftest.err
24827 }; then
24828 ac_header_preproc=yes
24829 else
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ac_header_preproc=no
24836 rm -f conftest.err conftest.$ac_ext
24837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24838 echo "${ECHO_T}$ac_header_preproc" >&6; }
24840 # So? What about this header?
24841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24842 yes:no: )
24843 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24844 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24845 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24846 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24847 ac_header_preproc=yes
24849 no:yes:* )
24850 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24851 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24852 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24853 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24854 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24855 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24856 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24857 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24858 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24859 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24860 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24861 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24862 ( cat <<\_ASBOX
24863 ## ------------------------------- ##
24864 ## Report this to www.asterisk.org ##
24865 ## ------------------------------- ##
24866 _ASBOX
24867 ) | sed "s/^/$as_me: WARNING: /" >&2
24869 esac
24870 { echo "$as_me:$LINENO: checking for " >&5
24871 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24872 if test "${ac_cv_header_+set}" = set; then
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24874 else
24875 ac_cv_header_=$ac_header_preproc
24877 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24878 echo "${ECHO_T}$ac_cv_header_" >&6; }
24881 if test $ac_cv_header_ = yes; then
24882 EXP2_HEADER_FOUND=1
24883 else
24884 EXP2_HEADER_FOUND=0
24888 CPPFLAGS="${saved_cppflags}"
24890 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
24891 EXP2_LIB=""
24892 EXP2_INCLUDE=""
24893 else
24894 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24895 EXP2_LIB=""
24897 PBX_EXP2=1
24898 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24900 cat >>confdefs.h <<_ACEOF
24901 #define HAVE_EXP2 1
24902 _ACEOF
24905 cat >>confdefs.h <<_ACEOF
24906 #define HAVE_EXP2_VERSION
24907 _ACEOF
24914 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
24915 pbxlibdir=""
24916 # if --with-LOG2=DIR has been specified, use it.
24917 if test "x${LOG2_DIR}" != "x"; then
24918 if test -d ${LOG2_DIR}/lib; then
24919 pbxlibdir="-L${LOG2_DIR}/lib"
24920 else
24921 pbxlibdir="-L${LOG2_DIR}"
24924 pbxfuncname="log2"
24925 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24926 AST_LOG2_FOUND=yes
24927 else
24928 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24929 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24930 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24931 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24932 echo $ECHO_N "(cached) $ECHO_C" >&6
24933 else
24934 ac_check_lib_save_LIBS=$LIBS
24935 LIBS="-lm ${pbxlibdir} $LIBS"
24936 cat >conftest.$ac_ext <<_ACEOF
24937 /* confdefs.h. */
24938 _ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h. */
24943 /* Override any GCC internal prototype to avoid an error.
24944 Use char because int might match the return type of a GCC
24945 builtin and then its argument prototype would still apply. */
24946 #ifdef __cplusplus
24947 extern "C"
24948 #endif
24949 char ${pbxfuncname} ();
24951 main ()
24953 return ${pbxfuncname} ();
24955 return 0;
24957 _ACEOF
24958 rm -f conftest.$ac_objext conftest$ac_exeext
24959 if { (ac_try="$ac_link"
24960 case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24963 esac
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_link") 2>conftest.er1
24966 ac_status=$?
24967 grep -v '^ *+' conftest.er1 >conftest.err
24968 rm -f conftest.er1
24969 cat conftest.err >&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && {
24972 test -z "$ac_c_werror_flag" ||
24973 test ! -s conftest.err
24974 } && test -s conftest$ac_exeext &&
24975 $as_test_x conftest$ac_exeext; then
24976 eval "$as_ac_Lib=yes"
24977 else
24978 echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24981 eval "$as_ac_Lib=no"
24984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24985 conftest$ac_exeext conftest.$ac_ext
24986 LIBS=$ac_check_lib_save_LIBS
24988 ac_res=`eval echo '${'$as_ac_Lib'}'`
24989 { echo "$as_me:$LINENO: result: $ac_res" >&5
24990 echo "${ECHO_T}$ac_res" >&6; }
24991 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24992 AST_LOG2_FOUND=yes
24993 else
24994 AST_LOG2_FOUND=no
24999 # now check for the header.
25000 if test "${AST_LOG2_FOUND}" = "yes"; then
25001 LOG2_LIB="${pbxlibdir} -lm "
25002 # if --with-LOG2=DIR has been specified, use it.
25003 if test "x${LOG2_DIR}" != "x"; then
25004 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25006 LOG2_INCLUDE="${LOG2_INCLUDE} "
25007 if test "x" = "x" ; then # no header, assume found
25008 LOG2_HEADER_FOUND="1"
25009 else # check for the header
25010 saved_cppflags="${CPPFLAGS}"
25011 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE} "
25012 if test "${ac_cv_header_+set}" = set; then
25013 { echo "$as_me:$LINENO: checking for " >&5
25014 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25015 if test "${ac_cv_header_+set}" = set; then
25016 echo $ECHO_N "(cached) $ECHO_C" >&6
25018 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25019 echo "${ECHO_T}$ac_cv_header_" >&6; }
25020 else
25021 # Is the header compilable?
25022 { echo "$as_me:$LINENO: checking usability" >&5
25023 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25024 cat >conftest.$ac_ext <<_ACEOF
25025 /* confdefs.h. */
25026 _ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 $ac_includes_default
25031 #include <>
25032 _ACEOF
25033 rm -f conftest.$ac_objext
25034 if { (ac_try="$ac_compile"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25038 esac
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040 (eval "$ac_compile") 2>conftest.er1
25041 ac_status=$?
25042 grep -v '^ *+' conftest.er1 >conftest.err
25043 rm -f conftest.er1
25044 cat conftest.err >&5
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); } && {
25047 test -z "$ac_c_werror_flag" ||
25048 test ! -s conftest.err
25049 } && test -s conftest.$ac_objext; then
25050 ac_header_compiler=yes
25051 else
25052 echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 ac_header_compiler=no
25058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25060 echo "${ECHO_T}$ac_header_compiler" >&6; }
25062 # Is the header present?
25063 { echo "$as_me:$LINENO: checking presence" >&5
25064 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h. */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 #include <>
25072 _ACEOF
25073 if { (ac_try="$ac_cpp conftest.$ac_ext"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077 esac
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25080 ac_status=$?
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } >/dev/null && {
25086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25087 test ! -s conftest.err
25088 }; then
25089 ac_header_preproc=yes
25090 else
25091 echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25094 ac_header_preproc=no
25097 rm -f conftest.err conftest.$ac_ext
25098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25099 echo "${ECHO_T}$ac_header_preproc" >&6; }
25101 # So? What about this header?
25102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25103 yes:no: )
25104 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25105 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25106 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25107 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25108 ac_header_preproc=yes
25110 no:yes:* )
25111 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25112 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25113 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25114 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25115 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25116 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25117 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25118 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25119 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25120 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25121 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25122 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25123 ( cat <<\_ASBOX
25124 ## ------------------------------- ##
25125 ## Report this to www.asterisk.org ##
25126 ## ------------------------------- ##
25127 _ASBOX
25128 ) | sed "s/^/$as_me: WARNING: /" >&2
25130 esac
25131 { echo "$as_me:$LINENO: checking for " >&5
25132 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25133 if test "${ac_cv_header_+set}" = set; then
25134 echo $ECHO_N "(cached) $ECHO_C" >&6
25135 else
25136 ac_cv_header_=$ac_header_preproc
25138 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25139 echo "${ECHO_T}$ac_cv_header_" >&6; }
25142 if test $ac_cv_header_ = yes; then
25143 LOG2_HEADER_FOUND=1
25144 else
25145 LOG2_HEADER_FOUND=0
25149 CPPFLAGS="${saved_cppflags}"
25151 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25152 LOG2_LIB=""
25153 LOG2_INCLUDE=""
25154 else
25155 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25156 LOG2_LIB=""
25158 PBX_LOG2=1
25159 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25161 cat >>confdefs.h <<_ACEOF
25162 #define HAVE_LOG2 1
25163 _ACEOF
25166 cat >>confdefs.h <<_ACEOF
25167 #define HAVE_LOG2_VERSION
25168 _ACEOF
25175 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25176 pbxlibdir=""
25177 # if --with-EXP10=DIR has been specified, use it.
25178 if test "x${EXP10_DIR}" != "x"; then
25179 if test -d ${EXP10_DIR}/lib; then
25180 pbxlibdir="-L${EXP10_DIR}/lib"
25181 else
25182 pbxlibdir="-L${EXP10_DIR}"
25185 pbxfuncname="exp10"
25186 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25187 AST_EXP10_FOUND=yes
25188 else
25189 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25190 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25191 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25192 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25193 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 else
25195 ac_check_lib_save_LIBS=$LIBS
25196 LIBS="-lm ${pbxlibdir} $LIBS"
25197 cat >conftest.$ac_ext <<_ACEOF
25198 /* confdefs.h. */
25199 _ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h. */
25204 /* Override any GCC internal prototype to avoid an error.
25205 Use char because int might match the return type of a GCC
25206 builtin and then its argument prototype would still apply. */
25207 #ifdef __cplusplus
25208 extern "C"
25209 #endif
25210 char ${pbxfuncname} ();
25212 main ()
25214 return ${pbxfuncname} ();
25216 return 0;
25218 _ACEOF
25219 rm -f conftest.$ac_objext conftest$ac_exeext
25220 if { (ac_try="$ac_link"
25221 case "(($ac_try" in
25222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223 *) ac_try_echo=$ac_try;;
25224 esac
25225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25226 (eval "$ac_link") 2>conftest.er1
25227 ac_status=$?
25228 grep -v '^ *+' conftest.er1 >conftest.err
25229 rm -f conftest.er1
25230 cat conftest.err >&5
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); } && {
25233 test -z "$ac_c_werror_flag" ||
25234 test ! -s conftest.err
25235 } && test -s conftest$ac_exeext &&
25236 $as_test_x conftest$ac_exeext; then
25237 eval "$as_ac_Lib=yes"
25238 else
25239 echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25242 eval "$as_ac_Lib=no"
25245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25246 conftest$ac_exeext conftest.$ac_ext
25247 LIBS=$ac_check_lib_save_LIBS
25249 ac_res=`eval echo '${'$as_ac_Lib'}'`
25250 { echo "$as_me:$LINENO: result: $ac_res" >&5
25251 echo "${ECHO_T}$ac_res" >&6; }
25252 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25253 AST_EXP10_FOUND=yes
25254 else
25255 AST_EXP10_FOUND=no
25260 # now check for the header.
25261 if test "${AST_EXP10_FOUND}" = "yes"; then
25262 EXP10_LIB="${pbxlibdir} -lm "
25263 # if --with-EXP10=DIR has been specified, use it.
25264 if test "x${EXP10_DIR}" != "x"; then
25265 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25267 EXP10_INCLUDE="${EXP10_INCLUDE} "
25268 if test "x" = "x" ; then # no header, assume found
25269 EXP10_HEADER_FOUND="1"
25270 else # check for the header
25271 saved_cppflags="${CPPFLAGS}"
25272 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE} "
25273 if test "${ac_cv_header_+set}" = set; then
25274 { echo "$as_me:$LINENO: checking for " >&5
25275 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25276 if test "${ac_cv_header_+set}" = set; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25279 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25280 echo "${ECHO_T}$ac_cv_header_" >&6; }
25281 else
25282 # Is the header compilable?
25283 { echo "$as_me:$LINENO: checking usability" >&5
25284 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25285 cat >conftest.$ac_ext <<_ACEOF
25286 /* confdefs.h. */
25287 _ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h. */
25291 $ac_includes_default
25292 #include <>
25293 _ACEOF
25294 rm -f conftest.$ac_objext
25295 if { (ac_try="$ac_compile"
25296 case "(($ac_try" in
25297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298 *) ac_try_echo=$ac_try;;
25299 esac
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301 (eval "$ac_compile") 2>conftest.er1
25302 ac_status=$?
25303 grep -v '^ *+' conftest.er1 >conftest.err
25304 rm -f conftest.er1
25305 cat conftest.err >&5
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } && {
25308 test -z "$ac_c_werror_flag" ||
25309 test ! -s conftest.err
25310 } && test -s conftest.$ac_objext; then
25311 ac_header_compiler=yes
25312 else
25313 echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25316 ac_header_compiler=no
25319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25321 echo "${ECHO_T}$ac_header_compiler" >&6; }
25323 # Is the header present?
25324 { echo "$as_me:$LINENO: checking presence" >&5
25325 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25326 cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h. */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 #include <>
25333 _ACEOF
25334 if { (ac_try="$ac_cpp conftest.$ac_ext"
25335 case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25338 esac
25339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25341 ac_status=$?
25342 grep -v '^ *+' conftest.er1 >conftest.err
25343 rm -f conftest.er1
25344 cat conftest.err >&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); } >/dev/null && {
25347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25348 test ! -s conftest.err
25349 }; then
25350 ac_header_preproc=yes
25351 else
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25355 ac_header_preproc=no
25358 rm -f conftest.err conftest.$ac_ext
25359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25360 echo "${ECHO_T}$ac_header_preproc" >&6; }
25362 # So? What about this header?
25363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25364 yes:no: )
25365 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25366 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25368 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25369 ac_header_preproc=yes
25371 no:yes:* )
25372 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25373 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25374 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25375 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25376 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25377 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25378 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25379 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25381 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25383 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25384 ( cat <<\_ASBOX
25385 ## ------------------------------- ##
25386 ## Report this to www.asterisk.org ##
25387 ## ------------------------------- ##
25388 _ASBOX
25389 ) | sed "s/^/$as_me: WARNING: /" >&2
25391 esac
25392 { echo "$as_me:$LINENO: checking for " >&5
25393 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25394 if test "${ac_cv_header_+set}" = set; then
25395 echo $ECHO_N "(cached) $ECHO_C" >&6
25396 else
25397 ac_cv_header_=$ac_header_preproc
25399 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25400 echo "${ECHO_T}$ac_cv_header_" >&6; }
25403 if test $ac_cv_header_ = yes; then
25404 EXP10_HEADER_FOUND=1
25405 else
25406 EXP10_HEADER_FOUND=0
25410 CPPFLAGS="${saved_cppflags}"
25412 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25413 EXP10_LIB=""
25414 EXP10_INCLUDE=""
25415 else
25416 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25417 EXP10_LIB=""
25419 PBX_EXP10=1
25420 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25422 cat >>confdefs.h <<_ACEOF
25423 #define HAVE_EXP10 1
25424 _ACEOF
25427 cat >>confdefs.h <<_ACEOF
25428 #define HAVE_EXP10_VERSION
25429 _ACEOF
25436 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25437 pbxlibdir=""
25438 # if --with-LOG10=DIR has been specified, use it.
25439 if test "x${LOG10_DIR}" != "x"; then
25440 if test -d ${LOG10_DIR}/lib; then
25441 pbxlibdir="-L${LOG10_DIR}/lib"
25442 else
25443 pbxlibdir="-L${LOG10_DIR}"
25446 pbxfuncname="log10"
25447 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25448 AST_LOG10_FOUND=yes
25449 else
25450 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25451 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25452 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25453 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25454 echo $ECHO_N "(cached) $ECHO_C" >&6
25455 else
25456 ac_check_lib_save_LIBS=$LIBS
25457 LIBS="-lm ${pbxlibdir} $LIBS"
25458 cat >conftest.$ac_ext <<_ACEOF
25459 /* confdefs.h. */
25460 _ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h. */
25465 /* Override any GCC internal prototype to avoid an error.
25466 Use char because int might match the return type of a GCC
25467 builtin and then its argument prototype would still apply. */
25468 #ifdef __cplusplus
25469 extern "C"
25470 #endif
25471 char ${pbxfuncname} ();
25473 main ()
25475 return ${pbxfuncname} ();
25477 return 0;
25479 _ACEOF
25480 rm -f conftest.$ac_objext conftest$ac_exeext
25481 if { (ac_try="$ac_link"
25482 case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25485 esac
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_link") 2>conftest.er1
25488 ac_status=$?
25489 grep -v '^ *+' conftest.er1 >conftest.err
25490 rm -f conftest.er1
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && {
25494 test -z "$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25496 } && test -s conftest$ac_exeext &&
25497 $as_test_x conftest$ac_exeext; then
25498 eval "$as_ac_Lib=yes"
25499 else
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25503 eval "$as_ac_Lib=no"
25506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25507 conftest$ac_exeext conftest.$ac_ext
25508 LIBS=$ac_check_lib_save_LIBS
25510 ac_res=`eval echo '${'$as_ac_Lib'}'`
25511 { echo "$as_me:$LINENO: result: $ac_res" >&5
25512 echo "${ECHO_T}$ac_res" >&6; }
25513 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25514 AST_LOG10_FOUND=yes
25515 else
25516 AST_LOG10_FOUND=no
25521 # now check for the header.
25522 if test "${AST_LOG10_FOUND}" = "yes"; then
25523 LOG10_LIB="${pbxlibdir} -lm "
25524 # if --with-LOG10=DIR has been specified, use it.
25525 if test "x${LOG10_DIR}" != "x"; then
25526 LOG10_INCLUDE="-I${LOG10_DIR}/include"
25528 LOG10_INCLUDE="${LOG10_INCLUDE} "
25529 if test "x" = "x" ; then # no header, assume found
25530 LOG10_HEADER_FOUND="1"
25531 else # check for the header
25532 saved_cppflags="${CPPFLAGS}"
25533 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE} "
25534 if test "${ac_cv_header_+set}" = set; then
25535 { echo "$as_me:$LINENO: checking for " >&5
25536 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25537 if test "${ac_cv_header_+set}" = set; then
25538 echo $ECHO_N "(cached) $ECHO_C" >&6
25540 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25541 echo "${ECHO_T}$ac_cv_header_" >&6; }
25542 else
25543 # Is the header compilable?
25544 { echo "$as_me:$LINENO: checking usability" >&5
25545 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25546 cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h. */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 $ac_includes_default
25553 #include <>
25554 _ACEOF
25555 rm -f conftest.$ac_objext
25556 if { (ac_try="$ac_compile"
25557 case "(($ac_try" in
25558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559 *) ac_try_echo=$ac_try;;
25560 esac
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_compile") 2>conftest.er1
25563 ac_status=$?
25564 grep -v '^ *+' conftest.er1 >conftest.err
25565 rm -f conftest.er1
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } && {
25569 test -z "$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25571 } && test -s conftest.$ac_objext; then
25572 ac_header_compiler=yes
25573 else
25574 echo "$as_me: failed program was:" >&5
25575 sed 's/^/| /' conftest.$ac_ext >&5
25577 ac_header_compiler=no
25580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25582 echo "${ECHO_T}$ac_header_compiler" >&6; }
25584 # Is the header present?
25585 { echo "$as_me:$LINENO: checking presence" >&5
25586 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25587 cat >conftest.$ac_ext <<_ACEOF
25588 /* confdefs.h. */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593 #include <>
25594 _ACEOF
25595 if { (ac_try="$ac_cpp conftest.$ac_ext"
25596 case "(($ac_try" in
25597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25598 *) ac_try_echo=$ac_try;;
25599 esac
25600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25602 ac_status=$?
25603 grep -v '^ *+' conftest.er1 >conftest.err
25604 rm -f conftest.er1
25605 cat conftest.err >&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } >/dev/null && {
25608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25609 test ! -s conftest.err
25610 }; then
25611 ac_header_preproc=yes
25612 else
25613 echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25616 ac_header_preproc=no
25619 rm -f conftest.err conftest.$ac_ext
25620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25621 echo "${ECHO_T}$ac_header_preproc" >&6; }
25623 # So? What about this header?
25624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25625 yes:no: )
25626 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25627 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25628 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25629 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25630 ac_header_preproc=yes
25632 no:yes:* )
25633 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25634 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25635 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25636 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25637 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25638 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25639 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25640 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25641 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25642 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25643 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25644 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25645 ( cat <<\_ASBOX
25646 ## ------------------------------- ##
25647 ## Report this to www.asterisk.org ##
25648 ## ------------------------------- ##
25649 _ASBOX
25650 ) | sed "s/^/$as_me: WARNING: /" >&2
25652 esac
25653 { echo "$as_me:$LINENO: checking for " >&5
25654 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25655 if test "${ac_cv_header_+set}" = set; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
25657 else
25658 ac_cv_header_=$ac_header_preproc
25660 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25661 echo "${ECHO_T}$ac_cv_header_" >&6; }
25664 if test $ac_cv_header_ = yes; then
25665 LOG10_HEADER_FOUND=1
25666 else
25667 LOG10_HEADER_FOUND=0
25671 CPPFLAGS="${saved_cppflags}"
25673 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
25674 LOG10_LIB=""
25675 LOG10_INCLUDE=""
25676 else
25677 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25678 LOG10_LIB=""
25680 PBX_LOG10=1
25681 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25683 cat >>confdefs.h <<_ACEOF
25684 #define HAVE_LOG10 1
25685 _ACEOF
25688 cat >>confdefs.h <<_ACEOF
25689 #define HAVE_LOG10_VERSION
25690 _ACEOF
25697 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
25698 pbxlibdir=""
25699 # if --with-SIN=DIR has been specified, use it.
25700 if test "x${SIN_DIR}" != "x"; then
25701 if test -d ${SIN_DIR}/lib; then
25702 pbxlibdir="-L${SIN_DIR}/lib"
25703 else
25704 pbxlibdir="-L${SIN_DIR}"
25707 pbxfuncname="sin"
25708 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25709 AST_SIN_FOUND=yes
25710 else
25711 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25712 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25713 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25714 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25716 else
25717 ac_check_lib_save_LIBS=$LIBS
25718 LIBS="-lm ${pbxlibdir} $LIBS"
25719 cat >conftest.$ac_ext <<_ACEOF
25720 /* confdefs.h. */
25721 _ACEOF
25722 cat confdefs.h >>conftest.$ac_ext
25723 cat >>conftest.$ac_ext <<_ACEOF
25724 /* end confdefs.h. */
25726 /* Override any GCC internal prototype to avoid an error.
25727 Use char because int might match the return type of a GCC
25728 builtin and then its argument prototype would still apply. */
25729 #ifdef __cplusplus
25730 extern "C"
25731 #endif
25732 char ${pbxfuncname} ();
25734 main ()
25736 return ${pbxfuncname} ();
25738 return 0;
25740 _ACEOF
25741 rm -f conftest.$ac_objext conftest$ac_exeext
25742 if { (ac_try="$ac_link"
25743 case "(($ac_try" in
25744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745 *) ac_try_echo=$ac_try;;
25746 esac
25747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748 (eval "$ac_link") 2>conftest.er1
25749 ac_status=$?
25750 grep -v '^ *+' conftest.er1 >conftest.err
25751 rm -f conftest.er1
25752 cat conftest.err >&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } && {
25755 test -z "$ac_c_werror_flag" ||
25756 test ! -s conftest.err
25757 } && test -s conftest$ac_exeext &&
25758 $as_test_x conftest$ac_exeext; then
25759 eval "$as_ac_Lib=yes"
25760 else
25761 echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25764 eval "$as_ac_Lib=no"
25767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25768 conftest$ac_exeext conftest.$ac_ext
25769 LIBS=$ac_check_lib_save_LIBS
25771 ac_res=`eval echo '${'$as_ac_Lib'}'`
25772 { echo "$as_me:$LINENO: result: $ac_res" >&5
25773 echo "${ECHO_T}$ac_res" >&6; }
25774 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25775 AST_SIN_FOUND=yes
25776 else
25777 AST_SIN_FOUND=no
25782 # now check for the header.
25783 if test "${AST_SIN_FOUND}" = "yes"; then
25784 SIN_LIB="${pbxlibdir} -lm "
25785 # if --with-SIN=DIR has been specified, use it.
25786 if test "x${SIN_DIR}" != "x"; then
25787 SIN_INCLUDE="-I${SIN_DIR}/include"
25789 SIN_INCLUDE="${SIN_INCLUDE} "
25790 if test "x" = "x" ; then # no header, assume found
25791 SIN_HEADER_FOUND="1"
25792 else # check for the header
25793 saved_cppflags="${CPPFLAGS}"
25794 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE} "
25795 if test "${ac_cv_header_+set}" = set; then
25796 { echo "$as_me:$LINENO: checking for " >&5
25797 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25798 if test "${ac_cv_header_+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25801 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25802 echo "${ECHO_T}$ac_cv_header_" >&6; }
25803 else
25804 # Is the header compilable?
25805 { echo "$as_me:$LINENO: checking usability" >&5
25806 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h. */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25813 $ac_includes_default
25814 #include <>
25815 _ACEOF
25816 rm -f conftest.$ac_objext
25817 if { (ac_try="$ac_compile"
25818 case "(($ac_try" in
25819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25820 *) ac_try_echo=$ac_try;;
25821 esac
25822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25823 (eval "$ac_compile") 2>conftest.er1
25824 ac_status=$?
25825 grep -v '^ *+' conftest.er1 >conftest.err
25826 rm -f conftest.er1
25827 cat conftest.err >&5
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); } && {
25830 test -z "$ac_c_werror_flag" ||
25831 test ! -s conftest.err
25832 } && test -s conftest.$ac_objext; then
25833 ac_header_compiler=yes
25834 else
25835 echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25838 ac_header_compiler=no
25841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25843 echo "${ECHO_T}$ac_header_compiler" >&6; }
25845 # Is the header present?
25846 { echo "$as_me:$LINENO: checking presence" >&5
25847 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25848 cat >conftest.$ac_ext <<_ACEOF
25849 /* confdefs.h. */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 #include <>
25855 _ACEOF
25856 if { (ac_try="$ac_cpp conftest.$ac_ext"
25857 case "(($ac_try" in
25858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859 *) ac_try_echo=$ac_try;;
25860 esac
25861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25863 ac_status=$?
25864 grep -v '^ *+' conftest.er1 >conftest.err
25865 rm -f conftest.er1
25866 cat conftest.err >&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } >/dev/null && {
25869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25870 test ! -s conftest.err
25871 }; then
25872 ac_header_preproc=yes
25873 else
25874 echo "$as_me: failed program was:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25877 ac_header_preproc=no
25880 rm -f conftest.err conftest.$ac_ext
25881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25882 echo "${ECHO_T}$ac_header_preproc" >&6; }
25884 # So? What about this header?
25885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25886 yes:no: )
25887 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25888 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25890 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25891 ac_header_preproc=yes
25893 no:yes:* )
25894 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25895 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25896 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25897 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25898 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25899 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25900 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25901 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25902 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25903 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25904 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25905 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25906 ( cat <<\_ASBOX
25907 ## ------------------------------- ##
25908 ## Report this to www.asterisk.org ##
25909 ## ------------------------------- ##
25910 _ASBOX
25911 ) | sed "s/^/$as_me: WARNING: /" >&2
25913 esac
25914 { echo "$as_me:$LINENO: checking for " >&5
25915 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25916 if test "${ac_cv_header_+set}" = set; then
25917 echo $ECHO_N "(cached) $ECHO_C" >&6
25918 else
25919 ac_cv_header_=$ac_header_preproc
25921 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25922 echo "${ECHO_T}$ac_cv_header_" >&6; }
25925 if test $ac_cv_header_ = yes; then
25926 SIN_HEADER_FOUND=1
25927 else
25928 SIN_HEADER_FOUND=0
25932 CPPFLAGS="${saved_cppflags}"
25934 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
25935 SIN_LIB=""
25936 SIN_INCLUDE=""
25937 else
25938 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25939 SIN_LIB=""
25941 PBX_SIN=1
25942 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25944 cat >>confdefs.h <<_ACEOF
25945 #define HAVE_SIN 1
25946 _ACEOF
25949 cat >>confdefs.h <<_ACEOF
25950 #define HAVE_SIN_VERSION
25951 _ACEOF
25958 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
25959 pbxlibdir=""
25960 # if --with-COS=DIR has been specified, use it.
25961 if test "x${COS_DIR}" != "x"; then
25962 if test -d ${COS_DIR}/lib; then
25963 pbxlibdir="-L${COS_DIR}/lib"
25964 else
25965 pbxlibdir="-L${COS_DIR}"
25968 pbxfuncname="cos"
25969 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25970 AST_COS_FOUND=yes
25971 else
25972 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25973 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25974 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25975 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978 ac_check_lib_save_LIBS=$LIBS
25979 LIBS="-lm ${pbxlibdir} $LIBS"
25980 cat >conftest.$ac_ext <<_ACEOF
25981 /* confdefs.h. */
25982 _ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h. */
25987 /* Override any GCC internal prototype to avoid an error.
25988 Use char because int might match the return type of a GCC
25989 builtin and then its argument prototype would still apply. */
25990 #ifdef __cplusplus
25991 extern "C"
25992 #endif
25993 char ${pbxfuncname} ();
25995 main ()
25997 return ${pbxfuncname} ();
25999 return 0;
26001 _ACEOF
26002 rm -f conftest.$ac_objext conftest$ac_exeext
26003 if { (ac_try="$ac_link"
26004 case "(($ac_try" in
26005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26006 *) ac_try_echo=$ac_try;;
26007 esac
26008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26009 (eval "$ac_link") 2>conftest.er1
26010 ac_status=$?
26011 grep -v '^ *+' conftest.er1 >conftest.err
26012 rm -f conftest.er1
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } && {
26016 test -z "$ac_c_werror_flag" ||
26017 test ! -s conftest.err
26018 } && test -s conftest$ac_exeext &&
26019 $as_test_x conftest$ac_exeext; then
26020 eval "$as_ac_Lib=yes"
26021 else
26022 echo "$as_me: failed program was:" >&5
26023 sed 's/^/| /' conftest.$ac_ext >&5
26025 eval "$as_ac_Lib=no"
26028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26029 conftest$ac_exeext conftest.$ac_ext
26030 LIBS=$ac_check_lib_save_LIBS
26032 ac_res=`eval echo '${'$as_ac_Lib'}'`
26033 { echo "$as_me:$LINENO: result: $ac_res" >&5
26034 echo "${ECHO_T}$ac_res" >&6; }
26035 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26036 AST_COS_FOUND=yes
26037 else
26038 AST_COS_FOUND=no
26043 # now check for the header.
26044 if test "${AST_COS_FOUND}" = "yes"; then
26045 COS_LIB="${pbxlibdir} -lm "
26046 # if --with-COS=DIR has been specified, use it.
26047 if test "x${COS_DIR}" != "x"; then
26048 COS_INCLUDE="-I${COS_DIR}/include"
26050 COS_INCLUDE="${COS_INCLUDE} "
26051 if test "x" = "x" ; then # no header, assume found
26052 COS_HEADER_FOUND="1"
26053 else # check for the header
26054 saved_cppflags="${CPPFLAGS}"
26055 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE} "
26056 if test "${ac_cv_header_+set}" = set; then
26057 { echo "$as_me:$LINENO: checking for " >&5
26058 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26059 if test "${ac_cv_header_+set}" = set; then
26060 echo $ECHO_N "(cached) $ECHO_C" >&6
26062 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26063 echo "${ECHO_T}$ac_cv_header_" >&6; }
26064 else
26065 # Is the header compilable?
26066 { echo "$as_me:$LINENO: checking usability" >&5
26067 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26068 cat >conftest.$ac_ext <<_ACEOF
26069 /* confdefs.h. */
26070 _ACEOF
26071 cat confdefs.h >>conftest.$ac_ext
26072 cat >>conftest.$ac_ext <<_ACEOF
26073 /* end confdefs.h. */
26074 $ac_includes_default
26075 #include <>
26076 _ACEOF
26077 rm -f conftest.$ac_objext
26078 if { (ac_try="$ac_compile"
26079 case "(($ac_try" in
26080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26082 esac
26083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26084 (eval "$ac_compile") 2>conftest.er1
26085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } && {
26091 test -z "$ac_c_werror_flag" ||
26092 test ! -s conftest.err
26093 } && test -s conftest.$ac_objext; then
26094 ac_header_compiler=yes
26095 else
26096 echo "$as_me: failed program was:" >&5
26097 sed 's/^/| /' conftest.$ac_ext >&5
26099 ac_header_compiler=no
26102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26104 echo "${ECHO_T}$ac_header_compiler" >&6; }
26106 # Is the header present?
26107 { echo "$as_me:$LINENO: checking presence" >&5
26108 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26109 cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h. */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h. */
26115 #include <>
26116 _ACEOF
26117 if { (ac_try="$ac_cpp conftest.$ac_ext"
26118 case "(($ac_try" in
26119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26120 *) ac_try_echo=$ac_try;;
26121 esac
26122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26124 ac_status=$?
26125 grep -v '^ *+' conftest.er1 >conftest.err
26126 rm -f conftest.er1
26127 cat conftest.err >&5
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); } >/dev/null && {
26130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26131 test ! -s conftest.err
26132 }; then
26133 ac_header_preproc=yes
26134 else
26135 echo "$as_me: failed program was:" >&5
26136 sed 's/^/| /' conftest.$ac_ext >&5
26138 ac_header_preproc=no
26141 rm -f conftest.err conftest.$ac_ext
26142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26143 echo "${ECHO_T}$ac_header_preproc" >&6; }
26145 # So? What about this header?
26146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26147 yes:no: )
26148 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26149 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26150 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26151 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26152 ac_header_preproc=yes
26154 no:yes:* )
26155 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26156 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26157 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26158 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26159 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26160 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26161 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26162 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26163 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26164 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26165 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26166 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26167 ( cat <<\_ASBOX
26168 ## ------------------------------- ##
26169 ## Report this to www.asterisk.org ##
26170 ## ------------------------------- ##
26171 _ASBOX
26172 ) | sed "s/^/$as_me: WARNING: /" >&2
26174 esac
26175 { echo "$as_me:$LINENO: checking for " >&5
26176 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26177 if test "${ac_cv_header_+set}" = set; then
26178 echo $ECHO_N "(cached) $ECHO_C" >&6
26179 else
26180 ac_cv_header_=$ac_header_preproc
26182 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26183 echo "${ECHO_T}$ac_cv_header_" >&6; }
26186 if test $ac_cv_header_ = yes; then
26187 COS_HEADER_FOUND=1
26188 else
26189 COS_HEADER_FOUND=0
26193 CPPFLAGS="${saved_cppflags}"
26195 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26196 COS_LIB=""
26197 COS_INCLUDE=""
26198 else
26199 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26200 COS_LIB=""
26202 PBX_COS=1
26203 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26205 cat >>confdefs.h <<_ACEOF
26206 #define HAVE_COS 1
26207 _ACEOF
26210 cat >>confdefs.h <<_ACEOF
26211 #define HAVE_COS_VERSION
26212 _ACEOF
26219 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26220 pbxlibdir=""
26221 # if --with-TAN=DIR has been specified, use it.
26222 if test "x${TAN_DIR}" != "x"; then
26223 if test -d ${TAN_DIR}/lib; then
26224 pbxlibdir="-L${TAN_DIR}/lib"
26225 else
26226 pbxlibdir="-L${TAN_DIR}"
26229 pbxfuncname="tan"
26230 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26231 AST_TAN_FOUND=yes
26232 else
26233 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26234 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26235 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26236 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26237 echo $ECHO_N "(cached) $ECHO_C" >&6
26238 else
26239 ac_check_lib_save_LIBS=$LIBS
26240 LIBS="-lm ${pbxlibdir} $LIBS"
26241 cat >conftest.$ac_ext <<_ACEOF
26242 /* confdefs.h. */
26243 _ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26248 /* Override any GCC internal prototype to avoid an error.
26249 Use char because int might match the return type of a GCC
26250 builtin and then its argument prototype would still apply. */
26251 #ifdef __cplusplus
26252 extern "C"
26253 #endif
26254 char ${pbxfuncname} ();
26256 main ()
26258 return ${pbxfuncname} ();
26260 return 0;
26262 _ACEOF
26263 rm -f conftest.$ac_objext conftest$ac_exeext
26264 if { (ac_try="$ac_link"
26265 case "(($ac_try" in
26266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26267 *) ac_try_echo=$ac_try;;
26268 esac
26269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26270 (eval "$ac_link") 2>conftest.er1
26271 ac_status=$?
26272 grep -v '^ *+' conftest.er1 >conftest.err
26273 rm -f conftest.er1
26274 cat conftest.err >&5
26275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } && {
26277 test -z "$ac_c_werror_flag" ||
26278 test ! -s conftest.err
26279 } && test -s conftest$ac_exeext &&
26280 $as_test_x conftest$ac_exeext; then
26281 eval "$as_ac_Lib=yes"
26282 else
26283 echo "$as_me: failed program was:" >&5
26284 sed 's/^/| /' conftest.$ac_ext >&5
26286 eval "$as_ac_Lib=no"
26289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26290 conftest$ac_exeext conftest.$ac_ext
26291 LIBS=$ac_check_lib_save_LIBS
26293 ac_res=`eval echo '${'$as_ac_Lib'}'`
26294 { echo "$as_me:$LINENO: result: $ac_res" >&5
26295 echo "${ECHO_T}$ac_res" >&6; }
26296 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26297 AST_TAN_FOUND=yes
26298 else
26299 AST_TAN_FOUND=no
26304 # now check for the header.
26305 if test "${AST_TAN_FOUND}" = "yes"; then
26306 TAN_LIB="${pbxlibdir} -lm "
26307 # if --with-TAN=DIR has been specified, use it.
26308 if test "x${TAN_DIR}" != "x"; then
26309 TAN_INCLUDE="-I${TAN_DIR}/include"
26311 TAN_INCLUDE="${TAN_INCLUDE} "
26312 if test "x" = "x" ; then # no header, assume found
26313 TAN_HEADER_FOUND="1"
26314 else # check for the header
26315 saved_cppflags="${CPPFLAGS}"
26316 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE} "
26317 if test "${ac_cv_header_+set}" = set; then
26318 { echo "$as_me:$LINENO: checking for " >&5
26319 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26320 if test "${ac_cv_header_+set}" = set; then
26321 echo $ECHO_N "(cached) $ECHO_C" >&6
26323 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26324 echo "${ECHO_T}$ac_cv_header_" >&6; }
26325 else
26326 # Is the header compilable?
26327 { echo "$as_me:$LINENO: checking usability" >&5
26328 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26329 cat >conftest.$ac_ext <<_ACEOF
26330 /* confdefs.h. */
26331 _ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h. */
26335 $ac_includes_default
26336 #include <>
26337 _ACEOF
26338 rm -f conftest.$ac_objext
26339 if { (ac_try="$ac_compile"
26340 case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26343 esac
26344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_compile") 2>conftest.er1
26346 ac_status=$?
26347 grep -v '^ *+' conftest.er1 >conftest.err
26348 rm -f conftest.er1
26349 cat conftest.err >&5
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); } && {
26352 test -z "$ac_c_werror_flag" ||
26353 test ! -s conftest.err
26354 } && test -s conftest.$ac_objext; then
26355 ac_header_compiler=yes
26356 else
26357 echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26360 ac_header_compiler=no
26363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26365 echo "${ECHO_T}$ac_header_compiler" >&6; }
26367 # Is the header present?
26368 { echo "$as_me:$LINENO: checking presence" >&5
26369 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26370 cat >conftest.$ac_ext <<_ACEOF
26371 /* confdefs.h. */
26372 _ACEOF
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h. */
26376 #include <>
26377 _ACEOF
26378 if { (ac_try="$ac_cpp conftest.$ac_ext"
26379 case "(($ac_try" in
26380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26381 *) ac_try_echo=$ac_try;;
26382 esac
26383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26385 ac_status=$?
26386 grep -v '^ *+' conftest.er1 >conftest.err
26387 rm -f conftest.er1
26388 cat conftest.err >&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); } >/dev/null && {
26391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26392 test ! -s conftest.err
26393 }; then
26394 ac_header_preproc=yes
26395 else
26396 echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26399 ac_header_preproc=no
26402 rm -f conftest.err conftest.$ac_ext
26403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26404 echo "${ECHO_T}$ac_header_preproc" >&6; }
26406 # So? What about this header?
26407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26408 yes:no: )
26409 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26410 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26412 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26413 ac_header_preproc=yes
26415 no:yes:* )
26416 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26417 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26418 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26419 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26420 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26421 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26422 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26423 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26424 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26425 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26426 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26427 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26428 ( cat <<\_ASBOX
26429 ## ------------------------------- ##
26430 ## Report this to www.asterisk.org ##
26431 ## ------------------------------- ##
26432 _ASBOX
26433 ) | sed "s/^/$as_me: WARNING: /" >&2
26435 esac
26436 { echo "$as_me:$LINENO: checking for " >&5
26437 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26438 if test "${ac_cv_header_+set}" = set; then
26439 echo $ECHO_N "(cached) $ECHO_C" >&6
26440 else
26441 ac_cv_header_=$ac_header_preproc
26443 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26444 echo "${ECHO_T}$ac_cv_header_" >&6; }
26447 if test $ac_cv_header_ = yes; then
26448 TAN_HEADER_FOUND=1
26449 else
26450 TAN_HEADER_FOUND=0
26454 CPPFLAGS="${saved_cppflags}"
26456 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
26457 TAN_LIB=""
26458 TAN_INCLUDE=""
26459 else
26460 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26461 TAN_LIB=""
26463 PBX_TAN=1
26464 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26466 cat >>confdefs.h <<_ACEOF
26467 #define HAVE_TAN 1
26468 _ACEOF
26471 cat >>confdefs.h <<_ACEOF
26472 #define HAVE_TAN_VERSION
26473 _ACEOF
26480 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
26481 pbxlibdir=""
26482 # if --with-ASIN=DIR has been specified, use it.
26483 if test "x${ASIN_DIR}" != "x"; then
26484 if test -d ${ASIN_DIR}/lib; then
26485 pbxlibdir="-L${ASIN_DIR}/lib"
26486 else
26487 pbxlibdir="-L${ASIN_DIR}"
26490 pbxfuncname="asin"
26491 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26492 AST_ASIN_FOUND=yes
26493 else
26494 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26495 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26496 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26497 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26498 echo $ECHO_N "(cached) $ECHO_C" >&6
26499 else
26500 ac_check_lib_save_LIBS=$LIBS
26501 LIBS="-lm ${pbxlibdir} $LIBS"
26502 cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h. */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26509 /* Override any GCC internal prototype to avoid an error.
26510 Use char because int might match the return type of a GCC
26511 builtin and then its argument prototype would still apply. */
26512 #ifdef __cplusplus
26513 extern "C"
26514 #endif
26515 char ${pbxfuncname} ();
26517 main ()
26519 return ${pbxfuncname} ();
26521 return 0;
26523 _ACEOF
26524 rm -f conftest.$ac_objext conftest$ac_exeext
26525 if { (ac_try="$ac_link"
26526 case "(($ac_try" in
26527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26528 *) ac_try_echo=$ac_try;;
26529 esac
26530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26531 (eval "$ac_link") 2>conftest.er1
26532 ac_status=$?
26533 grep -v '^ *+' conftest.er1 >conftest.err
26534 rm -f conftest.er1
26535 cat conftest.err >&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); } && {
26538 test -z "$ac_c_werror_flag" ||
26539 test ! -s conftest.err
26540 } && test -s conftest$ac_exeext &&
26541 $as_test_x conftest$ac_exeext; then
26542 eval "$as_ac_Lib=yes"
26543 else
26544 echo "$as_me: failed program was:" >&5
26545 sed 's/^/| /' conftest.$ac_ext >&5
26547 eval "$as_ac_Lib=no"
26550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26551 conftest$ac_exeext conftest.$ac_ext
26552 LIBS=$ac_check_lib_save_LIBS
26554 ac_res=`eval echo '${'$as_ac_Lib'}'`
26555 { echo "$as_me:$LINENO: result: $ac_res" >&5
26556 echo "${ECHO_T}$ac_res" >&6; }
26557 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26558 AST_ASIN_FOUND=yes
26559 else
26560 AST_ASIN_FOUND=no
26565 # now check for the header.
26566 if test "${AST_ASIN_FOUND}" = "yes"; then
26567 ASIN_LIB="${pbxlibdir} -lm "
26568 # if --with-ASIN=DIR has been specified, use it.
26569 if test "x${ASIN_DIR}" != "x"; then
26570 ASIN_INCLUDE="-I${ASIN_DIR}/include"
26572 ASIN_INCLUDE="${ASIN_INCLUDE} "
26573 if test "x" = "x" ; then # no header, assume found
26574 ASIN_HEADER_FOUND="1"
26575 else # check for the header
26576 saved_cppflags="${CPPFLAGS}"
26577 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE} "
26578 if test "${ac_cv_header_+set}" = set; then
26579 { echo "$as_me:$LINENO: checking for " >&5
26580 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26581 if test "${ac_cv_header_+set}" = set; then
26582 echo $ECHO_N "(cached) $ECHO_C" >&6
26584 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26585 echo "${ECHO_T}$ac_cv_header_" >&6; }
26586 else
26587 # Is the header compilable?
26588 { echo "$as_me:$LINENO: checking usability" >&5
26589 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h. */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 $ac_includes_default
26597 #include <>
26598 _ACEOF
26599 rm -f conftest.$ac_objext
26600 if { (ac_try="$ac_compile"
26601 case "(($ac_try" in
26602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26603 *) ac_try_echo=$ac_try;;
26604 esac
26605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26606 (eval "$ac_compile") 2>conftest.er1
26607 ac_status=$?
26608 grep -v '^ *+' conftest.er1 >conftest.err
26609 rm -f conftest.er1
26610 cat conftest.err >&5
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } && {
26613 test -z "$ac_c_werror_flag" ||
26614 test ! -s conftest.err
26615 } && test -s conftest.$ac_objext; then
26616 ac_header_compiler=yes
26617 else
26618 echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26621 ac_header_compiler=no
26624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26626 echo "${ECHO_T}$ac_header_compiler" >&6; }
26628 # Is the header present?
26629 { echo "$as_me:$LINENO: checking presence" >&5
26630 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26631 cat >conftest.$ac_ext <<_ACEOF
26632 /* confdefs.h. */
26633 _ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h. */
26637 #include <>
26638 _ACEOF
26639 if { (ac_try="$ac_cpp conftest.$ac_ext"
26640 case "(($ac_try" in
26641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642 *) ac_try_echo=$ac_try;;
26643 esac
26644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26646 ac_status=$?
26647 grep -v '^ *+' conftest.er1 >conftest.err
26648 rm -f conftest.er1
26649 cat conftest.err >&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } >/dev/null && {
26652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26653 test ! -s conftest.err
26654 }; then
26655 ac_header_preproc=yes
26656 else
26657 echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26660 ac_header_preproc=no
26663 rm -f conftest.err conftest.$ac_ext
26664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26665 echo "${ECHO_T}$ac_header_preproc" >&6; }
26667 # So? What about this header?
26668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26669 yes:no: )
26670 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26671 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26672 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26673 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26674 ac_header_preproc=yes
26676 no:yes:* )
26677 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26678 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26679 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26680 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26681 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26682 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26683 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26684 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26685 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26686 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26687 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26688 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26689 ( cat <<\_ASBOX
26690 ## ------------------------------- ##
26691 ## Report this to www.asterisk.org ##
26692 ## ------------------------------- ##
26693 _ASBOX
26694 ) | sed "s/^/$as_me: WARNING: /" >&2
26696 esac
26697 { echo "$as_me:$LINENO: checking for " >&5
26698 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26699 if test "${ac_cv_header_+set}" = set; then
26700 echo $ECHO_N "(cached) $ECHO_C" >&6
26701 else
26702 ac_cv_header_=$ac_header_preproc
26704 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26705 echo "${ECHO_T}$ac_cv_header_" >&6; }
26708 if test $ac_cv_header_ = yes; then
26709 ASIN_HEADER_FOUND=1
26710 else
26711 ASIN_HEADER_FOUND=0
26715 CPPFLAGS="${saved_cppflags}"
26717 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
26718 ASIN_LIB=""
26719 ASIN_INCLUDE=""
26720 else
26721 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26722 ASIN_LIB=""
26724 PBX_ASIN=1
26725 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26727 cat >>confdefs.h <<_ACEOF
26728 #define HAVE_ASIN 1
26729 _ACEOF
26732 cat >>confdefs.h <<_ACEOF
26733 #define HAVE_ASIN_VERSION
26734 _ACEOF
26741 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
26742 pbxlibdir=""
26743 # if --with-ACOS=DIR has been specified, use it.
26744 if test "x${ACOS_DIR}" != "x"; then
26745 if test -d ${ACOS_DIR}/lib; then
26746 pbxlibdir="-L${ACOS_DIR}/lib"
26747 else
26748 pbxlibdir="-L${ACOS_DIR}"
26751 pbxfuncname="acos"
26752 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26753 AST_ACOS_FOUND=yes
26754 else
26755 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26756 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26757 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26758 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26759 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 else
26761 ac_check_lib_save_LIBS=$LIBS
26762 LIBS="-lm ${pbxlibdir} $LIBS"
26763 cat >conftest.$ac_ext <<_ACEOF
26764 /* confdefs.h. */
26765 _ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h. */
26770 /* Override any GCC internal prototype to avoid an error.
26771 Use char because int might match the return type of a GCC
26772 builtin and then its argument prototype would still apply. */
26773 #ifdef __cplusplus
26774 extern "C"
26775 #endif
26776 char ${pbxfuncname} ();
26778 main ()
26780 return ${pbxfuncname} ();
26782 return 0;
26784 _ACEOF
26785 rm -f conftest.$ac_objext conftest$ac_exeext
26786 if { (ac_try="$ac_link"
26787 case "(($ac_try" in
26788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789 *) ac_try_echo=$ac_try;;
26790 esac
26791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792 (eval "$ac_link") 2>conftest.er1
26793 ac_status=$?
26794 grep -v '^ *+' conftest.er1 >conftest.err
26795 rm -f conftest.er1
26796 cat conftest.err >&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } && {
26799 test -z "$ac_c_werror_flag" ||
26800 test ! -s conftest.err
26801 } && test -s conftest$ac_exeext &&
26802 $as_test_x conftest$ac_exeext; then
26803 eval "$as_ac_Lib=yes"
26804 else
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26808 eval "$as_ac_Lib=no"
26811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26812 conftest$ac_exeext conftest.$ac_ext
26813 LIBS=$ac_check_lib_save_LIBS
26815 ac_res=`eval echo '${'$as_ac_Lib'}'`
26816 { echo "$as_me:$LINENO: result: $ac_res" >&5
26817 echo "${ECHO_T}$ac_res" >&6; }
26818 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26819 AST_ACOS_FOUND=yes
26820 else
26821 AST_ACOS_FOUND=no
26826 # now check for the header.
26827 if test "${AST_ACOS_FOUND}" = "yes"; then
26828 ACOS_LIB="${pbxlibdir} -lm "
26829 # if --with-ACOS=DIR has been specified, use it.
26830 if test "x${ACOS_DIR}" != "x"; then
26831 ACOS_INCLUDE="-I${ACOS_DIR}/include"
26833 ACOS_INCLUDE="${ACOS_INCLUDE} "
26834 if test "x" = "x" ; then # no header, assume found
26835 ACOS_HEADER_FOUND="1"
26836 else # check for the header
26837 saved_cppflags="${CPPFLAGS}"
26838 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE} "
26839 if test "${ac_cv_header_+set}" = set; then
26840 { echo "$as_me:$LINENO: checking for " >&5
26841 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26842 if test "${ac_cv_header_+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26845 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26846 echo "${ECHO_T}$ac_cv_header_" >&6; }
26847 else
26848 # Is the header compilable?
26849 { echo "$as_me:$LINENO: checking usability" >&5
26850 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26851 cat >conftest.$ac_ext <<_ACEOF
26852 /* confdefs.h. */
26853 _ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h. */
26857 $ac_includes_default
26858 #include <>
26859 _ACEOF
26860 rm -f conftest.$ac_objext
26861 if { (ac_try="$ac_compile"
26862 case "(($ac_try" in
26863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26864 *) ac_try_echo=$ac_try;;
26865 esac
26866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26867 (eval "$ac_compile") 2>conftest.er1
26868 ac_status=$?
26869 grep -v '^ *+' conftest.er1 >conftest.err
26870 rm -f conftest.er1
26871 cat conftest.err >&5
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); } && {
26874 test -z "$ac_c_werror_flag" ||
26875 test ! -s conftest.err
26876 } && test -s conftest.$ac_objext; then
26877 ac_header_compiler=yes
26878 else
26879 echo "$as_me: failed program was:" >&5
26880 sed 's/^/| /' conftest.$ac_ext >&5
26882 ac_header_compiler=no
26885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26887 echo "${ECHO_T}$ac_header_compiler" >&6; }
26889 # Is the header present?
26890 { echo "$as_me:$LINENO: checking presence" >&5
26891 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26892 cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h. */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h. */
26898 #include <>
26899 _ACEOF
26900 if { (ac_try="$ac_cpp conftest.$ac_ext"
26901 case "(($ac_try" in
26902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26903 *) ac_try_echo=$ac_try;;
26904 esac
26905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26907 ac_status=$?
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } >/dev/null && {
26913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26914 test ! -s conftest.err
26915 }; then
26916 ac_header_preproc=yes
26917 else
26918 echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26921 ac_header_preproc=no
26924 rm -f conftest.err conftest.$ac_ext
26925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26926 echo "${ECHO_T}$ac_header_preproc" >&6; }
26928 # So? What about this header?
26929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26930 yes:no: )
26931 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26932 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26933 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26934 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26935 ac_header_preproc=yes
26937 no:yes:* )
26938 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26939 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26940 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26941 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26942 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26943 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26944 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26945 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26946 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26947 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26949 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26950 ( cat <<\_ASBOX
26951 ## ------------------------------- ##
26952 ## Report this to www.asterisk.org ##
26953 ## ------------------------------- ##
26954 _ASBOX
26955 ) | sed "s/^/$as_me: WARNING: /" >&2
26957 esac
26958 { echo "$as_me:$LINENO: checking for " >&5
26959 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26960 if test "${ac_cv_header_+set}" = set; then
26961 echo $ECHO_N "(cached) $ECHO_C" >&6
26962 else
26963 ac_cv_header_=$ac_header_preproc
26965 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26966 echo "${ECHO_T}$ac_cv_header_" >&6; }
26969 if test $ac_cv_header_ = yes; then
26970 ACOS_HEADER_FOUND=1
26971 else
26972 ACOS_HEADER_FOUND=0
26976 CPPFLAGS="${saved_cppflags}"
26978 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
26979 ACOS_LIB=""
26980 ACOS_INCLUDE=""
26981 else
26982 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26983 ACOS_LIB=""
26985 PBX_ACOS=1
26986 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26988 cat >>confdefs.h <<_ACEOF
26989 #define HAVE_ACOS 1
26990 _ACEOF
26993 cat >>confdefs.h <<_ACEOF
26994 #define HAVE_ACOS_VERSION
26995 _ACEOF
27002 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27003 pbxlibdir=""
27004 # if --with-ATAN=DIR has been specified, use it.
27005 if test "x${ATAN_DIR}" != "x"; then
27006 if test -d ${ATAN_DIR}/lib; then
27007 pbxlibdir="-L${ATAN_DIR}/lib"
27008 else
27009 pbxlibdir="-L${ATAN_DIR}"
27012 pbxfuncname="atan"
27013 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27014 AST_ATAN_FOUND=yes
27015 else
27016 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27017 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27018 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27019 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27020 echo $ECHO_N "(cached) $ECHO_C" >&6
27021 else
27022 ac_check_lib_save_LIBS=$LIBS
27023 LIBS="-lm ${pbxlibdir} $LIBS"
27024 cat >conftest.$ac_ext <<_ACEOF
27025 /* confdefs.h. */
27026 _ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h. */
27031 /* Override any GCC internal prototype to avoid an error.
27032 Use char because int might match the return type of a GCC
27033 builtin and then its argument prototype would still apply. */
27034 #ifdef __cplusplus
27035 extern "C"
27036 #endif
27037 char ${pbxfuncname} ();
27039 main ()
27041 return ${pbxfuncname} ();
27043 return 0;
27045 _ACEOF
27046 rm -f conftest.$ac_objext conftest$ac_exeext
27047 if { (ac_try="$ac_link"
27048 case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27051 esac
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053 (eval "$ac_link") 2>conftest.er1
27054 ac_status=$?
27055 grep -v '^ *+' conftest.er1 >conftest.err
27056 rm -f conftest.er1
27057 cat conftest.err >&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } && {
27060 test -z "$ac_c_werror_flag" ||
27061 test ! -s conftest.err
27062 } && test -s conftest$ac_exeext &&
27063 $as_test_x conftest$ac_exeext; then
27064 eval "$as_ac_Lib=yes"
27065 else
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 eval "$as_ac_Lib=no"
27072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27073 conftest$ac_exeext conftest.$ac_ext
27074 LIBS=$ac_check_lib_save_LIBS
27076 ac_res=`eval echo '${'$as_ac_Lib'}'`
27077 { echo "$as_me:$LINENO: result: $ac_res" >&5
27078 echo "${ECHO_T}$ac_res" >&6; }
27079 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27080 AST_ATAN_FOUND=yes
27081 else
27082 AST_ATAN_FOUND=no
27087 # now check for the header.
27088 if test "${AST_ATAN_FOUND}" = "yes"; then
27089 ATAN_LIB="${pbxlibdir} -lm "
27090 # if --with-ATAN=DIR has been specified, use it.
27091 if test "x${ATAN_DIR}" != "x"; then
27092 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27094 ATAN_INCLUDE="${ATAN_INCLUDE} "
27095 if test "x" = "x" ; then # no header, assume found
27096 ATAN_HEADER_FOUND="1"
27097 else # check for the header
27098 saved_cppflags="${CPPFLAGS}"
27099 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE} "
27100 if test "${ac_cv_header_+set}" = set; then
27101 { echo "$as_me:$LINENO: checking for " >&5
27102 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27103 if test "${ac_cv_header_+set}" = set; then
27104 echo $ECHO_N "(cached) $ECHO_C" >&6
27106 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27107 echo "${ECHO_T}$ac_cv_header_" >&6; }
27108 else
27109 # Is the header compilable?
27110 { echo "$as_me:$LINENO: checking usability" >&5
27111 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27112 cat >conftest.$ac_ext <<_ACEOF
27113 /* confdefs.h. */
27114 _ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h. */
27118 $ac_includes_default
27119 #include <>
27120 _ACEOF
27121 rm -f conftest.$ac_objext
27122 if { (ac_try="$ac_compile"
27123 case "(($ac_try" in
27124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27125 *) ac_try_echo=$ac_try;;
27126 esac
27127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27128 (eval "$ac_compile") 2>conftest.er1
27129 ac_status=$?
27130 grep -v '^ *+' conftest.er1 >conftest.err
27131 rm -f conftest.er1
27132 cat conftest.err >&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); } && {
27135 test -z "$ac_c_werror_flag" ||
27136 test ! -s conftest.err
27137 } && test -s conftest.$ac_objext; then
27138 ac_header_compiler=yes
27139 else
27140 echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27143 ac_header_compiler=no
27146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27148 echo "${ECHO_T}$ac_header_compiler" >&6; }
27150 # Is the header present?
27151 { echo "$as_me:$LINENO: checking presence" >&5
27152 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h. */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27159 #include <>
27160 _ACEOF
27161 if { (ac_try="$ac_cpp conftest.$ac_ext"
27162 case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27165 esac
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27168 ac_status=$?
27169 grep -v '^ *+' conftest.er1 >conftest.err
27170 rm -f conftest.er1
27171 cat conftest.err >&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } >/dev/null && {
27174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27175 test ! -s conftest.err
27176 }; then
27177 ac_header_preproc=yes
27178 else
27179 echo "$as_me: failed program was:" >&5
27180 sed 's/^/| /' conftest.$ac_ext >&5
27182 ac_header_preproc=no
27185 rm -f conftest.err conftest.$ac_ext
27186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27187 echo "${ECHO_T}$ac_header_preproc" >&6; }
27189 # So? What about this header?
27190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27191 yes:no: )
27192 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27193 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27195 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27196 ac_header_preproc=yes
27198 no:yes:* )
27199 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27200 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27201 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27202 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27203 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27204 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27205 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27206 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27207 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27208 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27209 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27210 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27211 ( cat <<\_ASBOX
27212 ## ------------------------------- ##
27213 ## Report this to www.asterisk.org ##
27214 ## ------------------------------- ##
27215 _ASBOX
27216 ) | sed "s/^/$as_me: WARNING: /" >&2
27218 esac
27219 { echo "$as_me:$LINENO: checking for " >&5
27220 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27221 if test "${ac_cv_header_+set}" = set; then
27222 echo $ECHO_N "(cached) $ECHO_C" >&6
27223 else
27224 ac_cv_header_=$ac_header_preproc
27226 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27227 echo "${ECHO_T}$ac_cv_header_" >&6; }
27230 if test $ac_cv_header_ = yes; then
27231 ATAN_HEADER_FOUND=1
27232 else
27233 ATAN_HEADER_FOUND=0
27237 CPPFLAGS="${saved_cppflags}"
27239 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27240 ATAN_LIB=""
27241 ATAN_INCLUDE=""
27242 else
27243 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27244 ATAN_LIB=""
27246 PBX_ATAN=1
27247 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27249 cat >>confdefs.h <<_ACEOF
27250 #define HAVE_ATAN 1
27251 _ACEOF
27254 cat >>confdefs.h <<_ACEOF
27255 #define HAVE_ATAN_VERSION
27256 _ACEOF
27263 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27264 pbxlibdir=""
27265 # if --with-ATAN2=DIR has been specified, use it.
27266 if test "x${ATAN2_DIR}" != "x"; then
27267 if test -d ${ATAN2_DIR}/lib; then
27268 pbxlibdir="-L${ATAN2_DIR}/lib"
27269 else
27270 pbxlibdir="-L${ATAN2_DIR}"
27273 pbxfuncname="atan2"
27274 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27275 AST_ATAN2_FOUND=yes
27276 else
27277 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27278 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27279 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27280 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27282 else
27283 ac_check_lib_save_LIBS=$LIBS
27284 LIBS="-lm ${pbxlibdir} $LIBS"
27285 cat >conftest.$ac_ext <<_ACEOF
27286 /* confdefs.h. */
27287 _ACEOF
27288 cat confdefs.h >>conftest.$ac_ext
27289 cat >>conftest.$ac_ext <<_ACEOF
27290 /* end confdefs.h. */
27292 /* Override any GCC internal prototype to avoid an error.
27293 Use char because int might match the return type of a GCC
27294 builtin and then its argument prototype would still apply. */
27295 #ifdef __cplusplus
27296 extern "C"
27297 #endif
27298 char ${pbxfuncname} ();
27300 main ()
27302 return ${pbxfuncname} ();
27304 return 0;
27306 _ACEOF
27307 rm -f conftest.$ac_objext conftest$ac_exeext
27308 if { (ac_try="$ac_link"
27309 case "(($ac_try" in
27310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27311 *) ac_try_echo=$ac_try;;
27312 esac
27313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27314 (eval "$ac_link") 2>conftest.er1
27315 ac_status=$?
27316 grep -v '^ *+' conftest.er1 >conftest.err
27317 rm -f conftest.er1
27318 cat conftest.err >&5
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); } && {
27321 test -z "$ac_c_werror_flag" ||
27322 test ! -s conftest.err
27323 } && test -s conftest$ac_exeext &&
27324 $as_test_x conftest$ac_exeext; then
27325 eval "$as_ac_Lib=yes"
27326 else
27327 echo "$as_me: failed program was:" >&5
27328 sed 's/^/| /' conftest.$ac_ext >&5
27330 eval "$as_ac_Lib=no"
27333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27334 conftest$ac_exeext conftest.$ac_ext
27335 LIBS=$ac_check_lib_save_LIBS
27337 ac_res=`eval echo '${'$as_ac_Lib'}'`
27338 { echo "$as_me:$LINENO: result: $ac_res" >&5
27339 echo "${ECHO_T}$ac_res" >&6; }
27340 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27341 AST_ATAN2_FOUND=yes
27342 else
27343 AST_ATAN2_FOUND=no
27348 # now check for the header.
27349 if test "${AST_ATAN2_FOUND}" = "yes"; then
27350 ATAN2_LIB="${pbxlibdir} -lm "
27351 # if --with-ATAN2=DIR has been specified, use it.
27352 if test "x${ATAN2_DIR}" != "x"; then
27353 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27355 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27356 if test "x" = "x" ; then # no header, assume found
27357 ATAN2_HEADER_FOUND="1"
27358 else # check for the header
27359 saved_cppflags="${CPPFLAGS}"
27360 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE} "
27361 if test "${ac_cv_header_+set}" = set; then
27362 { echo "$as_me:$LINENO: checking for " >&5
27363 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27364 if test "${ac_cv_header_+set}" = set; then
27365 echo $ECHO_N "(cached) $ECHO_C" >&6
27367 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27368 echo "${ECHO_T}$ac_cv_header_" >&6; }
27369 else
27370 # Is the header compilable?
27371 { echo "$as_me:$LINENO: checking usability" >&5
27372 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27373 cat >conftest.$ac_ext <<_ACEOF
27374 /* confdefs.h. */
27375 _ACEOF
27376 cat confdefs.h >>conftest.$ac_ext
27377 cat >>conftest.$ac_ext <<_ACEOF
27378 /* end confdefs.h. */
27379 $ac_includes_default
27380 #include <>
27381 _ACEOF
27382 rm -f conftest.$ac_objext
27383 if { (ac_try="$ac_compile"
27384 case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_compile") 2>conftest.er1
27390 ac_status=$?
27391 grep -v '^ *+' conftest.er1 >conftest.err
27392 rm -f conftest.er1
27393 cat conftest.err >&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); } && {
27396 test -z "$ac_c_werror_flag" ||
27397 test ! -s conftest.err
27398 } && test -s conftest.$ac_objext; then
27399 ac_header_compiler=yes
27400 else
27401 echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27404 ac_header_compiler=no
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27409 echo "${ECHO_T}$ac_header_compiler" >&6; }
27411 # Is the header present?
27412 { echo "$as_me:$LINENO: checking presence" >&5
27413 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27414 cat >conftest.$ac_ext <<_ACEOF
27415 /* confdefs.h. */
27416 _ACEOF
27417 cat confdefs.h >>conftest.$ac_ext
27418 cat >>conftest.$ac_ext <<_ACEOF
27419 /* end confdefs.h. */
27420 #include <>
27421 _ACEOF
27422 if { (ac_try="$ac_cpp conftest.$ac_ext"
27423 case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27426 esac
27427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27429 ac_status=$?
27430 grep -v '^ *+' conftest.er1 >conftest.err
27431 rm -f conftest.er1
27432 cat conftest.err >&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); } >/dev/null && {
27435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27436 test ! -s conftest.err
27437 }; then
27438 ac_header_preproc=yes
27439 else
27440 echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27443 ac_header_preproc=no
27446 rm -f conftest.err conftest.$ac_ext
27447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27448 echo "${ECHO_T}$ac_header_preproc" >&6; }
27450 # So? What about this header?
27451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27452 yes:no: )
27453 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27454 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27455 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27456 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27457 ac_header_preproc=yes
27459 no:yes:* )
27460 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27461 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27462 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27463 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27464 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27465 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27466 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27467 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27468 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27469 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27470 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27471 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27472 ( cat <<\_ASBOX
27473 ## ------------------------------- ##
27474 ## Report this to www.asterisk.org ##
27475 ## ------------------------------- ##
27476 _ASBOX
27477 ) | sed "s/^/$as_me: WARNING: /" >&2
27479 esac
27480 { echo "$as_me:$LINENO: checking for " >&5
27481 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27482 if test "${ac_cv_header_+set}" = set; then
27483 echo $ECHO_N "(cached) $ECHO_C" >&6
27484 else
27485 ac_cv_header_=$ac_header_preproc
27487 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27488 echo "${ECHO_T}$ac_cv_header_" >&6; }
27491 if test $ac_cv_header_ = yes; then
27492 ATAN2_HEADER_FOUND=1
27493 else
27494 ATAN2_HEADER_FOUND=0
27498 CPPFLAGS="${saved_cppflags}"
27500 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
27501 ATAN2_LIB=""
27502 ATAN2_INCLUDE=""
27503 else
27504 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27505 ATAN2_LIB=""
27507 PBX_ATAN2=1
27508 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27510 cat >>confdefs.h <<_ACEOF
27511 #define HAVE_ATAN2 1
27512 _ACEOF
27515 cat >>confdefs.h <<_ACEOF
27516 #define HAVE_ATAN2_VERSION
27517 _ACEOF
27524 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
27525 pbxlibdir=""
27526 # if --with-POW=DIR has been specified, use it.
27527 if test "x${POW_DIR}" != "x"; then
27528 if test -d ${POW_DIR}/lib; then
27529 pbxlibdir="-L${POW_DIR}/lib"
27530 else
27531 pbxlibdir="-L${POW_DIR}"
27534 pbxfuncname="pow"
27535 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27536 AST_POW_FOUND=yes
27537 else
27538 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27539 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27540 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27541 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27542 echo $ECHO_N "(cached) $ECHO_C" >&6
27543 else
27544 ac_check_lib_save_LIBS=$LIBS
27545 LIBS="-lm ${pbxlibdir} $LIBS"
27546 cat >conftest.$ac_ext <<_ACEOF
27547 /* confdefs.h. */
27548 _ACEOF
27549 cat confdefs.h >>conftest.$ac_ext
27550 cat >>conftest.$ac_ext <<_ACEOF
27551 /* end confdefs.h. */
27553 /* Override any GCC internal prototype to avoid an error.
27554 Use char because int might match the return type of a GCC
27555 builtin and then its argument prototype would still apply. */
27556 #ifdef __cplusplus
27557 extern "C"
27558 #endif
27559 char ${pbxfuncname} ();
27561 main ()
27563 return ${pbxfuncname} ();
27565 return 0;
27567 _ACEOF
27568 rm -f conftest.$ac_objext conftest$ac_exeext
27569 if { (ac_try="$ac_link"
27570 case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573 esac
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_link") 2>conftest.er1
27576 ac_status=$?
27577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } && {
27582 test -z "$ac_c_werror_flag" ||
27583 test ! -s conftest.err
27584 } && test -s conftest$ac_exeext &&
27585 $as_test_x conftest$ac_exeext; then
27586 eval "$as_ac_Lib=yes"
27587 else
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 eval "$as_ac_Lib=no"
27594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27595 conftest$ac_exeext conftest.$ac_ext
27596 LIBS=$ac_check_lib_save_LIBS
27598 ac_res=`eval echo '${'$as_ac_Lib'}'`
27599 { echo "$as_me:$LINENO: result: $ac_res" >&5
27600 echo "${ECHO_T}$ac_res" >&6; }
27601 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27602 AST_POW_FOUND=yes
27603 else
27604 AST_POW_FOUND=no
27609 # now check for the header.
27610 if test "${AST_POW_FOUND}" = "yes"; then
27611 POW_LIB="${pbxlibdir} -lm "
27612 # if --with-POW=DIR has been specified, use it.
27613 if test "x${POW_DIR}" != "x"; then
27614 POW_INCLUDE="-I${POW_DIR}/include"
27616 POW_INCLUDE="${POW_INCLUDE} "
27617 if test "x" = "x" ; then # no header, assume found
27618 POW_HEADER_FOUND="1"
27619 else # check for the header
27620 saved_cppflags="${CPPFLAGS}"
27621 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE} "
27622 if test "${ac_cv_header_+set}" = set; then
27623 { echo "$as_me:$LINENO: checking for " >&5
27624 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27625 if test "${ac_cv_header_+set}" = set; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27629 echo "${ECHO_T}$ac_cv_header_" >&6; }
27630 else
27631 # Is the header compilable?
27632 { echo "$as_me:$LINENO: checking usability" >&5
27633 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27634 cat >conftest.$ac_ext <<_ACEOF
27635 /* confdefs.h. */
27636 _ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h. */
27640 $ac_includes_default
27641 #include <>
27642 _ACEOF
27643 rm -f conftest.$ac_objext
27644 if { (ac_try="$ac_compile"
27645 case "(($ac_try" in
27646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27647 *) ac_try_echo=$ac_try;;
27648 esac
27649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27650 (eval "$ac_compile") 2>conftest.er1
27651 ac_status=$?
27652 grep -v '^ *+' conftest.er1 >conftest.err
27653 rm -f conftest.er1
27654 cat conftest.err >&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } && {
27657 test -z "$ac_c_werror_flag" ||
27658 test ! -s conftest.err
27659 } && test -s conftest.$ac_objext; then
27660 ac_header_compiler=yes
27661 else
27662 echo "$as_me: failed program was:" >&5
27663 sed 's/^/| /' conftest.$ac_ext >&5
27665 ac_header_compiler=no
27668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27670 echo "${ECHO_T}$ac_header_compiler" >&6; }
27672 # Is the header present?
27673 { echo "$as_me:$LINENO: checking presence" >&5
27674 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27675 cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h. */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h. */
27681 #include <>
27682 _ACEOF
27683 if { (ac_try="$ac_cpp conftest.$ac_ext"
27684 case "(($ac_try" in
27685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686 *) ac_try_echo=$ac_try;;
27687 esac
27688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27690 ac_status=$?
27691 grep -v '^ *+' conftest.er1 >conftest.err
27692 rm -f conftest.er1
27693 cat conftest.err >&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); } >/dev/null && {
27696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27697 test ! -s conftest.err
27698 }; then
27699 ac_header_preproc=yes
27700 else
27701 echo "$as_me: failed program was:" >&5
27702 sed 's/^/| /' conftest.$ac_ext >&5
27704 ac_header_preproc=no
27707 rm -f conftest.err conftest.$ac_ext
27708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27709 echo "${ECHO_T}$ac_header_preproc" >&6; }
27711 # So? What about this header?
27712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27713 yes:no: )
27714 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27715 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27716 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27717 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27718 ac_header_preproc=yes
27720 no:yes:* )
27721 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27722 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27723 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27724 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27725 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27726 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27727 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27728 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27729 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27730 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27731 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27732 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27733 ( cat <<\_ASBOX
27734 ## ------------------------------- ##
27735 ## Report this to www.asterisk.org ##
27736 ## ------------------------------- ##
27737 _ASBOX
27738 ) | sed "s/^/$as_me: WARNING: /" >&2
27740 esac
27741 { echo "$as_me:$LINENO: checking for " >&5
27742 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27743 if test "${ac_cv_header_+set}" = set; then
27744 echo $ECHO_N "(cached) $ECHO_C" >&6
27745 else
27746 ac_cv_header_=$ac_header_preproc
27748 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27749 echo "${ECHO_T}$ac_cv_header_" >&6; }
27752 if test $ac_cv_header_ = yes; then
27753 POW_HEADER_FOUND=1
27754 else
27755 POW_HEADER_FOUND=0
27759 CPPFLAGS="${saved_cppflags}"
27761 if test "x${POW_HEADER_FOUND}" = "x0" ; then
27762 POW_LIB=""
27763 POW_INCLUDE=""
27764 else
27765 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27766 POW_LIB=""
27768 PBX_POW=1
27769 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27771 cat >>confdefs.h <<_ACEOF
27772 #define HAVE_POW 1
27773 _ACEOF
27776 cat >>confdefs.h <<_ACEOF
27777 #define HAVE_POW_VERSION
27778 _ACEOF
27785 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
27786 pbxlibdir=""
27787 # if --with-SQRT=DIR has been specified, use it.
27788 if test "x${SQRT_DIR}" != "x"; then
27789 if test -d ${SQRT_DIR}/lib; then
27790 pbxlibdir="-L${SQRT_DIR}/lib"
27791 else
27792 pbxlibdir="-L${SQRT_DIR}"
27795 pbxfuncname="sqrt"
27796 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27797 AST_SQRT_FOUND=yes
27798 else
27799 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27800 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27801 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27802 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27804 else
27805 ac_check_lib_save_LIBS=$LIBS
27806 LIBS="-lm ${pbxlibdir} $LIBS"
27807 cat >conftest.$ac_ext <<_ACEOF
27808 /* confdefs.h. */
27809 _ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h. */
27814 /* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27817 #ifdef __cplusplus
27818 extern "C"
27819 #endif
27820 char ${pbxfuncname} ();
27822 main ()
27824 return ${pbxfuncname} ();
27826 return 0;
27828 _ACEOF
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (ac_try="$ac_link"
27831 case "(($ac_try" in
27832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833 *) ac_try_echo=$ac_try;;
27834 esac
27835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836 (eval "$ac_link") 2>conftest.er1
27837 ac_status=$?
27838 grep -v '^ *+' conftest.er1 >conftest.err
27839 rm -f conftest.er1
27840 cat conftest.err >&5
27841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842 (exit $ac_status); } && {
27843 test -z "$ac_c_werror_flag" ||
27844 test ! -s conftest.err
27845 } && test -s conftest$ac_exeext &&
27846 $as_test_x conftest$ac_exeext; then
27847 eval "$as_ac_Lib=yes"
27848 else
27849 echo "$as_me: failed program was:" >&5
27850 sed 's/^/| /' conftest.$ac_ext >&5
27852 eval "$as_ac_Lib=no"
27855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27856 conftest$ac_exeext conftest.$ac_ext
27857 LIBS=$ac_check_lib_save_LIBS
27859 ac_res=`eval echo '${'$as_ac_Lib'}'`
27860 { echo "$as_me:$LINENO: result: $ac_res" >&5
27861 echo "${ECHO_T}$ac_res" >&6; }
27862 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27863 AST_SQRT_FOUND=yes
27864 else
27865 AST_SQRT_FOUND=no
27870 # now check for the header.
27871 if test "${AST_SQRT_FOUND}" = "yes"; then
27872 SQRT_LIB="${pbxlibdir} -lm "
27873 # if --with-SQRT=DIR has been specified, use it.
27874 if test "x${SQRT_DIR}" != "x"; then
27875 SQRT_INCLUDE="-I${SQRT_DIR}/include"
27877 SQRT_INCLUDE="${SQRT_INCLUDE} "
27878 if test "x" = "x" ; then # no header, assume found
27879 SQRT_HEADER_FOUND="1"
27880 else # check for the header
27881 saved_cppflags="${CPPFLAGS}"
27882 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE} "
27883 if test "${ac_cv_header_+set}" = set; then
27884 { echo "$as_me:$LINENO: checking for " >&5
27885 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27886 if test "${ac_cv_header_+set}" = set; then
27887 echo $ECHO_N "(cached) $ECHO_C" >&6
27889 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27890 echo "${ECHO_T}$ac_cv_header_" >&6; }
27891 else
27892 # Is the header compilable?
27893 { echo "$as_me:$LINENO: checking usability" >&5
27894 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27895 cat >conftest.$ac_ext <<_ACEOF
27896 /* confdefs.h. */
27897 _ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h. */
27901 $ac_includes_default
27902 #include <>
27903 _ACEOF
27904 rm -f conftest.$ac_objext
27905 if { (ac_try="$ac_compile"
27906 case "(($ac_try" in
27907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27908 *) ac_try_echo=$ac_try;;
27909 esac
27910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27911 (eval "$ac_compile") 2>conftest.er1
27912 ac_status=$?
27913 grep -v '^ *+' conftest.er1 >conftest.err
27914 rm -f conftest.er1
27915 cat conftest.err >&5
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); } && {
27918 test -z "$ac_c_werror_flag" ||
27919 test ! -s conftest.err
27920 } && test -s conftest.$ac_objext; then
27921 ac_header_compiler=yes
27922 else
27923 echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27926 ac_header_compiler=no
27929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27931 echo "${ECHO_T}$ac_header_compiler" >&6; }
27933 # Is the header present?
27934 { echo "$as_me:$LINENO: checking presence" >&5
27935 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27936 cat >conftest.$ac_ext <<_ACEOF
27937 /* confdefs.h. */
27938 _ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h. */
27942 #include <>
27943 _ACEOF
27944 if { (ac_try="$ac_cpp conftest.$ac_ext"
27945 case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27948 esac
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27951 ac_status=$?
27952 grep -v '^ *+' conftest.er1 >conftest.err
27953 rm -f conftest.er1
27954 cat conftest.err >&5
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } >/dev/null && {
27957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27958 test ! -s conftest.err
27959 }; then
27960 ac_header_preproc=yes
27961 else
27962 echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27965 ac_header_preproc=no
27968 rm -f conftest.err conftest.$ac_ext
27969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27970 echo "${ECHO_T}$ac_header_preproc" >&6; }
27972 # So? What about this header?
27973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27974 yes:no: )
27975 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27976 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27977 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27978 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27979 ac_header_preproc=yes
27981 no:yes:* )
27982 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27983 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27984 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27985 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27986 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27987 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27988 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27989 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27990 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27991 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27992 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27993 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27994 ( cat <<\_ASBOX
27995 ## ------------------------------- ##
27996 ## Report this to www.asterisk.org ##
27997 ## ------------------------------- ##
27998 _ASBOX
27999 ) | sed "s/^/$as_me: WARNING: /" >&2
28001 esac
28002 { echo "$as_me:$LINENO: checking for " >&5
28003 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28004 if test "${ac_cv_header_+set}" = set; then
28005 echo $ECHO_N "(cached) $ECHO_C" >&6
28006 else
28007 ac_cv_header_=$ac_header_preproc
28009 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28010 echo "${ECHO_T}$ac_cv_header_" >&6; }
28013 if test $ac_cv_header_ = yes; then
28014 SQRT_HEADER_FOUND=1
28015 else
28016 SQRT_HEADER_FOUND=0
28020 CPPFLAGS="${saved_cppflags}"
28022 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28023 SQRT_LIB=""
28024 SQRT_INCLUDE=""
28025 else
28026 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28027 SQRT_LIB=""
28029 PBX_SQRT=1
28030 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28032 cat >>confdefs.h <<_ACEOF
28033 #define HAVE_SQRT 1
28034 _ACEOF
28037 cat >>confdefs.h <<_ACEOF
28038 #define HAVE_SQRT_VERSION
28039 _ACEOF
28046 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28047 pbxlibdir=""
28048 # if --with-RINT=DIR has been specified, use it.
28049 if test "x${RINT_DIR}" != "x"; then
28050 if test -d ${RINT_DIR}/lib; then
28051 pbxlibdir="-L${RINT_DIR}/lib"
28052 else
28053 pbxlibdir="-L${RINT_DIR}"
28056 pbxfuncname="rint"
28057 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28058 AST_RINT_FOUND=yes
28059 else
28060 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28061 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28062 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28063 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28064 echo $ECHO_N "(cached) $ECHO_C" >&6
28065 else
28066 ac_check_lib_save_LIBS=$LIBS
28067 LIBS="-lm ${pbxlibdir} $LIBS"
28068 cat >conftest.$ac_ext <<_ACEOF
28069 /* confdefs.h. */
28070 _ACEOF
28071 cat confdefs.h >>conftest.$ac_ext
28072 cat >>conftest.$ac_ext <<_ACEOF
28073 /* end confdefs.h. */
28075 /* Override any GCC internal prototype to avoid an error.
28076 Use char because int might match the return type of a GCC
28077 builtin and then its argument prototype would still apply. */
28078 #ifdef __cplusplus
28079 extern "C"
28080 #endif
28081 char ${pbxfuncname} ();
28083 main ()
28085 return ${pbxfuncname} ();
28087 return 0;
28089 _ACEOF
28090 rm -f conftest.$ac_objext conftest$ac_exeext
28091 if { (ac_try="$ac_link"
28092 case "(($ac_try" in
28093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094 *) ac_try_echo=$ac_try;;
28095 esac
28096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097 (eval "$ac_link") 2>conftest.er1
28098 ac_status=$?
28099 grep -v '^ *+' conftest.er1 >conftest.err
28100 rm -f conftest.er1
28101 cat conftest.err >&5
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); } && {
28104 test -z "$ac_c_werror_flag" ||
28105 test ! -s conftest.err
28106 } && test -s conftest$ac_exeext &&
28107 $as_test_x conftest$ac_exeext; then
28108 eval "$as_ac_Lib=yes"
28109 else
28110 echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28113 eval "$as_ac_Lib=no"
28116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28117 conftest$ac_exeext conftest.$ac_ext
28118 LIBS=$ac_check_lib_save_LIBS
28120 ac_res=`eval echo '${'$as_ac_Lib'}'`
28121 { echo "$as_me:$LINENO: result: $ac_res" >&5
28122 echo "${ECHO_T}$ac_res" >&6; }
28123 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28124 AST_RINT_FOUND=yes
28125 else
28126 AST_RINT_FOUND=no
28131 # now check for the header.
28132 if test "${AST_RINT_FOUND}" = "yes"; then
28133 RINT_LIB="${pbxlibdir} -lm "
28134 # if --with-RINT=DIR has been specified, use it.
28135 if test "x${RINT_DIR}" != "x"; then
28136 RINT_INCLUDE="-I${RINT_DIR}/include"
28138 RINT_INCLUDE="${RINT_INCLUDE} "
28139 if test "x" = "x" ; then # no header, assume found
28140 RINT_HEADER_FOUND="1"
28141 else # check for the header
28142 saved_cppflags="${CPPFLAGS}"
28143 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE} "
28144 if test "${ac_cv_header_+set}" = set; then
28145 { echo "$as_me:$LINENO: checking for " >&5
28146 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28147 if test "${ac_cv_header_+set}" = set; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28150 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28151 echo "${ECHO_T}$ac_cv_header_" >&6; }
28152 else
28153 # Is the header compilable?
28154 { echo "$as_me:$LINENO: checking usability" >&5
28155 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28156 cat >conftest.$ac_ext <<_ACEOF
28157 /* confdefs.h. */
28158 _ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h. */
28162 $ac_includes_default
28163 #include <>
28164 _ACEOF
28165 rm -f conftest.$ac_objext
28166 if { (ac_try="$ac_compile"
28167 case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28170 esac
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_compile") 2>conftest.er1
28173 ac_status=$?
28174 grep -v '^ *+' conftest.er1 >conftest.err
28175 rm -f conftest.er1
28176 cat conftest.err >&5
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); } && {
28179 test -z "$ac_c_werror_flag" ||
28180 test ! -s conftest.err
28181 } && test -s conftest.$ac_objext; then
28182 ac_header_compiler=yes
28183 else
28184 echo "$as_me: failed program was:" >&5
28185 sed 's/^/| /' conftest.$ac_ext >&5
28187 ac_header_compiler=no
28190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28192 echo "${ECHO_T}$ac_header_compiler" >&6; }
28194 # Is the header present?
28195 { echo "$as_me:$LINENO: checking presence" >&5
28196 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28197 cat >conftest.$ac_ext <<_ACEOF
28198 /* confdefs.h. */
28199 _ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28203 #include <>
28204 _ACEOF
28205 if { (ac_try="$ac_cpp conftest.$ac_ext"
28206 case "(($ac_try" in
28207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208 *) ac_try_echo=$ac_try;;
28209 esac
28210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28212 ac_status=$?
28213 grep -v '^ *+' conftest.er1 >conftest.err
28214 rm -f conftest.er1
28215 cat conftest.err >&5
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); } >/dev/null && {
28218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28219 test ! -s conftest.err
28220 }; then
28221 ac_header_preproc=yes
28222 else
28223 echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28226 ac_header_preproc=no
28229 rm -f conftest.err conftest.$ac_ext
28230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28231 echo "${ECHO_T}$ac_header_preproc" >&6; }
28233 # So? What about this header?
28234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28235 yes:no: )
28236 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28237 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28238 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28239 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28240 ac_header_preproc=yes
28242 no:yes:* )
28243 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28244 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28245 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28246 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28247 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28248 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28249 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28250 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28251 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28252 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28253 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28254 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28255 ( cat <<\_ASBOX
28256 ## ------------------------------- ##
28257 ## Report this to www.asterisk.org ##
28258 ## ------------------------------- ##
28259 _ASBOX
28260 ) | sed "s/^/$as_me: WARNING: /" >&2
28262 esac
28263 { echo "$as_me:$LINENO: checking for " >&5
28264 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28265 if test "${ac_cv_header_+set}" = set; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268 ac_cv_header_=$ac_header_preproc
28270 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28271 echo "${ECHO_T}$ac_cv_header_" >&6; }
28274 if test $ac_cv_header_ = yes; then
28275 RINT_HEADER_FOUND=1
28276 else
28277 RINT_HEADER_FOUND=0
28281 CPPFLAGS="${saved_cppflags}"
28283 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28284 RINT_LIB=""
28285 RINT_INCLUDE=""
28286 else
28287 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28288 RINT_LIB=""
28290 PBX_RINT=1
28291 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28293 cat >>confdefs.h <<_ACEOF
28294 #define HAVE_RINT 1
28295 _ACEOF
28298 cat >>confdefs.h <<_ACEOF
28299 #define HAVE_RINT_VERSION
28300 _ACEOF
28307 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28308 pbxlibdir=""
28309 # if --with-EXP=DIR has been specified, use it.
28310 if test "x${EXP_DIR}" != "x"; then
28311 if test -d ${EXP_DIR}/lib; then
28312 pbxlibdir="-L${EXP_DIR}/lib"
28313 else
28314 pbxlibdir="-L${EXP_DIR}"
28317 pbxfuncname="exp"
28318 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28319 AST_EXP_FOUND=yes
28320 else
28321 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28322 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28323 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28324 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28326 else
28327 ac_check_lib_save_LIBS=$LIBS
28328 LIBS="-lm ${pbxlibdir} $LIBS"
28329 cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h. */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28336 /* Override any GCC internal prototype to avoid an error.
28337 Use char because int might match the return type of a GCC
28338 builtin and then its argument prototype would still apply. */
28339 #ifdef __cplusplus
28340 extern "C"
28341 #endif
28342 char ${pbxfuncname} ();
28344 main ()
28346 return ${pbxfuncname} ();
28348 return 0;
28350 _ACEOF
28351 rm -f conftest.$ac_objext conftest$ac_exeext
28352 if { (ac_try="$ac_link"
28353 case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28356 esac
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_link") 2>conftest.er1
28359 ac_status=$?
28360 grep -v '^ *+' conftest.er1 >conftest.err
28361 rm -f conftest.er1
28362 cat conftest.err >&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } && {
28365 test -z "$ac_c_werror_flag" ||
28366 test ! -s conftest.err
28367 } && test -s conftest$ac_exeext &&
28368 $as_test_x conftest$ac_exeext; then
28369 eval "$as_ac_Lib=yes"
28370 else
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 eval "$as_ac_Lib=no"
28377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28378 conftest$ac_exeext conftest.$ac_ext
28379 LIBS=$ac_check_lib_save_LIBS
28381 ac_res=`eval echo '${'$as_ac_Lib'}'`
28382 { echo "$as_me:$LINENO: result: $ac_res" >&5
28383 echo "${ECHO_T}$ac_res" >&6; }
28384 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28385 AST_EXP_FOUND=yes
28386 else
28387 AST_EXP_FOUND=no
28392 # now check for the header.
28393 if test "${AST_EXP_FOUND}" = "yes"; then
28394 EXP_LIB="${pbxlibdir} -lm "
28395 # if --with-EXP=DIR has been specified, use it.
28396 if test "x${EXP_DIR}" != "x"; then
28397 EXP_INCLUDE="-I${EXP_DIR}/include"
28399 EXP_INCLUDE="${EXP_INCLUDE} "
28400 if test "x" = "x" ; then # no header, assume found
28401 EXP_HEADER_FOUND="1"
28402 else # check for the header
28403 saved_cppflags="${CPPFLAGS}"
28404 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE} "
28405 if test "${ac_cv_header_+set}" = set; then
28406 { echo "$as_me:$LINENO: checking for " >&5
28407 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28408 if test "${ac_cv_header_+set}" = set; then
28409 echo $ECHO_N "(cached) $ECHO_C" >&6
28411 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28412 echo "${ECHO_T}$ac_cv_header_" >&6; }
28413 else
28414 # Is the header compilable?
28415 { echo "$as_me:$LINENO: checking usability" >&5
28416 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28417 cat >conftest.$ac_ext <<_ACEOF
28418 /* confdefs.h. */
28419 _ACEOF
28420 cat confdefs.h >>conftest.$ac_ext
28421 cat >>conftest.$ac_ext <<_ACEOF
28422 /* end confdefs.h. */
28423 $ac_includes_default
28424 #include <>
28425 _ACEOF
28426 rm -f conftest.$ac_objext
28427 if { (ac_try="$ac_compile"
28428 case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_compile") 2>conftest.er1
28434 ac_status=$?
28435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } && {
28440 test -z "$ac_c_werror_flag" ||
28441 test ! -s conftest.err
28442 } && test -s conftest.$ac_objext; then
28443 ac_header_compiler=yes
28444 else
28445 echo "$as_me: failed program was:" >&5
28446 sed 's/^/| /' conftest.$ac_ext >&5
28448 ac_header_compiler=no
28451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28453 echo "${ECHO_T}$ac_header_compiler" >&6; }
28455 # Is the header present?
28456 { echo "$as_me:$LINENO: checking presence" >&5
28457 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28458 cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h. */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h. */
28464 #include <>
28465 _ACEOF
28466 if { (ac_try="$ac_cpp conftest.$ac_ext"
28467 case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28473 ac_status=$?
28474 grep -v '^ *+' conftest.er1 >conftest.err
28475 rm -f conftest.er1
28476 cat conftest.err >&5
28477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478 (exit $ac_status); } >/dev/null && {
28479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28480 test ! -s conftest.err
28481 }; then
28482 ac_header_preproc=yes
28483 else
28484 echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.$ac_ext >&5
28487 ac_header_preproc=no
28490 rm -f conftest.err conftest.$ac_ext
28491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28492 echo "${ECHO_T}$ac_header_preproc" >&6; }
28494 # So? What about this header?
28495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28496 yes:no: )
28497 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28498 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28499 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28500 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28501 ac_header_preproc=yes
28503 no:yes:* )
28504 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28505 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28506 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28507 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28508 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28509 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28510 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28511 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28512 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28513 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28514 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28515 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28516 ( cat <<\_ASBOX
28517 ## ------------------------------- ##
28518 ## Report this to www.asterisk.org ##
28519 ## ------------------------------- ##
28520 _ASBOX
28521 ) | sed "s/^/$as_me: WARNING: /" >&2
28523 esac
28524 { echo "$as_me:$LINENO: checking for " >&5
28525 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28526 if test "${ac_cv_header_+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528 else
28529 ac_cv_header_=$ac_header_preproc
28531 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28532 echo "${ECHO_T}$ac_cv_header_" >&6; }
28535 if test $ac_cv_header_ = yes; then
28536 EXP_HEADER_FOUND=1
28537 else
28538 EXP_HEADER_FOUND=0
28542 CPPFLAGS="${saved_cppflags}"
28544 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
28545 EXP_LIB=""
28546 EXP_INCLUDE=""
28547 else
28548 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28549 EXP_LIB=""
28551 PBX_EXP=1
28552 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28554 cat >>confdefs.h <<_ACEOF
28555 #define HAVE_EXP 1
28556 _ACEOF
28559 cat >>confdefs.h <<_ACEOF
28560 #define HAVE_EXP_VERSION
28561 _ACEOF
28568 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
28569 pbxlibdir=""
28570 # if --with-LOG=DIR has been specified, use it.
28571 if test "x${LOG_DIR}" != "x"; then
28572 if test -d ${LOG_DIR}/lib; then
28573 pbxlibdir="-L${LOG_DIR}/lib"
28574 else
28575 pbxlibdir="-L${LOG_DIR}"
28578 pbxfuncname="log"
28579 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28580 AST_LOG_FOUND=yes
28581 else
28582 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28583 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28584 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28585 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28586 echo $ECHO_N "(cached) $ECHO_C" >&6
28587 else
28588 ac_check_lib_save_LIBS=$LIBS
28589 LIBS="-lm ${pbxlibdir} $LIBS"
28590 cat >conftest.$ac_ext <<_ACEOF
28591 /* confdefs.h. */
28592 _ACEOF
28593 cat confdefs.h >>conftest.$ac_ext
28594 cat >>conftest.$ac_ext <<_ACEOF
28595 /* end confdefs.h. */
28597 /* Override any GCC internal prototype to avoid an error.
28598 Use char because int might match the return type of a GCC
28599 builtin and then its argument prototype would still apply. */
28600 #ifdef __cplusplus
28601 extern "C"
28602 #endif
28603 char ${pbxfuncname} ();
28605 main ()
28607 return ${pbxfuncname} ();
28609 return 0;
28611 _ACEOF
28612 rm -f conftest.$ac_objext conftest$ac_exeext
28613 if { (ac_try="$ac_link"
28614 case "(($ac_try" in
28615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616 *) ac_try_echo=$ac_try;;
28617 esac
28618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619 (eval "$ac_link") 2>conftest.er1
28620 ac_status=$?
28621 grep -v '^ *+' conftest.er1 >conftest.err
28622 rm -f conftest.er1
28623 cat conftest.err >&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); } && {
28626 test -z "$ac_c_werror_flag" ||
28627 test ! -s conftest.err
28628 } && test -s conftest$ac_exeext &&
28629 $as_test_x conftest$ac_exeext; then
28630 eval "$as_ac_Lib=yes"
28631 else
28632 echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28635 eval "$as_ac_Lib=no"
28638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28639 conftest$ac_exeext conftest.$ac_ext
28640 LIBS=$ac_check_lib_save_LIBS
28642 ac_res=`eval echo '${'$as_ac_Lib'}'`
28643 { echo "$as_me:$LINENO: result: $ac_res" >&5
28644 echo "${ECHO_T}$ac_res" >&6; }
28645 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28646 AST_LOG_FOUND=yes
28647 else
28648 AST_LOG_FOUND=no
28653 # now check for the header.
28654 if test "${AST_LOG_FOUND}" = "yes"; then
28655 LOG_LIB="${pbxlibdir} -lm "
28656 # if --with-LOG=DIR has been specified, use it.
28657 if test "x${LOG_DIR}" != "x"; then
28658 LOG_INCLUDE="-I${LOG_DIR}/include"
28660 LOG_INCLUDE="${LOG_INCLUDE} "
28661 if test "x" = "x" ; then # no header, assume found
28662 LOG_HEADER_FOUND="1"
28663 else # check for the header
28664 saved_cppflags="${CPPFLAGS}"
28665 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE} "
28666 if test "${ac_cv_header_+set}" = set; then
28667 { echo "$as_me:$LINENO: checking for " >&5
28668 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28669 if test "${ac_cv_header_+set}" = set; then
28670 echo $ECHO_N "(cached) $ECHO_C" >&6
28672 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28673 echo "${ECHO_T}$ac_cv_header_" >&6; }
28674 else
28675 # Is the header compilable?
28676 { echo "$as_me:$LINENO: checking usability" >&5
28677 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28678 cat >conftest.$ac_ext <<_ACEOF
28679 /* confdefs.h. */
28680 _ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h. */
28684 $ac_includes_default
28685 #include <>
28686 _ACEOF
28687 rm -f conftest.$ac_objext
28688 if { (ac_try="$ac_compile"
28689 case "(($ac_try" in
28690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691 *) ac_try_echo=$ac_try;;
28692 esac
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694 (eval "$ac_compile") 2>conftest.er1
28695 ac_status=$?
28696 grep -v '^ *+' conftest.er1 >conftest.err
28697 rm -f conftest.er1
28698 cat conftest.err >&5
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); } && {
28701 test -z "$ac_c_werror_flag" ||
28702 test ! -s conftest.err
28703 } && test -s conftest.$ac_objext; then
28704 ac_header_compiler=yes
28705 else
28706 echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28709 ac_header_compiler=no
28712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28714 echo "${ECHO_T}$ac_header_compiler" >&6; }
28716 # Is the header present?
28717 { echo "$as_me:$LINENO: checking presence" >&5
28718 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28719 cat >conftest.$ac_ext <<_ACEOF
28720 /* confdefs.h. */
28721 _ACEOF
28722 cat confdefs.h >>conftest.$ac_ext
28723 cat >>conftest.$ac_ext <<_ACEOF
28724 /* end confdefs.h. */
28725 #include <>
28726 _ACEOF
28727 if { (ac_try="$ac_cpp conftest.$ac_ext"
28728 case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731 esac
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28734 ac_status=$?
28735 grep -v '^ *+' conftest.er1 >conftest.err
28736 rm -f conftest.er1
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); } >/dev/null && {
28740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28741 test ! -s conftest.err
28742 }; then
28743 ac_header_preproc=yes
28744 else
28745 echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28748 ac_header_preproc=no
28751 rm -f conftest.err conftest.$ac_ext
28752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28753 echo "${ECHO_T}$ac_header_preproc" >&6; }
28755 # So? What about this header?
28756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28757 yes:no: )
28758 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28759 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28760 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28761 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28762 ac_header_preproc=yes
28764 no:yes:* )
28765 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28766 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28767 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28768 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28769 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28770 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28771 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28772 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28773 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28774 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28775 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28776 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28777 ( cat <<\_ASBOX
28778 ## ------------------------------- ##
28779 ## Report this to www.asterisk.org ##
28780 ## ------------------------------- ##
28781 _ASBOX
28782 ) | sed "s/^/$as_me: WARNING: /" >&2
28784 esac
28785 { echo "$as_me:$LINENO: checking for " >&5
28786 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28787 if test "${ac_cv_header_+set}" = set; then
28788 echo $ECHO_N "(cached) $ECHO_C" >&6
28789 else
28790 ac_cv_header_=$ac_header_preproc
28792 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28793 echo "${ECHO_T}$ac_cv_header_" >&6; }
28796 if test $ac_cv_header_ = yes; then
28797 LOG_HEADER_FOUND=1
28798 else
28799 LOG_HEADER_FOUND=0
28803 CPPFLAGS="${saved_cppflags}"
28805 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
28806 LOG_LIB=""
28807 LOG_INCLUDE=""
28808 else
28809 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28810 LOG_LIB=""
28812 PBX_LOG=1
28813 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28815 cat >>confdefs.h <<_ACEOF
28816 #define HAVE_LOG 1
28817 _ACEOF
28820 cat >>confdefs.h <<_ACEOF
28821 #define HAVE_LOG_VERSION
28822 _ACEOF
28829 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
28830 pbxlibdir=""
28831 # if --with-REMAINDER=DIR has been specified, use it.
28832 if test "x${REMAINDER_DIR}" != "x"; then
28833 if test -d ${REMAINDER_DIR}/lib; then
28834 pbxlibdir="-L${REMAINDER_DIR}/lib"
28835 else
28836 pbxlibdir="-L${REMAINDER_DIR}"
28839 pbxfuncname="remainder"
28840 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28841 AST_REMAINDER_FOUND=yes
28842 else
28843 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28844 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28845 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28846 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28848 else
28849 ac_check_lib_save_LIBS=$LIBS
28850 LIBS="-lm ${pbxlibdir} $LIBS"
28851 cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h. */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h. */
28858 /* Override any GCC internal prototype to avoid an error.
28859 Use char because int might match the return type of a GCC
28860 builtin and then its argument prototype would still apply. */
28861 #ifdef __cplusplus
28862 extern "C"
28863 #endif
28864 char ${pbxfuncname} ();
28866 main ()
28868 return ${pbxfuncname} ();
28870 return 0;
28872 _ACEOF
28873 rm -f conftest.$ac_objext conftest$ac_exeext
28874 if { (ac_try="$ac_link"
28875 case "(($ac_try" in
28876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877 *) ac_try_echo=$ac_try;;
28878 esac
28879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880 (eval "$ac_link") 2>conftest.er1
28881 ac_status=$?
28882 grep -v '^ *+' conftest.er1 >conftest.err
28883 rm -f conftest.er1
28884 cat conftest.err >&5
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); } && {
28887 test -z "$ac_c_werror_flag" ||
28888 test ! -s conftest.err
28889 } && test -s conftest$ac_exeext &&
28890 $as_test_x conftest$ac_exeext; then
28891 eval "$as_ac_Lib=yes"
28892 else
28893 echo "$as_me: failed program was:" >&5
28894 sed 's/^/| /' conftest.$ac_ext >&5
28896 eval "$as_ac_Lib=no"
28899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28900 conftest$ac_exeext conftest.$ac_ext
28901 LIBS=$ac_check_lib_save_LIBS
28903 ac_res=`eval echo '${'$as_ac_Lib'}'`
28904 { echo "$as_me:$LINENO: result: $ac_res" >&5
28905 echo "${ECHO_T}$ac_res" >&6; }
28906 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28907 AST_REMAINDER_FOUND=yes
28908 else
28909 AST_REMAINDER_FOUND=no
28914 # now check for the header.
28915 if test "${AST_REMAINDER_FOUND}" = "yes"; then
28916 REMAINDER_LIB="${pbxlibdir} -lm "
28917 # if --with-REMAINDER=DIR has been specified, use it.
28918 if test "x${REMAINDER_DIR}" != "x"; then
28919 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
28921 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
28922 if test "x" = "x" ; then # no header, assume found
28923 REMAINDER_HEADER_FOUND="1"
28924 else # check for the header
28925 saved_cppflags="${CPPFLAGS}"
28926 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE} "
28927 if test "${ac_cv_header_+set}" = set; then
28928 { echo "$as_me:$LINENO: checking for " >&5
28929 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28930 if test "${ac_cv_header_+set}" = set; then
28931 echo $ECHO_N "(cached) $ECHO_C" >&6
28933 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28934 echo "${ECHO_T}$ac_cv_header_" >&6; }
28935 else
28936 # Is the header compilable?
28937 { echo "$as_me:$LINENO: checking usability" >&5
28938 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28939 cat >conftest.$ac_ext <<_ACEOF
28940 /* confdefs.h. */
28941 _ACEOF
28942 cat confdefs.h >>conftest.$ac_ext
28943 cat >>conftest.$ac_ext <<_ACEOF
28944 /* end confdefs.h. */
28945 $ac_includes_default
28946 #include <>
28947 _ACEOF
28948 rm -f conftest.$ac_objext
28949 if { (ac_try="$ac_compile"
28950 case "(($ac_try" in
28951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952 *) ac_try_echo=$ac_try;;
28953 esac
28954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955 (eval "$ac_compile") 2>conftest.er1
28956 ac_status=$?
28957 grep -v '^ *+' conftest.er1 >conftest.err
28958 rm -f conftest.er1
28959 cat conftest.err >&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } && {
28962 test -z "$ac_c_werror_flag" ||
28963 test ! -s conftest.err
28964 } && test -s conftest.$ac_objext; then
28965 ac_header_compiler=yes
28966 else
28967 echo "$as_me: failed program was:" >&5
28968 sed 's/^/| /' conftest.$ac_ext >&5
28970 ac_header_compiler=no
28973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28975 echo "${ECHO_T}$ac_header_compiler" >&6; }
28977 # Is the header present?
28978 { echo "$as_me:$LINENO: checking presence" >&5
28979 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28980 cat >conftest.$ac_ext <<_ACEOF
28981 /* confdefs.h. */
28982 _ACEOF
28983 cat confdefs.h >>conftest.$ac_ext
28984 cat >>conftest.$ac_ext <<_ACEOF
28985 /* end confdefs.h. */
28986 #include <>
28987 _ACEOF
28988 if { (ac_try="$ac_cpp conftest.$ac_ext"
28989 case "(($ac_try" in
28990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991 *) ac_try_echo=$ac_try;;
28992 esac
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28995 ac_status=$?
28996 grep -v '^ *+' conftest.er1 >conftest.err
28997 rm -f conftest.er1
28998 cat conftest.err >&5
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); } >/dev/null && {
29001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29002 test ! -s conftest.err
29003 }; then
29004 ac_header_preproc=yes
29005 else
29006 echo "$as_me: failed program was:" >&5
29007 sed 's/^/| /' conftest.$ac_ext >&5
29009 ac_header_preproc=no
29012 rm -f conftest.err conftest.$ac_ext
29013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29014 echo "${ECHO_T}$ac_header_preproc" >&6; }
29016 # So? What about this header?
29017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29018 yes:no: )
29019 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29020 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29021 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29022 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29023 ac_header_preproc=yes
29025 no:yes:* )
29026 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29027 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29029 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29031 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29033 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29035 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29037 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29038 ( cat <<\_ASBOX
29039 ## ------------------------------- ##
29040 ## Report this to www.asterisk.org ##
29041 ## ------------------------------- ##
29042 _ASBOX
29043 ) | sed "s/^/$as_me: WARNING: /" >&2
29045 esac
29046 { echo "$as_me:$LINENO: checking for " >&5
29047 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29048 if test "${ac_cv_header_+set}" = set; then
29049 echo $ECHO_N "(cached) $ECHO_C" >&6
29050 else
29051 ac_cv_header_=$ac_header_preproc
29053 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29054 echo "${ECHO_T}$ac_cv_header_" >&6; }
29057 if test $ac_cv_header_ = yes; then
29058 REMAINDER_HEADER_FOUND=1
29059 else
29060 REMAINDER_HEADER_FOUND=0
29064 CPPFLAGS="${saved_cppflags}"
29066 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29067 REMAINDER_LIB=""
29068 REMAINDER_INCLUDE=""
29069 else
29070 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29071 REMAINDER_LIB=""
29073 PBX_REMAINDER=1
29074 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29076 cat >>confdefs.h <<_ACEOF
29077 #define HAVE_REMAINDER 1
29078 _ACEOF
29081 cat >>confdefs.h <<_ACEOF
29082 #define HAVE_REMAINDER_VERSION
29083 _ACEOF
29090 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29091 pbxlibdir=""
29092 # if --with-FMOD=DIR has been specified, use it.
29093 if test "x${FMOD_DIR}" != "x"; then
29094 if test -d ${FMOD_DIR}/lib; then
29095 pbxlibdir="-L${FMOD_DIR}/lib"
29096 else
29097 pbxlibdir="-L${FMOD_DIR}"
29100 pbxfuncname="fmod"
29101 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29102 AST_FMOD_FOUND=yes
29103 else
29104 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29105 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29106 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29107 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29109 else
29110 ac_check_lib_save_LIBS=$LIBS
29111 LIBS="-lm ${pbxlibdir} $LIBS"
29112 cat >conftest.$ac_ext <<_ACEOF
29113 /* confdefs.h. */
29114 _ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29119 /* Override any GCC internal prototype to avoid an error.
29120 Use char because int might match the return type of a GCC
29121 builtin and then its argument prototype would still apply. */
29122 #ifdef __cplusplus
29123 extern "C"
29124 #endif
29125 char ${pbxfuncname} ();
29127 main ()
29129 return ${pbxfuncname} ();
29131 return 0;
29133 _ACEOF
29134 rm -f conftest.$ac_objext conftest$ac_exeext
29135 if { (ac_try="$ac_link"
29136 case "(($ac_try" in
29137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29138 *) ac_try_echo=$ac_try;;
29139 esac
29140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29141 (eval "$ac_link") 2>conftest.er1
29142 ac_status=$?
29143 grep -v '^ *+' conftest.er1 >conftest.err
29144 rm -f conftest.er1
29145 cat conftest.err >&5
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); } && {
29148 test -z "$ac_c_werror_flag" ||
29149 test ! -s conftest.err
29150 } && test -s conftest$ac_exeext &&
29151 $as_test_x conftest$ac_exeext; then
29152 eval "$as_ac_Lib=yes"
29153 else
29154 echo "$as_me: failed program was:" >&5
29155 sed 's/^/| /' conftest.$ac_ext >&5
29157 eval "$as_ac_Lib=no"
29160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29161 conftest$ac_exeext conftest.$ac_ext
29162 LIBS=$ac_check_lib_save_LIBS
29164 ac_res=`eval echo '${'$as_ac_Lib'}'`
29165 { echo "$as_me:$LINENO: result: $ac_res" >&5
29166 echo "${ECHO_T}$ac_res" >&6; }
29167 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29168 AST_FMOD_FOUND=yes
29169 else
29170 AST_FMOD_FOUND=no
29175 # now check for the header.
29176 if test "${AST_FMOD_FOUND}" = "yes"; then
29177 FMOD_LIB="${pbxlibdir} -lm "
29178 # if --with-FMOD=DIR has been specified, use it.
29179 if test "x${FMOD_DIR}" != "x"; then
29180 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29182 FMOD_INCLUDE="${FMOD_INCLUDE} "
29183 if test "x" = "x" ; then # no header, assume found
29184 FMOD_HEADER_FOUND="1"
29185 else # check for the header
29186 saved_cppflags="${CPPFLAGS}"
29187 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE} "
29188 if test "${ac_cv_header_+set}" = set; then
29189 { echo "$as_me:$LINENO: checking for " >&5
29190 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29191 if test "${ac_cv_header_+set}" = set; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29194 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29195 echo "${ECHO_T}$ac_cv_header_" >&6; }
29196 else
29197 # Is the header compilable?
29198 { echo "$as_me:$LINENO: checking usability" >&5
29199 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29200 cat >conftest.$ac_ext <<_ACEOF
29201 /* confdefs.h. */
29202 _ACEOF
29203 cat confdefs.h >>conftest.$ac_ext
29204 cat >>conftest.$ac_ext <<_ACEOF
29205 /* end confdefs.h. */
29206 $ac_includes_default
29207 #include <>
29208 _ACEOF
29209 rm -f conftest.$ac_objext
29210 if { (ac_try="$ac_compile"
29211 case "(($ac_try" in
29212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29213 *) ac_try_echo=$ac_try;;
29214 esac
29215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29216 (eval "$ac_compile") 2>conftest.er1
29217 ac_status=$?
29218 grep -v '^ *+' conftest.er1 >conftest.err
29219 rm -f conftest.er1
29220 cat conftest.err >&5
29221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222 (exit $ac_status); } && {
29223 test -z "$ac_c_werror_flag" ||
29224 test ! -s conftest.err
29225 } && test -s conftest.$ac_objext; then
29226 ac_header_compiler=yes
29227 else
29228 echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29231 ac_header_compiler=no
29234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29236 echo "${ECHO_T}$ac_header_compiler" >&6; }
29238 # Is the header present?
29239 { echo "$as_me:$LINENO: checking presence" >&5
29240 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29241 cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h. */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h. */
29247 #include <>
29248 _ACEOF
29249 if { (ac_try="$ac_cpp conftest.$ac_ext"
29250 case "(($ac_try" in
29251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29252 *) ac_try_echo=$ac_try;;
29253 esac
29254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29256 ac_status=$?
29257 grep -v '^ *+' conftest.er1 >conftest.err
29258 rm -f conftest.er1
29259 cat conftest.err >&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } >/dev/null && {
29262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29263 test ! -s conftest.err
29264 }; then
29265 ac_header_preproc=yes
29266 else
29267 echo "$as_me: failed program was:" >&5
29268 sed 's/^/| /' conftest.$ac_ext >&5
29270 ac_header_preproc=no
29273 rm -f conftest.err conftest.$ac_ext
29274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29275 echo "${ECHO_T}$ac_header_preproc" >&6; }
29277 # So? What about this header?
29278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29279 yes:no: )
29280 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29281 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29282 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29283 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29284 ac_header_preproc=yes
29286 no:yes:* )
29287 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29288 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29289 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29290 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29291 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29292 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29293 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29294 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29295 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29296 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29297 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29298 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29299 ( cat <<\_ASBOX
29300 ## ------------------------------- ##
29301 ## Report this to www.asterisk.org ##
29302 ## ------------------------------- ##
29303 _ASBOX
29304 ) | sed "s/^/$as_me: WARNING: /" >&2
29306 esac
29307 { echo "$as_me:$LINENO: checking for " >&5
29308 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29309 if test "${ac_cv_header_+set}" = set; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29311 else
29312 ac_cv_header_=$ac_header_preproc
29314 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29315 echo "${ECHO_T}$ac_cv_header_" >&6; }
29318 if test $ac_cv_header_ = yes; then
29319 FMOD_HEADER_FOUND=1
29320 else
29321 FMOD_HEADER_FOUND=0
29325 CPPFLAGS="${saved_cppflags}"
29327 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29328 FMOD_LIB=""
29329 FMOD_INCLUDE=""
29330 else
29331 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29332 FMOD_LIB=""
29334 PBX_FMOD=1
29335 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29337 cat >>confdefs.h <<_ACEOF
29338 #define HAVE_FMOD 1
29339 _ACEOF
29342 cat >>confdefs.h <<_ACEOF
29343 #define HAVE_FMOD_VERSION
29344 _ACEOF
29351 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29352 pbxlibdir=""
29353 # if --with-ROUND=DIR has been specified, use it.
29354 if test "x${ROUND_DIR}" != "x"; then
29355 if test -d ${ROUND_DIR}/lib; then
29356 pbxlibdir="-L${ROUND_DIR}/lib"
29357 else
29358 pbxlibdir="-L${ROUND_DIR}"
29361 pbxfuncname="round"
29362 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29363 AST_ROUND_FOUND=yes
29364 else
29365 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29366 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29367 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29368 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371 ac_check_lib_save_LIBS=$LIBS
29372 LIBS="-lm ${pbxlibdir} $LIBS"
29373 cat >conftest.$ac_ext <<_ACEOF
29374 /* confdefs.h. */
29375 _ACEOF
29376 cat confdefs.h >>conftest.$ac_ext
29377 cat >>conftest.$ac_ext <<_ACEOF
29378 /* end confdefs.h. */
29380 /* Override any GCC internal prototype to avoid an error.
29381 Use char because int might match the return type of a GCC
29382 builtin and then its argument prototype would still apply. */
29383 #ifdef __cplusplus
29384 extern "C"
29385 #endif
29386 char ${pbxfuncname} ();
29388 main ()
29390 return ${pbxfuncname} ();
29392 return 0;
29394 _ACEOF
29395 rm -f conftest.$ac_objext conftest$ac_exeext
29396 if { (ac_try="$ac_link"
29397 case "(($ac_try" in
29398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399 *) ac_try_echo=$ac_try;;
29400 esac
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402 (eval "$ac_link") 2>conftest.er1
29403 ac_status=$?
29404 grep -v '^ *+' conftest.er1 >conftest.err
29405 rm -f conftest.er1
29406 cat conftest.err >&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); } && {
29409 test -z "$ac_c_werror_flag" ||
29410 test ! -s conftest.err
29411 } && test -s conftest$ac_exeext &&
29412 $as_test_x conftest$ac_exeext; then
29413 eval "$as_ac_Lib=yes"
29414 else
29415 echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29418 eval "$as_ac_Lib=no"
29421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29422 conftest$ac_exeext conftest.$ac_ext
29423 LIBS=$ac_check_lib_save_LIBS
29425 ac_res=`eval echo '${'$as_ac_Lib'}'`
29426 { echo "$as_me:$LINENO: result: $ac_res" >&5
29427 echo "${ECHO_T}$ac_res" >&6; }
29428 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29429 AST_ROUND_FOUND=yes
29430 else
29431 AST_ROUND_FOUND=no
29436 # now check for the header.
29437 if test "${AST_ROUND_FOUND}" = "yes"; then
29438 ROUND_LIB="${pbxlibdir} -lm "
29439 # if --with-ROUND=DIR has been specified, use it.
29440 if test "x${ROUND_DIR}" != "x"; then
29441 ROUND_INCLUDE="-I${ROUND_DIR}/include"
29443 ROUND_INCLUDE="${ROUND_INCLUDE} "
29444 if test "x" = "x" ; then # no header, assume found
29445 ROUND_HEADER_FOUND="1"
29446 else # check for the header
29447 saved_cppflags="${CPPFLAGS}"
29448 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE} "
29449 if test "${ac_cv_header_+set}" = set; then
29450 { echo "$as_me:$LINENO: checking for " >&5
29451 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29452 if test "${ac_cv_header_+set}" = set; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29455 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29456 echo "${ECHO_T}$ac_cv_header_" >&6; }
29457 else
29458 # Is the header compilable?
29459 { echo "$as_me:$LINENO: checking usability" >&5
29460 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29461 cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h. */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29467 $ac_includes_default
29468 #include <>
29469 _ACEOF
29470 rm -f conftest.$ac_objext
29471 if { (ac_try="$ac_compile"
29472 case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29475 esac
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_compile") 2>conftest.er1
29478 ac_status=$?
29479 grep -v '^ *+' conftest.er1 >conftest.err
29480 rm -f conftest.er1
29481 cat conftest.err >&5
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); } && {
29484 test -z "$ac_c_werror_flag" ||
29485 test ! -s conftest.err
29486 } && test -s conftest.$ac_objext; then
29487 ac_header_compiler=yes
29488 else
29489 echo "$as_me: failed program was:" >&5
29490 sed 's/^/| /' conftest.$ac_ext >&5
29492 ac_header_compiler=no
29495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29497 echo "${ECHO_T}$ac_header_compiler" >&6; }
29499 # Is the header present?
29500 { echo "$as_me:$LINENO: checking presence" >&5
29501 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29502 cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h. */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29508 #include <>
29509 _ACEOF
29510 if { (ac_try="$ac_cpp conftest.$ac_ext"
29511 case "(($ac_try" in
29512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29514 esac
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29517 ac_status=$?
29518 grep -v '^ *+' conftest.er1 >conftest.err
29519 rm -f conftest.er1
29520 cat conftest.err >&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); } >/dev/null && {
29523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29524 test ! -s conftest.err
29525 }; then
29526 ac_header_preproc=yes
29527 else
29528 echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29531 ac_header_preproc=no
29534 rm -f conftest.err conftest.$ac_ext
29535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29536 echo "${ECHO_T}$ac_header_preproc" >&6; }
29538 # So? What about this header?
29539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29540 yes:no: )
29541 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29542 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29543 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29544 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29545 ac_header_preproc=yes
29547 no:yes:* )
29548 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29549 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29550 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29551 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29552 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29553 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29555 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29556 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29557 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29558 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29559 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29560 ( cat <<\_ASBOX
29561 ## ------------------------------- ##
29562 ## Report this to www.asterisk.org ##
29563 ## ------------------------------- ##
29564 _ASBOX
29565 ) | sed "s/^/$as_me: WARNING: /" >&2
29567 esac
29568 { echo "$as_me:$LINENO: checking for " >&5
29569 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29570 if test "${ac_cv_header_+set}" = set; then
29571 echo $ECHO_N "(cached) $ECHO_C" >&6
29572 else
29573 ac_cv_header_=$ac_header_preproc
29575 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29576 echo "${ECHO_T}$ac_cv_header_" >&6; }
29579 if test $ac_cv_header_ = yes; then
29580 ROUND_HEADER_FOUND=1
29581 else
29582 ROUND_HEADER_FOUND=0
29586 CPPFLAGS="${saved_cppflags}"
29588 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
29589 ROUND_LIB=""
29590 ROUND_INCLUDE=""
29591 else
29592 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29593 ROUND_LIB=""
29595 PBX_ROUND=1
29596 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29598 cat >>confdefs.h <<_ACEOF
29599 #define HAVE_ROUND 1
29600 _ACEOF
29603 cat >>confdefs.h <<_ACEOF
29604 #define HAVE_ROUND_VERSION
29605 _ACEOF
29612 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
29613 pbxlibdir=""
29614 # if --with-TRUNC=DIR has been specified, use it.
29615 if test "x${TRUNC_DIR}" != "x"; then
29616 if test -d ${TRUNC_DIR}/lib; then
29617 pbxlibdir="-L${TRUNC_DIR}/lib"
29618 else
29619 pbxlibdir="-L${TRUNC_DIR}"
29622 pbxfuncname="trunc"
29623 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29624 AST_TRUNC_FOUND=yes
29625 else
29626 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29627 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29628 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29629 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29630 echo $ECHO_N "(cached) $ECHO_C" >&6
29631 else
29632 ac_check_lib_save_LIBS=$LIBS
29633 LIBS="-lm ${pbxlibdir} $LIBS"
29634 cat >conftest.$ac_ext <<_ACEOF
29635 /* confdefs.h. */
29636 _ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h. */
29641 /* Override any GCC internal prototype to avoid an error.
29642 Use char because int might match the return type of a GCC
29643 builtin and then its argument prototype would still apply. */
29644 #ifdef __cplusplus
29645 extern "C"
29646 #endif
29647 char ${pbxfuncname} ();
29649 main ()
29651 return ${pbxfuncname} ();
29653 return 0;
29655 _ACEOF
29656 rm -f conftest.$ac_objext conftest$ac_exeext
29657 if { (ac_try="$ac_link"
29658 case "(($ac_try" in
29659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660 *) ac_try_echo=$ac_try;;
29661 esac
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663 (eval "$ac_link") 2>conftest.er1
29664 ac_status=$?
29665 grep -v '^ *+' conftest.er1 >conftest.err
29666 rm -f conftest.er1
29667 cat conftest.err >&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); } && {
29670 test -z "$ac_c_werror_flag" ||
29671 test ! -s conftest.err
29672 } && test -s conftest$ac_exeext &&
29673 $as_test_x conftest$ac_exeext; then
29674 eval "$as_ac_Lib=yes"
29675 else
29676 echo "$as_me: failed program was:" >&5
29677 sed 's/^/| /' conftest.$ac_ext >&5
29679 eval "$as_ac_Lib=no"
29682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29683 conftest$ac_exeext conftest.$ac_ext
29684 LIBS=$ac_check_lib_save_LIBS
29686 ac_res=`eval echo '${'$as_ac_Lib'}'`
29687 { echo "$as_me:$LINENO: result: $ac_res" >&5
29688 echo "${ECHO_T}$ac_res" >&6; }
29689 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29690 AST_TRUNC_FOUND=yes
29691 else
29692 AST_TRUNC_FOUND=no
29697 # now check for the header.
29698 if test "${AST_TRUNC_FOUND}" = "yes"; then
29699 TRUNC_LIB="${pbxlibdir} -lm "
29700 # if --with-TRUNC=DIR has been specified, use it.
29701 if test "x${TRUNC_DIR}" != "x"; then
29702 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
29704 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
29705 if test "x" = "x" ; then # no header, assume found
29706 TRUNC_HEADER_FOUND="1"
29707 else # check for the header
29708 saved_cppflags="${CPPFLAGS}"
29709 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE} "
29710 if test "${ac_cv_header_+set}" = set; then
29711 { echo "$as_me:$LINENO: checking for " >&5
29712 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29713 if test "${ac_cv_header_+set}" = set; then
29714 echo $ECHO_N "(cached) $ECHO_C" >&6
29716 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29717 echo "${ECHO_T}$ac_cv_header_" >&6; }
29718 else
29719 # Is the header compilable?
29720 { echo "$as_me:$LINENO: checking usability" >&5
29721 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29722 cat >conftest.$ac_ext <<_ACEOF
29723 /* confdefs.h. */
29724 _ACEOF
29725 cat confdefs.h >>conftest.$ac_ext
29726 cat >>conftest.$ac_ext <<_ACEOF
29727 /* end confdefs.h. */
29728 $ac_includes_default
29729 #include <>
29730 _ACEOF
29731 rm -f conftest.$ac_objext
29732 if { (ac_try="$ac_compile"
29733 case "(($ac_try" in
29734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735 *) ac_try_echo=$ac_try;;
29736 esac
29737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738 (eval "$ac_compile") 2>conftest.er1
29739 ac_status=$?
29740 grep -v '^ *+' conftest.er1 >conftest.err
29741 rm -f conftest.er1
29742 cat conftest.err >&5
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } && {
29745 test -z "$ac_c_werror_flag" ||
29746 test ! -s conftest.err
29747 } && test -s conftest.$ac_objext; then
29748 ac_header_compiler=yes
29749 else
29750 echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29753 ac_header_compiler=no
29756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29758 echo "${ECHO_T}$ac_header_compiler" >&6; }
29760 # Is the header present?
29761 { echo "$as_me:$LINENO: checking presence" >&5
29762 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29763 cat >conftest.$ac_ext <<_ACEOF
29764 /* confdefs.h. */
29765 _ACEOF
29766 cat confdefs.h >>conftest.$ac_ext
29767 cat >>conftest.$ac_ext <<_ACEOF
29768 /* end confdefs.h. */
29769 #include <>
29770 _ACEOF
29771 if { (ac_try="$ac_cpp conftest.$ac_ext"
29772 case "(($ac_try" in
29773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29775 esac
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29778 ac_status=$?
29779 grep -v '^ *+' conftest.er1 >conftest.err
29780 rm -f conftest.er1
29781 cat conftest.err >&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } >/dev/null && {
29784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29785 test ! -s conftest.err
29786 }; then
29787 ac_header_preproc=yes
29788 else
29789 echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29792 ac_header_preproc=no
29795 rm -f conftest.err conftest.$ac_ext
29796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29797 echo "${ECHO_T}$ac_header_preproc" >&6; }
29799 # So? What about this header?
29800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29801 yes:no: )
29802 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29803 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29804 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29805 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29806 ac_header_preproc=yes
29808 no:yes:* )
29809 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29810 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29811 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29812 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29813 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29814 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29815 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29816 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29817 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29818 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29819 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29820 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29821 ( cat <<\_ASBOX
29822 ## ------------------------------- ##
29823 ## Report this to www.asterisk.org ##
29824 ## ------------------------------- ##
29825 _ASBOX
29826 ) | sed "s/^/$as_me: WARNING: /" >&2
29828 esac
29829 { echo "$as_me:$LINENO: checking for " >&5
29830 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29831 if test "${ac_cv_header_+set}" = set; then
29832 echo $ECHO_N "(cached) $ECHO_C" >&6
29833 else
29834 ac_cv_header_=$ac_header_preproc
29836 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29837 echo "${ECHO_T}$ac_cv_header_" >&6; }
29840 if test $ac_cv_header_ = yes; then
29841 TRUNC_HEADER_FOUND=1
29842 else
29843 TRUNC_HEADER_FOUND=0
29847 CPPFLAGS="${saved_cppflags}"
29849 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
29850 TRUNC_LIB=""
29851 TRUNC_INCLUDE=""
29852 else
29853 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29854 TRUNC_LIB=""
29856 PBX_TRUNC=1
29857 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29859 cat >>confdefs.h <<_ACEOF
29860 #define HAVE_TRUNC 1
29861 _ACEOF
29864 cat >>confdefs.h <<_ACEOF
29865 #define HAVE_TRUNC_VERSION
29866 _ACEOF
29873 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
29874 pbxlibdir=""
29875 # if --with-STRTOD=DIR has been specified, use it.
29876 if test "x${STRTOD_DIR}" != "x"; then
29877 if test -d ${STRTOD_DIR}/lib; then
29878 pbxlibdir="-L${STRTOD_DIR}/lib"
29879 else
29880 pbxlibdir="-L${STRTOD_DIR}"
29883 pbxfuncname="strtod"
29884 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29885 AST_STRTOD_FOUND=yes
29886 else
29887 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
29888 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
29889 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
29890 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29892 else
29893 ac_check_lib_save_LIBS=$LIBS
29894 LIBS="-lc ${pbxlibdir} $LIBS"
29895 cat >conftest.$ac_ext <<_ACEOF
29896 /* confdefs.h. */
29897 _ACEOF
29898 cat confdefs.h >>conftest.$ac_ext
29899 cat >>conftest.$ac_ext <<_ACEOF
29900 /* end confdefs.h. */
29902 /* Override any GCC internal prototype to avoid an error.
29903 Use char because int might match the return type of a GCC
29904 builtin and then its argument prototype would still apply. */
29905 #ifdef __cplusplus
29906 extern "C"
29907 #endif
29908 char ${pbxfuncname} ();
29910 main ()
29912 return ${pbxfuncname} ();
29914 return 0;
29916 _ACEOF
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (ac_try="$ac_link"
29919 case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29922 esac
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_link") 2>conftest.er1
29925 ac_status=$?
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } && {
29931 test -z "$ac_c_werror_flag" ||
29932 test ! -s conftest.err
29933 } && test -s conftest$ac_exeext &&
29934 $as_test_x conftest$ac_exeext; then
29935 eval "$as_ac_Lib=yes"
29936 else
29937 echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29940 eval "$as_ac_Lib=no"
29943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29944 conftest$ac_exeext conftest.$ac_ext
29945 LIBS=$ac_check_lib_save_LIBS
29947 ac_res=`eval echo '${'$as_ac_Lib'}'`
29948 { echo "$as_me:$LINENO: result: $ac_res" >&5
29949 echo "${ECHO_T}$ac_res" >&6; }
29950 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29951 AST_STRTOD_FOUND=yes
29952 else
29953 AST_STRTOD_FOUND=no
29958 # now check for the header.
29959 if test "${AST_STRTOD_FOUND}" = "yes"; then
29960 STRTOD_LIB="${pbxlibdir} -lc "
29961 # if --with-STRTOD=DIR has been specified, use it.
29962 if test "x${STRTOD_DIR}" != "x"; then
29963 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
29965 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
29966 if test "xstdlib.h" = "x" ; then # no header, assume found
29967 STRTOD_HEADER_FOUND="1"
29968 else # check for the header
29969 saved_cppflags="${CPPFLAGS}"
29970 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE} "
29971 if test "${ac_cv_header_stdlib_h+set}" = set; then
29972 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
29973 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
29974 if test "${ac_cv_header_stdlib_h+set}" = set; then
29975 echo $ECHO_N "(cached) $ECHO_C" >&6
29977 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
29978 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
29979 else
29980 # Is the header compilable?
29981 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
29982 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
29983 cat >conftest.$ac_ext <<_ACEOF
29984 /* confdefs.h. */
29985 _ACEOF
29986 cat confdefs.h >>conftest.$ac_ext
29987 cat >>conftest.$ac_ext <<_ACEOF
29988 /* end confdefs.h. */
29989 $ac_includes_default
29990 #include <stdlib.h>
29991 _ACEOF
29992 rm -f conftest.$ac_objext
29993 if { (ac_try="$ac_compile"
29994 case "(($ac_try" in
29995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29996 *) ac_try_echo=$ac_try;;
29997 esac
29998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29999 (eval "$ac_compile") 2>conftest.er1
30000 ac_status=$?
30001 grep -v '^ *+' conftest.er1 >conftest.err
30002 rm -f conftest.er1
30003 cat conftest.err >&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); } && {
30006 test -z "$ac_c_werror_flag" ||
30007 test ! -s conftest.err
30008 } && test -s conftest.$ac_objext; then
30009 ac_header_compiler=yes
30010 else
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 ac_header_compiler=no
30017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30019 echo "${ECHO_T}$ac_header_compiler" >&6; }
30021 # Is the header present?
30022 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30023 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30024 cat >conftest.$ac_ext <<_ACEOF
30025 /* confdefs.h. */
30026 _ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h. */
30030 #include <stdlib.h>
30031 _ACEOF
30032 if { (ac_try="$ac_cpp conftest.$ac_ext"
30033 case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30036 esac
30037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30039 ac_status=$?
30040 grep -v '^ *+' conftest.er1 >conftest.err
30041 rm -f conftest.er1
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } >/dev/null && {
30045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30046 test ! -s conftest.err
30047 }; then
30048 ac_header_preproc=yes
30049 else
30050 echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30053 ac_header_preproc=no
30056 rm -f conftest.err conftest.$ac_ext
30057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30058 echo "${ECHO_T}$ac_header_preproc" >&6; }
30060 # So? What about this header?
30061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30062 yes:no: )
30063 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30064 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30065 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30066 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30067 ac_header_preproc=yes
30069 no:yes:* )
30070 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30071 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30072 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30073 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30074 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30075 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30076 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30077 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30078 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30079 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30080 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30081 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30082 ( cat <<\_ASBOX
30083 ## ------------------------------- ##
30084 ## Report this to www.asterisk.org ##
30085 ## ------------------------------- ##
30086 _ASBOX
30087 ) | sed "s/^/$as_me: WARNING: /" >&2
30089 esac
30090 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30091 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30092 if test "${ac_cv_header_stdlib_h+set}" = set; then
30093 echo $ECHO_N "(cached) $ECHO_C" >&6
30094 else
30095 ac_cv_header_stdlib_h=$ac_header_preproc
30097 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30098 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30101 if test $ac_cv_header_stdlib_h = yes; then
30102 STRTOD_HEADER_FOUND=1
30103 else
30104 STRTOD_HEADER_FOUND=0
30108 CPPFLAGS="${saved_cppflags}"
30110 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30111 STRTOD_LIB=""
30112 STRTOD_INCLUDE=""
30113 else
30114 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30115 STRTOD_LIB=""
30117 PBX_STRTOD=1
30118 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30120 cat >>confdefs.h <<_ACEOF
30121 #define HAVE_STRTOD 1
30122 _ACEOF
30125 cat >>confdefs.h <<_ACEOF
30126 #define HAVE_STRTOD_VERSION
30127 _ACEOF
30134 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30135 pbxlibdir=""
30136 # if --with-FLOOR=DIR has been specified, use it.
30137 if test "x${FLOOR_DIR}" != "x"; then
30138 if test -d ${FLOOR_DIR}/lib; then
30139 pbxlibdir="-L${FLOOR_DIR}/lib"
30140 else
30141 pbxlibdir="-L${FLOOR_DIR}"
30144 pbxfuncname="floor"
30145 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30146 AST_FLOOR_FOUND=yes
30147 else
30148 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30149 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30150 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30151 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30153 else
30154 ac_check_lib_save_LIBS=$LIBS
30155 LIBS="-lm ${pbxlibdir} $LIBS"
30156 cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h. */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30163 /* Override any GCC internal prototype to avoid an error.
30164 Use char because int might match the return type of a GCC
30165 builtin and then its argument prototype would still apply. */
30166 #ifdef __cplusplus
30167 extern "C"
30168 #endif
30169 char ${pbxfuncname} ();
30171 main ()
30173 return ${pbxfuncname} ();
30175 return 0;
30177 _ACEOF
30178 rm -f conftest.$ac_objext conftest$ac_exeext
30179 if { (ac_try="$ac_link"
30180 case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30183 esac
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_link") 2>conftest.er1
30186 ac_status=$?
30187 grep -v '^ *+' conftest.er1 >conftest.err
30188 rm -f conftest.er1
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); } && {
30192 test -z "$ac_c_werror_flag" ||
30193 test ! -s conftest.err
30194 } && test -s conftest$ac_exeext &&
30195 $as_test_x conftest$ac_exeext; then
30196 eval "$as_ac_Lib=yes"
30197 else
30198 echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30201 eval "$as_ac_Lib=no"
30204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30205 conftest$ac_exeext conftest.$ac_ext
30206 LIBS=$ac_check_lib_save_LIBS
30208 ac_res=`eval echo '${'$as_ac_Lib'}'`
30209 { echo "$as_me:$LINENO: result: $ac_res" >&5
30210 echo "${ECHO_T}$ac_res" >&6; }
30211 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30212 AST_FLOOR_FOUND=yes
30213 else
30214 AST_FLOOR_FOUND=no
30219 # now check for the header.
30220 if test "${AST_FLOOR_FOUND}" = "yes"; then
30221 FLOOR_LIB="${pbxlibdir} -lm "
30222 # if --with-FLOOR=DIR has been specified, use it.
30223 if test "x${FLOOR_DIR}" != "x"; then
30224 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30226 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30227 if test "x" = "x" ; then # no header, assume found
30228 FLOOR_HEADER_FOUND="1"
30229 else # check for the header
30230 saved_cppflags="${CPPFLAGS}"
30231 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE} "
30232 if test "${ac_cv_header_+set}" = set; then
30233 { echo "$as_me:$LINENO: checking for " >&5
30234 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30235 if test "${ac_cv_header_+set}" = set; then
30236 echo $ECHO_N "(cached) $ECHO_C" >&6
30238 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30239 echo "${ECHO_T}$ac_cv_header_" >&6; }
30240 else
30241 # Is the header compilable?
30242 { echo "$as_me:$LINENO: checking usability" >&5
30243 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30244 cat >conftest.$ac_ext <<_ACEOF
30245 /* confdefs.h. */
30246 _ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h. */
30250 $ac_includes_default
30251 #include <>
30252 _ACEOF
30253 rm -f conftest.$ac_objext
30254 if { (ac_try="$ac_compile"
30255 case "(($ac_try" in
30256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30257 *) ac_try_echo=$ac_try;;
30258 esac
30259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30260 (eval "$ac_compile") 2>conftest.er1
30261 ac_status=$?
30262 grep -v '^ *+' conftest.er1 >conftest.err
30263 rm -f conftest.er1
30264 cat conftest.err >&5
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); } && {
30267 test -z "$ac_c_werror_flag" ||
30268 test ! -s conftest.err
30269 } && test -s conftest.$ac_objext; then
30270 ac_header_compiler=yes
30271 else
30272 echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30275 ac_header_compiler=no
30278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30280 echo "${ECHO_T}$ac_header_compiler" >&6; }
30282 # Is the header present?
30283 { echo "$as_me:$LINENO: checking presence" >&5
30284 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30285 cat >conftest.$ac_ext <<_ACEOF
30286 /* confdefs.h. */
30287 _ACEOF
30288 cat confdefs.h >>conftest.$ac_ext
30289 cat >>conftest.$ac_ext <<_ACEOF
30290 /* end confdefs.h. */
30291 #include <>
30292 _ACEOF
30293 if { (ac_try="$ac_cpp conftest.$ac_ext"
30294 case "(($ac_try" in
30295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30296 *) ac_try_echo=$ac_try;;
30297 esac
30298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30300 ac_status=$?
30301 grep -v '^ *+' conftest.er1 >conftest.err
30302 rm -f conftest.er1
30303 cat conftest.err >&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } >/dev/null && {
30306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30307 test ! -s conftest.err
30308 }; then
30309 ac_header_preproc=yes
30310 else
30311 echo "$as_me: failed program was:" >&5
30312 sed 's/^/| /' conftest.$ac_ext >&5
30314 ac_header_preproc=no
30317 rm -f conftest.err conftest.$ac_ext
30318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30319 echo "${ECHO_T}$ac_header_preproc" >&6; }
30321 # So? What about this header?
30322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30323 yes:no: )
30324 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30325 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30326 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30327 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30328 ac_header_preproc=yes
30330 no:yes:* )
30331 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30332 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30333 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30334 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30335 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30336 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30337 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30338 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30339 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30340 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30341 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30342 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30343 ( cat <<\_ASBOX
30344 ## ------------------------------- ##
30345 ## Report this to www.asterisk.org ##
30346 ## ------------------------------- ##
30347 _ASBOX
30348 ) | sed "s/^/$as_me: WARNING: /" >&2
30350 esac
30351 { echo "$as_me:$LINENO: checking for " >&5
30352 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30353 if test "${ac_cv_header_+set}" = set; then
30354 echo $ECHO_N "(cached) $ECHO_C" >&6
30355 else
30356 ac_cv_header_=$ac_header_preproc
30358 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30359 echo "${ECHO_T}$ac_cv_header_" >&6; }
30362 if test $ac_cv_header_ = yes; then
30363 FLOOR_HEADER_FOUND=1
30364 else
30365 FLOOR_HEADER_FOUND=0
30369 CPPFLAGS="${saved_cppflags}"
30371 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30372 FLOOR_LIB=""
30373 FLOOR_INCLUDE=""
30374 else
30375 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30376 FLOOR_LIB=""
30378 PBX_FLOOR=1
30379 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30381 cat >>confdefs.h <<_ACEOF
30382 #define HAVE_FLOOR 1
30383 _ACEOF
30386 cat >>confdefs.h <<_ACEOF
30387 #define HAVE_FLOOR_VERSION
30388 _ACEOF
30395 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30396 pbxlibdir=""
30397 # if --with-CEIL=DIR has been specified, use it.
30398 if test "x${CEIL_DIR}" != "x"; then
30399 if test -d ${CEIL_DIR}/lib; then
30400 pbxlibdir="-L${CEIL_DIR}/lib"
30401 else
30402 pbxlibdir="-L${CEIL_DIR}"
30405 pbxfuncname="ceil"
30406 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30407 AST_CEIL_FOUND=yes
30408 else
30409 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30410 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30411 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30412 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30414 else
30415 ac_check_lib_save_LIBS=$LIBS
30416 LIBS="-lm ${pbxlibdir} $LIBS"
30417 cat >conftest.$ac_ext <<_ACEOF
30418 /* confdefs.h. */
30419 _ACEOF
30420 cat confdefs.h >>conftest.$ac_ext
30421 cat >>conftest.$ac_ext <<_ACEOF
30422 /* end confdefs.h. */
30424 /* Override any GCC internal prototype to avoid an error.
30425 Use char because int might match the return type of a GCC
30426 builtin and then its argument prototype would still apply. */
30427 #ifdef __cplusplus
30428 extern "C"
30429 #endif
30430 char ${pbxfuncname} ();
30432 main ()
30434 return ${pbxfuncname} ();
30436 return 0;
30438 _ACEOF
30439 rm -f conftest.$ac_objext conftest$ac_exeext
30440 if { (ac_try="$ac_link"
30441 case "(($ac_try" in
30442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30443 *) ac_try_echo=$ac_try;;
30444 esac
30445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30446 (eval "$ac_link") 2>conftest.er1
30447 ac_status=$?
30448 grep -v '^ *+' conftest.er1 >conftest.err
30449 rm -f conftest.er1
30450 cat conftest.err >&5
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); } && {
30453 test -z "$ac_c_werror_flag" ||
30454 test ! -s conftest.err
30455 } && test -s conftest$ac_exeext &&
30456 $as_test_x conftest$ac_exeext; then
30457 eval "$as_ac_Lib=yes"
30458 else
30459 echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30462 eval "$as_ac_Lib=no"
30465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30466 conftest$ac_exeext conftest.$ac_ext
30467 LIBS=$ac_check_lib_save_LIBS
30469 ac_res=`eval echo '${'$as_ac_Lib'}'`
30470 { echo "$as_me:$LINENO: result: $ac_res" >&5
30471 echo "${ECHO_T}$ac_res" >&6; }
30472 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30473 AST_CEIL_FOUND=yes
30474 else
30475 AST_CEIL_FOUND=no
30480 # now check for the header.
30481 if test "${AST_CEIL_FOUND}" = "yes"; then
30482 CEIL_LIB="${pbxlibdir} -lm "
30483 # if --with-CEIL=DIR has been specified, use it.
30484 if test "x${CEIL_DIR}" != "x"; then
30485 CEIL_INCLUDE="-I${CEIL_DIR}/include"
30487 CEIL_INCLUDE="${CEIL_INCLUDE} "
30488 if test "x" = "x" ; then # no header, assume found
30489 CEIL_HEADER_FOUND="1"
30490 else # check for the header
30491 saved_cppflags="${CPPFLAGS}"
30492 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE} "
30493 if test "${ac_cv_header_+set}" = set; then
30494 { echo "$as_me:$LINENO: checking for " >&5
30495 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30496 if test "${ac_cv_header_+set}" = set; then
30497 echo $ECHO_N "(cached) $ECHO_C" >&6
30499 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30500 echo "${ECHO_T}$ac_cv_header_" >&6; }
30501 else
30502 # Is the header compilable?
30503 { echo "$as_me:$LINENO: checking usability" >&5
30504 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30505 cat >conftest.$ac_ext <<_ACEOF
30506 /* confdefs.h. */
30507 _ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h. */
30511 $ac_includes_default
30512 #include <>
30513 _ACEOF
30514 rm -f conftest.$ac_objext
30515 if { (ac_try="$ac_compile"
30516 case "(($ac_try" in
30517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518 *) ac_try_echo=$ac_try;;
30519 esac
30520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521 (eval "$ac_compile") 2>conftest.er1
30522 ac_status=$?
30523 grep -v '^ *+' conftest.er1 >conftest.err
30524 rm -f conftest.er1
30525 cat conftest.err >&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } && {
30528 test -z "$ac_c_werror_flag" ||
30529 test ! -s conftest.err
30530 } && test -s conftest.$ac_objext; then
30531 ac_header_compiler=yes
30532 else
30533 echo "$as_me: failed program was:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30536 ac_header_compiler=no
30539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30541 echo "${ECHO_T}$ac_header_compiler" >&6; }
30543 # Is the header present?
30544 { echo "$as_me:$LINENO: checking presence" >&5
30545 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30546 cat >conftest.$ac_ext <<_ACEOF
30547 /* confdefs.h. */
30548 _ACEOF
30549 cat confdefs.h >>conftest.$ac_ext
30550 cat >>conftest.$ac_ext <<_ACEOF
30551 /* end confdefs.h. */
30552 #include <>
30553 _ACEOF
30554 if { (ac_try="$ac_cpp conftest.$ac_ext"
30555 case "(($ac_try" in
30556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557 *) ac_try_echo=$ac_try;;
30558 esac
30559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30561 ac_status=$?
30562 grep -v '^ *+' conftest.er1 >conftest.err
30563 rm -f conftest.er1
30564 cat conftest.err >&5
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); } >/dev/null && {
30567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30568 test ! -s conftest.err
30569 }; then
30570 ac_header_preproc=yes
30571 else
30572 echo "$as_me: failed program was:" >&5
30573 sed 's/^/| /' conftest.$ac_ext >&5
30575 ac_header_preproc=no
30578 rm -f conftest.err conftest.$ac_ext
30579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30580 echo "${ECHO_T}$ac_header_preproc" >&6; }
30582 # So? What about this header?
30583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30584 yes:no: )
30585 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30586 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30587 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30588 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30589 ac_header_preproc=yes
30591 no:yes:* )
30592 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30593 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30594 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30595 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30596 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30597 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30598 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30599 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30600 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30601 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30602 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30603 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30604 ( cat <<\_ASBOX
30605 ## ------------------------------- ##
30606 ## Report this to www.asterisk.org ##
30607 ## ------------------------------- ##
30608 _ASBOX
30609 ) | sed "s/^/$as_me: WARNING: /" >&2
30611 esac
30612 { echo "$as_me:$LINENO: checking for " >&5
30613 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30614 if test "${ac_cv_header_+set}" = set; then
30615 echo $ECHO_N "(cached) $ECHO_C" >&6
30616 else
30617 ac_cv_header_=$ac_header_preproc
30619 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30620 echo "${ECHO_T}$ac_cv_header_" >&6; }
30623 if test $ac_cv_header_ = yes; then
30624 CEIL_HEADER_FOUND=1
30625 else
30626 CEIL_HEADER_FOUND=0
30630 CPPFLAGS="${saved_cppflags}"
30632 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
30633 CEIL_LIB=""
30634 CEIL_INCLUDE=""
30635 else
30636 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30637 CEIL_LIB=""
30639 PBX_CEIL=1
30640 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30642 cat >>confdefs.h <<_ACEOF
30643 #define HAVE_CEIL 1
30644 _ACEOF
30647 cat >>confdefs.h <<_ACEOF
30648 #define HAVE_CEIL_VERSION
30649 _ACEOF
30657 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
30658 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
30659 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
30660 saved_cppflags="${CPPFLAGS}"
30661 if test "x${GETIFADDRS_DIR}" != "x"; then
30662 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
30664 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
30666 cat >conftest.$ac_ext <<_ACEOF
30667 /* confdefs.h. */
30668 _ACEOF
30669 cat confdefs.h >>conftest.$ac_ext
30670 cat >>conftest.$ac_ext <<_ACEOF
30671 /* end confdefs.h. */
30672 #include <ifaddrs.h>
30674 main ()
30676 struct ifaddrs *p; getifaddrs(&p);
30679 return 0;
30681 _ACEOF
30682 rm -f conftest.$ac_objext
30683 if { (ac_try="$ac_compile"
30684 case "(($ac_try" in
30685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30686 *) ac_try_echo=$ac_try;;
30687 esac
30688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30689 (eval "$ac_compile") 2>conftest.er1
30690 ac_status=$?
30691 grep -v '^ *+' conftest.er1 >conftest.err
30692 rm -f conftest.er1
30693 cat conftest.err >&5
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); } && {
30696 test -z "$ac_c_werror_flag" ||
30697 test ! -s conftest.err
30698 } && test -s conftest.$ac_objext; then
30699 { echo "$as_me:$LINENO: result: yes" >&5
30700 echo "${ECHO_T}yes" >&6; }
30701 PBX_GETIFADDRS=1
30703 cat >>confdefs.h <<\_ACEOF
30704 #define HAVE_GETIFADDRS 1
30705 _ACEOF
30708 cat >>confdefs.h <<\_ACEOF
30709 #define HAVE_GETIFADDRS_VERSION
30710 _ACEOF
30713 else
30714 echo "$as_me: failed program was:" >&5
30715 sed 's/^/| /' conftest.$ac_ext >&5
30717 { echo "$as_me:$LINENO: result: no" >&5
30718 echo "${ECHO_T}no" >&6; }
30722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30723 CPPFLAGS="${saved_cppflags}"
30727 GSM_INTERNAL="yes"
30729 GSM_SYSTEM="yes"
30730 if test "${USE_GSM}" != "no"; then
30731 if test "${GSM_DIR}" = "internal"; then
30732 GSM_SYSTEM="no"
30733 elif test "${GSM_DIR}" != ""; then
30734 GSM_INTERNAL="no"
30736 if test "${GSM_SYSTEM}" = "yes"; then
30737 gsmlibdir=""
30738 if test "x${GSM_DIR}" != "x"; then
30739 if test -d ${GSM_DIR}/lib; then
30740 gsmlibdir="-L${GSM_DIR}/lib"
30741 else
30742 gsmlibdir="-L${GSM_DIR}"
30745 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
30746 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
30747 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
30748 echo $ECHO_N "(cached) $ECHO_C" >&6
30749 else
30750 ac_check_lib_save_LIBS=$LIBS
30751 LIBS="-lgsm ${gsmlibdir} $LIBS"
30752 cat >conftest.$ac_ext <<_ACEOF
30753 /* confdefs.h. */
30754 _ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h. */
30759 /* Override any GCC internal prototype to avoid an error.
30760 Use char because int might match the return type of a GCC
30761 builtin and then its argument prototype would still apply. */
30762 #ifdef __cplusplus
30763 extern "C"
30764 #endif
30765 char gsm_create ();
30767 main ()
30769 return gsm_create ();
30771 return 0;
30773 _ACEOF
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (ac_try="$ac_link"
30776 case "(($ac_try" in
30777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30779 esac
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_link") 2>conftest.er1
30782 ac_status=$?
30783 grep -v '^ *+' conftest.er1 >conftest.err
30784 rm -f conftest.er1
30785 cat conftest.err >&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } && {
30788 test -z "$ac_c_werror_flag" ||
30789 test ! -s conftest.err
30790 } && test -s conftest$ac_exeext &&
30791 $as_test_x conftest$ac_exeext; then
30792 ac_cv_lib_gsm_gsm_create=yes
30793 else
30794 echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30797 ac_cv_lib_gsm_gsm_create=no
30800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30801 conftest$ac_exeext conftest.$ac_ext
30802 LIBS=$ac_check_lib_save_LIBS
30804 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
30805 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
30806 if test $ac_cv_lib_gsm_gsm_create = yes; then
30808 cat >>confdefs.h <<_ACEOF
30809 #define HAVE_GSM 1
30810 _ACEOF
30814 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
30815 if test "x${GSM_DIR}" != "x" ; then
30816 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
30817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30818 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
30819 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
30820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30821 echo $ECHO_N "(cached) $ECHO_C" >&6
30823 ac_res=`eval echo '${'$as_ac_Header'}'`
30824 { echo "$as_me:$LINENO: result: $ac_res" >&5
30825 echo "${ECHO_T}$ac_res" >&6; }
30826 else
30827 # Is the header compilable?
30828 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
30829 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
30830 cat >conftest.$ac_ext <<_ACEOF
30831 /* confdefs.h. */
30832 _ACEOF
30833 cat confdefs.h >>conftest.$ac_ext
30834 cat >>conftest.$ac_ext <<_ACEOF
30835 /* end confdefs.h. */
30836 $ac_includes_default
30837 #include <${GSM_DIR}/include/gsm.h>
30838 _ACEOF
30839 rm -f conftest.$ac_objext
30840 if { (ac_try="$ac_compile"
30841 case "(($ac_try" in
30842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843 *) ac_try_echo=$ac_try;;
30844 esac
30845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30846 (eval "$ac_compile") 2>conftest.er1
30847 ac_status=$?
30848 grep -v '^ *+' conftest.er1 >conftest.err
30849 rm -f conftest.er1
30850 cat conftest.err >&5
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); } && {
30853 test -z "$ac_c_werror_flag" ||
30854 test ! -s conftest.err
30855 } && test -s conftest.$ac_objext; then
30856 ac_header_compiler=yes
30857 else
30858 echo "$as_me: failed program was:" >&5
30859 sed 's/^/| /' conftest.$ac_ext >&5
30861 ac_header_compiler=no
30864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30866 echo "${ECHO_T}$ac_header_compiler" >&6; }
30868 # Is the header present?
30869 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
30870 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
30871 cat >conftest.$ac_ext <<_ACEOF
30872 /* confdefs.h. */
30873 _ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h. */
30877 #include <${GSM_DIR}/include/gsm.h>
30878 _ACEOF
30879 if { (ac_try="$ac_cpp conftest.$ac_ext"
30880 case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30883 esac
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30886 ac_status=$?
30887 grep -v '^ *+' conftest.er1 >conftest.err
30888 rm -f conftest.er1
30889 cat conftest.err >&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); } >/dev/null && {
30892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30893 test ! -s conftest.err
30894 }; then
30895 ac_header_preproc=yes
30896 else
30897 echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30900 ac_header_preproc=no
30903 rm -f conftest.err conftest.$ac_ext
30904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30905 echo "${ECHO_T}$ac_header_preproc" >&6; }
30907 # So? What about this header?
30908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30909 yes:no: )
30910 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
30911 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30912 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
30913 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
30914 ac_header_preproc=yes
30916 no:yes:* )
30917 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
30918 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
30919 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
30920 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
30921 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
30922 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
30923 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
30924 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
30925 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
30926 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
30927 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
30928 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
30929 ( cat <<\_ASBOX
30930 ## ------------------------------- ##
30931 ## Report this to www.asterisk.org ##
30932 ## ------------------------------- ##
30933 _ASBOX
30934 ) | sed "s/^/$as_me: WARNING: /" >&2
30936 esac
30937 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
30938 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
30939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30941 else
30942 eval "$as_ac_Header=\$ac_header_preproc"
30944 ac_res=`eval echo '${'$as_ac_Header'}'`
30945 { echo "$as_me:$LINENO: result: $ac_res" >&5
30946 echo "${ECHO_T}$ac_res" >&6; }
30949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30950 GSM_HEADER_FOUND=1
30951 else
30952 GSM_HEADER_FOUND=0
30956 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
30957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30958 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
30959 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
30960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30961 echo $ECHO_N "(cached) $ECHO_C" >&6
30963 ac_res=`eval echo '${'$as_ac_Header'}'`
30964 { echo "$as_me:$LINENO: result: $ac_res" >&5
30965 echo "${ECHO_T}$ac_res" >&6; }
30966 else
30967 # Is the header compilable?
30968 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
30969 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
30970 cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h. */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30976 $ac_includes_default
30977 #include <${GSM_DIR}/include/gsm/gsm.h>
30978 _ACEOF
30979 rm -f conftest.$ac_objext
30980 if { (ac_try="$ac_compile"
30981 case "(($ac_try" in
30982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983 *) ac_try_echo=$ac_try;;
30984 esac
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986 (eval "$ac_compile") 2>conftest.er1
30987 ac_status=$?
30988 grep -v '^ *+' conftest.er1 >conftest.err
30989 rm -f conftest.er1
30990 cat conftest.err >&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); } && {
30993 test -z "$ac_c_werror_flag" ||
30994 test ! -s conftest.err
30995 } && test -s conftest.$ac_objext; then
30996 ac_header_compiler=yes
30997 else
30998 echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31001 ac_header_compiler=no
31004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31006 echo "${ECHO_T}$ac_header_compiler" >&6; }
31008 # Is the header present?
31009 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31010 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31011 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h. */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 #include <${GSM_DIR}/include/gsm/gsm.h>
31018 _ACEOF
31019 if { (ac_try="$ac_cpp conftest.$ac_ext"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31023 esac
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31026 ac_status=$?
31027 grep -v '^ *+' conftest.er1 >conftest.err
31028 rm -f conftest.er1
31029 cat conftest.err >&5
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } >/dev/null && {
31032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31033 test ! -s conftest.err
31034 }; then
31035 ac_header_preproc=yes
31036 else
31037 echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31040 ac_header_preproc=no
31043 rm -f conftest.err conftest.$ac_ext
31044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31045 echo "${ECHO_T}$ac_header_preproc" >&6; }
31047 # So? What about this header?
31048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31049 yes:no: )
31050 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31051 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31052 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31053 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31054 ac_header_preproc=yes
31056 no:yes:* )
31057 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31058 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31059 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31060 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31061 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31062 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31063 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31064 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31066 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31067 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31068 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31069 ( cat <<\_ASBOX
31070 ## ------------------------------- ##
31071 ## Report this to www.asterisk.org ##
31072 ## ------------------------------- ##
31073 _ASBOX
31074 ) | sed "s/^/$as_me: WARNING: /" >&2
31076 esac
31077 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31078 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31081 else
31082 eval "$as_ac_Header=\$ac_header_preproc"
31084 ac_res=`eval echo '${'$as_ac_Header'}'`
31085 { echo "$as_me:$LINENO: result: $ac_res" >&5
31086 echo "${ECHO_T}$ac_res" >&6; }
31089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31090 GSM_GSM_HEADER_FOUND=1
31091 else
31092 GSM_GSM_HEADER_FOUND=0
31096 else
31097 if test "${ac_cv_header_gsm_h+set}" = set; then
31098 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31099 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31100 if test "${ac_cv_header_gsm_h+set}" = set; then
31101 echo $ECHO_N "(cached) $ECHO_C" >&6
31103 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31104 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31105 else
31106 # Is the header compilable?
31107 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31108 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31109 cat >conftest.$ac_ext <<_ACEOF
31110 /* confdefs.h. */
31111 _ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h. */
31115 $ac_includes_default
31116 #include <gsm.h>
31117 _ACEOF
31118 rm -f conftest.$ac_objext
31119 if { (ac_try="$ac_compile"
31120 case "(($ac_try" in
31121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122 *) ac_try_echo=$ac_try;;
31123 esac
31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125 (eval "$ac_compile") 2>conftest.er1
31126 ac_status=$?
31127 grep -v '^ *+' conftest.er1 >conftest.err
31128 rm -f conftest.er1
31129 cat conftest.err >&5
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); } && {
31132 test -z "$ac_c_werror_flag" ||
31133 test ! -s conftest.err
31134 } && test -s conftest.$ac_objext; then
31135 ac_header_compiler=yes
31136 else
31137 echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31140 ac_header_compiler=no
31143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31145 echo "${ECHO_T}$ac_header_compiler" >&6; }
31147 # Is the header present?
31148 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31149 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31150 cat >conftest.$ac_ext <<_ACEOF
31151 /* confdefs.h. */
31152 _ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h. */
31156 #include <gsm.h>
31157 _ACEOF
31158 if { (ac_try="$ac_cpp conftest.$ac_ext"
31159 case "(($ac_try" in
31160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31161 *) ac_try_echo=$ac_try;;
31162 esac
31163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31165 ac_status=$?
31166 grep -v '^ *+' conftest.er1 >conftest.err
31167 rm -f conftest.er1
31168 cat conftest.err >&5
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); } >/dev/null && {
31171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31172 test ! -s conftest.err
31173 }; then
31174 ac_header_preproc=yes
31175 else
31176 echo "$as_me: failed program was:" >&5
31177 sed 's/^/| /' conftest.$ac_ext >&5
31179 ac_header_preproc=no
31182 rm -f conftest.err conftest.$ac_ext
31183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31184 echo "${ECHO_T}$ac_header_preproc" >&6; }
31186 # So? What about this header?
31187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31188 yes:no: )
31189 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31190 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31191 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31192 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31193 ac_header_preproc=yes
31195 no:yes:* )
31196 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31197 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31198 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31199 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31200 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31201 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31202 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31203 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31204 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31205 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31206 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31207 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31208 ( cat <<\_ASBOX
31209 ## ------------------------------- ##
31210 ## Report this to www.asterisk.org ##
31211 ## ------------------------------- ##
31212 _ASBOX
31213 ) | sed "s/^/$as_me: WARNING: /" >&2
31215 esac
31216 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31217 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31218 if test "${ac_cv_header_gsm_h+set}" = set; then
31219 echo $ECHO_N "(cached) $ECHO_C" >&6
31220 else
31221 ac_cv_header_gsm_h=$ac_header_preproc
31223 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31224 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31227 if test $ac_cv_header_gsm_h = yes; then
31228 GSM_HEADER_FOUND=1
31229 else
31230 GSM_HEADER_FOUND=0
31234 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31235 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31236 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31237 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31240 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31241 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31242 else
31243 # Is the header compilable?
31244 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31245 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31246 cat >conftest.$ac_ext <<_ACEOF
31247 /* confdefs.h. */
31248 _ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h. */
31252 $ac_includes_default
31253 #include <gsm/gsm.h>
31254 _ACEOF
31255 rm -f conftest.$ac_objext
31256 if { (ac_try="$ac_compile"
31257 case "(($ac_try" in
31258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31259 *) ac_try_echo=$ac_try;;
31260 esac
31261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31262 (eval "$ac_compile") 2>conftest.er1
31263 ac_status=$?
31264 grep -v '^ *+' conftest.er1 >conftest.err
31265 rm -f conftest.er1
31266 cat conftest.err >&5
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } && {
31269 test -z "$ac_c_werror_flag" ||
31270 test ! -s conftest.err
31271 } && test -s conftest.$ac_objext; then
31272 ac_header_compiler=yes
31273 else
31274 echo "$as_me: failed program was:" >&5
31275 sed 's/^/| /' conftest.$ac_ext >&5
31277 ac_header_compiler=no
31280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31282 echo "${ECHO_T}$ac_header_compiler" >&6; }
31284 # Is the header present?
31285 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31286 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31287 cat >conftest.$ac_ext <<_ACEOF
31288 /* confdefs.h. */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h. */
31293 #include <gsm/gsm.h>
31294 _ACEOF
31295 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
31308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31309 test ! -s conftest.err
31310 }; then
31311 ac_header_preproc=yes
31312 else
31313 echo "$as_me: failed program was:" >&5
31314 sed 's/^/| /' conftest.$ac_ext >&5
31316 ac_header_preproc=no
31319 rm -f conftest.err conftest.$ac_ext
31320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31321 echo "${ECHO_T}$ac_header_preproc" >&6; }
31323 # So? What about this header?
31324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31325 yes:no: )
31326 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31327 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31328 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31329 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31330 ac_header_preproc=yes
31332 no:yes:* )
31333 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31334 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31335 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31336 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31337 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31338 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31339 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31340 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31341 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31342 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31343 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31344 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31345 ( cat <<\_ASBOX
31346 ## ------------------------------- ##
31347 ## Report this to www.asterisk.org ##
31348 ## ------------------------------- ##
31349 _ASBOX
31350 ) | sed "s/^/$as_me: WARNING: /" >&2
31352 esac
31353 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31354 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31355 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31356 echo $ECHO_N "(cached) $ECHO_C" >&6
31357 else
31358 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31360 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31361 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31364 if test $ac_cv_header_gsm_gsm_h = yes; then
31365 GSM_GSM_HEADER_FOUND=1
31366 else
31367 GSM_GSM_HEADER_FOUND=0
31372 if test "${GSM_HEADER_FOUND}" = "0" ; then
31373 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31374 if test "x${GSM_MANDATORY}" = "xyes" ; then
31375 { echo "$as_me:$LINENO: ***" >&5
31376 echo "$as_me: ***" >&6;}
31377 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31378 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31379 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31380 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31381 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31382 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31383 exit 1
31387 GSM_OK=0
31388 if test "${GSM_HEADER_FOUND}" = "1" ; then
31390 cat >>confdefs.h <<_ACEOF
31391 #define HAVE_GSM_HEADER 1
31392 _ACEOF
31394 GSM_OK=1
31395 else
31396 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31398 cat >>confdefs.h <<_ACEOF
31399 #define HAVE_GSM_GSM_HEADER 1
31400 _ACEOF
31402 GSM_OK=1
31405 if test "${GSM_OK}" = "1" ; then
31406 GSM_LIB="-lgsm"
31407 if test "x${GSM_DIR}" != "x"; then
31408 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31409 GSM_INCLUDE="-I${GSM_DIR}/include"
31411 PBX_GSM=1
31412 GSM_INTERNAL="no"
31416 if test "${GSM_INTERNAL}" = "yes"; then
31417 PBX_GSM=1
31419 cat >>confdefs.h <<_ACEOF
31420 #define HAVE_GSM_HEADER 1
31421 _ACEOF
31426 if test "${host_os}" != "linux-gnu" ; then
31428 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31429 pbxlibdir=""
31430 # if --with-ICONV=DIR has been specified, use it.
31431 if test "x${ICONV_DIR}" != "x"; then
31432 if test -d ${ICONV_DIR}/lib; then
31433 pbxlibdir="-L${ICONV_DIR}/lib"
31434 else
31435 pbxlibdir="-L${ICONV_DIR}"
31438 pbxfuncname="iconv_open"
31439 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31440 AST_ICONV_FOUND=yes
31441 else
31442 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
31443 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
31444 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
31445 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31446 echo $ECHO_N "(cached) $ECHO_C" >&6
31447 else
31448 ac_check_lib_save_LIBS=$LIBS
31449 LIBS="-liconv ${pbxlibdir} $LIBS"
31450 cat >conftest.$ac_ext <<_ACEOF
31451 /* confdefs.h. */
31452 _ACEOF
31453 cat confdefs.h >>conftest.$ac_ext
31454 cat >>conftest.$ac_ext <<_ACEOF
31455 /* end confdefs.h. */
31457 /* Override any GCC internal prototype to avoid an error.
31458 Use char because int might match the return type of a GCC
31459 builtin and then its argument prototype would still apply. */
31460 #ifdef __cplusplus
31461 extern "C"
31462 #endif
31463 char ${pbxfuncname} ();
31465 main ()
31467 return ${pbxfuncname} ();
31469 return 0;
31471 _ACEOF
31472 rm -f conftest.$ac_objext conftest$ac_exeext
31473 if { (ac_try="$ac_link"
31474 case "(($ac_try" in
31475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31476 *) ac_try_echo=$ac_try;;
31477 esac
31478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31479 (eval "$ac_link") 2>conftest.er1
31480 ac_status=$?
31481 grep -v '^ *+' conftest.er1 >conftest.err
31482 rm -f conftest.er1
31483 cat conftest.err >&5
31484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485 (exit $ac_status); } && {
31486 test -z "$ac_c_werror_flag" ||
31487 test ! -s conftest.err
31488 } && test -s conftest$ac_exeext &&
31489 $as_test_x conftest$ac_exeext; then
31490 eval "$as_ac_Lib=yes"
31491 else
31492 echo "$as_me: failed program was:" >&5
31493 sed 's/^/| /' conftest.$ac_ext >&5
31495 eval "$as_ac_Lib=no"
31498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31499 conftest$ac_exeext conftest.$ac_ext
31500 LIBS=$ac_check_lib_save_LIBS
31502 ac_res=`eval echo '${'$as_ac_Lib'}'`
31503 { echo "$as_me:$LINENO: result: $ac_res" >&5
31504 echo "${ECHO_T}$ac_res" >&6; }
31505 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31506 AST_ICONV_FOUND=yes
31507 else
31508 AST_ICONV_FOUND=no
31513 # now check for the header.
31514 if test "${AST_ICONV_FOUND}" = "yes"; then
31515 ICONV_LIB="${pbxlibdir} -liconv "
31516 # if --with-ICONV=DIR has been specified, use it.
31517 if test "x${ICONV_DIR}" != "x"; then
31518 ICONV_INCLUDE="-I${ICONV_DIR}/include"
31520 ICONV_INCLUDE="${ICONV_INCLUDE} "
31521 if test "xiconv.h" = "x" ; then # no header, assume found
31522 ICONV_HEADER_FOUND="1"
31523 else # check for the header
31524 saved_cppflags="${CPPFLAGS}"
31525 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE} "
31526 if test "${ac_cv_header_iconv_h+set}" = set; then
31527 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31528 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31529 if test "${ac_cv_header_iconv_h+set}" = set; then
31530 echo $ECHO_N "(cached) $ECHO_C" >&6
31532 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31533 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31534 else
31535 # Is the header compilable?
31536 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
31537 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
31538 cat >conftest.$ac_ext <<_ACEOF
31539 /* confdefs.h. */
31540 _ACEOF
31541 cat confdefs.h >>conftest.$ac_ext
31542 cat >>conftest.$ac_ext <<_ACEOF
31543 /* end confdefs.h. */
31544 $ac_includes_default
31545 #include <iconv.h>
31546 _ACEOF
31547 rm -f conftest.$ac_objext
31548 if { (ac_try="$ac_compile"
31549 case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31552 esac
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_compile") 2>conftest.er1
31555 ac_status=$?
31556 grep -v '^ *+' conftest.er1 >conftest.err
31557 rm -f conftest.er1
31558 cat conftest.err >&5
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); } && {
31561 test -z "$ac_c_werror_flag" ||
31562 test ! -s conftest.err
31563 } && test -s conftest.$ac_objext; then
31564 ac_header_compiler=yes
31565 else
31566 echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31569 ac_header_compiler=no
31572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31574 echo "${ECHO_T}$ac_header_compiler" >&6; }
31576 # Is the header present?
31577 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
31578 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
31579 cat >conftest.$ac_ext <<_ACEOF
31580 /* confdefs.h. */
31581 _ACEOF
31582 cat confdefs.h >>conftest.$ac_ext
31583 cat >>conftest.$ac_ext <<_ACEOF
31584 /* end confdefs.h. */
31585 #include <iconv.h>
31586 _ACEOF
31587 if { (ac_try="$ac_cpp conftest.$ac_ext"
31588 case "(($ac_try" in
31589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590 *) ac_try_echo=$ac_try;;
31591 esac
31592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31594 ac_status=$?
31595 grep -v '^ *+' conftest.er1 >conftest.err
31596 rm -f conftest.er1
31597 cat conftest.err >&5
31598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599 (exit $ac_status); } >/dev/null && {
31600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31601 test ! -s conftest.err
31602 }; then
31603 ac_header_preproc=yes
31604 else
31605 echo "$as_me: failed program was:" >&5
31606 sed 's/^/| /' conftest.$ac_ext >&5
31608 ac_header_preproc=no
31611 rm -f conftest.err conftest.$ac_ext
31612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31613 echo "${ECHO_T}$ac_header_preproc" >&6; }
31615 # So? What about this header?
31616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31617 yes:no: )
31618 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
31619 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
31621 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
31622 ac_header_preproc=yes
31624 no:yes:* )
31625 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
31626 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
31627 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
31628 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
31629 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
31630 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
31631 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
31632 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
31633 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
31634 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
31635 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
31636 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
31637 ( cat <<\_ASBOX
31638 ## ------------------------------- ##
31639 ## Report this to www.asterisk.org ##
31640 ## ------------------------------- ##
31641 _ASBOX
31642 ) | sed "s/^/$as_me: WARNING: /" >&2
31644 esac
31645 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31646 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31647 if test "${ac_cv_header_iconv_h+set}" = set; then
31648 echo $ECHO_N "(cached) $ECHO_C" >&6
31649 else
31650 ac_cv_header_iconv_h=$ac_header_preproc
31652 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31653 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31656 if test $ac_cv_header_iconv_h = yes; then
31657 ICONV_HEADER_FOUND=1
31658 else
31659 ICONV_HEADER_FOUND=0
31663 CPPFLAGS="${saved_cppflags}"
31665 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
31666 ICONV_LIB=""
31667 ICONV_INCLUDE=""
31668 else
31669 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31670 ICONV_LIB=""
31672 PBX_ICONV=1
31673 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31675 cat >>confdefs.h <<_ACEOF
31676 #define HAVE_ICONV 1
31677 _ACEOF
31680 cat >>confdefs.h <<_ACEOF
31681 #define HAVE_ICONV_VERSION
31682 _ACEOF
31688 else
31689 PBX_ICONV=1
31693 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
31694 pbxlibdir=""
31695 # if --with-IKSEMEL=DIR has been specified, use it.
31696 if test "x${IKSEMEL_DIR}" != "x"; then
31697 if test -d ${IKSEMEL_DIR}/lib; then
31698 pbxlibdir="-L${IKSEMEL_DIR}/lib"
31699 else
31700 pbxlibdir="-L${IKSEMEL_DIR}"
31703 pbxfuncname="iks_start_sasl"
31704 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31705 AST_IKSEMEL_FOUND=yes
31706 else
31707 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
31708 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
31709 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
31710 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31711 echo $ECHO_N "(cached) $ECHO_C" >&6
31712 else
31713 ac_check_lib_save_LIBS=$LIBS
31714 LIBS="-liksemel ${pbxlibdir} $LIBS"
31715 cat >conftest.$ac_ext <<_ACEOF
31716 /* confdefs.h. */
31717 _ACEOF
31718 cat confdefs.h >>conftest.$ac_ext
31719 cat >>conftest.$ac_ext <<_ACEOF
31720 /* end confdefs.h. */
31722 /* Override any GCC internal prototype to avoid an error.
31723 Use char because int might match the return type of a GCC
31724 builtin and then its argument prototype would still apply. */
31725 #ifdef __cplusplus
31726 extern "C"
31727 #endif
31728 char ${pbxfuncname} ();
31730 main ()
31732 return ${pbxfuncname} ();
31734 return 0;
31736 _ACEOF
31737 rm -f conftest.$ac_objext conftest$ac_exeext
31738 if { (ac_try="$ac_link"
31739 case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31742 esac
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_link") 2>conftest.er1
31745 ac_status=$?
31746 grep -v '^ *+' conftest.er1 >conftest.err
31747 rm -f conftest.er1
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } && {
31751 test -z "$ac_c_werror_flag" ||
31752 test ! -s conftest.err
31753 } && test -s conftest$ac_exeext &&
31754 $as_test_x conftest$ac_exeext; then
31755 eval "$as_ac_Lib=yes"
31756 else
31757 echo "$as_me: failed program was:" >&5
31758 sed 's/^/| /' conftest.$ac_ext >&5
31760 eval "$as_ac_Lib=no"
31763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31764 conftest$ac_exeext conftest.$ac_ext
31765 LIBS=$ac_check_lib_save_LIBS
31767 ac_res=`eval echo '${'$as_ac_Lib'}'`
31768 { echo "$as_me:$LINENO: result: $ac_res" >&5
31769 echo "${ECHO_T}$ac_res" >&6; }
31770 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31771 AST_IKSEMEL_FOUND=yes
31772 else
31773 AST_IKSEMEL_FOUND=no
31778 # now check for the header.
31779 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
31780 IKSEMEL_LIB="${pbxlibdir} -liksemel "
31781 # if --with-IKSEMEL=DIR has been specified, use it.
31782 if test "x${IKSEMEL_DIR}" != "x"; then
31783 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
31785 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
31786 if test "xiksemel.h" = "x" ; then # no header, assume found
31787 IKSEMEL_HEADER_FOUND="1"
31788 else # check for the header
31789 saved_cppflags="${CPPFLAGS}"
31790 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE} "
31791 if test "${ac_cv_header_iksemel_h+set}" = set; then
31792 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
31793 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
31794 if test "${ac_cv_header_iksemel_h+set}" = set; then
31795 echo $ECHO_N "(cached) $ECHO_C" >&6
31797 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
31798 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
31799 else
31800 # Is the header compilable?
31801 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
31802 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
31803 cat >conftest.$ac_ext <<_ACEOF
31804 /* confdefs.h. */
31805 _ACEOF
31806 cat confdefs.h >>conftest.$ac_ext
31807 cat >>conftest.$ac_ext <<_ACEOF
31808 /* end confdefs.h. */
31809 $ac_includes_default
31810 #include <iksemel.h>
31811 _ACEOF
31812 rm -f conftest.$ac_objext
31813 if { (ac_try="$ac_compile"
31814 case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817 esac
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_compile") 2>conftest.er1
31820 ac_status=$?
31821 grep -v '^ *+' conftest.er1 >conftest.err
31822 rm -f conftest.er1
31823 cat conftest.err >&5
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); } && {
31826 test -z "$ac_c_werror_flag" ||
31827 test ! -s conftest.err
31828 } && test -s conftest.$ac_objext; then
31829 ac_header_compiler=yes
31830 else
31831 echo "$as_me: failed program was:" >&5
31832 sed 's/^/| /' conftest.$ac_ext >&5
31834 ac_header_compiler=no
31837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31839 echo "${ECHO_T}$ac_header_compiler" >&6; }
31841 # Is the header present?
31842 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
31843 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
31844 cat >conftest.$ac_ext <<_ACEOF
31845 /* confdefs.h. */
31846 _ACEOF
31847 cat confdefs.h >>conftest.$ac_ext
31848 cat >>conftest.$ac_ext <<_ACEOF
31849 /* end confdefs.h. */
31850 #include <iksemel.h>
31851 _ACEOF
31852 if { (ac_try="$ac_cpp conftest.$ac_ext"
31853 case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31856 esac
31857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31859 ac_status=$?
31860 grep -v '^ *+' conftest.er1 >conftest.err
31861 rm -f conftest.er1
31862 cat conftest.err >&5
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); } >/dev/null && {
31865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31866 test ! -s conftest.err
31867 }; then
31868 ac_header_preproc=yes
31869 else
31870 echo "$as_me: failed program was:" >&5
31871 sed 's/^/| /' conftest.$ac_ext >&5
31873 ac_header_preproc=no
31876 rm -f conftest.err conftest.$ac_ext
31877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31878 echo "${ECHO_T}$ac_header_preproc" >&6; }
31880 # So? What about this header?
31881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31882 yes:no: )
31883 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
31884 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31885 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
31886 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
31887 ac_header_preproc=yes
31889 no:yes:* )
31890 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
31891 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
31892 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
31893 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
31894 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
31895 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
31896 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
31897 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
31898 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
31899 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
31900 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
31901 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
31902 ( cat <<\_ASBOX
31903 ## ------------------------------- ##
31904 ## Report this to www.asterisk.org ##
31905 ## ------------------------------- ##
31906 _ASBOX
31907 ) | sed "s/^/$as_me: WARNING: /" >&2
31909 esac
31910 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
31911 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
31912 if test "${ac_cv_header_iksemel_h+set}" = set; then
31913 echo $ECHO_N "(cached) $ECHO_C" >&6
31914 else
31915 ac_cv_header_iksemel_h=$ac_header_preproc
31917 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
31918 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
31921 if test $ac_cv_header_iksemel_h = yes; then
31922 IKSEMEL_HEADER_FOUND=1
31923 else
31924 IKSEMEL_HEADER_FOUND=0
31928 CPPFLAGS="${saved_cppflags}"
31930 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
31931 IKSEMEL_LIB=""
31932 IKSEMEL_INCLUDE=""
31933 else
31934 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31935 IKSEMEL_LIB=""
31937 PBX_IKSEMEL=1
31938 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31940 cat >>confdefs.h <<_ACEOF
31941 #define HAVE_IKSEMEL 1
31942 _ACEOF
31945 cat >>confdefs.h <<_ACEOF
31946 #define HAVE_IKSEMEL_VERSION
31947 _ACEOF
31954 if test "${USE_IMAP_TK}" != "no"; then
31955 saved_cppflags="${CPPFLAGS}"
31956 saved_libs="${LIBS}"
31957 switch_to_system_on_failure="no"
31958 if test "${IMAP_TK_DIR}" = ""; then
31959 IMAP_TK_DIR=`pwd`"/../imap-2004g"
31960 switch_to_system_on_failure="yes"
31962 if test "${IMAP_TK_DIR}" != "system"; then
31963 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
31964 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
31965 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
31966 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
31968 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
31969 imap_include="-I${IMAP_TK_DIR}/c-client"
31970 CPPFLAGS="${CPPFLAGS} ${imap_include}"
31971 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
31972 cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h. */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h. */
31978 #include "c-client.h"
31979 void mm_searched (MAILSTREAM *stream,unsigned long number)
31982 void mm_exists (MAILSTREAM *stream,unsigned long number)
31985 void mm_expunged (MAILSTREAM *stream,unsigned long number)
31988 void mm_flags (MAILSTREAM *stream,unsigned long number)
31991 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
31994 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
31997 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32000 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32003 void mm_log (char *string,long errflg)
32006 void mm_dlog (char *string)
32009 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32012 void mm_critical (MAILSTREAM *stream)
32015 void mm_nocritical (MAILSTREAM *stream)
32018 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32021 void mm_fatal (char *string)
32025 main ()
32028 MAILSTREAM *foo = mail_open(NULL, "", 0);
32032 return 0;
32034 _ACEOF
32035 rm -f conftest.$ac_objext conftest$ac_exeext
32036 if { (ac_try="$ac_link"
32037 case "(($ac_try" in
32038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32039 *) ac_try_echo=$ac_try;;
32040 esac
32041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32042 (eval "$ac_link") 2>conftest.er1
32043 ac_status=$?
32044 grep -v '^ *+' conftest.er1 >conftest.err
32045 rm -f conftest.er1
32046 cat conftest.err >&5
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); } && {
32049 test -z "$ac_c_werror_flag" ||
32050 test ! -s conftest.err
32051 } && test -s conftest$ac_exeext &&
32052 $as_test_x conftest$ac_exeext; then
32053 ac_cv_imap_tk="yes"
32054 else
32055 echo "$as_me: failed program was:" >&5
32056 sed 's/^/| /' conftest.$ac_ext >&5
32058 ac_cv_imap_tk="no"
32062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32063 conftest$ac_exeext conftest.$ac_ext
32064 if test "${ac_cv_imap_tk}" = "yes"; then
32065 cat >conftest.$ac_ext <<_ACEOF
32066 /* confdefs.h. */
32067 _ACEOF
32068 cat confdefs.h >>conftest.$ac_ext
32069 cat >>conftest.$ac_ext <<_ACEOF
32070 /* end confdefs.h. */
32071 #include "c-client.h"
32072 void mm_searched (MAILSTREAM *stream,unsigned long number)
32075 void mm_exists (MAILSTREAM *stream,unsigned long number)
32078 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32081 void mm_flags (MAILSTREAM *stream,unsigned long number)
32084 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32087 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32090 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32093 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32096 void mm_log (char *string,long errflg)
32099 void mm_dlog (char *string)
32102 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32105 void mm_critical (MAILSTREAM *stream)
32108 void mm_nocritical (MAILSTREAM *stream)
32111 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32114 void mm_fatal (char *string)
32118 main ()
32121 long check = mail_expunge_full(NULL, "", 0);
32125 return 0;
32127 _ACEOF
32128 rm -f conftest.$ac_objext conftest$ac_exeext
32129 if { (ac_try="$ac_link"
32130 case "(($ac_try" in
32131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32132 *) ac_try_echo=$ac_try;;
32133 esac
32134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32135 (eval "$ac_link") 2>conftest.er1
32136 ac_status=$?
32137 grep -v '^ *+' conftest.er1 >conftest.err
32138 rm -f conftest.er1
32139 cat conftest.err >&5
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); } && {
32142 test -z "$ac_c_werror_flag" ||
32143 test ! -s conftest.err
32144 } && test -s conftest$ac_exeext &&
32145 $as_test_x conftest$ac_exeext; then
32146 ac_cv_imap_tk2006="yes"
32147 else
32148 echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32151 ac_cv_imap_tk2006="no"
32155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32156 conftest$ac_exeext conftest.$ac_ext
32158 CPPFLAGS="${saved_cppflags}"
32159 LIBS="${saved_libs}"
32160 if test "${ac_cv_imap_tk}" = "no"; then
32161 { echo "$as_me:$LINENO: result: no" >&5
32162 echo "${ECHO_T}no" >&6; }
32163 if test "${switch_to_system_on_failure}" = "yes"; then
32164 IMAP_TK_DIR="system"
32165 else #This means they specified a directory. Search for a package installation there too
32166 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32167 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32168 CPPFLAGS="${saved_cppflags}"
32169 LIBS="${saved_libs}"
32170 imap_include="-I${IMAP_TK_DIR}/include"
32171 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32172 imap_libs="-lc-client"
32173 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32174 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32175 cat >conftest.$ac_ext <<_ACEOF
32176 /* confdefs.h. */
32177 _ACEOF
32178 cat confdefs.h >>conftest.$ac_ext
32179 cat >>conftest.$ac_ext <<_ACEOF
32180 /* end confdefs.h. */
32181 #include "c-client.h"
32182 void mm_searched (MAILSTREAM *stream,unsigned long number)
32185 void mm_exists (MAILSTREAM *stream,unsigned long number)
32188 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32191 void mm_flags (MAILSTREAM *stream,unsigned long number)
32194 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32197 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32200 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32203 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32206 void mm_log (char *string,long errflg)
32209 void mm_dlog (char *string)
32212 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32215 void mm_critical (MAILSTREAM *stream)
32218 void mm_nocritical (MAILSTREAM *stream)
32221 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32224 void mm_fatal (char *string)
32228 main ()
32231 MAILSTREAM *foo = mail_open(NULL, "", 0);
32235 return 0;
32237 _ACEOF
32238 rm -f conftest.$ac_objext conftest$ac_exeext
32239 if { (ac_try="$ac_link"
32240 case "(($ac_try" in
32241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32242 *) ac_try_echo=$ac_try;;
32243 esac
32244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32245 (eval "$ac_link") 2>conftest.er1
32246 ac_status=$?
32247 grep -v '^ *+' conftest.er1 >conftest.err
32248 rm -f conftest.er1
32249 cat conftest.err >&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); } && {
32252 test -z "$ac_c_werror_flag" ||
32253 test ! -s conftest.err
32254 } && test -s conftest$ac_exeext &&
32255 $as_test_x conftest$ac_exeext; then
32256 ac_cv_imap_tk="yes"
32257 else
32258 echo "$as_me: failed program was:" >&5
32259 sed 's/^/| /' conftest.$ac_ext >&5
32261 ac_cv_imap_tk="no"
32265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32266 conftest$ac_exeext conftest.$ac_ext
32267 if test "${ac_cv_imap_tk}" = "yes"; then
32268 cat >conftest.$ac_ext <<_ACEOF
32269 /* confdefs.h. */
32270 _ACEOF
32271 cat confdefs.h >>conftest.$ac_ext
32272 cat >>conftest.$ac_ext <<_ACEOF
32273 /* end confdefs.h. */
32274 #include "c-client.h"
32275 void mm_searched (MAILSTREAM *stream,unsigned long number)
32278 void mm_exists (MAILSTREAM *stream,unsigned long number)
32281 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32284 void mm_flags (MAILSTREAM *stream,unsigned long number)
32287 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32290 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32293 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32296 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32299 void mm_log (char *string,long errflg)
32302 void mm_dlog (char *string)
32305 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32308 void mm_critical (MAILSTREAM *stream)
32311 void mm_nocritical (MAILSTREAM *stream)
32314 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32317 void mm_fatal (char *string)
32321 main ()
32324 long check = mail_expunge_full(NULL, "", 0);
32328 return 0;
32330 _ACEOF
32331 rm -f conftest.$ac_objext conftest$ac_exeext
32332 if { (ac_try="$ac_link"
32333 case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32336 esac
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_link") 2>conftest.er1
32339 ac_status=$?
32340 grep -v '^ *+' conftest.er1 >conftest.err
32341 rm -f conftest.er1
32342 cat conftest.err >&5
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); } && {
32345 test -z "$ac_c_werror_flag" ||
32346 test ! -s conftest.err
32347 } && test -s conftest$ac_exeext &&
32348 $as_test_x conftest$ac_exeext; then
32349 ac_cv_imap_tk2006="yes"
32350 else
32351 echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32354 ac_cv_imap_tk2006="no"
32358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32359 conftest$ac_exeext conftest.$ac_ext
32364 if test "${IMAP_TK_DIR}" = "system"; then
32365 #We will enter here if user specified "system" or if any of above checks failed
32366 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32367 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32368 CPPFLAGS="${saved_cppflags}"
32369 LIBS="${saved_libs}"
32370 imap_ldflags=""
32371 imap_libs="-lc-client"
32372 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32373 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32374 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32375 cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h. */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h. */
32381 #include <stdio.h>
32382 #include <imap/c-client.h>
32383 void mm_searched (MAILSTREAM *stream,unsigned long number)
32386 void mm_exists (MAILSTREAM *stream,unsigned long number)
32389 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32392 void mm_flags (MAILSTREAM *stream,unsigned long number)
32395 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32398 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32401 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32404 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32407 void mm_log (char *string,long errflg)
32410 void mm_dlog (char *string)
32413 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32416 void mm_critical (MAILSTREAM *stream)
32419 void mm_nocritical (MAILSTREAM *stream)
32422 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32425 void mm_fatal (char *string)
32429 main ()
32432 MAILSTREAM *foo = mail_open(NULL, "", 0);
32436 return 0;
32438 _ACEOF
32439 rm -f conftest.$ac_objext conftest$ac_exeext
32440 if { (ac_try="$ac_link"
32441 case "(($ac_try" in
32442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32443 *) ac_try_echo=$ac_try;;
32444 esac
32445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32446 (eval "$ac_link") 2>conftest.er1
32447 ac_status=$?
32448 grep -v '^ *+' conftest.er1 >conftest.err
32449 rm -f conftest.er1
32450 cat conftest.err >&5
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); } && {
32453 test -z "$ac_c_werror_flag" ||
32454 test ! -s conftest.err
32455 } && test -s conftest$ac_exeext &&
32456 $as_test_x conftest$ac_exeext; then
32457 ac_cv_imap_tk="yes"
32458 else
32459 echo "$as_me: failed program was:" >&5
32460 sed 's/^/| /' conftest.$ac_ext >&5
32462 ac_cv_imap_tk="no"
32466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32467 conftest$ac_exeext conftest.$ac_ext
32468 if test "${ac_cv_imap_tk}" = "yes"; then
32469 cat >conftest.$ac_ext <<_ACEOF
32470 /* confdefs.h. */
32471 _ACEOF
32472 cat confdefs.h >>conftest.$ac_ext
32473 cat >>conftest.$ac_ext <<_ACEOF
32474 /* end confdefs.h. */
32475 #include <stdio.h>
32476 #include <imap/c-client.h>
32477 void mm_searched (MAILSTREAM *stream,unsigned long number)
32480 void mm_exists (MAILSTREAM *stream,unsigned long number)
32483 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32486 void mm_flags (MAILSTREAM *stream,unsigned long number)
32489 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32492 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32495 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32498 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32501 void mm_log (char *string,long errflg)
32504 void mm_dlog (char *string)
32507 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32510 void mm_critical (MAILSTREAM *stream)
32513 void mm_nocritical (MAILSTREAM *stream)
32516 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32519 void mm_fatal (char *string)
32523 main ()
32526 long check = mail_expunge_full(NULL, "", 0);
32530 return 0;
32532 _ACEOF
32533 rm -f conftest.$ac_objext conftest$ac_exeext
32534 if { (ac_try="$ac_link"
32535 case "(($ac_try" in
32536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32537 *) ac_try_echo=$ac_try;;
32538 esac
32539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32540 (eval "$ac_link") 2>conftest.er1
32541 ac_status=$?
32542 grep -v '^ *+' conftest.er1 >conftest.err
32543 rm -f conftest.er1
32544 cat conftest.err >&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); } && {
32547 test -z "$ac_c_werror_flag" ||
32548 test ! -s conftest.err
32549 } && test -s conftest$ac_exeext &&
32550 $as_test_x conftest$ac_exeext; then
32551 ac_cv_imap_tk2006="yes"
32552 else
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 ac_cv_imap_tk2006="no"
32560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32561 conftest$ac_exeext conftest.$ac_ext
32562 else #looking in imap directory didn't work, try c-client
32563 imap_ldflags=""
32564 imap_libs="-lc-client"
32565 imap_include="-DUSE_SYSTEM_CCLIENT"
32566 CPPFLAGS="${saved_cppflags}"
32567 LIBS="${saved_libs}"
32568 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32569 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32570 cat >conftest.$ac_ext <<_ACEOF
32571 /* confdefs.h. */
32572 _ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h. */
32576 #include <stdio.h>
32577 #include <c-client/c-client.h>
32578 void mm_searched (MAILSTREAM *stream,unsigned long number)
32581 void mm_exists (MAILSTREAM *stream,unsigned long number)
32584 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32587 void mm_flags (MAILSTREAM *stream,unsigned long number)
32590 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32593 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32596 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32599 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32602 void mm_log (char *string,long errflg)
32605 void mm_dlog (char *string)
32608 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32611 void mm_critical (MAILSTREAM *stream)
32614 void mm_nocritical (MAILSTREAM *stream)
32617 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32620 void mm_fatal (char *string)
32624 main ()
32627 MAILSTREAM *foo = mail_open(NULL, "", 0);
32631 return 0;
32633 _ACEOF
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635 if { (ac_try="$ac_link"
32636 case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32639 esac
32640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32641 (eval "$ac_link") 2>conftest.er1
32642 ac_status=$?
32643 grep -v '^ *+' conftest.er1 >conftest.err
32644 rm -f conftest.er1
32645 cat conftest.err >&5
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); } && {
32648 test -z "$ac_c_werror_flag" ||
32649 test ! -s conftest.err
32650 } && test -s conftest$ac_exeext &&
32651 $as_test_x conftest$ac_exeext; then
32652 ac_cv_imap_tk="yes"
32653 else
32654 echo "$as_me: failed program was:" >&5
32655 sed 's/^/| /' conftest.$ac_ext >&5
32657 ac_cv_imap_tk="no"
32661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32662 conftest$ac_exeext conftest.$ac_ext
32663 if test "${ac_cv_imap_tk}" = "yes"; then
32664 cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h. */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h. */
32670 #include <stdio.h>
32671 #include <c-client/c-client.h>
32672 void mm_searched (MAILSTREAM *stream,unsigned long number)
32675 void mm_exists (MAILSTREAM *stream,unsigned long number)
32678 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32681 void mm_flags (MAILSTREAM *stream,unsigned long number)
32684 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32687 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32690 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32693 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32696 void mm_log (char *string,long errflg)
32699 void mm_dlog (char *string)
32702 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32705 void mm_critical (MAILSTREAM *stream)
32708 void mm_nocritical (MAILSTREAM *stream)
32711 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32714 void mm_fatal (char *string)
32718 main ()
32721 long check = mail_expunge_full(NULL, "", 0);
32725 return 0;
32727 _ACEOF
32728 rm -f conftest.$ac_objext conftest$ac_exeext
32729 if { (ac_try="$ac_link"
32730 case "(($ac_try" in
32731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732 *) ac_try_echo=$ac_try;;
32733 esac
32734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735 (eval "$ac_link") 2>conftest.er1
32736 ac_status=$?
32737 grep -v '^ *+' conftest.er1 >conftest.err
32738 rm -f conftest.er1
32739 cat conftest.err >&5
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } && {
32742 test -z "$ac_c_werror_flag" ||
32743 test ! -s conftest.err
32744 } && test -s conftest$ac_exeext &&
32745 $as_test_x conftest$ac_exeext; then
32746 ac_cv_imap_tk2006="yes"
32747 else
32748 echo "$as_me: failed program was:" >&5
32749 sed 's/^/| /' conftest.$ac_ext >&5
32751 ac_cv_imap_tk2006="no"
32755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32756 conftest$ac_exeext conftest.$ac_ext
32760 if test "${ac_cv_imap_tk}" = "yes"; then
32761 { echo "$as_me:$LINENO: result: yes" >&5
32762 echo "${ECHO_T}yes" >&6; }
32763 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
32764 IMAP_TK_INCLUDE="${imap_include}"
32765 PBX_IMAP_TK=1
32767 cat >>confdefs.h <<\_ACEOF
32768 #define HAVE_IMAP_TK 1
32769 _ACEOF
32771 if test "${ac_cv_imap_tk2006}" = "yes"; then
32773 cat >>confdefs.h <<\_ACEOF
32774 #define HAVE_IMAP_TK2006 1
32775 _ACEOF
32778 else
32779 { echo "$as_me:$LINENO: result: no" >&5
32780 echo "${ECHO_T}no" >&6; }
32782 CPPFLAGS="${saved_cppflags}"
32783 LIBS="${saved_libs}"
32787 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
32788 pbxlibdir=""
32789 # if --with-JACK=DIR has been specified, use it.
32790 if test "x${JACK_DIR}" != "x"; then
32791 if test -d ${JACK_DIR}/lib; then
32792 pbxlibdir="-L${JACK_DIR}/lib"
32793 else
32794 pbxlibdir="-L${JACK_DIR}"
32797 pbxfuncname="jack_activate"
32798 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32799 AST_JACK_FOUND=yes
32800 else
32801 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
32802 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
32803 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
32804 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32805 echo $ECHO_N "(cached) $ECHO_C" >&6
32806 else
32807 ac_check_lib_save_LIBS=$LIBS
32808 LIBS="-ljack ${pbxlibdir} $LIBS"
32809 cat >conftest.$ac_ext <<_ACEOF
32810 /* confdefs.h. */
32811 _ACEOF
32812 cat confdefs.h >>conftest.$ac_ext
32813 cat >>conftest.$ac_ext <<_ACEOF
32814 /* end confdefs.h. */
32816 /* Override any GCC internal prototype to avoid an error.
32817 Use char because int might match the return type of a GCC
32818 builtin and then its argument prototype would still apply. */
32819 #ifdef __cplusplus
32820 extern "C"
32821 #endif
32822 char ${pbxfuncname} ();
32824 main ()
32826 return ${pbxfuncname} ();
32828 return 0;
32830 _ACEOF
32831 rm -f conftest.$ac_objext conftest$ac_exeext
32832 if { (ac_try="$ac_link"
32833 case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32836 esac
32837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_link") 2>conftest.er1
32839 ac_status=$?
32840 grep -v '^ *+' conftest.er1 >conftest.err
32841 rm -f conftest.er1
32842 cat conftest.err >&5
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); } && {
32845 test -z "$ac_c_werror_flag" ||
32846 test ! -s conftest.err
32847 } && test -s conftest$ac_exeext &&
32848 $as_test_x conftest$ac_exeext; then
32849 eval "$as_ac_Lib=yes"
32850 else
32851 echo "$as_me: failed program was:" >&5
32852 sed 's/^/| /' conftest.$ac_ext >&5
32854 eval "$as_ac_Lib=no"
32857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32858 conftest$ac_exeext conftest.$ac_ext
32859 LIBS=$ac_check_lib_save_LIBS
32861 ac_res=`eval echo '${'$as_ac_Lib'}'`
32862 { echo "$as_me:$LINENO: result: $ac_res" >&5
32863 echo "${ECHO_T}$ac_res" >&6; }
32864 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32865 AST_JACK_FOUND=yes
32866 else
32867 AST_JACK_FOUND=no
32872 # now check for the header.
32873 if test "${AST_JACK_FOUND}" = "yes"; then
32874 JACK_LIB="${pbxlibdir} -ljack "
32875 # if --with-JACK=DIR has been specified, use it.
32876 if test "x${JACK_DIR}" != "x"; then
32877 JACK_INCLUDE="-I${JACK_DIR}/include"
32879 JACK_INCLUDE="${JACK_INCLUDE} "
32880 if test "xjack/jack.h" = "x" ; then # no header, assume found
32881 JACK_HEADER_FOUND="1"
32882 else # check for the header
32883 saved_cppflags="${CPPFLAGS}"
32884 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE} "
32885 if test "${ac_cv_header_jack_jack_h+set}" = set; then
32886 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
32887 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
32888 if test "${ac_cv_header_jack_jack_h+set}" = set; then
32889 echo $ECHO_N "(cached) $ECHO_C" >&6
32891 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
32892 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
32893 else
32894 # Is the header compilable?
32895 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
32896 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
32897 cat >conftest.$ac_ext <<_ACEOF
32898 /* confdefs.h. */
32899 _ACEOF
32900 cat confdefs.h >>conftest.$ac_ext
32901 cat >>conftest.$ac_ext <<_ACEOF
32902 /* end confdefs.h. */
32903 $ac_includes_default
32904 #include <jack/jack.h>
32905 _ACEOF
32906 rm -f conftest.$ac_objext
32907 if { (ac_try="$ac_compile"
32908 case "(($ac_try" in
32909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32910 *) ac_try_echo=$ac_try;;
32911 esac
32912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32913 (eval "$ac_compile") 2>conftest.er1
32914 ac_status=$?
32915 grep -v '^ *+' conftest.er1 >conftest.err
32916 rm -f conftest.er1
32917 cat conftest.err >&5
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); } && {
32920 test -z "$ac_c_werror_flag" ||
32921 test ! -s conftest.err
32922 } && test -s conftest.$ac_objext; then
32923 ac_header_compiler=yes
32924 else
32925 echo "$as_me: failed program was:" >&5
32926 sed 's/^/| /' conftest.$ac_ext >&5
32928 ac_header_compiler=no
32931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32933 echo "${ECHO_T}$ac_header_compiler" >&6; }
32935 # Is the header present?
32936 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
32937 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
32938 cat >conftest.$ac_ext <<_ACEOF
32939 /* confdefs.h. */
32940 _ACEOF
32941 cat confdefs.h >>conftest.$ac_ext
32942 cat >>conftest.$ac_ext <<_ACEOF
32943 /* end confdefs.h. */
32944 #include <jack/jack.h>
32945 _ACEOF
32946 if { (ac_try="$ac_cpp conftest.$ac_ext"
32947 case "(($ac_try" in
32948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949 *) ac_try_echo=$ac_try;;
32950 esac
32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32953 ac_status=$?
32954 grep -v '^ *+' conftest.er1 >conftest.err
32955 rm -f conftest.er1
32956 cat conftest.err >&5
32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); } >/dev/null && {
32959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32960 test ! -s conftest.err
32961 }; then
32962 ac_header_preproc=yes
32963 else
32964 echo "$as_me: failed program was:" >&5
32965 sed 's/^/| /' conftest.$ac_ext >&5
32967 ac_header_preproc=no
32970 rm -f conftest.err conftest.$ac_ext
32971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32972 echo "${ECHO_T}$ac_header_preproc" >&6; }
32974 # So? What about this header?
32975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32976 yes:no: )
32977 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
32978 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32979 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
32980 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
32981 ac_header_preproc=yes
32983 no:yes:* )
32984 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
32985 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
32986 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
32987 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
32988 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
32989 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
32990 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
32991 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
32992 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
32993 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
32994 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
32995 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
32996 ( cat <<\_ASBOX
32997 ## ------------------------------- ##
32998 ## Report this to www.asterisk.org ##
32999 ## ------------------------------- ##
33000 _ASBOX
33001 ) | sed "s/^/$as_me: WARNING: /" >&2
33003 esac
33004 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33005 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33006 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33007 echo $ECHO_N "(cached) $ECHO_C" >&6
33008 else
33009 ac_cv_header_jack_jack_h=$ac_header_preproc
33011 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33012 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33015 if test $ac_cv_header_jack_jack_h = yes; then
33016 JACK_HEADER_FOUND=1
33017 else
33018 JACK_HEADER_FOUND=0
33022 CPPFLAGS="${saved_cppflags}"
33024 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33025 JACK_LIB=""
33026 JACK_INCLUDE=""
33027 else
33028 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33029 JACK_LIB=""
33031 PBX_JACK=1
33032 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33034 cat >>confdefs.h <<_ACEOF
33035 #define HAVE_JACK 1
33036 _ACEOF
33039 cat >>confdefs.h <<_ACEOF
33040 #define HAVE_JACK_VERSION
33041 _ACEOF
33048 # Needed by unixodbc
33050 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33051 pbxlibdir=""
33052 # if --with-LTDL=DIR has been specified, use it.
33053 if test "x${LTDL_DIR}" != "x"; then
33054 if test -d ${LTDL_DIR}/lib; then
33055 pbxlibdir="-L${LTDL_DIR}/lib"
33056 else
33057 pbxlibdir="-L${LTDL_DIR}"
33060 pbxfuncname="lt_dlinit"
33061 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33062 AST_LTDL_FOUND=yes
33063 else
33064 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33065 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33066 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33067 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33068 echo $ECHO_N "(cached) $ECHO_C" >&6
33069 else
33070 ac_check_lib_save_LIBS=$LIBS
33071 LIBS="-lltdl ${pbxlibdir} $LIBS"
33072 cat >conftest.$ac_ext <<_ACEOF
33073 /* confdefs.h. */
33074 _ACEOF
33075 cat confdefs.h >>conftest.$ac_ext
33076 cat >>conftest.$ac_ext <<_ACEOF
33077 /* end confdefs.h. */
33079 /* Override any GCC internal prototype to avoid an error.
33080 Use char because int might match the return type of a GCC
33081 builtin and then its argument prototype would still apply. */
33082 #ifdef __cplusplus
33083 extern "C"
33084 #endif
33085 char ${pbxfuncname} ();
33087 main ()
33089 return ${pbxfuncname} ();
33091 return 0;
33093 _ACEOF
33094 rm -f conftest.$ac_objext conftest$ac_exeext
33095 if { (ac_try="$ac_link"
33096 case "(($ac_try" in
33097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098 *) ac_try_echo=$ac_try;;
33099 esac
33100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101 (eval "$ac_link") 2>conftest.er1
33102 ac_status=$?
33103 grep -v '^ *+' conftest.er1 >conftest.err
33104 rm -f conftest.er1
33105 cat conftest.err >&5
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); } && {
33108 test -z "$ac_c_werror_flag" ||
33109 test ! -s conftest.err
33110 } && test -s conftest$ac_exeext &&
33111 $as_test_x conftest$ac_exeext; then
33112 eval "$as_ac_Lib=yes"
33113 else
33114 echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33117 eval "$as_ac_Lib=no"
33120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33121 conftest$ac_exeext conftest.$ac_ext
33122 LIBS=$ac_check_lib_save_LIBS
33124 ac_res=`eval echo '${'$as_ac_Lib'}'`
33125 { echo "$as_me:$LINENO: result: $ac_res" >&5
33126 echo "${ECHO_T}$ac_res" >&6; }
33127 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33128 AST_LTDL_FOUND=yes
33129 else
33130 AST_LTDL_FOUND=no
33135 # now check for the header.
33136 if test "${AST_LTDL_FOUND}" = "yes"; then
33137 LTDL_LIB="${pbxlibdir} -lltdl "
33138 # if --with-LTDL=DIR has been specified, use it.
33139 if test "x${LTDL_DIR}" != "x"; then
33140 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33142 LTDL_INCLUDE="${LTDL_INCLUDE} "
33143 if test "xltdl.h" = "x" ; then # no header, assume found
33144 LTDL_HEADER_FOUND="1"
33145 else # check for the header
33146 saved_cppflags="${CPPFLAGS}"
33147 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE} "
33148 if test "${ac_cv_header_ltdl_h+set}" = set; then
33149 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33150 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33151 if test "${ac_cv_header_ltdl_h+set}" = set; then
33152 echo $ECHO_N "(cached) $ECHO_C" >&6
33154 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33155 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33156 else
33157 # Is the header compilable?
33158 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33159 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33160 cat >conftest.$ac_ext <<_ACEOF
33161 /* confdefs.h. */
33162 _ACEOF
33163 cat confdefs.h >>conftest.$ac_ext
33164 cat >>conftest.$ac_ext <<_ACEOF
33165 /* end confdefs.h. */
33166 $ac_includes_default
33167 #include <ltdl.h>
33168 _ACEOF
33169 rm -f conftest.$ac_objext
33170 if { (ac_try="$ac_compile"
33171 case "(($ac_try" in
33172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173 *) ac_try_echo=$ac_try;;
33174 esac
33175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_compile") 2>conftest.er1
33177 ac_status=$?
33178 grep -v '^ *+' conftest.er1 >conftest.err
33179 rm -f conftest.er1
33180 cat conftest.err >&5
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); } && {
33183 test -z "$ac_c_werror_flag" ||
33184 test ! -s conftest.err
33185 } && test -s conftest.$ac_objext; then
33186 ac_header_compiler=yes
33187 else
33188 echo "$as_me: failed program was:" >&5
33189 sed 's/^/| /' conftest.$ac_ext >&5
33191 ac_header_compiler=no
33194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33196 echo "${ECHO_T}$ac_header_compiler" >&6; }
33198 # Is the header present?
33199 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33200 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33201 cat >conftest.$ac_ext <<_ACEOF
33202 /* confdefs.h. */
33203 _ACEOF
33204 cat confdefs.h >>conftest.$ac_ext
33205 cat >>conftest.$ac_ext <<_ACEOF
33206 /* end confdefs.h. */
33207 #include <ltdl.h>
33208 _ACEOF
33209 if { (ac_try="$ac_cpp conftest.$ac_ext"
33210 case "(($ac_try" in
33211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212 *) ac_try_echo=$ac_try;;
33213 esac
33214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33216 ac_status=$?
33217 grep -v '^ *+' conftest.er1 >conftest.err
33218 rm -f conftest.er1
33219 cat conftest.err >&5
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); } >/dev/null && {
33222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33223 test ! -s conftest.err
33224 }; then
33225 ac_header_preproc=yes
33226 else
33227 echo "$as_me: failed program was:" >&5
33228 sed 's/^/| /' conftest.$ac_ext >&5
33230 ac_header_preproc=no
33233 rm -f conftest.err conftest.$ac_ext
33234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33235 echo "${ECHO_T}$ac_header_preproc" >&6; }
33237 # So? What about this header?
33238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33239 yes:no: )
33240 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33241 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33242 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33243 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33244 ac_header_preproc=yes
33246 no:yes:* )
33247 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33248 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33249 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33250 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33251 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33252 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33253 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33254 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33255 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33256 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33257 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33258 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33259 ( cat <<\_ASBOX
33260 ## ------------------------------- ##
33261 ## Report this to www.asterisk.org ##
33262 ## ------------------------------- ##
33263 _ASBOX
33264 ) | sed "s/^/$as_me: WARNING: /" >&2
33266 esac
33267 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33268 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33269 if test "${ac_cv_header_ltdl_h+set}" = set; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33271 else
33272 ac_cv_header_ltdl_h=$ac_header_preproc
33274 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33275 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33278 if test $ac_cv_header_ltdl_h = yes; then
33279 LTDL_HEADER_FOUND=1
33280 else
33281 LTDL_HEADER_FOUND=0
33285 CPPFLAGS="${saved_cppflags}"
33287 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33288 LTDL_LIB=""
33289 LTDL_INCLUDE=""
33290 else
33291 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33292 LTDL_LIB=""
33294 PBX_LTDL=1
33295 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33297 cat >>confdefs.h <<_ACEOF
33298 #define HAVE_LTDL 1
33299 _ACEOF
33302 cat >>confdefs.h <<_ACEOF
33303 #define HAVE_LTDL_VERSION
33304 _ACEOF
33312 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33313 pbxlibdir=""
33314 # if --with-LDAP=DIR has been specified, use it.
33315 if test "x${LDAP_DIR}" != "x"; then
33316 if test -d ${LDAP_DIR}/lib; then
33317 pbxlibdir="-L${LDAP_DIR}/lib"
33318 else
33319 pbxlibdir="-L${LDAP_DIR}"
33322 pbxfuncname="ldap_initialize"
33323 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33324 AST_LDAP_FOUND=yes
33325 else
33326 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33327 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33328 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33329 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33330 echo $ECHO_N "(cached) $ECHO_C" >&6
33331 else
33332 ac_check_lib_save_LIBS=$LIBS
33333 LIBS="-lldap ${pbxlibdir} $LIBS"
33334 cat >conftest.$ac_ext <<_ACEOF
33335 /* confdefs.h. */
33336 _ACEOF
33337 cat confdefs.h >>conftest.$ac_ext
33338 cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h. */
33341 /* Override any GCC internal prototype to avoid an error.
33342 Use char because int might match the return type of a GCC
33343 builtin and then its argument prototype would still apply. */
33344 #ifdef __cplusplus
33345 extern "C"
33346 #endif
33347 char ${pbxfuncname} ();
33349 main ()
33351 return ${pbxfuncname} ();
33353 return 0;
33355 _ACEOF
33356 rm -f conftest.$ac_objext conftest$ac_exeext
33357 if { (ac_try="$ac_link"
33358 case "(($ac_try" in
33359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33360 *) ac_try_echo=$ac_try;;
33361 esac
33362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33363 (eval "$ac_link") 2>conftest.er1
33364 ac_status=$?
33365 grep -v '^ *+' conftest.er1 >conftest.err
33366 rm -f conftest.er1
33367 cat conftest.err >&5
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); } && {
33370 test -z "$ac_c_werror_flag" ||
33371 test ! -s conftest.err
33372 } && test -s conftest$ac_exeext &&
33373 $as_test_x conftest$ac_exeext; then
33374 eval "$as_ac_Lib=yes"
33375 else
33376 echo "$as_me: failed program was:" >&5
33377 sed 's/^/| /' conftest.$ac_ext >&5
33379 eval "$as_ac_Lib=no"
33382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33383 conftest$ac_exeext conftest.$ac_ext
33384 LIBS=$ac_check_lib_save_LIBS
33386 ac_res=`eval echo '${'$as_ac_Lib'}'`
33387 { echo "$as_me:$LINENO: result: $ac_res" >&5
33388 echo "${ECHO_T}$ac_res" >&6; }
33389 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33390 AST_LDAP_FOUND=yes
33391 else
33392 AST_LDAP_FOUND=no
33397 # now check for the header.
33398 if test "${AST_LDAP_FOUND}" = "yes"; then
33399 LDAP_LIB="${pbxlibdir} -lldap "
33400 # if --with-LDAP=DIR has been specified, use it.
33401 if test "x${LDAP_DIR}" != "x"; then
33402 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33404 LDAP_INCLUDE="${LDAP_INCLUDE} "
33405 if test "xldap.h" = "x" ; then # no header, assume found
33406 LDAP_HEADER_FOUND="1"
33407 else # check for the header
33408 saved_cppflags="${CPPFLAGS}"
33409 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE} "
33410 if test "${ac_cv_header_ldap_h+set}" = set; then
33411 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33412 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33413 if test "${ac_cv_header_ldap_h+set}" = set; then
33414 echo $ECHO_N "(cached) $ECHO_C" >&6
33416 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33417 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33418 else
33419 # Is the header compilable?
33420 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33421 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33422 cat >conftest.$ac_ext <<_ACEOF
33423 /* confdefs.h. */
33424 _ACEOF
33425 cat confdefs.h >>conftest.$ac_ext
33426 cat >>conftest.$ac_ext <<_ACEOF
33427 /* end confdefs.h. */
33428 $ac_includes_default
33429 #include <ldap.h>
33430 _ACEOF
33431 rm -f conftest.$ac_objext
33432 if { (ac_try="$ac_compile"
33433 case "(($ac_try" in
33434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33435 *) ac_try_echo=$ac_try;;
33436 esac
33437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33438 (eval "$ac_compile") 2>conftest.er1
33439 ac_status=$?
33440 grep -v '^ *+' conftest.er1 >conftest.err
33441 rm -f conftest.er1
33442 cat conftest.err >&5
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); } && {
33445 test -z "$ac_c_werror_flag" ||
33446 test ! -s conftest.err
33447 } && test -s conftest.$ac_objext; then
33448 ac_header_compiler=yes
33449 else
33450 echo "$as_me: failed program was:" >&5
33451 sed 's/^/| /' conftest.$ac_ext >&5
33453 ac_header_compiler=no
33456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33458 echo "${ECHO_T}$ac_header_compiler" >&6; }
33460 # Is the header present?
33461 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
33462 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
33463 cat >conftest.$ac_ext <<_ACEOF
33464 /* confdefs.h. */
33465 _ACEOF
33466 cat confdefs.h >>conftest.$ac_ext
33467 cat >>conftest.$ac_ext <<_ACEOF
33468 /* end confdefs.h. */
33469 #include <ldap.h>
33470 _ACEOF
33471 if { (ac_try="$ac_cpp conftest.$ac_ext"
33472 case "(($ac_try" in
33473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474 *) ac_try_echo=$ac_try;;
33475 esac
33476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33478 ac_status=$?
33479 grep -v '^ *+' conftest.er1 >conftest.err
33480 rm -f conftest.er1
33481 cat conftest.err >&5
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); } >/dev/null && {
33484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33485 test ! -s conftest.err
33486 }; then
33487 ac_header_preproc=yes
33488 else
33489 echo "$as_me: failed program was:" >&5
33490 sed 's/^/| /' conftest.$ac_ext >&5
33492 ac_header_preproc=no
33495 rm -f conftest.err conftest.$ac_ext
33496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33497 echo "${ECHO_T}$ac_header_preproc" >&6; }
33499 # So? What about this header?
33500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33501 yes:no: )
33502 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
33503 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33504 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
33505 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
33506 ac_header_preproc=yes
33508 no:yes:* )
33509 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
33510 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
33511 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
33512 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
33513 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
33514 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
33515 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
33516 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
33517 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
33518 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
33519 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
33520 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
33521 ( cat <<\_ASBOX
33522 ## ------------------------------- ##
33523 ## Report this to www.asterisk.org ##
33524 ## ------------------------------- ##
33525 _ASBOX
33526 ) | sed "s/^/$as_me: WARNING: /" >&2
33528 esac
33529 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33530 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33531 if test "${ac_cv_header_ldap_h+set}" = set; then
33532 echo $ECHO_N "(cached) $ECHO_C" >&6
33533 else
33534 ac_cv_header_ldap_h=$ac_header_preproc
33536 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33537 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33540 if test $ac_cv_header_ldap_h = yes; then
33541 LDAP_HEADER_FOUND=1
33542 else
33543 LDAP_HEADER_FOUND=0
33547 CPPFLAGS="${saved_cppflags}"
33549 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
33550 LDAP_LIB=""
33551 LDAP_INCLUDE=""
33552 else
33553 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33554 LDAP_LIB=""
33556 PBX_LDAP=1
33557 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33559 cat >>confdefs.h <<_ACEOF
33560 #define HAVE_LDAP 1
33561 _ACEOF
33564 cat >>confdefs.h <<_ACEOF
33565 #define HAVE_LDAP_VERSION
33566 _ACEOF
33574 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
33575 pbxlibdir=""
33576 # if --with-MISDN=DIR has been specified, use it.
33577 if test "x${MISDN_DIR}" != "x"; then
33578 if test -d ${MISDN_DIR}/lib; then
33579 pbxlibdir="-L${MISDN_DIR}/lib"
33580 else
33581 pbxlibdir="-L${MISDN_DIR}"
33584 pbxfuncname="mISDN_open"
33585 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33586 AST_MISDN_FOUND=yes
33587 else
33588 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
33589 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
33590 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
33591 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33592 echo $ECHO_N "(cached) $ECHO_C" >&6
33593 else
33594 ac_check_lib_save_LIBS=$LIBS
33595 LIBS="-lmISDN ${pbxlibdir} $LIBS"
33596 cat >conftest.$ac_ext <<_ACEOF
33597 /* confdefs.h. */
33598 _ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h. */
33603 /* Override any GCC internal prototype to avoid an error.
33604 Use char because int might match the return type of a GCC
33605 builtin and then its argument prototype would still apply. */
33606 #ifdef __cplusplus
33607 extern "C"
33608 #endif
33609 char ${pbxfuncname} ();
33611 main ()
33613 return ${pbxfuncname} ();
33615 return 0;
33617 _ACEOF
33618 rm -f conftest.$ac_objext conftest$ac_exeext
33619 if { (ac_try="$ac_link"
33620 case "(($ac_try" in
33621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33622 *) ac_try_echo=$ac_try;;
33623 esac
33624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33625 (eval "$ac_link") 2>conftest.er1
33626 ac_status=$?
33627 grep -v '^ *+' conftest.er1 >conftest.err
33628 rm -f conftest.er1
33629 cat conftest.err >&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); } && {
33632 test -z "$ac_c_werror_flag" ||
33633 test ! -s conftest.err
33634 } && test -s conftest$ac_exeext &&
33635 $as_test_x conftest$ac_exeext; then
33636 eval "$as_ac_Lib=yes"
33637 else
33638 echo "$as_me: failed program was:" >&5
33639 sed 's/^/| /' conftest.$ac_ext >&5
33641 eval "$as_ac_Lib=no"
33644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33645 conftest$ac_exeext conftest.$ac_ext
33646 LIBS=$ac_check_lib_save_LIBS
33648 ac_res=`eval echo '${'$as_ac_Lib'}'`
33649 { echo "$as_me:$LINENO: result: $ac_res" >&5
33650 echo "${ECHO_T}$ac_res" >&6; }
33651 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33652 AST_MISDN_FOUND=yes
33653 else
33654 AST_MISDN_FOUND=no
33659 # now check for the header.
33660 if test "${AST_MISDN_FOUND}" = "yes"; then
33661 MISDN_LIB="${pbxlibdir} -lmISDN "
33662 # if --with-MISDN=DIR has been specified, use it.
33663 if test "x${MISDN_DIR}" != "x"; then
33664 MISDN_INCLUDE="-I${MISDN_DIR}/include"
33666 MISDN_INCLUDE="${MISDN_INCLUDE} "
33667 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
33668 MISDN_HEADER_FOUND="1"
33669 else # check for the header
33670 saved_cppflags="${CPPFLAGS}"
33671 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE} "
33672 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
33673 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
33674 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
33675 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
33676 echo $ECHO_N "(cached) $ECHO_C" >&6
33678 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
33679 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
33680 else
33681 # Is the header compilable?
33682 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
33683 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
33684 cat >conftest.$ac_ext <<_ACEOF
33685 /* confdefs.h. */
33686 _ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h. */
33690 $ac_includes_default
33691 #include <mISDNuser/mISDNlib.h>
33692 _ACEOF
33693 rm -f conftest.$ac_objext
33694 if { (ac_try="$ac_compile"
33695 case "(($ac_try" in
33696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33697 *) ac_try_echo=$ac_try;;
33698 esac
33699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33700 (eval "$ac_compile") 2>conftest.er1
33701 ac_status=$?
33702 grep -v '^ *+' conftest.er1 >conftest.err
33703 rm -f conftest.er1
33704 cat conftest.err >&5
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); } && {
33707 test -z "$ac_c_werror_flag" ||
33708 test ! -s conftest.err
33709 } && test -s conftest.$ac_objext; then
33710 ac_header_compiler=yes
33711 else
33712 echo "$as_me: failed program was:" >&5
33713 sed 's/^/| /' conftest.$ac_ext >&5
33715 ac_header_compiler=no
33718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33720 echo "${ECHO_T}$ac_header_compiler" >&6; }
33722 # Is the header present?
33723 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
33724 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
33725 cat >conftest.$ac_ext <<_ACEOF
33726 /* confdefs.h. */
33727 _ACEOF
33728 cat confdefs.h >>conftest.$ac_ext
33729 cat >>conftest.$ac_ext <<_ACEOF
33730 /* end confdefs.h. */
33731 #include <mISDNuser/mISDNlib.h>
33732 _ACEOF
33733 if { (ac_try="$ac_cpp conftest.$ac_ext"
33734 case "(($ac_try" in
33735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736 *) ac_try_echo=$ac_try;;
33737 esac
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33740 ac_status=$?
33741 grep -v '^ *+' conftest.er1 >conftest.err
33742 rm -f conftest.er1
33743 cat conftest.err >&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); } >/dev/null && {
33746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33747 test ! -s conftest.err
33748 }; then
33749 ac_header_preproc=yes
33750 else
33751 echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33754 ac_header_preproc=no
33757 rm -f conftest.err conftest.$ac_ext
33758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33759 echo "${ECHO_T}$ac_header_preproc" >&6; }
33761 # So? What about this header?
33762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33763 yes:no: )
33764 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33765 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33766 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
33767 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
33768 ac_header_preproc=yes
33770 no:yes:* )
33771 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
33772 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
33773 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
33774 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
33775 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
33776 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
33777 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
33778 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33779 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
33780 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
33781 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
33782 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
33783 ( cat <<\_ASBOX
33784 ## ------------------------------- ##
33785 ## Report this to www.asterisk.org ##
33786 ## ------------------------------- ##
33787 _ASBOX
33788 ) | sed "s/^/$as_me: WARNING: /" >&2
33790 esac
33791 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
33792 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
33793 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
33794 echo $ECHO_N "(cached) $ECHO_C" >&6
33795 else
33796 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
33798 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
33799 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
33802 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
33803 MISDN_HEADER_FOUND=1
33804 else
33805 MISDN_HEADER_FOUND=0
33809 CPPFLAGS="${saved_cppflags}"
33811 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
33812 MISDN_LIB=""
33813 MISDN_INCLUDE=""
33814 else
33815 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33816 MISDN_LIB=""
33818 PBX_MISDN=1
33819 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33821 cat >>confdefs.h <<_ACEOF
33822 #define HAVE_MISDN 1
33823 _ACEOF
33826 cat >>confdefs.h <<_ACEOF
33827 #define HAVE_MISDN_VERSION
33828 _ACEOF
33835 if test "${PBX_MISDN}" = 1; then
33837 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
33838 pbxlibdir=""
33839 # if --with-ISDNNET=DIR has been specified, use it.
33840 if test "x${ISDNNET_DIR}" != "x"; then
33841 if test -d ${ISDNNET_DIR}/lib; then
33842 pbxlibdir="-L${ISDNNET_DIR}/lib"
33843 else
33844 pbxlibdir="-L${ISDNNET_DIR}"
33847 pbxfuncname="init_manager"
33848 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33849 AST_ISDNNET_FOUND=yes
33850 else
33851 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
33852 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
33853 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
33854 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33855 echo $ECHO_N "(cached) $ECHO_C" >&6
33856 else
33857 ac_check_lib_save_LIBS=$LIBS
33858 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
33859 cat >conftest.$ac_ext <<_ACEOF
33860 /* confdefs.h. */
33861 _ACEOF
33862 cat confdefs.h >>conftest.$ac_ext
33863 cat >>conftest.$ac_ext <<_ACEOF
33864 /* end confdefs.h. */
33866 /* Override any GCC internal prototype to avoid an error.
33867 Use char because int might match the return type of a GCC
33868 builtin and then its argument prototype would still apply. */
33869 #ifdef __cplusplus
33870 extern "C"
33871 #endif
33872 char ${pbxfuncname} ();
33874 main ()
33876 return ${pbxfuncname} ();
33878 return 0;
33880 _ACEOF
33881 rm -f conftest.$ac_objext conftest$ac_exeext
33882 if { (ac_try="$ac_link"
33883 case "(($ac_try" in
33884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885 *) ac_try_echo=$ac_try;;
33886 esac
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888 (eval "$ac_link") 2>conftest.er1
33889 ac_status=$?
33890 grep -v '^ *+' conftest.er1 >conftest.err
33891 rm -f conftest.er1
33892 cat conftest.err >&5
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); } && {
33895 test -z "$ac_c_werror_flag" ||
33896 test ! -s conftest.err
33897 } && test -s conftest$ac_exeext &&
33898 $as_test_x conftest$ac_exeext; then
33899 eval "$as_ac_Lib=yes"
33900 else
33901 echo "$as_me: failed program was:" >&5
33902 sed 's/^/| /' conftest.$ac_ext >&5
33904 eval "$as_ac_Lib=no"
33907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33908 conftest$ac_exeext conftest.$ac_ext
33909 LIBS=$ac_check_lib_save_LIBS
33911 ac_res=`eval echo '${'$as_ac_Lib'}'`
33912 { echo "$as_me:$LINENO: result: $ac_res" >&5
33913 echo "${ECHO_T}$ac_res" >&6; }
33914 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33915 AST_ISDNNET_FOUND=yes
33916 else
33917 AST_ISDNNET_FOUND=no
33922 # now check for the header.
33923 if test "${AST_ISDNNET_FOUND}" = "yes"; then
33924 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
33925 # if --with-ISDNNET=DIR has been specified, use it.
33926 if test "x${ISDNNET_DIR}" != "x"; then
33927 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
33929 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
33930 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
33931 ISDNNET_HEADER_FOUND="1"
33932 else # check for the header
33933 saved_cppflags="${CPPFLAGS}"
33934 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE} "
33935 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
33936 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
33937 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
33938 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
33939 echo $ECHO_N "(cached) $ECHO_C" >&6
33941 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
33942 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
33943 else
33944 # Is the header compilable?
33945 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
33946 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
33947 cat >conftest.$ac_ext <<_ACEOF
33948 /* confdefs.h. */
33949 _ACEOF
33950 cat confdefs.h >>conftest.$ac_ext
33951 cat >>conftest.$ac_ext <<_ACEOF
33952 /* end confdefs.h. */
33953 $ac_includes_default
33954 #include <mISDNuser/isdn_net.h>
33955 _ACEOF
33956 rm -f conftest.$ac_objext
33957 if { (ac_try="$ac_compile"
33958 case "(($ac_try" in
33959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960 *) ac_try_echo=$ac_try;;
33961 esac
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963 (eval "$ac_compile") 2>conftest.er1
33964 ac_status=$?
33965 grep -v '^ *+' conftest.er1 >conftest.err
33966 rm -f conftest.er1
33967 cat conftest.err >&5
33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969 (exit $ac_status); } && {
33970 test -z "$ac_c_werror_flag" ||
33971 test ! -s conftest.err
33972 } && test -s conftest.$ac_objext; then
33973 ac_header_compiler=yes
33974 else
33975 echo "$as_me: failed program was:" >&5
33976 sed 's/^/| /' conftest.$ac_ext >&5
33978 ac_header_compiler=no
33981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33983 echo "${ECHO_T}$ac_header_compiler" >&6; }
33985 # Is the header present?
33986 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
33987 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
33988 cat >conftest.$ac_ext <<_ACEOF
33989 /* confdefs.h. */
33990 _ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h. */
33994 #include <mISDNuser/isdn_net.h>
33995 _ACEOF
33996 if { (ac_try="$ac_cpp conftest.$ac_ext"
33997 case "(($ac_try" in
33998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33999 *) ac_try_echo=$ac_try;;
34000 esac
34001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34003 ac_status=$?
34004 grep -v '^ *+' conftest.er1 >conftest.err
34005 rm -f conftest.er1
34006 cat conftest.err >&5
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); } >/dev/null && {
34009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34010 test ! -s conftest.err
34011 }; then
34012 ac_header_preproc=yes
34013 else
34014 echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34017 ac_header_preproc=no
34020 rm -f conftest.err conftest.$ac_ext
34021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34022 echo "${ECHO_T}$ac_header_preproc" >&6; }
34024 # So? What about this header?
34025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34026 yes:no: )
34027 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34028 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34029 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34030 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34031 ac_header_preproc=yes
34033 no:yes:* )
34034 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34035 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34036 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34037 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34038 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34039 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34040 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34041 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34042 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34043 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34044 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34045 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34046 ( cat <<\_ASBOX
34047 ## ------------------------------- ##
34048 ## Report this to www.asterisk.org ##
34049 ## ------------------------------- ##
34050 _ASBOX
34051 ) | sed "s/^/$as_me: WARNING: /" >&2
34053 esac
34054 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34055 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34056 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34058 else
34059 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34061 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34062 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34065 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34066 ISDNNET_HEADER_FOUND=1
34067 else
34068 ISDNNET_HEADER_FOUND=0
34072 CPPFLAGS="${saved_cppflags}"
34074 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34075 ISDNNET_LIB=""
34076 ISDNNET_INCLUDE=""
34077 else
34078 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34079 ISDNNET_LIB=""
34081 PBX_ISDNNET=1
34082 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34084 cat >>confdefs.h <<_ACEOF
34085 #define HAVE_ISDNNET 1
34086 _ACEOF
34089 cat >>confdefs.h <<_ACEOF
34090 #define HAVE_ISDNNET_VERSION
34091 _ACEOF
34098 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34099 pbxlibdir=""
34100 # if --with-SUPPSERV=DIR has been specified, use it.
34101 if test "x${SUPPSERV_DIR}" != "x"; then
34102 if test -d ${SUPPSERV_DIR}/lib; then
34103 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34104 else
34105 pbxlibdir="-L${SUPPSERV_DIR}"
34108 pbxfuncname="encodeFac"
34109 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34110 AST_SUPPSERV_FOUND=yes
34111 else
34112 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34113 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34114 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34115 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34116 echo $ECHO_N "(cached) $ECHO_C" >&6
34117 else
34118 ac_check_lib_save_LIBS=$LIBS
34119 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34120 cat >conftest.$ac_ext <<_ACEOF
34121 /* confdefs.h. */
34122 _ACEOF
34123 cat confdefs.h >>conftest.$ac_ext
34124 cat >>conftest.$ac_ext <<_ACEOF
34125 /* end confdefs.h. */
34127 /* Override any GCC internal prototype to avoid an error.
34128 Use char because int might match the return type of a GCC
34129 builtin and then its argument prototype would still apply. */
34130 #ifdef __cplusplus
34131 extern "C"
34132 #endif
34133 char ${pbxfuncname} ();
34135 main ()
34137 return ${pbxfuncname} ();
34139 return 0;
34141 _ACEOF
34142 rm -f conftest.$ac_objext conftest$ac_exeext
34143 if { (ac_try="$ac_link"
34144 case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34147 esac
34148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34149 (eval "$ac_link") 2>conftest.er1
34150 ac_status=$?
34151 grep -v '^ *+' conftest.er1 >conftest.err
34152 rm -f conftest.er1
34153 cat conftest.err >&5
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); } && {
34156 test -z "$ac_c_werror_flag" ||
34157 test ! -s conftest.err
34158 } && test -s conftest$ac_exeext &&
34159 $as_test_x conftest$ac_exeext; then
34160 eval "$as_ac_Lib=yes"
34161 else
34162 echo "$as_me: failed program was:" >&5
34163 sed 's/^/| /' conftest.$ac_ext >&5
34165 eval "$as_ac_Lib=no"
34168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34169 conftest$ac_exeext conftest.$ac_ext
34170 LIBS=$ac_check_lib_save_LIBS
34172 ac_res=`eval echo '${'$as_ac_Lib'}'`
34173 { echo "$as_me:$LINENO: result: $ac_res" >&5
34174 echo "${ECHO_T}$ac_res" >&6; }
34175 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34176 AST_SUPPSERV_FOUND=yes
34177 else
34178 AST_SUPPSERV_FOUND=no
34183 # now check for the header.
34184 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34185 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34186 # if --with-SUPPSERV=DIR has been specified, use it.
34187 if test "x${SUPPSERV_DIR}" != "x"; then
34188 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34190 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34191 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34192 SUPPSERV_HEADER_FOUND="1"
34193 else # check for the header
34194 saved_cppflags="${CPPFLAGS}"
34195 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE} "
34196 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34197 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34198 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34199 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34200 echo $ECHO_N "(cached) $ECHO_C" >&6
34202 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34203 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34204 else
34205 # Is the header compilable?
34206 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34207 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34208 cat >conftest.$ac_ext <<_ACEOF
34209 /* confdefs.h. */
34210 _ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h. */
34214 $ac_includes_default
34215 #include <mISDNuser/suppserv.h>
34216 _ACEOF
34217 rm -f conftest.$ac_objext
34218 if { (ac_try="$ac_compile"
34219 case "(($ac_try" in
34220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34221 *) ac_try_echo=$ac_try;;
34222 esac
34223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34224 (eval "$ac_compile") 2>conftest.er1
34225 ac_status=$?
34226 grep -v '^ *+' conftest.er1 >conftest.err
34227 rm -f conftest.er1
34228 cat conftest.err >&5
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); } && {
34231 test -z "$ac_c_werror_flag" ||
34232 test ! -s conftest.err
34233 } && test -s conftest.$ac_objext; then
34234 ac_header_compiler=yes
34235 else
34236 echo "$as_me: failed program was:" >&5
34237 sed 's/^/| /' conftest.$ac_ext >&5
34239 ac_header_compiler=no
34242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34244 echo "${ECHO_T}$ac_header_compiler" >&6; }
34246 # Is the header present?
34247 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34248 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34249 cat >conftest.$ac_ext <<_ACEOF
34250 /* confdefs.h. */
34251 _ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h. */
34255 #include <mISDNuser/suppserv.h>
34256 _ACEOF
34257 if { (ac_try="$ac_cpp conftest.$ac_ext"
34258 case "(($ac_try" in
34259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34260 *) ac_try_echo=$ac_try;;
34261 esac
34262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34264 ac_status=$?
34265 grep -v '^ *+' conftest.er1 >conftest.err
34266 rm -f conftest.er1
34267 cat conftest.err >&5
34268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34269 (exit $ac_status); } >/dev/null && {
34270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34271 test ! -s conftest.err
34272 }; then
34273 ac_header_preproc=yes
34274 else
34275 echo "$as_me: failed program was:" >&5
34276 sed 's/^/| /' conftest.$ac_ext >&5
34278 ac_header_preproc=no
34281 rm -f conftest.err conftest.$ac_ext
34282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34283 echo "${ECHO_T}$ac_header_preproc" >&6; }
34285 # So? What about this header?
34286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34287 yes:no: )
34288 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34289 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34290 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34291 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34292 ac_header_preproc=yes
34294 no:yes:* )
34295 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34296 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34297 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34298 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34299 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34300 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34301 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34302 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34303 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34304 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34305 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34306 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34307 ( cat <<\_ASBOX
34308 ## ------------------------------- ##
34309 ## Report this to www.asterisk.org ##
34310 ## ------------------------------- ##
34311 _ASBOX
34312 ) | sed "s/^/$as_me: WARNING: /" >&2
34314 esac
34315 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34316 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34317 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34318 echo $ECHO_N "(cached) $ECHO_C" >&6
34319 else
34320 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34322 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34323 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34326 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34327 SUPPSERV_HEADER_FOUND=1
34328 else
34329 SUPPSERV_HEADER_FOUND=0
34333 CPPFLAGS="${saved_cppflags}"
34335 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34336 SUPPSERV_LIB=""
34337 SUPPSERV_INCLUDE=""
34338 else
34339 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34340 SUPPSERV_LIB=""
34342 PBX_SUPPSERV=1
34343 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34345 cat >>confdefs.h <<_ACEOF
34346 #define HAVE_SUPPSERV 1
34347 _ACEOF
34350 cat >>confdefs.h <<_ACEOF
34351 #define HAVE_SUPPSERV_VERSION
34352 _ACEOF
34359 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34360 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34361 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34362 saved_cppflags="${CPPFLAGS}"
34363 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34364 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34366 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34368 cat >conftest.$ac_ext <<_ACEOF
34369 /* confdefs.h. */
34370 _ACEOF
34371 cat confdefs.h >>conftest.$ac_ext
34372 cat >>conftest.$ac_ext <<_ACEOF
34373 /* end confdefs.h. */
34374 #include <mISDNuser/suppserv.h>
34376 main ()
34378 #if defined(Fac_RESULT)
34379 int foo = 0;
34380 #else
34381 int foo = bar;
34382 #endif
34386 return 0;
34388 _ACEOF
34389 rm -f conftest.$ac_objext
34390 if { (ac_try="$ac_compile"
34391 case "(($ac_try" in
34392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34393 *) ac_try_echo=$ac_try;;
34394 esac
34395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34396 (eval "$ac_compile") 2>conftest.er1
34397 ac_status=$?
34398 grep -v '^ *+' conftest.er1 >conftest.err
34399 rm -f conftest.er1
34400 cat conftest.err >&5
34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402 (exit $ac_status); } && {
34403 test -z "$ac_c_werror_flag" ||
34404 test ! -s conftest.err
34405 } && test -s conftest.$ac_objext; then
34406 { echo "$as_me:$LINENO: result: yes" >&5
34407 echo "${ECHO_T}yes" >&6; }
34408 PBX_MISDN_FAC_RESULT=1
34410 cat >>confdefs.h <<\_ACEOF
34411 #define HAVE_MISDN_FAC_RESULT 1
34412 _ACEOF
34415 cat >>confdefs.h <<\_ACEOF
34416 #define HAVE_MISDN_FAC_RESULT_VERSION
34417 _ACEOF
34420 else
34421 echo "$as_me: failed program was:" >&5
34422 sed 's/^/| /' conftest.$ac_ext >&5
34424 { echo "$as_me:$LINENO: result: no" >&5
34425 echo "${ECHO_T}no" >&6; }
34429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34430 CPPFLAGS="${saved_cppflags}"
34435 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34436 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
34437 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34438 saved_cppflags="${CPPFLAGS}"
34439 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
34440 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
34442 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
34444 cat >conftest.$ac_ext <<_ACEOF
34445 /* confdefs.h. */
34446 _ACEOF
34447 cat confdefs.h >>conftest.$ac_ext
34448 cat >>conftest.$ac_ext <<_ACEOF
34449 /* end confdefs.h. */
34450 #include <mISDNuser/suppserv.h>
34452 main ()
34454 #if defined(Fac_ERROR)
34455 int foo = 0;
34456 #else
34457 int foo = bar;
34458 #endif
34462 return 0;
34464 _ACEOF
34465 rm -f conftest.$ac_objext
34466 if { (ac_try="$ac_compile"
34467 case "(($ac_try" in
34468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34469 *) ac_try_echo=$ac_try;;
34470 esac
34471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34472 (eval "$ac_compile") 2>conftest.er1
34473 ac_status=$?
34474 grep -v '^ *+' conftest.er1 >conftest.err
34475 rm -f conftest.er1
34476 cat conftest.err >&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } && {
34479 test -z "$ac_c_werror_flag" ||
34480 test ! -s conftest.err
34481 } && test -s conftest.$ac_objext; then
34482 { echo "$as_me:$LINENO: result: yes" >&5
34483 echo "${ECHO_T}yes" >&6; }
34484 PBX_MISDN_FAC_ERROR=1
34486 cat >>confdefs.h <<\_ACEOF
34487 #define HAVE_MISDN_FAC_ERROR 1
34488 _ACEOF
34491 cat >>confdefs.h <<\_ACEOF
34492 #define HAVE_MISDN_FAC_ERROR_VERSION
34493 _ACEOF
34496 else
34497 echo "$as_me: failed program was:" >&5
34498 sed 's/^/| /' conftest.$ac_ext >&5
34500 { echo "$as_me:$LINENO: result: no" >&5
34501 echo "${ECHO_T}no" >&6; }
34505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34506 CPPFLAGS="${saved_cppflags}"
34510 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34511 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34512 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34513 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34514 echo $ECHO_N "(cached) $ECHO_C" >&6
34516 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34517 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34518 else
34519 # Is the header compilable?
34520 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
34521 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
34522 cat >conftest.$ac_ext <<_ACEOF
34523 /* confdefs.h. */
34524 _ACEOF
34525 cat confdefs.h >>conftest.$ac_ext
34526 cat >>conftest.$ac_ext <<_ACEOF
34527 /* end confdefs.h. */
34528 $ac_includes_default
34529 #include <linux/mISDNdsp.h>
34530 _ACEOF
34531 rm -f conftest.$ac_objext
34532 if { (ac_try="$ac_compile"
34533 case "(($ac_try" in
34534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34535 *) ac_try_echo=$ac_try;;
34536 esac
34537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34538 (eval "$ac_compile") 2>conftest.er1
34539 ac_status=$?
34540 grep -v '^ *+' conftest.er1 >conftest.err
34541 rm -f conftest.er1
34542 cat conftest.err >&5
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); } && {
34545 test -z "$ac_c_werror_flag" ||
34546 test ! -s conftest.err
34547 } && test -s conftest.$ac_objext; then
34548 ac_header_compiler=yes
34549 else
34550 echo "$as_me: failed program was:" >&5
34551 sed 's/^/| /' conftest.$ac_ext >&5
34553 ac_header_compiler=no
34556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34558 echo "${ECHO_T}$ac_header_compiler" >&6; }
34560 # Is the header present?
34561 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
34562 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
34563 cat >conftest.$ac_ext <<_ACEOF
34564 /* confdefs.h. */
34565 _ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h. */
34569 #include <linux/mISDNdsp.h>
34570 _ACEOF
34571 if { (ac_try="$ac_cpp conftest.$ac_ext"
34572 case "(($ac_try" in
34573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574 *) ac_try_echo=$ac_try;;
34575 esac
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34578 ac_status=$?
34579 grep -v '^ *+' conftest.er1 >conftest.err
34580 rm -f conftest.er1
34581 cat conftest.err >&5
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } >/dev/null && {
34584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34585 test ! -s conftest.err
34586 }; then
34587 ac_header_preproc=yes
34588 else
34589 echo "$as_me: failed program was:" >&5
34590 sed 's/^/| /' conftest.$ac_ext >&5
34592 ac_header_preproc=no
34595 rm -f conftest.err conftest.$ac_ext
34596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34597 echo "${ECHO_T}$ac_header_preproc" >&6; }
34599 # So? What about this header?
34600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34601 yes:no: )
34602 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
34603 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34604 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
34605 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
34606 ac_header_preproc=yes
34608 no:yes:* )
34609 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
34610 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
34611 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
34612 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
34613 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
34614 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
34615 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
34616 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
34617 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
34618 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
34619 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
34620 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
34621 ( cat <<\_ASBOX
34622 ## ------------------------------- ##
34623 ## Report this to www.asterisk.org ##
34624 ## ------------------------------- ##
34625 _ASBOX
34626 ) | sed "s/^/$as_me: WARNING: /" >&2
34628 esac
34629 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34630 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34631 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34632 echo $ECHO_N "(cached) $ECHO_C" >&6
34633 else
34634 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
34636 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34637 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34640 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
34642 cat >>confdefs.h <<_ACEOF
34643 #define MISDN_1_2 1
34644 _ACEOF
34652 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
34653 pbxlibdir=""
34654 # if --with-NBS=DIR has been specified, use it.
34655 if test "x${NBS_DIR}" != "x"; then
34656 if test -d ${NBS_DIR}/lib; then
34657 pbxlibdir="-L${NBS_DIR}/lib"
34658 else
34659 pbxlibdir="-L${NBS_DIR}"
34662 pbxfuncname="nbs_connect"
34663 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34664 AST_NBS_FOUND=yes
34665 else
34666 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
34667 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
34668 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
34669 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34670 echo $ECHO_N "(cached) $ECHO_C" >&6
34671 else
34672 ac_check_lib_save_LIBS=$LIBS
34673 LIBS="-lnbs ${pbxlibdir} $LIBS"
34674 cat >conftest.$ac_ext <<_ACEOF
34675 /* confdefs.h. */
34676 _ACEOF
34677 cat confdefs.h >>conftest.$ac_ext
34678 cat >>conftest.$ac_ext <<_ACEOF
34679 /* end confdefs.h. */
34681 /* Override any GCC internal prototype to avoid an error.
34682 Use char because int might match the return type of a GCC
34683 builtin and then its argument prototype would still apply. */
34684 #ifdef __cplusplus
34685 extern "C"
34686 #endif
34687 char ${pbxfuncname} ();
34689 main ()
34691 return ${pbxfuncname} ();
34693 return 0;
34695 _ACEOF
34696 rm -f conftest.$ac_objext conftest$ac_exeext
34697 if { (ac_try="$ac_link"
34698 case "(($ac_try" in
34699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34700 *) ac_try_echo=$ac_try;;
34701 esac
34702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34703 (eval "$ac_link") 2>conftest.er1
34704 ac_status=$?
34705 grep -v '^ *+' conftest.er1 >conftest.err
34706 rm -f conftest.er1
34707 cat conftest.err >&5
34708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709 (exit $ac_status); } && {
34710 test -z "$ac_c_werror_flag" ||
34711 test ! -s conftest.err
34712 } && test -s conftest$ac_exeext &&
34713 $as_test_x conftest$ac_exeext; then
34714 eval "$as_ac_Lib=yes"
34715 else
34716 echo "$as_me: failed program was:" >&5
34717 sed 's/^/| /' conftest.$ac_ext >&5
34719 eval "$as_ac_Lib=no"
34722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34723 conftest$ac_exeext conftest.$ac_ext
34724 LIBS=$ac_check_lib_save_LIBS
34726 ac_res=`eval echo '${'$as_ac_Lib'}'`
34727 { echo "$as_me:$LINENO: result: $ac_res" >&5
34728 echo "${ECHO_T}$ac_res" >&6; }
34729 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34730 AST_NBS_FOUND=yes
34731 else
34732 AST_NBS_FOUND=no
34737 # now check for the header.
34738 if test "${AST_NBS_FOUND}" = "yes"; then
34739 NBS_LIB="${pbxlibdir} -lnbs "
34740 # if --with-NBS=DIR has been specified, use it.
34741 if test "x${NBS_DIR}" != "x"; then
34742 NBS_INCLUDE="-I${NBS_DIR}/include"
34744 NBS_INCLUDE="${NBS_INCLUDE} "
34745 if test "xnbs.h" = "x" ; then # no header, assume found
34746 NBS_HEADER_FOUND="1"
34747 else # check for the header
34748 saved_cppflags="${CPPFLAGS}"
34749 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE} "
34750 if test "${ac_cv_header_nbs_h+set}" = set; then
34751 { echo "$as_me:$LINENO: checking for nbs.h" >&5
34752 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
34753 if test "${ac_cv_header_nbs_h+set}" = set; then
34754 echo $ECHO_N "(cached) $ECHO_C" >&6
34756 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
34757 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
34758 else
34759 # Is the header compilable?
34760 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
34761 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
34762 cat >conftest.$ac_ext <<_ACEOF
34763 /* confdefs.h. */
34764 _ACEOF
34765 cat confdefs.h >>conftest.$ac_ext
34766 cat >>conftest.$ac_ext <<_ACEOF
34767 /* end confdefs.h. */
34768 $ac_includes_default
34769 #include <nbs.h>
34770 _ACEOF
34771 rm -f conftest.$ac_objext
34772 if { (ac_try="$ac_compile"
34773 case "(($ac_try" in
34774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775 *) ac_try_echo=$ac_try;;
34776 esac
34777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778 (eval "$ac_compile") 2>conftest.er1
34779 ac_status=$?
34780 grep -v '^ *+' conftest.er1 >conftest.err
34781 rm -f conftest.er1
34782 cat conftest.err >&5
34783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784 (exit $ac_status); } && {
34785 test -z "$ac_c_werror_flag" ||
34786 test ! -s conftest.err
34787 } && test -s conftest.$ac_objext; then
34788 ac_header_compiler=yes
34789 else
34790 echo "$as_me: failed program was:" >&5
34791 sed 's/^/| /' conftest.$ac_ext >&5
34793 ac_header_compiler=no
34796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34798 echo "${ECHO_T}$ac_header_compiler" >&6; }
34800 # Is the header present?
34801 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
34802 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
34803 cat >conftest.$ac_ext <<_ACEOF
34804 /* confdefs.h. */
34805 _ACEOF
34806 cat confdefs.h >>conftest.$ac_ext
34807 cat >>conftest.$ac_ext <<_ACEOF
34808 /* end confdefs.h. */
34809 #include <nbs.h>
34810 _ACEOF
34811 if { (ac_try="$ac_cpp conftest.$ac_ext"
34812 case "(($ac_try" in
34813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34814 *) ac_try_echo=$ac_try;;
34815 esac
34816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34818 ac_status=$?
34819 grep -v '^ *+' conftest.er1 >conftest.err
34820 rm -f conftest.er1
34821 cat conftest.err >&5
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); } >/dev/null && {
34824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34825 test ! -s conftest.err
34826 }; then
34827 ac_header_preproc=yes
34828 else
34829 echo "$as_me: failed program was:" >&5
34830 sed 's/^/| /' conftest.$ac_ext >&5
34832 ac_header_preproc=no
34835 rm -f conftest.err conftest.$ac_ext
34836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34837 echo "${ECHO_T}$ac_header_preproc" >&6; }
34839 # So? What about this header?
34840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34841 yes:no: )
34842 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34843 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34844 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
34845 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
34846 ac_header_preproc=yes
34848 no:yes:* )
34849 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
34850 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
34851 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
34852 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
34853 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
34854 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
34855 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
34856 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
34857 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
34858 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
34859 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
34860 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
34861 ( cat <<\_ASBOX
34862 ## ------------------------------- ##
34863 ## Report this to www.asterisk.org ##
34864 ## ------------------------------- ##
34865 _ASBOX
34866 ) | sed "s/^/$as_me: WARNING: /" >&2
34868 esac
34869 { echo "$as_me:$LINENO: checking for nbs.h" >&5
34870 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
34871 if test "${ac_cv_header_nbs_h+set}" = set; then
34872 echo $ECHO_N "(cached) $ECHO_C" >&6
34873 else
34874 ac_cv_header_nbs_h=$ac_header_preproc
34876 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
34877 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
34880 if test $ac_cv_header_nbs_h = yes; then
34881 NBS_HEADER_FOUND=1
34882 else
34883 NBS_HEADER_FOUND=0
34887 CPPFLAGS="${saved_cppflags}"
34889 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
34890 NBS_LIB=""
34891 NBS_INCLUDE=""
34892 else
34893 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34894 NBS_LIB=""
34896 PBX_NBS=1
34897 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34899 cat >>confdefs.h <<_ACEOF
34900 #define HAVE_NBS 1
34901 _ACEOF
34904 cat >>confdefs.h <<_ACEOF
34905 #define HAVE_NBS_VERSION
34906 _ACEOF
34914 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
34915 pbxlibdir=""
34916 # if --with-NCURSES=DIR has been specified, use it.
34917 if test "x${NCURSES_DIR}" != "x"; then
34918 if test -d ${NCURSES_DIR}/lib; then
34919 pbxlibdir="-L${NCURSES_DIR}/lib"
34920 else
34921 pbxlibdir="-L${NCURSES_DIR}"
34924 pbxfuncname="initscr"
34925 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34926 AST_NCURSES_FOUND=yes
34927 else
34928 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
34929 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
34930 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
34931 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34932 echo $ECHO_N "(cached) $ECHO_C" >&6
34933 else
34934 ac_check_lib_save_LIBS=$LIBS
34935 LIBS="-lncurses ${pbxlibdir} $LIBS"
34936 cat >conftest.$ac_ext <<_ACEOF
34937 /* confdefs.h. */
34938 _ACEOF
34939 cat confdefs.h >>conftest.$ac_ext
34940 cat >>conftest.$ac_ext <<_ACEOF
34941 /* end confdefs.h. */
34943 /* Override any GCC internal prototype to avoid an error.
34944 Use char because int might match the return type of a GCC
34945 builtin and then its argument prototype would still apply. */
34946 #ifdef __cplusplus
34947 extern "C"
34948 #endif
34949 char ${pbxfuncname} ();
34951 main ()
34953 return ${pbxfuncname} ();
34955 return 0;
34957 _ACEOF
34958 rm -f conftest.$ac_objext conftest$ac_exeext
34959 if { (ac_try="$ac_link"
34960 case "(($ac_try" in
34961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962 *) ac_try_echo=$ac_try;;
34963 esac
34964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965 (eval "$ac_link") 2>conftest.er1
34966 ac_status=$?
34967 grep -v '^ *+' conftest.er1 >conftest.err
34968 rm -f conftest.er1
34969 cat conftest.err >&5
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); } && {
34972 test -z "$ac_c_werror_flag" ||
34973 test ! -s conftest.err
34974 } && test -s conftest$ac_exeext &&
34975 $as_test_x conftest$ac_exeext; then
34976 eval "$as_ac_Lib=yes"
34977 else
34978 echo "$as_me: failed program was:" >&5
34979 sed 's/^/| /' conftest.$ac_ext >&5
34981 eval "$as_ac_Lib=no"
34984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34985 conftest$ac_exeext conftest.$ac_ext
34986 LIBS=$ac_check_lib_save_LIBS
34988 ac_res=`eval echo '${'$as_ac_Lib'}'`
34989 { echo "$as_me:$LINENO: result: $ac_res" >&5
34990 echo "${ECHO_T}$ac_res" >&6; }
34991 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34992 AST_NCURSES_FOUND=yes
34993 else
34994 AST_NCURSES_FOUND=no
34999 # now check for the header.
35000 if test "${AST_NCURSES_FOUND}" = "yes"; then
35001 NCURSES_LIB="${pbxlibdir} -lncurses "
35002 # if --with-NCURSES=DIR has been specified, use it.
35003 if test "x${NCURSES_DIR}" != "x"; then
35004 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35006 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35007 if test "xcurses.h" = "x" ; then # no header, assume found
35008 NCURSES_HEADER_FOUND="1"
35009 else # check for the header
35010 saved_cppflags="${CPPFLAGS}"
35011 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE} "
35012 if test "${ac_cv_header_curses_h+set}" = set; then
35013 { echo "$as_me:$LINENO: checking for curses.h" >&5
35014 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35015 if test "${ac_cv_header_curses_h+set}" = set; then
35016 echo $ECHO_N "(cached) $ECHO_C" >&6
35018 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35019 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35020 else
35021 # Is the header compilable?
35022 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35023 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35024 cat >conftest.$ac_ext <<_ACEOF
35025 /* confdefs.h. */
35026 _ACEOF
35027 cat confdefs.h >>conftest.$ac_ext
35028 cat >>conftest.$ac_ext <<_ACEOF
35029 /* end confdefs.h. */
35030 $ac_includes_default
35031 #include <curses.h>
35032 _ACEOF
35033 rm -f conftest.$ac_objext
35034 if { (ac_try="$ac_compile"
35035 case "(($ac_try" in
35036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35037 *) ac_try_echo=$ac_try;;
35038 esac
35039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35040 (eval "$ac_compile") 2>conftest.er1
35041 ac_status=$?
35042 grep -v '^ *+' conftest.er1 >conftest.err
35043 rm -f conftest.er1
35044 cat conftest.err >&5
35045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046 (exit $ac_status); } && {
35047 test -z "$ac_c_werror_flag" ||
35048 test ! -s conftest.err
35049 } && test -s conftest.$ac_objext; then
35050 ac_header_compiler=yes
35051 else
35052 echo "$as_me: failed program was:" >&5
35053 sed 's/^/| /' conftest.$ac_ext >&5
35055 ac_header_compiler=no
35058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35060 echo "${ECHO_T}$ac_header_compiler" >&6; }
35062 # Is the header present?
35063 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35064 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35065 cat >conftest.$ac_ext <<_ACEOF
35066 /* confdefs.h. */
35067 _ACEOF
35068 cat confdefs.h >>conftest.$ac_ext
35069 cat >>conftest.$ac_ext <<_ACEOF
35070 /* end confdefs.h. */
35071 #include <curses.h>
35072 _ACEOF
35073 if { (ac_try="$ac_cpp conftest.$ac_ext"
35074 case "(($ac_try" in
35075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35076 *) ac_try_echo=$ac_try;;
35077 esac
35078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35080 ac_status=$?
35081 grep -v '^ *+' conftest.er1 >conftest.err
35082 rm -f conftest.er1
35083 cat conftest.err >&5
35084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 (exit $ac_status); } >/dev/null && {
35086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35087 test ! -s conftest.err
35088 }; then
35089 ac_header_preproc=yes
35090 else
35091 echo "$as_me: failed program was:" >&5
35092 sed 's/^/| /' conftest.$ac_ext >&5
35094 ac_header_preproc=no
35097 rm -f conftest.err conftest.$ac_ext
35098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35099 echo "${ECHO_T}$ac_header_preproc" >&6; }
35101 # So? What about this header?
35102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35103 yes:no: )
35104 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35105 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35106 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35107 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35108 ac_header_preproc=yes
35110 no:yes:* )
35111 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35112 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35113 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35114 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35115 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35116 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35117 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35118 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35119 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35120 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35121 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35122 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35123 ( cat <<\_ASBOX
35124 ## ------------------------------- ##
35125 ## Report this to www.asterisk.org ##
35126 ## ------------------------------- ##
35127 _ASBOX
35128 ) | sed "s/^/$as_me: WARNING: /" >&2
35130 esac
35131 { echo "$as_me:$LINENO: checking for curses.h" >&5
35132 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35133 if test "${ac_cv_header_curses_h+set}" = set; then
35134 echo $ECHO_N "(cached) $ECHO_C" >&6
35135 else
35136 ac_cv_header_curses_h=$ac_header_preproc
35138 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35139 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35142 if test $ac_cv_header_curses_h = yes; then
35143 NCURSES_HEADER_FOUND=1
35144 else
35145 NCURSES_HEADER_FOUND=0
35149 CPPFLAGS="${saved_cppflags}"
35151 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35152 NCURSES_LIB=""
35153 NCURSES_INCLUDE=""
35154 else
35155 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35156 NCURSES_LIB=""
35158 PBX_NCURSES=1
35159 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35161 cat >>confdefs.h <<_ACEOF
35162 #define HAVE_NCURSES 1
35163 _ACEOF
35166 cat >>confdefs.h <<_ACEOF
35167 #define HAVE_NCURSES_VERSION
35168 _ACEOF
35176 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35177 PBX_NETSNMP=0
35178 if test -n "$ac_tool_prefix"; then
35179 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35180 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35183 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35184 echo $ECHO_N "(cached) $ECHO_C" >&6
35185 else
35186 if test -n "$CONFIG_NETSNMP"; then
35187 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35188 else
35189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35190 for as_dir in $PATH
35192 IFS=$as_save_IFS
35193 test -z "$as_dir" && as_dir=.
35194 for ac_exec_ext in '' $ac_executable_extensions; do
35195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35196 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35198 break 2
35200 done
35201 done
35202 IFS=$as_save_IFS
35206 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35207 if test -n "$CONFIG_NETSNMP"; then
35208 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35209 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35210 else
35211 { echo "$as_me:$LINENO: result: no" >&5
35212 echo "${ECHO_T}no" >&6; }
35217 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35218 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35219 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35220 set dummy net-snmp-config; ac_word=$2
35221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35223 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35224 echo $ECHO_N "(cached) $ECHO_C" >&6
35225 else
35226 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35227 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35228 else
35229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35230 for as_dir in $PATH
35232 IFS=$as_save_IFS
35233 test -z "$as_dir" && as_dir=.
35234 for ac_exec_ext in '' $ac_executable_extensions; do
35235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35236 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35238 break 2
35240 done
35241 done
35242 IFS=$as_save_IFS
35246 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35247 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35248 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35249 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35250 else
35251 { echo "$as_me:$LINENO: result: no" >&5
35252 echo "${ECHO_T}no" >&6; }
35255 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35256 CONFIG_NETSNMP="No"
35257 else
35258 case $cross_compiling:$ac_tool_warned in
35259 yes:)
35260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35261 whose name does not start with the host triplet. If you think this
35262 configuration is useful to you, please write to autoconf@gnu.org." >&5
35263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35264 whose name does not start with the host triplet. If you think this
35265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35266 ac_tool_warned=yes ;;
35267 esac
35268 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35270 else
35271 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35274 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35275 if test x"" = x ; then A=--cflags ; else A="" ; fi
35276 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35277 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35278 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35279 if test x"#include <net-snmp/net-snmp-config.h>
35280 #include <net-snmp/net-snmp-includes.h>
35281 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35282 saved_cppflags="${CPPFLAGS}"
35283 if test "x${NETSNMP_DIR}" != "x"; then
35284 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35286 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35288 saved_ldflags="${LDFLAGS}"
35289 LDFLAGS="${NETSNMP_LIB}"
35291 cat >conftest.$ac_ext <<_ACEOF
35292 /* confdefs.h. */
35293 _ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h. */
35297 #include <net-snmp/net-snmp-config.h>
35298 #include <net-snmp/net-snmp-includes.h>
35299 #include <net-snmp/agent/net-snmp-agent-includes.h>
35301 main ()
35303 int callback = snmp_register_callback(0, 0, NULL, NULL);
35306 return 0;
35308 _ACEOF
35309 rm -f conftest.$ac_objext conftest$ac_exeext
35310 if { (ac_try="$ac_link"
35311 case "(($ac_try" in
35312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35313 *) ac_try_echo=$ac_try;;
35314 esac
35315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35316 (eval "$ac_link") 2>conftest.er1
35317 ac_status=$?
35318 grep -v '^ *+' conftest.er1 >conftest.err
35319 rm -f conftest.er1
35320 cat conftest.err >&5
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); } && {
35323 test -z "$ac_c_werror_flag" ||
35324 test ! -s conftest.err
35325 } && test -s conftest$ac_exeext &&
35326 $as_test_x conftest$ac_exeext; then
35327 PBX_NETSNMP=1
35329 cat >>confdefs.h <<\_ACEOF
35330 #define HAVE_NETSNMP 1
35331 _ACEOF
35334 else
35335 echo "$as_me: failed program was:" >&5
35336 sed 's/^/| /' conftest.$ac_ext >&5
35342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35343 conftest$ac_exeext conftest.$ac_ext
35344 CPPFLAGS="${saved_cppflags}"
35345 LDFLAGS="${saved_ldflags}"
35346 else
35347 PBX_NETSNMP=1
35349 cat >>confdefs.h <<\_ACEOF
35350 #define HAVE_NETSNMP 1
35351 _ACEOF
35359 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35360 pbxlibdir=""
35361 # if --with-NEWT=DIR has been specified, use it.
35362 if test "x${NEWT_DIR}" != "x"; then
35363 if test -d ${NEWT_DIR}/lib; then
35364 pbxlibdir="-L${NEWT_DIR}/lib"
35365 else
35366 pbxlibdir="-L${NEWT_DIR}"
35369 pbxfuncname="newtBell"
35370 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35371 AST_NEWT_FOUND=yes
35372 else
35373 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35374 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35375 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35376 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35377 echo $ECHO_N "(cached) $ECHO_C" >&6
35378 else
35379 ac_check_lib_save_LIBS=$LIBS
35380 LIBS="-lnewt ${pbxlibdir} $LIBS"
35381 cat >conftest.$ac_ext <<_ACEOF
35382 /* confdefs.h. */
35383 _ACEOF
35384 cat confdefs.h >>conftest.$ac_ext
35385 cat >>conftest.$ac_ext <<_ACEOF
35386 /* end confdefs.h. */
35388 /* Override any GCC internal prototype to avoid an error.
35389 Use char because int might match the return type of a GCC
35390 builtin and then its argument prototype would still apply. */
35391 #ifdef __cplusplus
35392 extern "C"
35393 #endif
35394 char ${pbxfuncname} ();
35396 main ()
35398 return ${pbxfuncname} ();
35400 return 0;
35402 _ACEOF
35403 rm -f conftest.$ac_objext conftest$ac_exeext
35404 if { (ac_try="$ac_link"
35405 case "(($ac_try" in
35406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35407 *) ac_try_echo=$ac_try;;
35408 esac
35409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35410 (eval "$ac_link") 2>conftest.er1
35411 ac_status=$?
35412 grep -v '^ *+' conftest.er1 >conftest.err
35413 rm -f conftest.er1
35414 cat conftest.err >&5
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); } && {
35417 test -z "$ac_c_werror_flag" ||
35418 test ! -s conftest.err
35419 } && test -s conftest$ac_exeext &&
35420 $as_test_x conftest$ac_exeext; then
35421 eval "$as_ac_Lib=yes"
35422 else
35423 echo "$as_me: failed program was:" >&5
35424 sed 's/^/| /' conftest.$ac_ext >&5
35426 eval "$as_ac_Lib=no"
35429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35430 conftest$ac_exeext conftest.$ac_ext
35431 LIBS=$ac_check_lib_save_LIBS
35433 ac_res=`eval echo '${'$as_ac_Lib'}'`
35434 { echo "$as_me:$LINENO: result: $ac_res" >&5
35435 echo "${ECHO_T}$ac_res" >&6; }
35436 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35437 AST_NEWT_FOUND=yes
35438 else
35439 AST_NEWT_FOUND=no
35444 # now check for the header.
35445 if test "${AST_NEWT_FOUND}" = "yes"; then
35446 NEWT_LIB="${pbxlibdir} -lnewt "
35447 # if --with-NEWT=DIR has been specified, use it.
35448 if test "x${NEWT_DIR}" != "x"; then
35449 NEWT_INCLUDE="-I${NEWT_DIR}/include"
35451 NEWT_INCLUDE="${NEWT_INCLUDE} "
35452 if test "xnewt.h" = "x" ; then # no header, assume found
35453 NEWT_HEADER_FOUND="1"
35454 else # check for the header
35455 saved_cppflags="${CPPFLAGS}"
35456 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} "
35457 if test "${ac_cv_header_newt_h+set}" = set; then
35458 { echo "$as_me:$LINENO: checking for newt.h" >&5
35459 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35460 if test "${ac_cv_header_newt_h+set}" = set; then
35461 echo $ECHO_N "(cached) $ECHO_C" >&6
35463 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35464 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35465 else
35466 # Is the header compilable?
35467 { echo "$as_me:$LINENO: checking newt.h usability" >&5
35468 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
35469 cat >conftest.$ac_ext <<_ACEOF
35470 /* confdefs.h. */
35471 _ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h. */
35475 $ac_includes_default
35476 #include <newt.h>
35477 _ACEOF
35478 rm -f conftest.$ac_objext
35479 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
35495 ac_header_compiler=yes
35496 else
35497 echo "$as_me: failed program was:" >&5
35498 sed 's/^/| /' conftest.$ac_ext >&5
35500 ac_header_compiler=no
35503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35505 echo "${ECHO_T}$ac_header_compiler" >&6; }
35507 # Is the header present?
35508 { echo "$as_me:$LINENO: checking newt.h presence" >&5
35509 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
35510 cat >conftest.$ac_ext <<_ACEOF
35511 /* confdefs.h. */
35512 _ACEOF
35513 cat confdefs.h >>conftest.$ac_ext
35514 cat >>conftest.$ac_ext <<_ACEOF
35515 /* end confdefs.h. */
35516 #include <newt.h>
35517 _ACEOF
35518 if { (ac_try="$ac_cpp conftest.$ac_ext"
35519 case "(($ac_try" in
35520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35521 *) ac_try_echo=$ac_try;;
35522 esac
35523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35525 ac_status=$?
35526 grep -v '^ *+' conftest.er1 >conftest.err
35527 rm -f conftest.er1
35528 cat conftest.err >&5
35529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35530 (exit $ac_status); } >/dev/null && {
35531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35532 test ! -s conftest.err
35533 }; then
35534 ac_header_preproc=yes
35535 else
35536 echo "$as_me: failed program was:" >&5
35537 sed 's/^/| /' conftest.$ac_ext >&5
35539 ac_header_preproc=no
35542 rm -f conftest.err conftest.$ac_ext
35543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35544 echo "${ECHO_T}$ac_header_preproc" >&6; }
35546 # So? What about this header?
35547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35548 yes:no: )
35549 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
35550 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35551 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
35552 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
35553 ac_header_preproc=yes
35555 no:yes:* )
35556 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
35557 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
35558 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
35559 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
35560 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
35561 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
35562 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
35563 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
35564 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
35565 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
35566 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
35567 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
35568 ( cat <<\_ASBOX
35569 ## ------------------------------- ##
35570 ## Report this to www.asterisk.org ##
35571 ## ------------------------------- ##
35572 _ASBOX
35573 ) | sed "s/^/$as_me: WARNING: /" >&2
35575 esac
35576 { echo "$as_me:$LINENO: checking for newt.h" >&5
35577 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35578 if test "${ac_cv_header_newt_h+set}" = set; then
35579 echo $ECHO_N "(cached) $ECHO_C" >&6
35580 else
35581 ac_cv_header_newt_h=$ac_header_preproc
35583 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35584 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35587 if test $ac_cv_header_newt_h = yes; then
35588 NEWT_HEADER_FOUND=1
35589 else
35590 NEWT_HEADER_FOUND=0
35594 CPPFLAGS="${saved_cppflags}"
35596 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
35597 NEWT_LIB=""
35598 NEWT_INCLUDE=""
35599 else
35600 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35601 NEWT_LIB=""
35603 PBX_NEWT=1
35604 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35606 cat >>confdefs.h <<_ACEOF
35607 #define HAVE_NEWT 1
35608 _ACEOF
35611 cat >>confdefs.h <<_ACEOF
35612 #define HAVE_NEWT_VERSION
35613 _ACEOF
35621 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
35622 pbxlibdir=""
35623 # if --with-UNIXODBC=DIR has been specified, use it.
35624 if test "x${UNIXODBC_DIR}" != "x"; then
35625 if test -d ${UNIXODBC_DIR}/lib; then
35626 pbxlibdir="-L${UNIXODBC_DIR}/lib"
35627 else
35628 pbxlibdir="-L${UNIXODBC_DIR}"
35631 pbxfuncname="SQLConnect"
35632 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35633 AST_UNIXODBC_FOUND=yes
35634 else
35635 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
35636 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
35637 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
35638 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35639 echo $ECHO_N "(cached) $ECHO_C" >&6
35640 else
35641 ac_check_lib_save_LIBS=$LIBS
35642 LIBS="-lodbc ${pbxlibdir} $LIBS"
35643 cat >conftest.$ac_ext <<_ACEOF
35644 /* confdefs.h. */
35645 _ACEOF
35646 cat confdefs.h >>conftest.$ac_ext
35647 cat >>conftest.$ac_ext <<_ACEOF
35648 /* end confdefs.h. */
35650 /* Override any GCC internal prototype to avoid an error.
35651 Use char because int might match the return type of a GCC
35652 builtin and then its argument prototype would still apply. */
35653 #ifdef __cplusplus
35654 extern "C"
35655 #endif
35656 char ${pbxfuncname} ();
35658 main ()
35660 return ${pbxfuncname} ();
35662 return 0;
35664 _ACEOF
35665 rm -f conftest.$ac_objext conftest$ac_exeext
35666 if { (ac_try="$ac_link"
35667 case "(($ac_try" in
35668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35669 *) ac_try_echo=$ac_try;;
35670 esac
35671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35672 (eval "$ac_link") 2>conftest.er1
35673 ac_status=$?
35674 grep -v '^ *+' conftest.er1 >conftest.err
35675 rm -f conftest.er1
35676 cat conftest.err >&5
35677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678 (exit $ac_status); } && {
35679 test -z "$ac_c_werror_flag" ||
35680 test ! -s conftest.err
35681 } && test -s conftest$ac_exeext &&
35682 $as_test_x conftest$ac_exeext; then
35683 eval "$as_ac_Lib=yes"
35684 else
35685 echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35688 eval "$as_ac_Lib=no"
35691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35692 conftest$ac_exeext conftest.$ac_ext
35693 LIBS=$ac_check_lib_save_LIBS
35695 ac_res=`eval echo '${'$as_ac_Lib'}'`
35696 { echo "$as_me:$LINENO: result: $ac_res" >&5
35697 echo "${ECHO_T}$ac_res" >&6; }
35698 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35699 AST_UNIXODBC_FOUND=yes
35700 else
35701 AST_UNIXODBC_FOUND=no
35706 # now check for the header.
35707 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
35708 UNIXODBC_LIB="${pbxlibdir} -lodbc "
35709 # if --with-UNIXODBC=DIR has been specified, use it.
35710 if test "x${UNIXODBC_DIR}" != "x"; then
35711 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
35713 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
35714 if test "xsql.h" = "x" ; then # no header, assume found
35715 UNIXODBC_HEADER_FOUND="1"
35716 else # check for the header
35717 saved_cppflags="${CPPFLAGS}"
35718 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE} "
35719 if test "${ac_cv_header_sql_h+set}" = set; then
35720 { echo "$as_me:$LINENO: checking for sql.h" >&5
35721 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35722 if test "${ac_cv_header_sql_h+set}" = set; then
35723 echo $ECHO_N "(cached) $ECHO_C" >&6
35725 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35726 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35727 else
35728 # Is the header compilable?
35729 { echo "$as_me:$LINENO: checking sql.h usability" >&5
35730 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
35731 cat >conftest.$ac_ext <<_ACEOF
35732 /* confdefs.h. */
35733 _ACEOF
35734 cat confdefs.h >>conftest.$ac_ext
35735 cat >>conftest.$ac_ext <<_ACEOF
35736 /* end confdefs.h. */
35737 $ac_includes_default
35738 #include <sql.h>
35739 _ACEOF
35740 rm -f conftest.$ac_objext
35741 if { (ac_try="$ac_compile"
35742 case "(($ac_try" in
35743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35744 *) ac_try_echo=$ac_try;;
35745 esac
35746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35747 (eval "$ac_compile") 2>conftest.er1
35748 ac_status=$?
35749 grep -v '^ *+' conftest.er1 >conftest.err
35750 rm -f conftest.er1
35751 cat conftest.err >&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } && {
35754 test -z "$ac_c_werror_flag" ||
35755 test ! -s conftest.err
35756 } && test -s conftest.$ac_objext; then
35757 ac_header_compiler=yes
35758 else
35759 echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35762 ac_header_compiler=no
35765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35767 echo "${ECHO_T}$ac_header_compiler" >&6; }
35769 # Is the header present?
35770 { echo "$as_me:$LINENO: checking sql.h presence" >&5
35771 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
35772 cat >conftest.$ac_ext <<_ACEOF
35773 /* confdefs.h. */
35774 _ACEOF
35775 cat confdefs.h >>conftest.$ac_ext
35776 cat >>conftest.$ac_ext <<_ACEOF
35777 /* end confdefs.h. */
35778 #include <sql.h>
35779 _ACEOF
35780 if { (ac_try="$ac_cpp conftest.$ac_ext"
35781 case "(($ac_try" in
35782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35783 *) ac_try_echo=$ac_try;;
35784 esac
35785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35787 ac_status=$?
35788 grep -v '^ *+' conftest.er1 >conftest.err
35789 rm -f conftest.er1
35790 cat conftest.err >&5
35791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35792 (exit $ac_status); } >/dev/null && {
35793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35794 test ! -s conftest.err
35795 }; then
35796 ac_header_preproc=yes
35797 else
35798 echo "$as_me: failed program was:" >&5
35799 sed 's/^/| /' conftest.$ac_ext >&5
35801 ac_header_preproc=no
35804 rm -f conftest.err conftest.$ac_ext
35805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35806 echo "${ECHO_T}$ac_header_preproc" >&6; }
35808 # So? What about this header?
35809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35810 yes:no: )
35811 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
35812 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35813 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
35814 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
35815 ac_header_preproc=yes
35817 no:yes:* )
35818 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
35819 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
35820 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
35821 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
35822 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
35823 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
35824 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
35825 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
35826 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
35827 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
35828 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
35829 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
35830 ( cat <<\_ASBOX
35831 ## ------------------------------- ##
35832 ## Report this to www.asterisk.org ##
35833 ## ------------------------------- ##
35834 _ASBOX
35835 ) | sed "s/^/$as_me: WARNING: /" >&2
35837 esac
35838 { echo "$as_me:$LINENO: checking for sql.h" >&5
35839 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35840 if test "${ac_cv_header_sql_h+set}" = set; then
35841 echo $ECHO_N "(cached) $ECHO_C" >&6
35842 else
35843 ac_cv_header_sql_h=$ac_header_preproc
35845 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35846 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35849 if test $ac_cv_header_sql_h = yes; then
35850 UNIXODBC_HEADER_FOUND=1
35851 else
35852 UNIXODBC_HEADER_FOUND=0
35856 CPPFLAGS="${saved_cppflags}"
35858 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
35859 UNIXODBC_LIB=""
35860 UNIXODBC_INCLUDE=""
35861 else
35862 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35863 UNIXODBC_LIB=""
35865 PBX_UNIXODBC=1
35866 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35868 cat >>confdefs.h <<_ACEOF
35869 #define HAVE_UNIXODBC 1
35870 _ACEOF
35873 cat >>confdefs.h <<_ACEOF
35874 #define HAVE_UNIXODBC_VERSION
35875 _ACEOF
35883 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
35884 pbxlibdir=""
35885 # if --with-OGG=DIR has been specified, use it.
35886 if test "x${OGG_DIR}" != "x"; then
35887 if test -d ${OGG_DIR}/lib; then
35888 pbxlibdir="-L${OGG_DIR}/lib"
35889 else
35890 pbxlibdir="-L${OGG_DIR}"
35893 pbxfuncname="ogg_sync_init"
35894 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35895 AST_OGG_FOUND=yes
35896 else
35897 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
35898 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
35899 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
35900 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35901 echo $ECHO_N "(cached) $ECHO_C" >&6
35902 else
35903 ac_check_lib_save_LIBS=$LIBS
35904 LIBS="-logg ${pbxlibdir} $LIBS"
35905 cat >conftest.$ac_ext <<_ACEOF
35906 /* confdefs.h. */
35907 _ACEOF
35908 cat confdefs.h >>conftest.$ac_ext
35909 cat >>conftest.$ac_ext <<_ACEOF
35910 /* end confdefs.h. */
35912 /* Override any GCC internal prototype to avoid an error.
35913 Use char because int might match the return type of a GCC
35914 builtin and then its argument prototype would still apply. */
35915 #ifdef __cplusplus
35916 extern "C"
35917 #endif
35918 char ${pbxfuncname} ();
35920 main ()
35922 return ${pbxfuncname} ();
35924 return 0;
35926 _ACEOF
35927 rm -f conftest.$ac_objext conftest$ac_exeext
35928 if { (ac_try="$ac_link"
35929 case "(($ac_try" in
35930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35931 *) ac_try_echo=$ac_try;;
35932 esac
35933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35934 (eval "$ac_link") 2>conftest.er1
35935 ac_status=$?
35936 grep -v '^ *+' conftest.er1 >conftest.err
35937 rm -f conftest.er1
35938 cat conftest.err >&5
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); } && {
35941 test -z "$ac_c_werror_flag" ||
35942 test ! -s conftest.err
35943 } && test -s conftest$ac_exeext &&
35944 $as_test_x conftest$ac_exeext; then
35945 eval "$as_ac_Lib=yes"
35946 else
35947 echo "$as_me: failed program was:" >&5
35948 sed 's/^/| /' conftest.$ac_ext >&5
35950 eval "$as_ac_Lib=no"
35953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35954 conftest$ac_exeext conftest.$ac_ext
35955 LIBS=$ac_check_lib_save_LIBS
35957 ac_res=`eval echo '${'$as_ac_Lib'}'`
35958 { echo "$as_me:$LINENO: result: $ac_res" >&5
35959 echo "${ECHO_T}$ac_res" >&6; }
35960 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35961 AST_OGG_FOUND=yes
35962 else
35963 AST_OGG_FOUND=no
35968 # now check for the header.
35969 if test "${AST_OGG_FOUND}" = "yes"; then
35970 OGG_LIB="${pbxlibdir} -logg "
35971 # if --with-OGG=DIR has been specified, use it.
35972 if test "x${OGG_DIR}" != "x"; then
35973 OGG_INCLUDE="-I${OGG_DIR}/include"
35975 OGG_INCLUDE="${OGG_INCLUDE} "
35976 if test "x" = "x" ; then # no header, assume found
35977 OGG_HEADER_FOUND="1"
35978 else # check for the header
35979 saved_cppflags="${CPPFLAGS}"
35980 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE} "
35981 if test "${ac_cv_header_+set}" = set; then
35982 { echo "$as_me:$LINENO: checking for " >&5
35983 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
35984 if test "${ac_cv_header_+set}" = set; then
35985 echo $ECHO_N "(cached) $ECHO_C" >&6
35987 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
35988 echo "${ECHO_T}$ac_cv_header_" >&6; }
35989 else
35990 # Is the header compilable?
35991 { echo "$as_me:$LINENO: checking usability" >&5
35992 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
35993 cat >conftest.$ac_ext <<_ACEOF
35994 /* confdefs.h. */
35995 _ACEOF
35996 cat confdefs.h >>conftest.$ac_ext
35997 cat >>conftest.$ac_ext <<_ACEOF
35998 /* end confdefs.h. */
35999 $ac_includes_default
36000 #include <>
36001 _ACEOF
36002 rm -f conftest.$ac_objext
36003 if { (ac_try="$ac_compile"
36004 case "(($ac_try" in
36005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36006 *) ac_try_echo=$ac_try;;
36007 esac
36008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36009 (eval "$ac_compile") 2>conftest.er1
36010 ac_status=$?
36011 grep -v '^ *+' conftest.er1 >conftest.err
36012 rm -f conftest.er1
36013 cat conftest.err >&5
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); } && {
36016 test -z "$ac_c_werror_flag" ||
36017 test ! -s conftest.err
36018 } && test -s conftest.$ac_objext; then
36019 ac_header_compiler=yes
36020 else
36021 echo "$as_me: failed program was:" >&5
36022 sed 's/^/| /' conftest.$ac_ext >&5
36024 ac_header_compiler=no
36027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36029 echo "${ECHO_T}$ac_header_compiler" >&6; }
36031 # Is the header present?
36032 { echo "$as_me:$LINENO: checking presence" >&5
36033 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36034 cat >conftest.$ac_ext <<_ACEOF
36035 /* confdefs.h. */
36036 _ACEOF
36037 cat confdefs.h >>conftest.$ac_ext
36038 cat >>conftest.$ac_ext <<_ACEOF
36039 /* end confdefs.h. */
36040 #include <>
36041 _ACEOF
36042 if { (ac_try="$ac_cpp conftest.$ac_ext"
36043 case "(($ac_try" in
36044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36045 *) ac_try_echo=$ac_try;;
36046 esac
36047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36049 ac_status=$?
36050 grep -v '^ *+' conftest.er1 >conftest.err
36051 rm -f conftest.er1
36052 cat conftest.err >&5
36053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054 (exit $ac_status); } >/dev/null && {
36055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36056 test ! -s conftest.err
36057 }; then
36058 ac_header_preproc=yes
36059 else
36060 echo "$as_me: failed program was:" >&5
36061 sed 's/^/| /' conftest.$ac_ext >&5
36063 ac_header_preproc=no
36066 rm -f conftest.err conftest.$ac_ext
36067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36068 echo "${ECHO_T}$ac_header_preproc" >&6; }
36070 # So? What about this header?
36071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36072 yes:no: )
36073 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36074 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36075 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36076 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36077 ac_header_preproc=yes
36079 no:yes:* )
36080 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36081 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36082 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36083 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36084 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36085 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36086 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36087 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36088 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36089 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36090 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36091 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36092 ( cat <<\_ASBOX
36093 ## ------------------------------- ##
36094 ## Report this to www.asterisk.org ##
36095 ## ------------------------------- ##
36096 _ASBOX
36097 ) | sed "s/^/$as_me: WARNING: /" >&2
36099 esac
36100 { echo "$as_me:$LINENO: checking for " >&5
36101 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36102 if test "${ac_cv_header_+set}" = set; then
36103 echo $ECHO_N "(cached) $ECHO_C" >&6
36104 else
36105 ac_cv_header_=$ac_header_preproc
36107 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36108 echo "${ECHO_T}$ac_cv_header_" >&6; }
36111 if test $ac_cv_header_ = yes; then
36112 OGG_HEADER_FOUND=1
36113 else
36114 OGG_HEADER_FOUND=0
36118 CPPFLAGS="${saved_cppflags}"
36120 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36121 OGG_LIB=""
36122 OGG_INCLUDE=""
36123 else
36124 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36125 OGG_LIB=""
36127 PBX_OGG=1
36128 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36130 cat >>confdefs.h <<_ACEOF
36131 #define HAVE_OGG 1
36132 _ACEOF
36135 cat >>confdefs.h <<_ACEOF
36136 #define HAVE_OGG_VERSION
36137 _ACEOF
36144 # Non-glibc platforms require libexecinfo for backtrace support
36146 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36147 pbxlibdir=""
36148 # if --with-BKTR=DIR has been specified, use it.
36149 if test "x${BKTR_DIR}" != "x"; then
36150 if test -d ${BKTR_DIR}/lib; then
36151 pbxlibdir="-L${BKTR_DIR}/lib"
36152 else
36153 pbxlibdir="-L${BKTR_DIR}"
36156 pbxfuncname="backtrace"
36157 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36158 AST_BKTR_FOUND=yes
36159 else
36160 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36161 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36162 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36163 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36164 echo $ECHO_N "(cached) $ECHO_C" >&6
36165 else
36166 ac_check_lib_save_LIBS=$LIBS
36167 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36168 cat >conftest.$ac_ext <<_ACEOF
36169 /* confdefs.h. */
36170 _ACEOF
36171 cat confdefs.h >>conftest.$ac_ext
36172 cat >>conftest.$ac_ext <<_ACEOF
36173 /* end confdefs.h. */
36175 /* Override any GCC internal prototype to avoid an error.
36176 Use char because int might match the return type of a GCC
36177 builtin and then its argument prototype would still apply. */
36178 #ifdef __cplusplus
36179 extern "C"
36180 #endif
36181 char ${pbxfuncname} ();
36183 main ()
36185 return ${pbxfuncname} ();
36187 return 0;
36189 _ACEOF
36190 rm -f conftest.$ac_objext conftest$ac_exeext
36191 if { (ac_try="$ac_link"
36192 case "(($ac_try" in
36193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36194 *) ac_try_echo=$ac_try;;
36195 esac
36196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36197 (eval "$ac_link") 2>conftest.er1
36198 ac_status=$?
36199 grep -v '^ *+' conftest.er1 >conftest.err
36200 rm -f conftest.er1
36201 cat conftest.err >&5
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); } && {
36204 test -z "$ac_c_werror_flag" ||
36205 test ! -s conftest.err
36206 } && test -s conftest$ac_exeext &&
36207 $as_test_x conftest$ac_exeext; then
36208 eval "$as_ac_Lib=yes"
36209 else
36210 echo "$as_me: failed program was:" >&5
36211 sed 's/^/| /' conftest.$ac_ext >&5
36213 eval "$as_ac_Lib=no"
36216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36217 conftest$ac_exeext conftest.$ac_ext
36218 LIBS=$ac_check_lib_save_LIBS
36220 ac_res=`eval echo '${'$as_ac_Lib'}'`
36221 { echo "$as_me:$LINENO: result: $ac_res" >&5
36222 echo "${ECHO_T}$ac_res" >&6; }
36223 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36224 AST_BKTR_FOUND=yes
36225 else
36226 AST_BKTR_FOUND=no
36231 # now check for the header.
36232 if test "${AST_BKTR_FOUND}" = "yes"; then
36233 BKTR_LIB="${pbxlibdir} -lexecinfo "
36234 # if --with-BKTR=DIR has been specified, use it.
36235 if test "x${BKTR_DIR}" != "x"; then
36236 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36238 BKTR_INCLUDE="${BKTR_INCLUDE} "
36239 if test "xexecinfo.h" = "x" ; then # no header, assume found
36240 BKTR_HEADER_FOUND="1"
36241 else # check for the header
36242 saved_cppflags="${CPPFLAGS}"
36243 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36244 if test "${ac_cv_header_execinfo_h+set}" = set; then
36245 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36246 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36247 if test "${ac_cv_header_execinfo_h+set}" = set; then
36248 echo $ECHO_N "(cached) $ECHO_C" >&6
36250 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36251 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36252 else
36253 # Is the header compilable?
36254 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36255 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36256 cat >conftest.$ac_ext <<_ACEOF
36257 /* confdefs.h. */
36258 _ACEOF
36259 cat confdefs.h >>conftest.$ac_ext
36260 cat >>conftest.$ac_ext <<_ACEOF
36261 /* end confdefs.h. */
36262 $ac_includes_default
36263 #include <execinfo.h>
36264 _ACEOF
36265 rm -f conftest.$ac_objext
36266 if { (ac_try="$ac_compile"
36267 case "(($ac_try" in
36268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36269 *) ac_try_echo=$ac_try;;
36270 esac
36271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36272 (eval "$ac_compile") 2>conftest.er1
36273 ac_status=$?
36274 grep -v '^ *+' conftest.er1 >conftest.err
36275 rm -f conftest.er1
36276 cat conftest.err >&5
36277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 (exit $ac_status); } && {
36279 test -z "$ac_c_werror_flag" ||
36280 test ! -s conftest.err
36281 } && test -s conftest.$ac_objext; then
36282 ac_header_compiler=yes
36283 else
36284 echo "$as_me: failed program was:" >&5
36285 sed 's/^/| /' conftest.$ac_ext >&5
36287 ac_header_compiler=no
36290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36292 echo "${ECHO_T}$ac_header_compiler" >&6; }
36294 # Is the header present?
36295 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36296 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36297 cat >conftest.$ac_ext <<_ACEOF
36298 /* confdefs.h. */
36299 _ACEOF
36300 cat confdefs.h >>conftest.$ac_ext
36301 cat >>conftest.$ac_ext <<_ACEOF
36302 /* end confdefs.h. */
36303 #include <execinfo.h>
36304 _ACEOF
36305 if { (ac_try="$ac_cpp conftest.$ac_ext"
36306 case "(($ac_try" in
36307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36308 *) ac_try_echo=$ac_try;;
36309 esac
36310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36312 ac_status=$?
36313 grep -v '^ *+' conftest.er1 >conftest.err
36314 rm -f conftest.er1
36315 cat conftest.err >&5
36316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36317 (exit $ac_status); } >/dev/null && {
36318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36319 test ! -s conftest.err
36320 }; then
36321 ac_header_preproc=yes
36322 else
36323 echo "$as_me: failed program was:" >&5
36324 sed 's/^/| /' conftest.$ac_ext >&5
36326 ac_header_preproc=no
36329 rm -f conftest.err conftest.$ac_ext
36330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36331 echo "${ECHO_T}$ac_header_preproc" >&6; }
36333 # So? What about this header?
36334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36335 yes:no: )
36336 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36337 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36338 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36339 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36340 ac_header_preproc=yes
36342 no:yes:* )
36343 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36344 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36345 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36346 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36347 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36348 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36349 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36350 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36351 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36352 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36353 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36354 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36355 ( cat <<\_ASBOX
36356 ## ------------------------------- ##
36357 ## Report this to www.asterisk.org ##
36358 ## ------------------------------- ##
36359 _ASBOX
36360 ) | sed "s/^/$as_me: WARNING: /" >&2
36362 esac
36363 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36364 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36365 if test "${ac_cv_header_execinfo_h+set}" = set; then
36366 echo $ECHO_N "(cached) $ECHO_C" >&6
36367 else
36368 ac_cv_header_execinfo_h=$ac_header_preproc
36370 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36371 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36374 if test $ac_cv_header_execinfo_h = yes; then
36375 BKTR_HEADER_FOUND=1
36376 else
36377 BKTR_HEADER_FOUND=0
36381 CPPFLAGS="${saved_cppflags}"
36383 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36384 BKTR_LIB=""
36385 BKTR_INCLUDE=""
36386 else
36387 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36388 BKTR_LIB=""
36390 PBX_BKTR=1
36391 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36393 cat >>confdefs.h <<_ACEOF
36394 #define HAVE_BKTR 1
36395 _ACEOF
36398 cat >>confdefs.h <<_ACEOF
36399 #define HAVE_BKTR_VERSION
36400 _ACEOF
36406 # Linux, however, has backtrace directly in glibc
36408 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36409 pbxlibdir=""
36410 # if --with-BKTR=DIR has been specified, use it.
36411 if test "x${BKTR_DIR}" != "x"; then
36412 if test -d ${BKTR_DIR}/lib; then
36413 pbxlibdir="-L${BKTR_DIR}/lib"
36414 else
36415 pbxlibdir="-L${BKTR_DIR}"
36418 pbxfuncname="backtrace"
36419 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36420 AST_BKTR_FOUND=yes
36421 else
36422 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36423 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36424 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36425 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36426 echo $ECHO_N "(cached) $ECHO_C" >&6
36427 else
36428 ac_check_lib_save_LIBS=$LIBS
36429 LIBS="-lc ${pbxlibdir} $LIBS"
36430 cat >conftest.$ac_ext <<_ACEOF
36431 /* confdefs.h. */
36432 _ACEOF
36433 cat confdefs.h >>conftest.$ac_ext
36434 cat >>conftest.$ac_ext <<_ACEOF
36435 /* end confdefs.h. */
36437 /* Override any GCC internal prototype to avoid an error.
36438 Use char because int might match the return type of a GCC
36439 builtin and then its argument prototype would still apply. */
36440 #ifdef __cplusplus
36441 extern "C"
36442 #endif
36443 char ${pbxfuncname} ();
36445 main ()
36447 return ${pbxfuncname} ();
36449 return 0;
36451 _ACEOF
36452 rm -f conftest.$ac_objext conftest$ac_exeext
36453 if { (ac_try="$ac_link"
36454 case "(($ac_try" in
36455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36456 *) ac_try_echo=$ac_try;;
36457 esac
36458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36459 (eval "$ac_link") 2>conftest.er1
36460 ac_status=$?
36461 grep -v '^ *+' conftest.er1 >conftest.err
36462 rm -f conftest.er1
36463 cat conftest.err >&5
36464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465 (exit $ac_status); } && {
36466 test -z "$ac_c_werror_flag" ||
36467 test ! -s conftest.err
36468 } && test -s conftest$ac_exeext &&
36469 $as_test_x conftest$ac_exeext; then
36470 eval "$as_ac_Lib=yes"
36471 else
36472 echo "$as_me: failed program was:" >&5
36473 sed 's/^/| /' conftest.$ac_ext >&5
36475 eval "$as_ac_Lib=no"
36478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36479 conftest$ac_exeext conftest.$ac_ext
36480 LIBS=$ac_check_lib_save_LIBS
36482 ac_res=`eval echo '${'$as_ac_Lib'}'`
36483 { echo "$as_me:$LINENO: result: $ac_res" >&5
36484 echo "${ECHO_T}$ac_res" >&6; }
36485 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36486 AST_BKTR_FOUND=yes
36487 else
36488 AST_BKTR_FOUND=no
36493 # now check for the header.
36494 if test "${AST_BKTR_FOUND}" = "yes"; then
36495 BKTR_LIB="${pbxlibdir} -lc "
36496 # if --with-BKTR=DIR has been specified, use it.
36497 if test "x${BKTR_DIR}" != "x"; then
36498 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36500 BKTR_INCLUDE="${BKTR_INCLUDE} "
36501 if test "xexecinfo.h" = "x" ; then # no header, assume found
36502 BKTR_HEADER_FOUND="1"
36503 else # check for the header
36504 saved_cppflags="${CPPFLAGS}"
36505 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36506 if test "${ac_cv_header_execinfo_h+set}" = set; then
36507 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36508 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36509 if test "${ac_cv_header_execinfo_h+set}" = set; then
36510 echo $ECHO_N "(cached) $ECHO_C" >&6
36512 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36513 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36514 else
36515 # Is the header compilable?
36516 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36517 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36518 cat >conftest.$ac_ext <<_ACEOF
36519 /* confdefs.h. */
36520 _ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h. */
36524 $ac_includes_default
36525 #include <execinfo.h>
36526 _ACEOF
36527 rm -f conftest.$ac_objext
36528 if { (ac_try="$ac_compile"
36529 case "(($ac_try" in
36530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36531 *) ac_try_echo=$ac_try;;
36532 esac
36533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36534 (eval "$ac_compile") 2>conftest.er1
36535 ac_status=$?
36536 grep -v '^ *+' conftest.er1 >conftest.err
36537 rm -f conftest.er1
36538 cat conftest.err >&5
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); } && {
36541 test -z "$ac_c_werror_flag" ||
36542 test ! -s conftest.err
36543 } && test -s conftest.$ac_objext; then
36544 ac_header_compiler=yes
36545 else
36546 echo "$as_me: failed program was:" >&5
36547 sed 's/^/| /' conftest.$ac_ext >&5
36549 ac_header_compiler=no
36552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36554 echo "${ECHO_T}$ac_header_compiler" >&6; }
36556 # Is the header present?
36557 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36558 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36559 cat >conftest.$ac_ext <<_ACEOF
36560 /* confdefs.h. */
36561 _ACEOF
36562 cat confdefs.h >>conftest.$ac_ext
36563 cat >>conftest.$ac_ext <<_ACEOF
36564 /* end confdefs.h. */
36565 #include <execinfo.h>
36566 _ACEOF
36567 if { (ac_try="$ac_cpp conftest.$ac_ext"
36568 case "(($ac_try" in
36569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36570 *) ac_try_echo=$ac_try;;
36571 esac
36572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36574 ac_status=$?
36575 grep -v '^ *+' conftest.er1 >conftest.err
36576 rm -f conftest.er1
36577 cat conftest.err >&5
36578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 (exit $ac_status); } >/dev/null && {
36580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36581 test ! -s conftest.err
36582 }; then
36583 ac_header_preproc=yes
36584 else
36585 echo "$as_me: failed program was:" >&5
36586 sed 's/^/| /' conftest.$ac_ext >&5
36588 ac_header_preproc=no
36591 rm -f conftest.err conftest.$ac_ext
36592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36593 echo "${ECHO_T}$ac_header_preproc" >&6; }
36595 # So? What about this header?
36596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36597 yes:no: )
36598 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36599 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36600 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36601 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36602 ac_header_preproc=yes
36604 no:yes:* )
36605 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36606 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36607 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36608 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36609 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36610 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36611 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36612 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36613 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36614 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36615 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36616 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36617 ( cat <<\_ASBOX
36618 ## ------------------------------- ##
36619 ## Report this to www.asterisk.org ##
36620 ## ------------------------------- ##
36621 _ASBOX
36622 ) | sed "s/^/$as_me: WARNING: /" >&2
36624 esac
36625 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36626 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36627 if test "${ac_cv_header_execinfo_h+set}" = set; then
36628 echo $ECHO_N "(cached) $ECHO_C" >&6
36629 else
36630 ac_cv_header_execinfo_h=$ac_header_preproc
36632 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36633 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36636 if test $ac_cv_header_execinfo_h = yes; then
36637 BKTR_HEADER_FOUND=1
36638 else
36639 BKTR_HEADER_FOUND=0
36643 CPPFLAGS="${saved_cppflags}"
36645 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36646 BKTR_LIB=""
36647 BKTR_INCLUDE=""
36648 else
36649 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36650 BKTR_LIB=""
36652 PBX_BKTR=1
36653 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36655 cat >>confdefs.h <<_ACEOF
36656 #define HAVE_BKTR 1
36657 _ACEOF
36660 cat >>confdefs.h <<_ACEOF
36661 #define HAVE_BKTR_VERSION
36662 _ACEOF
36669 # possible places for oss definitions
36671 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
36672 pbxlibdir=""
36673 # if --with-OSS=DIR has been specified, use it.
36674 if test "x${OSS_DIR}" != "x"; then
36675 if test -d ${OSS_DIR}/lib; then
36676 pbxlibdir="-L${OSS_DIR}/lib"
36677 else
36678 pbxlibdir="-L${OSS_DIR}"
36681 pbxfuncname=""
36682 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36683 AST_OSS_FOUND=yes
36684 else
36685 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
36686 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
36687 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
36688 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36689 echo $ECHO_N "(cached) $ECHO_C" >&6
36690 else
36691 ac_check_lib_save_LIBS=$LIBS
36692 LIBS="-lossaudio ${pbxlibdir} $LIBS"
36693 cat >conftest.$ac_ext <<_ACEOF
36694 /* confdefs.h. */
36695 _ACEOF
36696 cat confdefs.h >>conftest.$ac_ext
36697 cat >>conftest.$ac_ext <<_ACEOF
36698 /* end confdefs.h. */
36700 /* Override any GCC internal prototype to avoid an error.
36701 Use char because int might match the return type of a GCC
36702 builtin and then its argument prototype would still apply. */
36703 #ifdef __cplusplus
36704 extern "C"
36705 #endif
36706 char ${pbxfuncname} ();
36708 main ()
36710 return ${pbxfuncname} ();
36712 return 0;
36714 _ACEOF
36715 rm -f conftest.$ac_objext conftest$ac_exeext
36716 if { (ac_try="$ac_link"
36717 case "(($ac_try" in
36718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36719 *) ac_try_echo=$ac_try;;
36720 esac
36721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36722 (eval "$ac_link") 2>conftest.er1
36723 ac_status=$?
36724 grep -v '^ *+' conftest.er1 >conftest.err
36725 rm -f conftest.er1
36726 cat conftest.err >&5
36727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728 (exit $ac_status); } && {
36729 test -z "$ac_c_werror_flag" ||
36730 test ! -s conftest.err
36731 } && test -s conftest$ac_exeext &&
36732 $as_test_x conftest$ac_exeext; then
36733 eval "$as_ac_Lib=yes"
36734 else
36735 echo "$as_me: failed program was:" >&5
36736 sed 's/^/| /' conftest.$ac_ext >&5
36738 eval "$as_ac_Lib=no"
36741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36742 conftest$ac_exeext conftest.$ac_ext
36743 LIBS=$ac_check_lib_save_LIBS
36745 ac_res=`eval echo '${'$as_ac_Lib'}'`
36746 { echo "$as_me:$LINENO: result: $ac_res" >&5
36747 echo "${ECHO_T}$ac_res" >&6; }
36748 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36749 AST_OSS_FOUND=yes
36750 else
36751 AST_OSS_FOUND=no
36756 # now check for the header.
36757 if test "${AST_OSS_FOUND}" = "yes"; then
36758 OSS_LIB="${pbxlibdir} -lossaudio "
36759 # if --with-OSS=DIR has been specified, use it.
36760 if test "x${OSS_DIR}" != "x"; then
36761 OSS_INCLUDE="-I${OSS_DIR}/include"
36763 OSS_INCLUDE="${OSS_INCLUDE} "
36764 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
36765 OSS_HEADER_FOUND="1"
36766 else # check for the header
36767 saved_cppflags="${CPPFLAGS}"
36768 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
36769 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
36770 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
36771 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
36772 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
36773 echo $ECHO_N "(cached) $ECHO_C" >&6
36775 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
36776 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
36777 else
36778 # Is the header compilable?
36779 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
36780 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
36781 cat >conftest.$ac_ext <<_ACEOF
36782 /* confdefs.h. */
36783 _ACEOF
36784 cat confdefs.h >>conftest.$ac_ext
36785 cat >>conftest.$ac_ext <<_ACEOF
36786 /* end confdefs.h. */
36787 $ac_includes_default
36788 #include <linux/soundcard.h>
36789 _ACEOF
36790 rm -f conftest.$ac_objext
36791 if { (ac_try="$ac_compile"
36792 case "(($ac_try" in
36793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36794 *) ac_try_echo=$ac_try;;
36795 esac
36796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36797 (eval "$ac_compile") 2>conftest.er1
36798 ac_status=$?
36799 grep -v '^ *+' conftest.er1 >conftest.err
36800 rm -f conftest.er1
36801 cat conftest.err >&5
36802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36803 (exit $ac_status); } && {
36804 test -z "$ac_c_werror_flag" ||
36805 test ! -s conftest.err
36806 } && test -s conftest.$ac_objext; then
36807 ac_header_compiler=yes
36808 else
36809 echo "$as_me: failed program was:" >&5
36810 sed 's/^/| /' conftest.$ac_ext >&5
36812 ac_header_compiler=no
36815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36817 echo "${ECHO_T}$ac_header_compiler" >&6; }
36819 # Is the header present?
36820 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
36821 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
36822 cat >conftest.$ac_ext <<_ACEOF
36823 /* confdefs.h. */
36824 _ACEOF
36825 cat confdefs.h >>conftest.$ac_ext
36826 cat >>conftest.$ac_ext <<_ACEOF
36827 /* end confdefs.h. */
36828 #include <linux/soundcard.h>
36829 _ACEOF
36830 if { (ac_try="$ac_cpp conftest.$ac_ext"
36831 case "(($ac_try" in
36832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36833 *) ac_try_echo=$ac_try;;
36834 esac
36835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36837 ac_status=$?
36838 grep -v '^ *+' conftest.er1 >conftest.err
36839 rm -f conftest.er1
36840 cat conftest.err >&5
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); } >/dev/null && {
36843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36844 test ! -s conftest.err
36845 }; then
36846 ac_header_preproc=yes
36847 else
36848 echo "$as_me: failed program was:" >&5
36849 sed 's/^/| /' conftest.$ac_ext >&5
36851 ac_header_preproc=no
36854 rm -f conftest.err conftest.$ac_ext
36855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36856 echo "${ECHO_T}$ac_header_preproc" >&6; }
36858 # So? What about this header?
36859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36860 yes:no: )
36861 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
36862 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36863 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
36864 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
36865 ac_header_preproc=yes
36867 no:yes:* )
36868 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
36869 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
36870 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
36871 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
36872 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
36873 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
36874 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
36875 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
36876 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
36877 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
36878 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
36879 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
36880 ( cat <<\_ASBOX
36881 ## ------------------------------- ##
36882 ## Report this to www.asterisk.org ##
36883 ## ------------------------------- ##
36884 _ASBOX
36885 ) | sed "s/^/$as_me: WARNING: /" >&2
36887 esac
36888 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
36889 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
36890 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
36891 echo $ECHO_N "(cached) $ECHO_C" >&6
36892 else
36893 ac_cv_header_linux_soundcard_h=$ac_header_preproc
36895 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
36896 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
36899 if test $ac_cv_header_linux_soundcard_h = yes; then
36900 OSS_HEADER_FOUND=1
36901 else
36902 OSS_HEADER_FOUND=0
36906 CPPFLAGS="${saved_cppflags}"
36908 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
36909 OSS_LIB=""
36910 OSS_INCLUDE=""
36911 else
36912 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36913 OSS_LIB=""
36915 PBX_OSS=1
36916 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36918 cat >>confdefs.h <<_ACEOF
36919 #define HAVE_OSS 1
36920 _ACEOF
36923 cat >>confdefs.h <<_ACEOF
36924 #define HAVE_OSS_VERSION
36925 _ACEOF
36932 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
36933 pbxlibdir=""
36934 # if --with-OSS=DIR has been specified, use it.
36935 if test "x${OSS_DIR}" != "x"; then
36936 if test -d ${OSS_DIR}/lib; then
36937 pbxlibdir="-L${OSS_DIR}/lib"
36938 else
36939 pbxlibdir="-L${OSS_DIR}"
36942 pbxfuncname=""
36943 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36944 AST_OSS_FOUND=yes
36945 else
36946 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
36947 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
36948 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
36949 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36950 echo $ECHO_N "(cached) $ECHO_C" >&6
36951 else
36952 ac_check_lib_save_LIBS=$LIBS
36953 LIBS="-lossaudio ${pbxlibdir} $LIBS"
36954 cat >conftest.$ac_ext <<_ACEOF
36955 /* confdefs.h. */
36956 _ACEOF
36957 cat confdefs.h >>conftest.$ac_ext
36958 cat >>conftest.$ac_ext <<_ACEOF
36959 /* end confdefs.h. */
36961 /* Override any GCC internal prototype to avoid an error.
36962 Use char because int might match the return type of a GCC
36963 builtin and then its argument prototype would still apply. */
36964 #ifdef __cplusplus
36965 extern "C"
36966 #endif
36967 char ${pbxfuncname} ();
36969 main ()
36971 return ${pbxfuncname} ();
36973 return 0;
36975 _ACEOF
36976 rm -f conftest.$ac_objext conftest$ac_exeext
36977 if { (ac_try="$ac_link"
36978 case "(($ac_try" in
36979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36980 *) ac_try_echo=$ac_try;;
36981 esac
36982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36983 (eval "$ac_link") 2>conftest.er1
36984 ac_status=$?
36985 grep -v '^ *+' conftest.er1 >conftest.err
36986 rm -f conftest.er1
36987 cat conftest.err >&5
36988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989 (exit $ac_status); } && {
36990 test -z "$ac_c_werror_flag" ||
36991 test ! -s conftest.err
36992 } && test -s conftest$ac_exeext &&
36993 $as_test_x conftest$ac_exeext; then
36994 eval "$as_ac_Lib=yes"
36995 else
36996 echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36999 eval "$as_ac_Lib=no"
37002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37003 conftest$ac_exeext conftest.$ac_ext
37004 LIBS=$ac_check_lib_save_LIBS
37006 ac_res=`eval echo '${'$as_ac_Lib'}'`
37007 { echo "$as_me:$LINENO: result: $ac_res" >&5
37008 echo "${ECHO_T}$ac_res" >&6; }
37009 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37010 AST_OSS_FOUND=yes
37011 else
37012 AST_OSS_FOUND=no
37017 # now check for the header.
37018 if test "${AST_OSS_FOUND}" = "yes"; then
37019 OSS_LIB="${pbxlibdir} -lossaudio "
37020 # if --with-OSS=DIR has been specified, use it.
37021 if test "x${OSS_DIR}" != "x"; then
37022 OSS_INCLUDE="-I${OSS_DIR}/include"
37024 OSS_INCLUDE="${OSS_INCLUDE} "
37025 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37026 OSS_HEADER_FOUND="1"
37027 else # check for the header
37028 saved_cppflags="${CPPFLAGS}"
37029 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37030 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37031 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37032 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37033 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37034 echo $ECHO_N "(cached) $ECHO_C" >&6
37036 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37037 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37038 else
37039 # Is the header compilable?
37040 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37041 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37042 cat >conftest.$ac_ext <<_ACEOF
37043 /* confdefs.h. */
37044 _ACEOF
37045 cat confdefs.h >>conftest.$ac_ext
37046 cat >>conftest.$ac_ext <<_ACEOF
37047 /* end confdefs.h. */
37048 $ac_includes_default
37049 #include <sys/soundcard.h>
37050 _ACEOF
37051 rm -f conftest.$ac_objext
37052 if { (ac_try="$ac_compile"
37053 case "(($ac_try" in
37054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37055 *) ac_try_echo=$ac_try;;
37056 esac
37057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37058 (eval "$ac_compile") 2>conftest.er1
37059 ac_status=$?
37060 grep -v '^ *+' conftest.er1 >conftest.err
37061 rm -f conftest.er1
37062 cat conftest.err >&5
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); } && {
37065 test -z "$ac_c_werror_flag" ||
37066 test ! -s conftest.err
37067 } && test -s conftest.$ac_objext; then
37068 ac_header_compiler=yes
37069 else
37070 echo "$as_me: failed program was:" >&5
37071 sed 's/^/| /' conftest.$ac_ext >&5
37073 ac_header_compiler=no
37076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37078 echo "${ECHO_T}$ac_header_compiler" >&6; }
37080 # Is the header present?
37081 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37082 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37083 cat >conftest.$ac_ext <<_ACEOF
37084 /* confdefs.h. */
37085 _ACEOF
37086 cat confdefs.h >>conftest.$ac_ext
37087 cat >>conftest.$ac_ext <<_ACEOF
37088 /* end confdefs.h. */
37089 #include <sys/soundcard.h>
37090 _ACEOF
37091 if { (ac_try="$ac_cpp conftest.$ac_ext"
37092 case "(($ac_try" in
37093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37094 *) ac_try_echo=$ac_try;;
37095 esac
37096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37098 ac_status=$?
37099 grep -v '^ *+' conftest.er1 >conftest.err
37100 rm -f conftest.er1
37101 cat conftest.err >&5
37102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37103 (exit $ac_status); } >/dev/null && {
37104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37105 test ! -s conftest.err
37106 }; then
37107 ac_header_preproc=yes
37108 else
37109 echo "$as_me: failed program was:" >&5
37110 sed 's/^/| /' conftest.$ac_ext >&5
37112 ac_header_preproc=no
37115 rm -f conftest.err conftest.$ac_ext
37116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37117 echo "${ECHO_T}$ac_header_preproc" >&6; }
37119 # So? What about this header?
37120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37121 yes:no: )
37122 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37123 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37124 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37125 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37126 ac_header_preproc=yes
37128 no:yes:* )
37129 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37130 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37131 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37132 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37133 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37134 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37135 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37136 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37137 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37138 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37139 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37140 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37141 ( cat <<\_ASBOX
37142 ## ------------------------------- ##
37143 ## Report this to www.asterisk.org ##
37144 ## ------------------------------- ##
37145 _ASBOX
37146 ) | sed "s/^/$as_me: WARNING: /" >&2
37148 esac
37149 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37150 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37151 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37152 echo $ECHO_N "(cached) $ECHO_C" >&6
37153 else
37154 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37156 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37157 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37160 if test $ac_cv_header_sys_soundcard_h = yes; then
37161 OSS_HEADER_FOUND=1
37162 else
37163 OSS_HEADER_FOUND=0
37167 CPPFLAGS="${saved_cppflags}"
37169 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37170 OSS_LIB=""
37171 OSS_INCLUDE=""
37172 else
37173 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37174 OSS_LIB=""
37176 PBX_OSS=1
37177 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37179 cat >>confdefs.h <<_ACEOF
37180 #define HAVE_OSS 1
37181 _ACEOF
37184 cat >>confdefs.h <<_ACEOF
37185 #define HAVE_OSS_VERSION
37186 _ACEOF
37193 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37194 pbxlibdir=""
37195 # if --with-OSS=DIR has been specified, use it.
37196 if test "x${OSS_DIR}" != "x"; then
37197 if test -d ${OSS_DIR}/lib; then
37198 pbxlibdir="-L${OSS_DIR}/lib"
37199 else
37200 pbxlibdir="-L${OSS_DIR}"
37203 pbxfuncname="oss_ioctl_mixer"
37204 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37205 AST_OSS_FOUND=yes
37206 else
37207 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37208 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37209 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37210 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37211 echo $ECHO_N "(cached) $ECHO_C" >&6
37212 else
37213 ac_check_lib_save_LIBS=$LIBS
37214 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37215 cat >conftest.$ac_ext <<_ACEOF
37216 /* confdefs.h. */
37217 _ACEOF
37218 cat confdefs.h >>conftest.$ac_ext
37219 cat >>conftest.$ac_ext <<_ACEOF
37220 /* end confdefs.h. */
37222 /* Override any GCC internal prototype to avoid an error.
37223 Use char because int might match the return type of a GCC
37224 builtin and then its argument prototype would still apply. */
37225 #ifdef __cplusplus
37226 extern "C"
37227 #endif
37228 char ${pbxfuncname} ();
37230 main ()
37232 return ${pbxfuncname} ();
37234 return 0;
37236 _ACEOF
37237 rm -f conftest.$ac_objext conftest$ac_exeext
37238 if { (ac_try="$ac_link"
37239 case "(($ac_try" in
37240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37241 *) ac_try_echo=$ac_try;;
37242 esac
37243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37244 (eval "$ac_link") 2>conftest.er1
37245 ac_status=$?
37246 grep -v '^ *+' conftest.er1 >conftest.err
37247 rm -f conftest.er1
37248 cat conftest.err >&5
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); } && {
37251 test -z "$ac_c_werror_flag" ||
37252 test ! -s conftest.err
37253 } && test -s conftest$ac_exeext &&
37254 $as_test_x conftest$ac_exeext; then
37255 eval "$as_ac_Lib=yes"
37256 else
37257 echo "$as_me: failed program was:" >&5
37258 sed 's/^/| /' conftest.$ac_ext >&5
37260 eval "$as_ac_Lib=no"
37263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37264 conftest$ac_exeext conftest.$ac_ext
37265 LIBS=$ac_check_lib_save_LIBS
37267 ac_res=`eval echo '${'$as_ac_Lib'}'`
37268 { echo "$as_me:$LINENO: result: $ac_res" >&5
37269 echo "${ECHO_T}$ac_res" >&6; }
37270 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37271 AST_OSS_FOUND=yes
37272 else
37273 AST_OSS_FOUND=no
37278 # now check for the header.
37279 if test "${AST_OSS_FOUND}" = "yes"; then
37280 OSS_LIB="${pbxlibdir} -lossaudio "
37281 # if --with-OSS=DIR has been specified, use it.
37282 if test "x${OSS_DIR}" != "x"; then
37283 OSS_INCLUDE="-I${OSS_DIR}/include"
37285 OSS_INCLUDE="${OSS_INCLUDE} "
37286 if test "xsoundcard.h" = "x" ; then # no header, assume found
37287 OSS_HEADER_FOUND="1"
37288 else # check for the header
37289 saved_cppflags="${CPPFLAGS}"
37290 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37291 if test "${ac_cv_header_soundcard_h+set}" = set; then
37292 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37293 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37294 if test "${ac_cv_header_soundcard_h+set}" = set; then
37295 echo $ECHO_N "(cached) $ECHO_C" >&6
37297 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37298 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37299 else
37300 # Is the header compilable?
37301 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37302 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37303 cat >conftest.$ac_ext <<_ACEOF
37304 /* confdefs.h. */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h. */
37309 $ac_includes_default
37310 #include <soundcard.h>
37311 _ACEOF
37312 rm -f conftest.$ac_objext
37313 if { (ac_try="$ac_compile"
37314 case "(($ac_try" in
37315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37316 *) ac_try_echo=$ac_try;;
37317 esac
37318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37319 (eval "$ac_compile") 2>conftest.er1
37320 ac_status=$?
37321 grep -v '^ *+' conftest.er1 >conftest.err
37322 rm -f conftest.er1
37323 cat conftest.err >&5
37324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325 (exit $ac_status); } && {
37326 test -z "$ac_c_werror_flag" ||
37327 test ! -s conftest.err
37328 } && test -s conftest.$ac_objext; then
37329 ac_header_compiler=yes
37330 else
37331 echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37334 ac_header_compiler=no
37337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37339 echo "${ECHO_T}$ac_header_compiler" >&6; }
37341 # Is the header present?
37342 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37343 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37344 cat >conftest.$ac_ext <<_ACEOF
37345 /* confdefs.h. */
37346 _ACEOF
37347 cat confdefs.h >>conftest.$ac_ext
37348 cat >>conftest.$ac_ext <<_ACEOF
37349 /* end confdefs.h. */
37350 #include <soundcard.h>
37351 _ACEOF
37352 if { (ac_try="$ac_cpp conftest.$ac_ext"
37353 case "(($ac_try" in
37354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37355 *) ac_try_echo=$ac_try;;
37356 esac
37357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37359 ac_status=$?
37360 grep -v '^ *+' conftest.er1 >conftest.err
37361 rm -f conftest.er1
37362 cat conftest.err >&5
37363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364 (exit $ac_status); } >/dev/null && {
37365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37366 test ! -s conftest.err
37367 }; then
37368 ac_header_preproc=yes
37369 else
37370 echo "$as_me: failed program was:" >&5
37371 sed 's/^/| /' conftest.$ac_ext >&5
37373 ac_header_preproc=no
37376 rm -f conftest.err conftest.$ac_ext
37377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37378 echo "${ECHO_T}$ac_header_preproc" >&6; }
37380 # So? What about this header?
37381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37382 yes:no: )
37383 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37384 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37385 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37386 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37387 ac_header_preproc=yes
37389 no:yes:* )
37390 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37391 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37392 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37393 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37394 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37395 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37396 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37397 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37398 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37399 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37400 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37401 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37402 ( cat <<\_ASBOX
37403 ## ------------------------------- ##
37404 ## Report this to www.asterisk.org ##
37405 ## ------------------------------- ##
37406 _ASBOX
37407 ) | sed "s/^/$as_me: WARNING: /" >&2
37409 esac
37410 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37411 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37412 if test "${ac_cv_header_soundcard_h+set}" = set; then
37413 echo $ECHO_N "(cached) $ECHO_C" >&6
37414 else
37415 ac_cv_header_soundcard_h=$ac_header_preproc
37417 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37418 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37421 if test $ac_cv_header_soundcard_h = yes; then
37422 OSS_HEADER_FOUND=1
37423 else
37424 OSS_HEADER_FOUND=0
37428 CPPFLAGS="${saved_cppflags}"
37430 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37431 OSS_LIB=""
37432 OSS_INCLUDE=""
37433 else
37434 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37435 OSS_LIB=""
37437 PBX_OSS=1
37438 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37440 cat >>confdefs.h <<_ACEOF
37441 #define HAVE_OSS 1
37442 _ACEOF
37445 cat >>confdefs.h <<_ACEOF
37446 #define HAVE_OSS_VERSION
37447 _ACEOF
37454 PG_CONFIG=No
37455 if test "${USE_PGSQL}" != "no"; then
37456 if test "x${PGSQL_DIR}" != "x"; then
37457 if test -n "$ac_tool_prefix"; then
37458 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37459 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37462 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37463 echo $ECHO_N "(cached) $ECHO_C" >&6
37464 else
37465 case $PG_CONFIG in
37466 [\\/]* | ?:[\\/]*)
37467 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37471 for as_dir in ${PGSQL_DIR}/bin
37473 IFS=$as_save_IFS
37474 test -z "$as_dir" && as_dir=.
37475 for ac_exec_ext in '' $ac_executable_extensions; do
37476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37477 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37479 break 2
37481 done
37482 done
37483 IFS=$as_save_IFS
37486 esac
37488 PG_CONFIG=$ac_cv_path_PG_CONFIG
37489 if test -n "$PG_CONFIG"; then
37490 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37491 echo "${ECHO_T}$PG_CONFIG" >&6; }
37492 else
37493 { echo "$as_me:$LINENO: result: no" >&5
37494 echo "${ECHO_T}no" >&6; }
37499 if test -z "$ac_cv_path_PG_CONFIG"; then
37500 ac_pt_PG_CONFIG=$PG_CONFIG
37501 # Extract the first word of "pg_config", so it can be a program name with args.
37502 set dummy pg_config; ac_word=$2
37503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37505 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37506 echo $ECHO_N "(cached) $ECHO_C" >&6
37507 else
37508 case $ac_pt_PG_CONFIG in
37509 [\\/]* | ?:[\\/]*)
37510 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37514 for as_dir in ${PGSQL_DIR}/bin
37516 IFS=$as_save_IFS
37517 test -z "$as_dir" && as_dir=.
37518 for ac_exec_ext in '' $ac_executable_extensions; do
37519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37520 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37522 break 2
37524 done
37525 done
37526 IFS=$as_save_IFS
37529 esac
37531 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37532 if test -n "$ac_pt_PG_CONFIG"; then
37533 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37534 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37535 else
37536 { echo "$as_me:$LINENO: result: no" >&5
37537 echo "${ECHO_T}no" >&6; }
37540 if test "x$ac_pt_PG_CONFIG" = x; then
37541 PG_CONFIG="No"
37542 else
37543 case $cross_compiling:$ac_tool_warned in
37544 yes:)
37545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37546 whose name does not start with the host triplet. If you think this
37547 configuration is useful to you, please write to autoconf@gnu.org." >&5
37548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37549 whose name does not start with the host triplet. If you think this
37550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37551 ac_tool_warned=yes ;;
37552 esac
37553 PG_CONFIG=$ac_pt_PG_CONFIG
37555 else
37556 PG_CONFIG="$ac_cv_path_PG_CONFIG"
37559 if test x"${PG_CONFIG}" = xNo; then
37560 { echo "$as_me:$LINENO: ***" >&5
37561 echo "$as_me: ***" >&6;}
37562 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
37563 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
37564 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
37565 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
37566 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37567 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37568 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37569 echo "$as_me: *** including --without-postgres" >&6;}
37570 exit 1
37572 else
37573 if test -n "$ac_tool_prefix"; then
37574 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37575 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37578 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37579 echo $ECHO_N "(cached) $ECHO_C" >&6
37580 else
37581 case $PG_CONFIG in
37582 [\\/]* | ?:[\\/]*)
37583 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37587 for as_dir in $PATH
37589 IFS=$as_save_IFS
37590 test -z "$as_dir" && as_dir=.
37591 for ac_exec_ext in '' $ac_executable_extensions; do
37592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37593 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37595 break 2
37597 done
37598 done
37599 IFS=$as_save_IFS
37602 esac
37604 PG_CONFIG=$ac_cv_path_PG_CONFIG
37605 if test -n "$PG_CONFIG"; then
37606 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37607 echo "${ECHO_T}$PG_CONFIG" >&6; }
37608 else
37609 { echo "$as_me:$LINENO: result: no" >&5
37610 echo "${ECHO_T}no" >&6; }
37615 if test -z "$ac_cv_path_PG_CONFIG"; then
37616 ac_pt_PG_CONFIG=$PG_CONFIG
37617 # Extract the first word of "pg_config", so it can be a program name with args.
37618 set dummy pg_config; ac_word=$2
37619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37621 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37622 echo $ECHO_N "(cached) $ECHO_C" >&6
37623 else
37624 case $ac_pt_PG_CONFIG in
37625 [\\/]* | ?:[\\/]*)
37626 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37630 for as_dir in $PATH
37632 IFS=$as_save_IFS
37633 test -z "$as_dir" && as_dir=.
37634 for ac_exec_ext in '' $ac_executable_extensions; do
37635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37636 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37638 break 2
37640 done
37641 done
37642 IFS=$as_save_IFS
37645 esac
37647 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37648 if test -n "$ac_pt_PG_CONFIG"; then
37649 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37650 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37651 else
37652 { echo "$as_me:$LINENO: result: no" >&5
37653 echo "${ECHO_T}no" >&6; }
37656 if test "x$ac_pt_PG_CONFIG" = x; then
37657 PG_CONFIG="No"
37658 else
37659 case $cross_compiling:$ac_tool_warned in
37660 yes:)
37661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37662 whose name does not start with the host triplet. If you think this
37663 configuration is useful to you, please write to autoconf@gnu.org." >&5
37664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37665 whose name does not start with the host triplet. If you think this
37666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37667 ac_tool_warned=yes ;;
37668 esac
37669 PG_CONFIG=$ac_pt_PG_CONFIG
37671 else
37672 PG_CONFIG="$ac_cv_path_PG_CONFIG"
37677 if test "${PG_CONFIG}" != No; then
37678 PGSQL_libdir=`${PG_CONFIG} --libdir`
37679 PGSQL_includedir=`${PG_CONFIG} --includedir`
37680 if test "x$?" != "x0" ; then
37681 if test -n "${PGSQL_MANDATORY}" ; then
37682 { echo "$as_me:$LINENO: ***" >&5
37683 echo "$as_me: ***" >&6;}
37684 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
37685 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
37686 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37687 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37688 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37689 echo "$as_me: *** including --without-postgres" >&6;}
37690 exit 1
37692 else
37693 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
37694 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
37695 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
37696 echo $ECHO_N "(cached) $ECHO_C" >&6
37697 else
37698 ac_check_lib_save_LIBS=$LIBS
37699 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
37700 cat >conftest.$ac_ext <<_ACEOF
37701 /* confdefs.h. */
37702 _ACEOF
37703 cat confdefs.h >>conftest.$ac_ext
37704 cat >>conftest.$ac_ext <<_ACEOF
37705 /* end confdefs.h. */
37707 /* Override any GCC internal prototype to avoid an error.
37708 Use char because int might match the return type of a GCC
37709 builtin and then its argument prototype would still apply. */
37710 #ifdef __cplusplus
37711 extern "C"
37712 #endif
37713 char PQescapeStringConn ();
37715 main ()
37717 return PQescapeStringConn ();
37719 return 0;
37721 _ACEOF
37722 rm -f conftest.$ac_objext conftest$ac_exeext
37723 if { (ac_try="$ac_link"
37724 case "(($ac_try" in
37725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37726 *) ac_try_echo=$ac_try;;
37727 esac
37728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37729 (eval "$ac_link") 2>conftest.er1
37730 ac_status=$?
37731 grep -v '^ *+' conftest.er1 >conftest.err
37732 rm -f conftest.er1
37733 cat conftest.err >&5
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); } && {
37736 test -z "$ac_c_werror_flag" ||
37737 test ! -s conftest.err
37738 } && test -s conftest$ac_exeext &&
37739 $as_test_x conftest$ac_exeext; then
37740 ac_cv_lib_pq_PQescapeStringConn=yes
37741 else
37742 echo "$as_me: failed program was:" >&5
37743 sed 's/^/| /' conftest.$ac_ext >&5
37745 ac_cv_lib_pq_PQescapeStringConn=no
37748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37749 conftest$ac_exeext conftest.$ac_ext
37750 LIBS=$ac_check_lib_save_LIBS
37752 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
37753 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
37754 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
37756 cat >>confdefs.h <<_ACEOF
37757 #define HAVE_PGSQL 1
37758 _ACEOF
37763 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
37764 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
37765 PGSQL_INCLUDE="-I${PGSQL_includedir}"
37766 PBX_PGSQL=1
37767 elif test -n "${PGSQL_MANDATORY}";
37768 then
37769 { echo "$as_me:$LINENO: ***" >&5
37770 echo "$as_me: ***" >&6;}
37771 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
37772 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
37773 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37774 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37775 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37776 echo "$as_me: *** including --without-postgres" >&6;}
37777 exit 1
37783 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
37784 pbxlibdir=""
37785 # if --with-POPT=DIR has been specified, use it.
37786 if test "x${POPT_DIR}" != "x"; then
37787 if test -d ${POPT_DIR}/lib; then
37788 pbxlibdir="-L${POPT_DIR}/lib"
37789 else
37790 pbxlibdir="-L${POPT_DIR}"
37793 pbxfuncname="poptStrerror"
37794 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37795 AST_POPT_FOUND=yes
37796 else
37797 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
37798 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
37799 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
37800 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37801 echo $ECHO_N "(cached) $ECHO_C" >&6
37802 else
37803 ac_check_lib_save_LIBS=$LIBS
37804 LIBS="-lpopt ${pbxlibdir} $LIBS"
37805 cat >conftest.$ac_ext <<_ACEOF
37806 /* confdefs.h. */
37807 _ACEOF
37808 cat confdefs.h >>conftest.$ac_ext
37809 cat >>conftest.$ac_ext <<_ACEOF
37810 /* end confdefs.h. */
37812 /* Override any GCC internal prototype to avoid an error.
37813 Use char because int might match the return type of a GCC
37814 builtin and then its argument prototype would still apply. */
37815 #ifdef __cplusplus
37816 extern "C"
37817 #endif
37818 char ${pbxfuncname} ();
37820 main ()
37822 return ${pbxfuncname} ();
37824 return 0;
37826 _ACEOF
37827 rm -f conftest.$ac_objext conftest$ac_exeext
37828 if { (ac_try="$ac_link"
37829 case "(($ac_try" in
37830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37831 *) ac_try_echo=$ac_try;;
37832 esac
37833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37834 (eval "$ac_link") 2>conftest.er1
37835 ac_status=$?
37836 grep -v '^ *+' conftest.er1 >conftest.err
37837 rm -f conftest.er1
37838 cat conftest.err >&5
37839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840 (exit $ac_status); } && {
37841 test -z "$ac_c_werror_flag" ||
37842 test ! -s conftest.err
37843 } && test -s conftest$ac_exeext &&
37844 $as_test_x conftest$ac_exeext; then
37845 eval "$as_ac_Lib=yes"
37846 else
37847 echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37850 eval "$as_ac_Lib=no"
37853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37854 conftest$ac_exeext conftest.$ac_ext
37855 LIBS=$ac_check_lib_save_LIBS
37857 ac_res=`eval echo '${'$as_ac_Lib'}'`
37858 { echo "$as_me:$LINENO: result: $ac_res" >&5
37859 echo "${ECHO_T}$ac_res" >&6; }
37860 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37861 AST_POPT_FOUND=yes
37862 else
37863 AST_POPT_FOUND=no
37868 # now check for the header.
37869 if test "${AST_POPT_FOUND}" = "yes"; then
37870 POPT_LIB="${pbxlibdir} -lpopt "
37871 # if --with-POPT=DIR has been specified, use it.
37872 if test "x${POPT_DIR}" != "x"; then
37873 POPT_INCLUDE="-I${POPT_DIR}/include"
37875 POPT_INCLUDE="${POPT_INCLUDE} "
37876 if test "xpopt.h" = "x" ; then # no header, assume found
37877 POPT_HEADER_FOUND="1"
37878 else # check for the header
37879 saved_cppflags="${CPPFLAGS}"
37880 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE} "
37881 if test "${ac_cv_header_popt_h+set}" = set; then
37882 { echo "$as_me:$LINENO: checking for popt.h" >&5
37883 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
37884 if test "${ac_cv_header_popt_h+set}" = set; then
37885 echo $ECHO_N "(cached) $ECHO_C" >&6
37887 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
37888 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
37889 else
37890 # Is the header compilable?
37891 { echo "$as_me:$LINENO: checking popt.h usability" >&5
37892 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
37893 cat >conftest.$ac_ext <<_ACEOF
37894 /* confdefs.h. */
37895 _ACEOF
37896 cat confdefs.h >>conftest.$ac_ext
37897 cat >>conftest.$ac_ext <<_ACEOF
37898 /* end confdefs.h. */
37899 $ac_includes_default
37900 #include <popt.h>
37901 _ACEOF
37902 rm -f conftest.$ac_objext
37903 if { (ac_try="$ac_compile"
37904 case "(($ac_try" in
37905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37906 *) ac_try_echo=$ac_try;;
37907 esac
37908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37909 (eval "$ac_compile") 2>conftest.er1
37910 ac_status=$?
37911 grep -v '^ *+' conftest.er1 >conftest.err
37912 rm -f conftest.er1
37913 cat conftest.err >&5
37914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915 (exit $ac_status); } && {
37916 test -z "$ac_c_werror_flag" ||
37917 test ! -s conftest.err
37918 } && test -s conftest.$ac_objext; then
37919 ac_header_compiler=yes
37920 else
37921 echo "$as_me: failed program was:" >&5
37922 sed 's/^/| /' conftest.$ac_ext >&5
37924 ac_header_compiler=no
37927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37929 echo "${ECHO_T}$ac_header_compiler" >&6; }
37931 # Is the header present?
37932 { echo "$as_me:$LINENO: checking popt.h presence" >&5
37933 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
37934 cat >conftest.$ac_ext <<_ACEOF
37935 /* confdefs.h. */
37936 _ACEOF
37937 cat confdefs.h >>conftest.$ac_ext
37938 cat >>conftest.$ac_ext <<_ACEOF
37939 /* end confdefs.h. */
37940 #include <popt.h>
37941 _ACEOF
37942 if { (ac_try="$ac_cpp conftest.$ac_ext"
37943 case "(($ac_try" in
37944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37945 *) ac_try_echo=$ac_try;;
37946 esac
37947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37949 ac_status=$?
37950 grep -v '^ *+' conftest.er1 >conftest.err
37951 rm -f conftest.er1
37952 cat conftest.err >&5
37953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954 (exit $ac_status); } >/dev/null && {
37955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37956 test ! -s conftest.err
37957 }; then
37958 ac_header_preproc=yes
37959 else
37960 echo "$as_me: failed program was:" >&5
37961 sed 's/^/| /' conftest.$ac_ext >&5
37963 ac_header_preproc=no
37966 rm -f conftest.err conftest.$ac_ext
37967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37968 echo "${ECHO_T}$ac_header_preproc" >&6; }
37970 # So? What about this header?
37971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37972 yes:no: )
37973 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
37974 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37975 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
37976 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
37977 ac_header_preproc=yes
37979 no:yes:* )
37980 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
37981 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
37982 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
37983 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
37984 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
37985 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
37986 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
37987 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
37988 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
37989 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
37990 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
37991 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
37992 ( cat <<\_ASBOX
37993 ## ------------------------------- ##
37994 ## Report this to www.asterisk.org ##
37995 ## ------------------------------- ##
37996 _ASBOX
37997 ) | sed "s/^/$as_me: WARNING: /" >&2
37999 esac
38000 { echo "$as_me:$LINENO: checking for popt.h" >&5
38001 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38002 if test "${ac_cv_header_popt_h+set}" = set; then
38003 echo $ECHO_N "(cached) $ECHO_C" >&6
38004 else
38005 ac_cv_header_popt_h=$ac_header_preproc
38007 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38008 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38011 if test $ac_cv_header_popt_h = yes; then
38012 POPT_HEADER_FOUND=1
38013 else
38014 POPT_HEADER_FOUND=0
38018 CPPFLAGS="${saved_cppflags}"
38020 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38021 POPT_LIB=""
38022 POPT_INCLUDE=""
38023 else
38024 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38025 POPT_LIB=""
38027 PBX_POPT=1
38028 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38030 cat >>confdefs.h <<_ACEOF
38031 #define HAVE_POPT 1
38032 _ACEOF
38035 cat >>confdefs.h <<_ACEOF
38036 #define HAVE_POPT_VERSION
38037 _ACEOF
38045 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38046 pbxlibdir=""
38047 # if --with-PORTAUDIO=DIR has been specified, use it.
38048 if test "x${PORTAUDIO_DIR}" != "x"; then
38049 if test -d ${PORTAUDIO_DIR}/lib; then
38050 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38051 else
38052 pbxlibdir="-L${PORTAUDIO_DIR}"
38055 pbxfuncname="Pa_GetDeviceCount"
38056 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38057 AST_PORTAUDIO_FOUND=yes
38058 else
38059 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38060 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38061 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38062 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38063 echo $ECHO_N "(cached) $ECHO_C" >&6
38064 else
38065 ac_check_lib_save_LIBS=$LIBS
38066 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38067 cat >conftest.$ac_ext <<_ACEOF
38068 /* confdefs.h. */
38069 _ACEOF
38070 cat confdefs.h >>conftest.$ac_ext
38071 cat >>conftest.$ac_ext <<_ACEOF
38072 /* end confdefs.h. */
38074 /* Override any GCC internal prototype to avoid an error.
38075 Use char because int might match the return type of a GCC
38076 builtin and then its argument prototype would still apply. */
38077 #ifdef __cplusplus
38078 extern "C"
38079 #endif
38080 char ${pbxfuncname} ();
38082 main ()
38084 return ${pbxfuncname} ();
38086 return 0;
38088 _ACEOF
38089 rm -f conftest.$ac_objext conftest$ac_exeext
38090 if { (ac_try="$ac_link"
38091 case "(($ac_try" in
38092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38093 *) ac_try_echo=$ac_try;;
38094 esac
38095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38096 (eval "$ac_link") 2>conftest.er1
38097 ac_status=$?
38098 grep -v '^ *+' conftest.er1 >conftest.err
38099 rm -f conftest.er1
38100 cat conftest.err >&5
38101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102 (exit $ac_status); } && {
38103 test -z "$ac_c_werror_flag" ||
38104 test ! -s conftest.err
38105 } && test -s conftest$ac_exeext &&
38106 $as_test_x conftest$ac_exeext; then
38107 eval "$as_ac_Lib=yes"
38108 else
38109 echo "$as_me: failed program was:" >&5
38110 sed 's/^/| /' conftest.$ac_ext >&5
38112 eval "$as_ac_Lib=no"
38115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38116 conftest$ac_exeext conftest.$ac_ext
38117 LIBS=$ac_check_lib_save_LIBS
38119 ac_res=`eval echo '${'$as_ac_Lib'}'`
38120 { echo "$as_me:$LINENO: result: $ac_res" >&5
38121 echo "${ECHO_T}$ac_res" >&6; }
38122 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38123 AST_PORTAUDIO_FOUND=yes
38124 else
38125 AST_PORTAUDIO_FOUND=no
38130 # now check for the header.
38131 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38132 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38133 # if --with-PORTAUDIO=DIR has been specified, use it.
38134 if test "x${PORTAUDIO_DIR}" != "x"; then
38135 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38137 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38138 if test "xportaudio.h" = "x" ; then # no header, assume found
38139 PORTAUDIO_HEADER_FOUND="1"
38140 else # check for the header
38141 saved_cppflags="${CPPFLAGS}"
38142 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE} "
38143 if test "${ac_cv_header_portaudio_h+set}" = set; then
38144 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38145 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38146 if test "${ac_cv_header_portaudio_h+set}" = set; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38149 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38150 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38151 else
38152 # Is the header compilable?
38153 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38154 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38155 cat >conftest.$ac_ext <<_ACEOF
38156 /* confdefs.h. */
38157 _ACEOF
38158 cat confdefs.h >>conftest.$ac_ext
38159 cat >>conftest.$ac_ext <<_ACEOF
38160 /* end confdefs.h. */
38161 $ac_includes_default
38162 #include <portaudio.h>
38163 _ACEOF
38164 rm -f conftest.$ac_objext
38165 if { (ac_try="$ac_compile"
38166 case "(($ac_try" in
38167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38168 *) ac_try_echo=$ac_try;;
38169 esac
38170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38171 (eval "$ac_compile") 2>conftest.er1
38172 ac_status=$?
38173 grep -v '^ *+' conftest.er1 >conftest.err
38174 rm -f conftest.er1
38175 cat conftest.err >&5
38176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177 (exit $ac_status); } && {
38178 test -z "$ac_c_werror_flag" ||
38179 test ! -s conftest.err
38180 } && test -s conftest.$ac_objext; then
38181 ac_header_compiler=yes
38182 else
38183 echo "$as_me: failed program was:" >&5
38184 sed 's/^/| /' conftest.$ac_ext >&5
38186 ac_header_compiler=no
38189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38191 echo "${ECHO_T}$ac_header_compiler" >&6; }
38193 # Is the header present?
38194 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38195 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38196 cat >conftest.$ac_ext <<_ACEOF
38197 /* confdefs.h. */
38198 _ACEOF
38199 cat confdefs.h >>conftest.$ac_ext
38200 cat >>conftest.$ac_ext <<_ACEOF
38201 /* end confdefs.h. */
38202 #include <portaudio.h>
38203 _ACEOF
38204 if { (ac_try="$ac_cpp conftest.$ac_ext"
38205 case "(($ac_try" in
38206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38207 *) ac_try_echo=$ac_try;;
38208 esac
38209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38211 ac_status=$?
38212 grep -v '^ *+' conftest.er1 >conftest.err
38213 rm -f conftest.er1
38214 cat conftest.err >&5
38215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216 (exit $ac_status); } >/dev/null && {
38217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38218 test ! -s conftest.err
38219 }; then
38220 ac_header_preproc=yes
38221 else
38222 echo "$as_me: failed program was:" >&5
38223 sed 's/^/| /' conftest.$ac_ext >&5
38225 ac_header_preproc=no
38228 rm -f conftest.err conftest.$ac_ext
38229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38230 echo "${ECHO_T}$ac_header_preproc" >&6; }
38232 # So? What about this header?
38233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38234 yes:no: )
38235 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38236 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38237 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38238 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38239 ac_header_preproc=yes
38241 no:yes:* )
38242 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38243 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38244 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38245 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38246 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38247 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38248 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38249 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38250 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38251 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38252 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38253 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38254 ( cat <<\_ASBOX
38255 ## ------------------------------- ##
38256 ## Report this to www.asterisk.org ##
38257 ## ------------------------------- ##
38258 _ASBOX
38259 ) | sed "s/^/$as_me: WARNING: /" >&2
38261 esac
38262 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38263 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38264 if test "${ac_cv_header_portaudio_h+set}" = set; then
38265 echo $ECHO_N "(cached) $ECHO_C" >&6
38266 else
38267 ac_cv_header_portaudio_h=$ac_header_preproc
38269 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38270 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38273 if test $ac_cv_header_portaudio_h = yes; then
38274 PORTAUDIO_HEADER_FOUND=1
38275 else
38276 PORTAUDIO_HEADER_FOUND=0
38280 CPPFLAGS="${saved_cppflags}"
38282 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38283 PORTAUDIO_LIB=""
38284 PORTAUDIO_INCLUDE=""
38285 else
38286 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38287 PORTAUDIO_LIB=""
38289 PBX_PORTAUDIO=1
38290 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38292 cat >>confdefs.h <<_ACEOF
38293 #define HAVE_PORTAUDIO 1
38294 _ACEOF
38297 cat >>confdefs.h <<_ACEOF
38298 #define HAVE_PORTAUDIO_VERSION
38299 _ACEOF
38307 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38308 pbxlibdir=""
38309 # if --with-PRI=DIR has been specified, use it.
38310 if test "x${PRI_DIR}" != "x"; then
38311 if test -d ${PRI_DIR}/lib; then
38312 pbxlibdir="-L${PRI_DIR}/lib"
38313 else
38314 pbxlibdir="-L${PRI_DIR}"
38317 pbxfuncname="pri_new_bri"
38318 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38319 AST_PRI_FOUND=yes
38320 else
38321 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38322 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38323 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38324 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38325 echo $ECHO_N "(cached) $ECHO_C" >&6
38326 else
38327 ac_check_lib_save_LIBS=$LIBS
38328 LIBS="-lpri ${pbxlibdir} $LIBS"
38329 cat >conftest.$ac_ext <<_ACEOF
38330 /* confdefs.h. */
38331 _ACEOF
38332 cat confdefs.h >>conftest.$ac_ext
38333 cat >>conftest.$ac_ext <<_ACEOF
38334 /* end confdefs.h. */
38336 /* Override any GCC internal prototype to avoid an error.
38337 Use char because int might match the return type of a GCC
38338 builtin and then its argument prototype would still apply. */
38339 #ifdef __cplusplus
38340 extern "C"
38341 #endif
38342 char ${pbxfuncname} ();
38344 main ()
38346 return ${pbxfuncname} ();
38348 return 0;
38350 _ACEOF
38351 rm -f conftest.$ac_objext conftest$ac_exeext
38352 if { (ac_try="$ac_link"
38353 case "(($ac_try" in
38354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38355 *) ac_try_echo=$ac_try;;
38356 esac
38357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38358 (eval "$ac_link") 2>conftest.er1
38359 ac_status=$?
38360 grep -v '^ *+' conftest.er1 >conftest.err
38361 rm -f conftest.er1
38362 cat conftest.err >&5
38363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); } && {
38365 test -z "$ac_c_werror_flag" ||
38366 test ! -s conftest.err
38367 } && test -s conftest$ac_exeext &&
38368 $as_test_x conftest$ac_exeext; then
38369 eval "$as_ac_Lib=yes"
38370 else
38371 echo "$as_me: failed program was:" >&5
38372 sed 's/^/| /' conftest.$ac_ext >&5
38374 eval "$as_ac_Lib=no"
38377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38378 conftest$ac_exeext conftest.$ac_ext
38379 LIBS=$ac_check_lib_save_LIBS
38381 ac_res=`eval echo '${'$as_ac_Lib'}'`
38382 { echo "$as_me:$LINENO: result: $ac_res" >&5
38383 echo "${ECHO_T}$ac_res" >&6; }
38384 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38385 AST_PRI_FOUND=yes
38386 else
38387 AST_PRI_FOUND=no
38392 # now check for the header.
38393 if test "${AST_PRI_FOUND}" = "yes"; then
38394 PRI_LIB="${pbxlibdir} -lpri "
38395 # if --with-PRI=DIR has been specified, use it.
38396 if test "x${PRI_DIR}" != "x"; then
38397 PRI_INCLUDE="-I${PRI_DIR}/include"
38399 PRI_INCLUDE="${PRI_INCLUDE} "
38400 if test "xlibpri.h" = "x" ; then # no header, assume found
38401 PRI_HEADER_FOUND="1"
38402 else # check for the header
38403 saved_cppflags="${CPPFLAGS}"
38404 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE} "
38405 if test "${ac_cv_header_libpri_h+set}" = set; then
38406 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38407 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38408 if test "${ac_cv_header_libpri_h+set}" = set; then
38409 echo $ECHO_N "(cached) $ECHO_C" >&6
38411 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38412 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38413 else
38414 # Is the header compilable?
38415 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38416 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38417 cat >conftest.$ac_ext <<_ACEOF
38418 /* confdefs.h. */
38419 _ACEOF
38420 cat confdefs.h >>conftest.$ac_ext
38421 cat >>conftest.$ac_ext <<_ACEOF
38422 /* end confdefs.h. */
38423 $ac_includes_default
38424 #include <libpri.h>
38425 _ACEOF
38426 rm -f conftest.$ac_objext
38427 if { (ac_try="$ac_compile"
38428 case "(($ac_try" in
38429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38430 *) ac_try_echo=$ac_try;;
38431 esac
38432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38433 (eval "$ac_compile") 2>conftest.er1
38434 ac_status=$?
38435 grep -v '^ *+' conftest.er1 >conftest.err
38436 rm -f conftest.er1
38437 cat conftest.err >&5
38438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439 (exit $ac_status); } && {
38440 test -z "$ac_c_werror_flag" ||
38441 test ! -s conftest.err
38442 } && test -s conftest.$ac_objext; then
38443 ac_header_compiler=yes
38444 else
38445 echo "$as_me: failed program was:" >&5
38446 sed 's/^/| /' conftest.$ac_ext >&5
38448 ac_header_compiler=no
38451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38453 echo "${ECHO_T}$ac_header_compiler" >&6; }
38455 # Is the header present?
38456 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
38457 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
38458 cat >conftest.$ac_ext <<_ACEOF
38459 /* confdefs.h. */
38460 _ACEOF
38461 cat confdefs.h >>conftest.$ac_ext
38462 cat >>conftest.$ac_ext <<_ACEOF
38463 /* end confdefs.h. */
38464 #include <libpri.h>
38465 _ACEOF
38466 if { (ac_try="$ac_cpp conftest.$ac_ext"
38467 case "(($ac_try" in
38468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38469 *) ac_try_echo=$ac_try;;
38470 esac
38471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38473 ac_status=$?
38474 grep -v '^ *+' conftest.er1 >conftest.err
38475 rm -f conftest.er1
38476 cat conftest.err >&5
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); } >/dev/null && {
38479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38480 test ! -s conftest.err
38481 }; then
38482 ac_header_preproc=yes
38483 else
38484 echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38487 ac_header_preproc=no
38490 rm -f conftest.err conftest.$ac_ext
38491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38492 echo "${ECHO_T}$ac_header_preproc" >&6; }
38494 # So? What about this header?
38495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38496 yes:no: )
38497 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
38498 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38499 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
38500 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
38501 ac_header_preproc=yes
38503 no:yes:* )
38504 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
38505 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
38506 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
38507 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
38508 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
38509 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
38510 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
38511 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
38512 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
38513 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
38514 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
38515 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
38516 ( cat <<\_ASBOX
38517 ## ------------------------------- ##
38518 ## Report this to www.asterisk.org ##
38519 ## ------------------------------- ##
38520 _ASBOX
38521 ) | sed "s/^/$as_me: WARNING: /" >&2
38523 esac
38524 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38525 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38526 if test "${ac_cv_header_libpri_h+set}" = set; then
38527 echo $ECHO_N "(cached) $ECHO_C" >&6
38528 else
38529 ac_cv_header_libpri_h=$ac_header_preproc
38531 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38532 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38535 if test $ac_cv_header_libpri_h = yes; then
38536 PRI_HEADER_FOUND=1
38537 else
38538 PRI_HEADER_FOUND=0
38542 CPPFLAGS="${saved_cppflags}"
38544 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
38545 PRI_LIB=""
38546 PRI_INCLUDE=""
38547 else
38548 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38549 PRI_LIB=""
38551 PBX_PRI=1
38552 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38554 cat >>confdefs.h <<_ACEOF
38555 #define HAVE_PRI 1
38556 _ACEOF
38559 cat >>confdefs.h <<_ACEOF
38560 #define HAVE_PRI_VERSION
38561 _ACEOF
38569 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
38570 pbxlibdir=""
38571 # if --with-SS7=DIR has been specified, use it.
38572 if test "x${SS7_DIR}" != "x"; then
38573 if test -d ${SS7_DIR}/lib; then
38574 pbxlibdir="-L${SS7_DIR}/lib"
38575 else
38576 pbxlibdir="-L${SS7_DIR}"
38579 pbxfuncname="isup_cqr"
38580 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38581 AST_SS7_FOUND=yes
38582 else
38583 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
38584 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
38585 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
38586 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38587 echo $ECHO_N "(cached) $ECHO_C" >&6
38588 else
38589 ac_check_lib_save_LIBS=$LIBS
38590 LIBS="-lss7 ${pbxlibdir} $LIBS"
38591 cat >conftest.$ac_ext <<_ACEOF
38592 /* confdefs.h. */
38593 _ACEOF
38594 cat confdefs.h >>conftest.$ac_ext
38595 cat >>conftest.$ac_ext <<_ACEOF
38596 /* end confdefs.h. */
38598 /* Override any GCC internal prototype to avoid an error.
38599 Use char because int might match the return type of a GCC
38600 builtin and then its argument prototype would still apply. */
38601 #ifdef __cplusplus
38602 extern "C"
38603 #endif
38604 char ${pbxfuncname} ();
38606 main ()
38608 return ${pbxfuncname} ();
38610 return 0;
38612 _ACEOF
38613 rm -f conftest.$ac_objext conftest$ac_exeext
38614 if { (ac_try="$ac_link"
38615 case "(($ac_try" in
38616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38617 *) ac_try_echo=$ac_try;;
38618 esac
38619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38620 (eval "$ac_link") 2>conftest.er1
38621 ac_status=$?
38622 grep -v '^ *+' conftest.er1 >conftest.err
38623 rm -f conftest.er1
38624 cat conftest.err >&5
38625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626 (exit $ac_status); } && {
38627 test -z "$ac_c_werror_flag" ||
38628 test ! -s conftest.err
38629 } && test -s conftest$ac_exeext &&
38630 $as_test_x conftest$ac_exeext; then
38631 eval "$as_ac_Lib=yes"
38632 else
38633 echo "$as_me: failed program was:" >&5
38634 sed 's/^/| /' conftest.$ac_ext >&5
38636 eval "$as_ac_Lib=no"
38639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38640 conftest$ac_exeext conftest.$ac_ext
38641 LIBS=$ac_check_lib_save_LIBS
38643 ac_res=`eval echo '${'$as_ac_Lib'}'`
38644 { echo "$as_me:$LINENO: result: $ac_res" >&5
38645 echo "${ECHO_T}$ac_res" >&6; }
38646 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38647 AST_SS7_FOUND=yes
38648 else
38649 AST_SS7_FOUND=no
38654 # now check for the header.
38655 if test "${AST_SS7_FOUND}" = "yes"; then
38656 SS7_LIB="${pbxlibdir} -lss7 "
38657 # if --with-SS7=DIR has been specified, use it.
38658 if test "x${SS7_DIR}" != "x"; then
38659 SS7_INCLUDE="-I${SS7_DIR}/include"
38661 SS7_INCLUDE="${SS7_INCLUDE} "
38662 if test "xlibss7.h" = "x" ; then # no header, assume found
38663 SS7_HEADER_FOUND="1"
38664 else # check for the header
38665 saved_cppflags="${CPPFLAGS}"
38666 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE} "
38667 if test "${ac_cv_header_libss7_h+set}" = set; then
38668 { echo "$as_me:$LINENO: checking for libss7.h" >&5
38669 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
38670 if test "${ac_cv_header_libss7_h+set}" = set; then
38671 echo $ECHO_N "(cached) $ECHO_C" >&6
38673 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
38674 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
38675 else
38676 # Is the header compilable?
38677 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
38678 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
38679 cat >conftest.$ac_ext <<_ACEOF
38680 /* confdefs.h. */
38681 _ACEOF
38682 cat confdefs.h >>conftest.$ac_ext
38683 cat >>conftest.$ac_ext <<_ACEOF
38684 /* end confdefs.h. */
38685 $ac_includes_default
38686 #include <libss7.h>
38687 _ACEOF
38688 rm -f conftest.$ac_objext
38689 if { (ac_try="$ac_compile"
38690 case "(($ac_try" in
38691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38692 *) ac_try_echo=$ac_try;;
38693 esac
38694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38695 (eval "$ac_compile") 2>conftest.er1
38696 ac_status=$?
38697 grep -v '^ *+' conftest.er1 >conftest.err
38698 rm -f conftest.er1
38699 cat conftest.err >&5
38700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701 (exit $ac_status); } && {
38702 test -z "$ac_c_werror_flag" ||
38703 test ! -s conftest.err
38704 } && test -s conftest.$ac_objext; then
38705 ac_header_compiler=yes
38706 else
38707 echo "$as_me: failed program was:" >&5
38708 sed 's/^/| /' conftest.$ac_ext >&5
38710 ac_header_compiler=no
38713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38715 echo "${ECHO_T}$ac_header_compiler" >&6; }
38717 # Is the header present?
38718 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
38719 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
38720 cat >conftest.$ac_ext <<_ACEOF
38721 /* confdefs.h. */
38722 _ACEOF
38723 cat confdefs.h >>conftest.$ac_ext
38724 cat >>conftest.$ac_ext <<_ACEOF
38725 /* end confdefs.h. */
38726 #include <libss7.h>
38727 _ACEOF
38728 if { (ac_try="$ac_cpp conftest.$ac_ext"
38729 case "(($ac_try" in
38730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38731 *) ac_try_echo=$ac_try;;
38732 esac
38733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38735 ac_status=$?
38736 grep -v '^ *+' conftest.er1 >conftest.err
38737 rm -f conftest.er1
38738 cat conftest.err >&5
38739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740 (exit $ac_status); } >/dev/null && {
38741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38742 test ! -s conftest.err
38743 }; then
38744 ac_header_preproc=yes
38745 else
38746 echo "$as_me: failed program was:" >&5
38747 sed 's/^/| /' conftest.$ac_ext >&5
38749 ac_header_preproc=no
38752 rm -f conftest.err conftest.$ac_ext
38753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38754 echo "${ECHO_T}$ac_header_preproc" >&6; }
38756 # So? What about this header?
38757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38758 yes:no: )
38759 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
38760 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38761 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
38762 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
38763 ac_header_preproc=yes
38765 no:yes:* )
38766 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
38767 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
38768 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
38769 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
38770 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
38771 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
38772 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
38773 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
38774 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
38775 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
38776 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
38777 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
38778 ( cat <<\_ASBOX
38779 ## ------------------------------- ##
38780 ## Report this to www.asterisk.org ##
38781 ## ------------------------------- ##
38782 _ASBOX
38783 ) | sed "s/^/$as_me: WARNING: /" >&2
38785 esac
38786 { echo "$as_me:$LINENO: checking for libss7.h" >&5
38787 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
38788 if test "${ac_cv_header_libss7_h+set}" = set; then
38789 echo $ECHO_N "(cached) $ECHO_C" >&6
38790 else
38791 ac_cv_header_libss7_h=$ac_header_preproc
38793 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
38794 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
38797 if test $ac_cv_header_libss7_h = yes; then
38798 SS7_HEADER_FOUND=1
38799 else
38800 SS7_HEADER_FOUND=0
38804 CPPFLAGS="${saved_cppflags}"
38806 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
38807 SS7_LIB=""
38808 SS7_INCLUDE=""
38809 else
38810 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38811 SS7_LIB=""
38813 PBX_SS7=1
38814 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38816 cat >>confdefs.h <<_ACEOF
38817 #define HAVE_SS7 1
38818 _ACEOF
38821 cat >>confdefs.h <<_ACEOF
38822 #define HAVE_SS7_VERSION
38823 _ACEOF
38830 if test "${USE_PWLIB}" != "no"; then
38831 if test -n "${PWLIB_DIR}"; then
38832 PWLIBDIR="${PWLIB_DIR}"
38837 PWLIB_INCDIR=
38838 PWLIB_LIBDIR=
38839 ac_ext=cpp
38840 ac_cpp='$CXXCPP $CPPFLAGS'
38841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38845 if test "${PWLIBDIR:-unset}" != "unset" ; then
38846 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
38847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38848 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
38849 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
38850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38851 echo $ECHO_N "(cached) $ECHO_C" >&6
38853 ac_res=`eval echo '${'$as_ac_Header'}'`
38854 { echo "$as_me:$LINENO: result: $ac_res" >&5
38855 echo "${ECHO_T}$ac_res" >&6; }
38856 else
38857 # Is the header compilable?
38858 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
38859 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
38860 cat >conftest.$ac_ext <<_ACEOF
38861 /* confdefs.h. */
38862 _ACEOF
38863 cat confdefs.h >>conftest.$ac_ext
38864 cat >>conftest.$ac_ext <<_ACEOF
38865 /* end confdefs.h. */
38866 $ac_includes_default
38867 #include <${PWLIBDIR}/version.h>
38868 _ACEOF
38869 rm -f conftest.$ac_objext
38870 if { (ac_try="$ac_compile"
38871 case "(($ac_try" in
38872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38873 *) ac_try_echo=$ac_try;;
38874 esac
38875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38876 (eval "$ac_compile") 2>conftest.er1
38877 ac_status=$?
38878 grep -v '^ *+' conftest.er1 >conftest.err
38879 rm -f conftest.er1
38880 cat conftest.err >&5
38881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882 (exit $ac_status); } && {
38883 test -z "$ac_cxx_werror_flag" ||
38884 test ! -s conftest.err
38885 } && test -s conftest.$ac_objext; then
38886 ac_header_compiler=yes
38887 else
38888 echo "$as_me: failed program was:" >&5
38889 sed 's/^/| /' conftest.$ac_ext >&5
38891 ac_header_compiler=no
38894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38896 echo "${ECHO_T}$ac_header_compiler" >&6; }
38898 # Is the header present?
38899 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
38900 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
38901 cat >conftest.$ac_ext <<_ACEOF
38902 /* confdefs.h. */
38903 _ACEOF
38904 cat confdefs.h >>conftest.$ac_ext
38905 cat >>conftest.$ac_ext <<_ACEOF
38906 /* end confdefs.h. */
38907 #include <${PWLIBDIR}/version.h>
38908 _ACEOF
38909 if { (ac_try="$ac_cpp conftest.$ac_ext"
38910 case "(($ac_try" in
38911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38912 *) ac_try_echo=$ac_try;;
38913 esac
38914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38916 ac_status=$?
38917 grep -v '^ *+' conftest.er1 >conftest.err
38918 rm -f conftest.er1
38919 cat conftest.err >&5
38920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38921 (exit $ac_status); } >/dev/null && {
38922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
38923 test ! -s conftest.err
38924 }; then
38925 ac_header_preproc=yes
38926 else
38927 echo "$as_me: failed program was:" >&5
38928 sed 's/^/| /' conftest.$ac_ext >&5
38930 ac_header_preproc=no
38933 rm -f conftest.err conftest.$ac_ext
38934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38935 echo "${ECHO_T}$ac_header_preproc" >&6; }
38937 # So? What about this header?
38938 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38939 yes:no: )
38940 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
38941 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38942 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
38943 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
38944 ac_header_preproc=yes
38946 no:yes:* )
38947 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
38948 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
38949 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
38950 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
38951 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
38952 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
38953 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
38954 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
38955 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
38956 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
38957 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
38958 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
38959 ( cat <<\_ASBOX
38960 ## ------------------------------- ##
38961 ## Report this to www.asterisk.org ##
38962 ## ------------------------------- ##
38963 _ASBOX
38964 ) | sed "s/^/$as_me: WARNING: /" >&2
38966 esac
38967 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
38968 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
38969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38970 echo $ECHO_N "(cached) $ECHO_C" >&6
38971 else
38972 eval "$as_ac_Header=\$ac_header_preproc"
38974 ac_res=`eval echo '${'$as_ac_Header'}'`
38975 { echo "$as_me:$LINENO: result: $ac_res" >&5
38976 echo "${ECHO_T}$ac_res" >&6; }
38979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38980 HAS_PWLIB=1
38985 if test "${HAS_PWLIB:-unset}" = "unset" ; then
38986 if test "${OPENH323DIR:-unset}" != "unset"; then
38987 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
38988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38989 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
38990 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
38991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38992 echo $ECHO_N "(cached) $ECHO_C" >&6
38994 ac_res=`eval echo '${'$as_ac_Header'}'`
38995 { echo "$as_me:$LINENO: result: $ac_res" >&5
38996 echo "${ECHO_T}$ac_res" >&6; }
38997 else
38998 # Is the header compilable?
38999 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
39000 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
39001 cat >conftest.$ac_ext <<_ACEOF
39002 /* confdefs.h. */
39003 _ACEOF
39004 cat confdefs.h >>conftest.$ac_ext
39005 cat >>conftest.$ac_ext <<_ACEOF
39006 /* end confdefs.h. */
39007 $ac_includes_default
39008 #include <${OPENH323DIR}/../pwlib/version.h>
39009 _ACEOF
39010 rm -f conftest.$ac_objext
39011 if { (ac_try="$ac_compile"
39012 case "(($ac_try" in
39013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39014 *) ac_try_echo=$ac_try;;
39015 esac
39016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39017 (eval "$ac_compile") 2>conftest.er1
39018 ac_status=$?
39019 grep -v '^ *+' conftest.er1 >conftest.err
39020 rm -f conftest.er1
39021 cat conftest.err >&5
39022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39023 (exit $ac_status); } && {
39024 test -z "$ac_cxx_werror_flag" ||
39025 test ! -s conftest.err
39026 } && test -s conftest.$ac_objext; then
39027 ac_header_compiler=yes
39028 else
39029 echo "$as_me: failed program was:" >&5
39030 sed 's/^/| /' conftest.$ac_ext >&5
39032 ac_header_compiler=no
39035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39037 echo "${ECHO_T}$ac_header_compiler" >&6; }
39039 # Is the header present?
39040 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
39041 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
39042 cat >conftest.$ac_ext <<_ACEOF
39043 /* confdefs.h. */
39044 _ACEOF
39045 cat confdefs.h >>conftest.$ac_ext
39046 cat >>conftest.$ac_ext <<_ACEOF
39047 /* end confdefs.h. */
39048 #include <${OPENH323DIR}/../pwlib/version.h>
39049 _ACEOF
39050 if { (ac_try="$ac_cpp conftest.$ac_ext"
39051 case "(($ac_try" in
39052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39053 *) ac_try_echo=$ac_try;;
39054 esac
39055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39057 ac_status=$?
39058 grep -v '^ *+' conftest.er1 >conftest.err
39059 rm -f conftest.er1
39060 cat conftest.err >&5
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); } >/dev/null && {
39063 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39064 test ! -s conftest.err
39065 }; then
39066 ac_header_preproc=yes
39067 else
39068 echo "$as_me: failed program was:" >&5
39069 sed 's/^/| /' conftest.$ac_ext >&5
39071 ac_header_preproc=no
39074 rm -f conftest.err conftest.$ac_ext
39075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39076 echo "${ECHO_T}$ac_header_preproc" >&6; }
39078 # So? What about this header?
39079 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39080 yes:no: )
39081 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39082 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39083 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
39084 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
39085 ac_header_preproc=yes
39087 no:yes:* )
39088 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
39089 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
39090 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
39091 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
39092 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
39093 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
39094 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
39095 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39096 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
39097 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
39098 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
39099 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
39100 ( cat <<\_ASBOX
39101 ## ------------------------------- ##
39102 ## Report this to www.asterisk.org ##
39103 ## ------------------------------- ##
39104 _ASBOX
39105 ) | sed "s/^/$as_me: WARNING: /" >&2
39107 esac
39108 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39109 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39111 echo $ECHO_N "(cached) $ECHO_C" >&6
39112 else
39113 eval "$as_ac_Header=\$ac_header_preproc"
39115 ac_res=`eval echo '${'$as_ac_Header'}'`
39116 { echo "$as_me:$LINENO: result: $ac_res" >&5
39117 echo "${ECHO_T}$ac_res" >&6; }
39120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39121 HAS_PWLIB=1
39126 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39127 PWLIBDIR="${OPENH323DIR}/../pwlib"
39128 else
39129 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
39130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39131 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39132 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39134 echo $ECHO_N "(cached) $ECHO_C" >&6
39136 ac_res=`eval echo '${'$as_ac_Header'}'`
39137 { echo "$as_me:$LINENO: result: $ac_res" >&5
39138 echo "${ECHO_T}$ac_res" >&6; }
39139 else
39140 # Is the header compilable?
39141 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
39142 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
39143 cat >conftest.$ac_ext <<_ACEOF
39144 /* confdefs.h. */
39145 _ACEOF
39146 cat confdefs.h >>conftest.$ac_ext
39147 cat >>conftest.$ac_ext <<_ACEOF
39148 /* end confdefs.h. */
39149 $ac_includes_default
39150 #include <${HOME}/pwlib/include/ptlib.h>
39151 _ACEOF
39152 rm -f conftest.$ac_objext
39153 if { (ac_try="$ac_compile"
39154 case "(($ac_try" in
39155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39156 *) ac_try_echo=$ac_try;;
39157 esac
39158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39159 (eval "$ac_compile") 2>conftest.er1
39160 ac_status=$?
39161 grep -v '^ *+' conftest.er1 >conftest.err
39162 rm -f conftest.er1
39163 cat conftest.err >&5
39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165 (exit $ac_status); } && {
39166 test -z "$ac_cxx_werror_flag" ||
39167 test ! -s conftest.err
39168 } && test -s conftest.$ac_objext; then
39169 ac_header_compiler=yes
39170 else
39171 echo "$as_me: failed program was:" >&5
39172 sed 's/^/| /' conftest.$ac_ext >&5
39174 ac_header_compiler=no
39177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39179 echo "${ECHO_T}$ac_header_compiler" >&6; }
39181 # Is the header present?
39182 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
39183 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
39184 cat >conftest.$ac_ext <<_ACEOF
39185 /* confdefs.h. */
39186 _ACEOF
39187 cat confdefs.h >>conftest.$ac_ext
39188 cat >>conftest.$ac_ext <<_ACEOF
39189 /* end confdefs.h. */
39190 #include <${HOME}/pwlib/include/ptlib.h>
39191 _ACEOF
39192 if { (ac_try="$ac_cpp conftest.$ac_ext"
39193 case "(($ac_try" in
39194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39195 *) ac_try_echo=$ac_try;;
39196 esac
39197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39199 ac_status=$?
39200 grep -v '^ *+' conftest.er1 >conftest.err
39201 rm -f conftest.er1
39202 cat conftest.err >&5
39203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39204 (exit $ac_status); } >/dev/null && {
39205 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39206 test ! -s conftest.err
39207 }; then
39208 ac_header_preproc=yes
39209 else
39210 echo "$as_me: failed program was:" >&5
39211 sed 's/^/| /' conftest.$ac_ext >&5
39213 ac_header_preproc=no
39216 rm -f conftest.err conftest.$ac_ext
39217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39218 echo "${ECHO_T}$ac_header_preproc" >&6; }
39220 # So? What about this header?
39221 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39222 yes:no: )
39223 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39224 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39225 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
39226 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
39227 ac_header_preproc=yes
39229 no:yes:* )
39230 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
39231 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
39232 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
39233 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39234 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
39235 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
39236 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39237 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39238 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
39239 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39240 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
39241 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39242 ( cat <<\_ASBOX
39243 ## ------------------------------- ##
39244 ## Report this to www.asterisk.org ##
39245 ## ------------------------------- ##
39246 _ASBOX
39247 ) | sed "s/^/$as_me: WARNING: /" >&2
39249 esac
39250 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39251 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39253 echo $ECHO_N "(cached) $ECHO_C" >&6
39254 else
39255 eval "$as_ac_Header=\$ac_header_preproc"
39257 ac_res=`eval echo '${'$as_ac_Header'}'`
39258 { echo "$as_me:$LINENO: result: $ac_res" >&5
39259 echo "${ECHO_T}$ac_res" >&6; }
39262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39263 HAS_PWLIB=1
39267 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39268 PWLIBDIR="${HOME}/pwlib"
39269 else
39270 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39271 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
39272 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
39273 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39274 echo $ECHO_N "(cached) $ECHO_C" >&6
39276 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
39277 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
39278 else
39279 # Is the header compilable?
39280 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
39281 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
39282 cat >conftest.$ac_ext <<_ACEOF
39283 /* confdefs.h. */
39284 _ACEOF
39285 cat confdefs.h >>conftest.$ac_ext
39286 cat >>conftest.$ac_ext <<_ACEOF
39287 /* end confdefs.h. */
39288 $ac_includes_default
39289 #include </usr/local/include/ptlib.h>
39290 _ACEOF
39291 rm -f conftest.$ac_objext
39292 if { (ac_try="$ac_compile"
39293 case "(($ac_try" in
39294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39295 *) ac_try_echo=$ac_try;;
39296 esac
39297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39298 (eval "$ac_compile") 2>conftest.er1
39299 ac_status=$?
39300 grep -v '^ *+' conftest.er1 >conftest.err
39301 rm -f conftest.er1
39302 cat conftest.err >&5
39303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304 (exit $ac_status); } && {
39305 test -z "$ac_cxx_werror_flag" ||
39306 test ! -s conftest.err
39307 } && test -s conftest.$ac_objext; then
39308 ac_header_compiler=yes
39309 else
39310 echo "$as_me: failed program was:" >&5
39311 sed 's/^/| /' conftest.$ac_ext >&5
39313 ac_header_compiler=no
39316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39318 echo "${ECHO_T}$ac_header_compiler" >&6; }
39320 # Is the header present?
39321 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
39322 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
39323 cat >conftest.$ac_ext <<_ACEOF
39324 /* confdefs.h. */
39325 _ACEOF
39326 cat confdefs.h >>conftest.$ac_ext
39327 cat >>conftest.$ac_ext <<_ACEOF
39328 /* end confdefs.h. */
39329 #include </usr/local/include/ptlib.h>
39330 _ACEOF
39331 if { (ac_try="$ac_cpp conftest.$ac_ext"
39332 case "(($ac_try" in
39333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39334 *) ac_try_echo=$ac_try;;
39335 esac
39336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39338 ac_status=$?
39339 grep -v '^ *+' conftest.er1 >conftest.err
39340 rm -f conftest.er1
39341 cat conftest.err >&5
39342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343 (exit $ac_status); } >/dev/null && {
39344 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39345 test ! -s conftest.err
39346 }; then
39347 ac_header_preproc=yes
39348 else
39349 echo "$as_me: failed program was:" >&5
39350 sed 's/^/| /' conftest.$ac_ext >&5
39352 ac_header_preproc=no
39355 rm -f conftest.err conftest.$ac_ext
39356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39357 echo "${ECHO_T}$ac_header_preproc" >&6; }
39359 # So? What about this header?
39360 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39361 yes:no: )
39362 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39363 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39364 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
39365 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
39366 ac_header_preproc=yes
39368 no:yes:* )
39369 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
39370 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
39371 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
39372 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39373 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
39374 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
39375 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39376 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39377 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
39378 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39379 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
39380 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39381 ( cat <<\_ASBOX
39382 ## ------------------------------- ##
39383 ## Report this to www.asterisk.org ##
39384 ## ------------------------------- ##
39385 _ASBOX
39386 ) | sed "s/^/$as_me: WARNING: /" >&2
39388 esac
39389 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
39390 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
39391 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39392 echo $ECHO_N "(cached) $ECHO_C" >&6
39393 else
39394 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
39396 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
39397 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
39400 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
39401 HAS_PWLIB=1
39405 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39406 # Extract the first word of "ptlib-config", so it can be a program name with args.
39407 set dummy ptlib-config; ac_word=$2
39408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39410 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39411 echo $ECHO_N "(cached) $ECHO_C" >&6
39412 else
39413 case $PTLIB_CONFIG in
39414 [\\/]* | ?:[\\/]*)
39415 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39419 for as_dir in /usr/local/bin
39421 IFS=$as_save_IFS
39422 test -z "$as_dir" && as_dir=.
39423 for ac_exec_ext in '' $ac_executable_extensions; do
39424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39425 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39427 break 2
39429 done
39430 done
39431 IFS=$as_save_IFS
39434 esac
39436 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
39437 if test -n "$PTLIB_CONFIG"; then
39438 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
39439 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
39440 else
39441 { echo "$as_me:$LINENO: result: no" >&5
39442 echo "${ECHO_T}no" >&6; }
39446 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
39447 # Extract the first word of "ptlib-config", so it can be a program name with args.
39448 set dummy ptlib-config; ac_word=$2
39449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39451 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39452 echo $ECHO_N "(cached) $ECHO_C" >&6
39453 else
39454 case $PTLIB_CONFIG in
39455 [\\/]* | ?:[\\/]*)
39456 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39460 for as_dir in /usr/local/share/pwlib/make
39462 IFS=$as_save_IFS
39463 test -z "$as_dir" && as_dir=.
39464 for ac_exec_ext in '' $ac_executable_extensions; do
39465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39466 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39468 break 2
39470 done
39471 done
39472 IFS=$as_save_IFS
39475 esac
39477 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
39478 if test -n "$PTLIB_CONFIG"; then
39479 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
39480 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
39481 else
39482 { echo "$as_me:$LINENO: result: no" >&5
39483 echo "${ECHO_T}no" >&6; }
39488 PWLIB_INCDIR="/usr/local/include"
39489 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
39490 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
39491 if test "x$LIB64" != "x"; then
39492 PWLIB_LIBDIR="/usr/local/lib64"
39493 else
39494 PWLIB_LIBDIR="/usr/local/lib"
39497 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
39498 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
39499 else
39500 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39501 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
39502 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
39503 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39504 echo $ECHO_N "(cached) $ECHO_C" >&6
39506 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
39507 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
39508 else
39509 # Is the header compilable?
39510 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
39511 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
39512 cat >conftest.$ac_ext <<_ACEOF
39513 /* confdefs.h. */
39514 _ACEOF
39515 cat confdefs.h >>conftest.$ac_ext
39516 cat >>conftest.$ac_ext <<_ACEOF
39517 /* end confdefs.h. */
39518 $ac_includes_default
39519 #include </usr/include/ptlib.h>
39520 _ACEOF
39521 rm -f conftest.$ac_objext
39522 if { (ac_try="$ac_compile"
39523 case "(($ac_try" in
39524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39525 *) ac_try_echo=$ac_try;;
39526 esac
39527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39528 (eval "$ac_compile") 2>conftest.er1
39529 ac_status=$?
39530 grep -v '^ *+' conftest.er1 >conftest.err
39531 rm -f conftest.er1
39532 cat conftest.err >&5
39533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39534 (exit $ac_status); } && {
39535 test -z "$ac_cxx_werror_flag" ||
39536 test ! -s conftest.err
39537 } && test -s conftest.$ac_objext; then
39538 ac_header_compiler=yes
39539 else
39540 echo "$as_me: failed program was:" >&5
39541 sed 's/^/| /' conftest.$ac_ext >&5
39543 ac_header_compiler=no
39546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39548 echo "${ECHO_T}$ac_header_compiler" >&6; }
39550 # Is the header present?
39551 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
39552 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
39553 cat >conftest.$ac_ext <<_ACEOF
39554 /* confdefs.h. */
39555 _ACEOF
39556 cat confdefs.h >>conftest.$ac_ext
39557 cat >>conftest.$ac_ext <<_ACEOF
39558 /* end confdefs.h. */
39559 #include </usr/include/ptlib.h>
39560 _ACEOF
39561 if { (ac_try="$ac_cpp conftest.$ac_ext"
39562 case "(($ac_try" in
39563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39564 *) ac_try_echo=$ac_try;;
39565 esac
39566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39568 ac_status=$?
39569 grep -v '^ *+' conftest.er1 >conftest.err
39570 rm -f conftest.er1
39571 cat conftest.err >&5
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); } >/dev/null && {
39574 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39575 test ! -s conftest.err
39576 }; then
39577 ac_header_preproc=yes
39578 else
39579 echo "$as_me: failed program was:" >&5
39580 sed 's/^/| /' conftest.$ac_ext >&5
39582 ac_header_preproc=no
39585 rm -f conftest.err conftest.$ac_ext
39586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39587 echo "${ECHO_T}$ac_header_preproc" >&6; }
39589 # So? What about this header?
39590 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39591 yes:no: )
39592 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39593 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39594 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
39595 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
39596 ac_header_preproc=yes
39598 no:yes:* )
39599 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
39600 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
39601 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
39602 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39603 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
39604 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
39605 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39606 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39607 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
39608 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39609 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
39610 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39611 ( cat <<\_ASBOX
39612 ## ------------------------------- ##
39613 ## Report this to www.asterisk.org ##
39614 ## ------------------------------- ##
39615 _ASBOX
39616 ) | sed "s/^/$as_me: WARNING: /" >&2
39618 esac
39619 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
39620 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
39621 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39622 echo $ECHO_N "(cached) $ECHO_C" >&6
39623 else
39624 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
39626 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
39627 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
39630 if test $ac_cv_header__usr_include_ptlib_h = yes; then
39631 HAS_PWLIB=1
39635 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39636 # Extract the first word of "ptlib-config", so it can be a program name with args.
39637 set dummy ptlib-config; ac_word=$2
39638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39640 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39641 echo $ECHO_N "(cached) $ECHO_C" >&6
39642 else
39643 case $PTLIB_CONFIG in
39644 [\\/]* | ?:[\\/]*)
39645 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39649 for as_dir in /usr/share/pwlib/make
39651 IFS=$as_save_IFS
39652 test -z "$as_dir" && as_dir=.
39653 for ac_exec_ext in '' $ac_executable_extensions; do
39654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39655 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39657 break 2
39659 done
39660 done
39661 IFS=$as_save_IFS
39664 esac
39666 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
39667 if test -n "$PTLIB_CONFIG"; then
39668 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
39669 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
39670 else
39671 { echo "$as_me:$LINENO: result: no" >&5
39672 echo "${ECHO_T}no" >&6; }
39676 PWLIB_INCDIR="/usr/include"
39677 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
39678 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
39679 if test "x$LIB64" != "x"; then
39680 PWLIB_LIBDIR="/usr/lib64"
39681 else
39682 PWLIB_LIBDIR="/usr/lib"
39685 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
39686 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
39693 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
39694 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
39695 # exit
39698 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39699 if test "${PWLIBDIR:-unset}" = "unset" ; then
39700 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
39701 PWLIBDIR=`$PTLIB_CONFIG --prefix`
39702 else
39703 echo "Cannot find ptlib-config - please install and try again"
39704 exit
39708 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
39709 PWLIBDIR="/usr/share/pwlib"
39710 PWLIB_INCDIR="/usr/include"
39711 if test "x$LIB64" != "x"; then
39712 PWLIB_LIBDIR="/usr/lib64"
39713 else
39714 PWLIB_LIBDIR="/usr/lib"
39717 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
39718 PWLIBDIR="/usr/local/share/pwlib"
39719 PWLIB_INCDIR="/usr/local/include"
39720 if test "x$LIB64" != "x"; then
39721 PWLIB_LIBDIR="/usr/local/lib64"
39722 else
39723 PWLIB_LIBDIR="/usr/local/lib"
39727 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
39728 PWLIB_INCDIR="${PWLIBDIR}/include"
39730 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
39731 PWLIB_LIBDIR="${PWLIBDIR}/lib"
39738 ac_ext=c
39739 ac_cpp='$CPP $CPPFLAGS'
39740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39746 if test "${HAS_PWLIB:-unset}" != "unset"; then
39747 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
39748 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
39749 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
39750 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
39751 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
39752 let PWLIB_REQ=1*10000+9*100+2
39754 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
39755 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
39756 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
39757 { echo "$as_me:$LINENO: result: no" >&5
39758 echo "${ECHO_T}no" >&6; }
39759 unset HAS_PWLIB
39760 else
39761 { echo "$as_me:$LINENO: result: yes" >&5
39762 echo "${ECHO_T}yes" >&6; }
39767 if test "${HAS_PWLIB:-unset}" != "unset"; then
39769 PWLIB_OSTYPE=
39770 case "$host_os" in
39771 linux*) PWLIB_OSTYPE=linux ;
39773 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
39775 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
39776 ENDLDLIBS="-lossaudio" ;
39778 netbsd* ) PWLIB_OSTYPE=NetBSD ;
39779 ENDLDLIBS="-lossaudio" ;
39781 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
39783 darwin* ) PWLIB_OSTYPE=Darwin ;
39785 beos*) PWLIB_OSTYPE=beos ;
39786 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
39788 cygwin*) PWLIB_OSTYPE=cygwin ;
39790 mingw*) PWLIB_OSTYPE=mingw ;
39791 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
39792 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
39794 * ) PWLIB_OSTYPE="$host_os" ;
39795 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
39796 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
39798 esac
39800 PWLIB_MACHTYPE=
39801 case "$host_cpu" in
39802 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
39805 x86_64) PWLIB_MACHTYPE=x86_64 ;
39806 P_64BIT=1 ;
39807 LIB64=1 ;
39810 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
39811 P_64BIT=1 ;
39814 sparc ) PWLIB_MACHTYPE=sparc ;
39817 powerpc ) PWLIB_MACHTYPE=ppc ;
39820 ppc ) PWLIB_MACHTYPE=ppc ;
39823 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
39824 P_64BIT=1 ;
39825 LIB64=1 ;
39828 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
39829 P_64BIT=1 ;
39830 LIB64=1 ;
39833 ia64) PWLIB_MACHTYPE=ia64 ;
39834 P_64BIT=1 ;
39837 s390x) PWLIB_MACHTYPE=s390x ;
39838 P_64BIT=1 ;
39839 LIB64=1 ;
39842 s390) PWLIB_MACHTYPE=s390 ;
39845 * ) PWLIB_MACHTYPE="$host_cpu";
39846 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
39847 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
39848 esac
39850 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
39855 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
39858 if test "${HAS_PWLIB:-unset}" != "unset"; then
39859 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
39860 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
39862 saved_cppflags="${CPPFLAGS}"
39863 saved_libs="${LIBS}"
39864 if test "${PWLIB_LIB:-unset}" != "unset"; then
39865 LIBS="${LIBS} ${PWLIB_LIB} "
39866 else
39867 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
39869 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
39871 ac_ext=cpp
39872 ac_cpp='$CXXCPP $CPPFLAGS'
39873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39878 cat >conftest.$ac_ext <<_ACEOF
39879 /* confdefs.h. */
39880 _ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h. */
39884 #include "ptlib.h"
39886 main ()
39888 BOOL q = PTime::IsDaylightSavings();
39890 return 0;
39892 _ACEOF
39893 rm -f conftest.$ac_objext conftest$ac_exeext
39894 if { (ac_try="$ac_link"
39895 case "(($ac_try" in
39896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897 *) ac_try_echo=$ac_try;;
39898 esac
39899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39900 (eval "$ac_link") 2>conftest.er1
39901 ac_status=$?
39902 grep -v '^ *+' conftest.er1 >conftest.err
39903 rm -f conftest.er1
39904 cat conftest.err >&5
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); } && {
39907 test -z "$ac_cxx_werror_flag" ||
39908 test ! -s conftest.err
39909 } && test -s conftest$ac_exeext &&
39910 $as_test_x conftest$ac_exeext; then
39911 { echo "$as_me:$LINENO: result: yes" >&5
39912 echo "${ECHO_T}yes" >&6; }
39913 ac_cv_lib_PWLIB="yes"
39915 else
39916 echo "$as_me: failed program was:" >&5
39917 sed 's/^/| /' conftest.$ac_ext >&5
39919 { echo "$as_me:$LINENO: result: no" >&5
39920 echo "${ECHO_T}no" >&6; }
39921 ac_cv_lib_PWLIB="no"
39926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39927 conftest$ac_exeext conftest.$ac_ext
39929 ac_ext=c
39930 ac_cpp='$CPP $CPPFLAGS'
39931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39936 LIBS="${saved_libs}"
39937 CPPFLAGS="${saved_cppflags}"
39939 if test "${ac_cv_lib_PWLIB}" = "yes"; then
39940 if test "${PWLIB_LIB:-undef}" = "undef"; then
39941 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
39942 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
39943 else
39944 PWLIB_LIB="-l${PLATFORM_PWLIB}"
39947 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
39948 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
39950 PBX_PWLIB=1
39952 cat >>confdefs.h <<\_ACEOF
39953 #define HAVE_PWLIB 1
39954 _ACEOF
39962 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
39963 if test -n "${OPENH323_DIR}"; then
39964 OPENH323DIR="${OPENH323_DIR}"
39967 OPENH323_INCDIR=
39968 OPENH323_LIBDIR=
39969 ac_ext=cpp
39970 ac_cpp='$CXXCPP $CPPFLAGS'
39971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39975 if test "${OPENH323DIR:-unset}" != "unset" ; then
39976 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
39977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39978 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
39979 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
39980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39981 echo $ECHO_N "(cached) $ECHO_C" >&6
39983 ac_res=`eval echo '${'$as_ac_Header'}'`
39984 { echo "$as_me:$LINENO: result: $ac_res" >&5
39985 echo "${ECHO_T}$ac_res" >&6; }
39986 else
39987 # Is the header compilable?
39988 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
39989 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
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. */
39996 $ac_includes_default
39997 #include <${OPENH323DIR}/version.h>
39998 _ACEOF
39999 rm -f conftest.$ac_objext
40000 if { (ac_try="$ac_compile"
40001 case "(($ac_try" in
40002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40003 *) ac_try_echo=$ac_try;;
40004 esac
40005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40006 (eval "$ac_compile") 2>conftest.er1
40007 ac_status=$?
40008 grep -v '^ *+' conftest.er1 >conftest.err
40009 rm -f conftest.er1
40010 cat conftest.err >&5
40011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40012 (exit $ac_status); } && {
40013 test -z "$ac_cxx_werror_flag" ||
40014 test ! -s conftest.err
40015 } && test -s conftest.$ac_objext; then
40016 ac_header_compiler=yes
40017 else
40018 echo "$as_me: failed program was:" >&5
40019 sed 's/^/| /' conftest.$ac_ext >&5
40021 ac_header_compiler=no
40024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40026 echo "${ECHO_T}$ac_header_compiler" >&6; }
40028 # Is the header present?
40029 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
40030 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
40031 cat >conftest.$ac_ext <<_ACEOF
40032 /* confdefs.h. */
40033 _ACEOF
40034 cat confdefs.h >>conftest.$ac_ext
40035 cat >>conftest.$ac_ext <<_ACEOF
40036 /* end confdefs.h. */
40037 #include <${OPENH323DIR}/version.h>
40038 _ACEOF
40039 if { (ac_try="$ac_cpp conftest.$ac_ext"
40040 case "(($ac_try" in
40041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40042 *) ac_try_echo=$ac_try;;
40043 esac
40044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40046 ac_status=$?
40047 grep -v '^ *+' conftest.er1 >conftest.err
40048 rm -f conftest.er1
40049 cat conftest.err >&5
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); } >/dev/null && {
40052 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40053 test ! -s conftest.err
40054 }; then
40055 ac_header_preproc=yes
40056 else
40057 echo "$as_me: failed program was:" >&5
40058 sed 's/^/| /' conftest.$ac_ext >&5
40060 ac_header_preproc=no
40063 rm -f conftest.err conftest.$ac_ext
40064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40065 echo "${ECHO_T}$ac_header_preproc" >&6; }
40067 # So? What about this header?
40068 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40069 yes:no: )
40070 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40071 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40072 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
40073 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
40074 ac_header_preproc=yes
40076 no:yes:* )
40077 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
40078 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
40079 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
40080 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
40081 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
40082 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
40083 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40084 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40085 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
40086 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
40087 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
40088 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
40089 ( cat <<\_ASBOX
40090 ## ------------------------------- ##
40091 ## Report this to www.asterisk.org ##
40092 ## ------------------------------- ##
40093 _ASBOX
40094 ) | sed "s/^/$as_me: WARNING: /" >&2
40096 esac
40097 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40098 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40100 echo $ECHO_N "(cached) $ECHO_C" >&6
40101 else
40102 eval "$as_ac_Header=\$ac_header_preproc"
40104 ac_res=`eval echo '${'$as_ac_Header'}'`
40105 { echo "$as_me:$LINENO: result: $ac_res" >&5
40106 echo "${ECHO_T}$ac_res" >&6; }
40109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40110 HAS_OPENH323=1
40115 if test "${HAS_OPENH323:-unset}" = "unset" ; then
40116 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
40117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40118 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40119 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40121 echo $ECHO_N "(cached) $ECHO_C" >&6
40123 ac_res=`eval echo '${'$as_ac_Header'}'`
40124 { echo "$as_me:$LINENO: result: $ac_res" >&5
40125 echo "${ECHO_T}$ac_res" >&6; }
40126 else
40127 # Is the header compilable?
40128 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
40129 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
40130 cat >conftest.$ac_ext <<_ACEOF
40131 /* confdefs.h. */
40132 _ACEOF
40133 cat confdefs.h >>conftest.$ac_ext
40134 cat >>conftest.$ac_ext <<_ACEOF
40135 /* end confdefs.h. */
40136 $ac_includes_default
40137 #include <${PWLIBDIR}/../openh323/version.h>
40138 _ACEOF
40139 rm -f conftest.$ac_objext
40140 if { (ac_try="$ac_compile"
40141 case "(($ac_try" in
40142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40143 *) ac_try_echo=$ac_try;;
40144 esac
40145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40146 (eval "$ac_compile") 2>conftest.er1
40147 ac_status=$?
40148 grep -v '^ *+' conftest.er1 >conftest.err
40149 rm -f conftest.er1
40150 cat conftest.err >&5
40151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40152 (exit $ac_status); } && {
40153 test -z "$ac_cxx_werror_flag" ||
40154 test ! -s conftest.err
40155 } && test -s conftest.$ac_objext; then
40156 ac_header_compiler=yes
40157 else
40158 echo "$as_me: failed program was:" >&5
40159 sed 's/^/| /' conftest.$ac_ext >&5
40161 ac_header_compiler=no
40164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40166 echo "${ECHO_T}$ac_header_compiler" >&6; }
40168 # Is the header present?
40169 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
40170 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
40171 cat >conftest.$ac_ext <<_ACEOF
40172 /* confdefs.h. */
40173 _ACEOF
40174 cat confdefs.h >>conftest.$ac_ext
40175 cat >>conftest.$ac_ext <<_ACEOF
40176 /* end confdefs.h. */
40177 #include <${PWLIBDIR}/../openh323/version.h>
40178 _ACEOF
40179 if { (ac_try="$ac_cpp conftest.$ac_ext"
40180 case "(($ac_try" in
40181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40182 *) ac_try_echo=$ac_try;;
40183 esac
40184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40186 ac_status=$?
40187 grep -v '^ *+' conftest.er1 >conftest.err
40188 rm -f conftest.er1
40189 cat conftest.err >&5
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); } >/dev/null && {
40192 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40193 test ! -s conftest.err
40194 }; then
40195 ac_header_preproc=yes
40196 else
40197 echo "$as_me: failed program was:" >&5
40198 sed 's/^/| /' conftest.$ac_ext >&5
40200 ac_header_preproc=no
40203 rm -f conftest.err conftest.$ac_ext
40204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40205 echo "${ECHO_T}$ac_header_preproc" >&6; }
40207 # So? What about this header?
40208 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40209 yes:no: )
40210 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40211 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40212 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
40213 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
40214 ac_header_preproc=yes
40216 no:yes:* )
40217 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
40218 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
40219 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
40220 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
40221 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
40222 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
40223 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
40224 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40225 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
40226 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
40227 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
40228 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
40229 ( cat <<\_ASBOX
40230 ## ------------------------------- ##
40231 ## Report this to www.asterisk.org ##
40232 ## ------------------------------- ##
40233 _ASBOX
40234 ) | sed "s/^/$as_me: WARNING: /" >&2
40236 esac
40237 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40238 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40240 echo $ECHO_N "(cached) $ECHO_C" >&6
40241 else
40242 eval "$as_ac_Header=\$ac_header_preproc"
40244 ac_res=`eval echo '${'$as_ac_Header'}'`
40245 { echo "$as_me:$LINENO: result: $ac_res" >&5
40246 echo "${ECHO_T}$ac_res" >&6; }
40249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40250 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
40254 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40255 OPENH323DIR="${PWLIBDIR}/../openh323"
40256 saved_cppflags="${CPPFLAGS}"
40257 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
40258 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
40259 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
40260 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
40261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40262 echo $ECHO_N "(cached) $ECHO_C" >&6
40263 else
40264 cat >conftest.$ac_ext <<_ACEOF
40265 /* confdefs.h. */
40266 _ACEOF
40267 cat confdefs.h >>conftest.$ac_ext
40268 cat >>conftest.$ac_ext <<_ACEOF
40269 /* end confdefs.h. */
40270 #include <ptlib.h>
40272 #include <${OPENH323DIR}/include/h323.h>
40273 _ACEOF
40274 rm -f conftest.$ac_objext
40275 if { (ac_try="$ac_compile"
40276 case "(($ac_try" in
40277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40278 *) ac_try_echo=$ac_try;;
40279 esac
40280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40281 (eval "$ac_compile") 2>conftest.er1
40282 ac_status=$?
40283 grep -v '^ *+' conftest.er1 >conftest.err
40284 rm -f conftest.er1
40285 cat conftest.err >&5
40286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40287 (exit $ac_status); } && {
40288 test -z "$ac_cxx_werror_flag" ||
40289 test ! -s conftest.err
40290 } && test -s conftest.$ac_objext; then
40291 eval "$as_ac_Header=yes"
40292 else
40293 echo "$as_me: failed program was:" >&5
40294 sed 's/^/| /' conftest.$ac_ext >&5
40296 eval "$as_ac_Header=no"
40299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40301 ac_res=`eval echo '${'$as_ac_Header'}'`
40302 { echo "$as_me:$LINENO: result: $ac_res" >&5
40303 echo "${ECHO_T}$ac_res" >&6; }
40304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40306 else
40307 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
40311 CPPFLAGS="${saved_cppflags}"
40312 else
40313 saved_cppflags="${CPPFLAGS}"
40314 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
40315 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
40316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40317 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
40318 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
40319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40320 echo $ECHO_N "(cached) $ECHO_C" >&6
40322 ac_res=`eval echo '${'$as_ac_Header'}'`
40323 { echo "$as_me:$LINENO: result: $ac_res" >&5
40324 echo "${ECHO_T}$ac_res" >&6; }
40325 else
40326 # Is the header compilable?
40327 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
40328 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
40329 cat >conftest.$ac_ext <<_ACEOF
40330 /* confdefs.h. */
40331 _ACEOF
40332 cat confdefs.h >>conftest.$ac_ext
40333 cat >>conftest.$ac_ext <<_ACEOF
40334 /* end confdefs.h. */
40335 $ac_includes_default
40336 #include <${HOME}/openh323/include/h323.h>
40337 _ACEOF
40338 rm -f conftest.$ac_objext
40339 if { (ac_try="$ac_compile"
40340 case "(($ac_try" in
40341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40342 *) ac_try_echo=$ac_try;;
40343 esac
40344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40345 (eval "$ac_compile") 2>conftest.er1
40346 ac_status=$?
40347 grep -v '^ *+' conftest.er1 >conftest.err
40348 rm -f conftest.er1
40349 cat conftest.err >&5
40350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40351 (exit $ac_status); } && {
40352 test -z "$ac_cxx_werror_flag" ||
40353 test ! -s conftest.err
40354 } && test -s conftest.$ac_objext; then
40355 ac_header_compiler=yes
40356 else
40357 echo "$as_me: failed program was:" >&5
40358 sed 's/^/| /' conftest.$ac_ext >&5
40360 ac_header_compiler=no
40363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40365 echo "${ECHO_T}$ac_header_compiler" >&6; }
40367 # Is the header present?
40368 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
40369 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
40370 cat >conftest.$ac_ext <<_ACEOF
40371 /* confdefs.h. */
40372 _ACEOF
40373 cat confdefs.h >>conftest.$ac_ext
40374 cat >>conftest.$ac_ext <<_ACEOF
40375 /* end confdefs.h. */
40376 #include <${HOME}/openh323/include/h323.h>
40377 _ACEOF
40378 if { (ac_try="$ac_cpp conftest.$ac_ext"
40379 case "(($ac_try" in
40380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40381 *) ac_try_echo=$ac_try;;
40382 esac
40383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40385 ac_status=$?
40386 grep -v '^ *+' conftest.er1 >conftest.err
40387 rm -f conftest.er1
40388 cat conftest.err >&5
40389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390 (exit $ac_status); } >/dev/null && {
40391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40392 test ! -s conftest.err
40393 }; then
40394 ac_header_preproc=yes
40395 else
40396 echo "$as_me: failed program was:" >&5
40397 sed 's/^/| /' conftest.$ac_ext >&5
40399 ac_header_preproc=no
40402 rm -f conftest.err conftest.$ac_ext
40403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40404 echo "${ECHO_T}$ac_header_preproc" >&6; }
40406 # So? What about this header?
40407 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40408 yes:no: )
40409 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
40410 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40411 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
40412 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
40413 ac_header_preproc=yes
40415 no:yes:* )
40416 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
40417 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
40418 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
40419 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
40420 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
40421 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
40422 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
40423 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
40424 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
40425 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
40426 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
40427 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
40428 ( cat <<\_ASBOX
40429 ## ------------------------------- ##
40430 ## Report this to www.asterisk.org ##
40431 ## ------------------------------- ##
40432 _ASBOX
40433 ) | sed "s/^/$as_me: WARNING: /" >&2
40435 esac
40436 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
40437 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
40438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40439 echo $ECHO_N "(cached) $ECHO_C" >&6
40440 else
40441 eval "$as_ac_Header=\$ac_header_preproc"
40443 ac_res=`eval echo '${'$as_ac_Header'}'`
40444 { echo "$as_me:$LINENO: result: $ac_res" >&5
40445 echo "${ECHO_T}$ac_res" >&6; }
40448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40449 HAS_OPENH323=1
40453 CPPFLAGS="${saved_cppflags}"
40454 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40455 OPENH323DIR="${HOME}/openh323"
40456 else
40457 saved_cppflags="${CPPFLAGS}"
40458 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
40459 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40460 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
40461 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
40462 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40463 echo $ECHO_N "(cached) $ECHO_C" >&6
40465 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
40466 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
40467 else
40468 # Is the header compilable?
40469 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
40470 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
40471 cat >conftest.$ac_ext <<_ACEOF
40472 /* confdefs.h. */
40473 _ACEOF
40474 cat confdefs.h >>conftest.$ac_ext
40475 cat >>conftest.$ac_ext <<_ACEOF
40476 /* end confdefs.h. */
40477 $ac_includes_default
40478 #include </usr/local/include/openh323/h323.h>
40479 _ACEOF
40480 rm -f conftest.$ac_objext
40481 if { (ac_try="$ac_compile"
40482 case "(($ac_try" in
40483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40484 *) ac_try_echo=$ac_try;;
40485 esac
40486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40487 (eval "$ac_compile") 2>conftest.er1
40488 ac_status=$?
40489 grep -v '^ *+' conftest.er1 >conftest.err
40490 rm -f conftest.er1
40491 cat conftest.err >&5
40492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493 (exit $ac_status); } && {
40494 test -z "$ac_cxx_werror_flag" ||
40495 test ! -s conftest.err
40496 } && test -s conftest.$ac_objext; then
40497 ac_header_compiler=yes
40498 else
40499 echo "$as_me: failed program was:" >&5
40500 sed 's/^/| /' conftest.$ac_ext >&5
40502 ac_header_compiler=no
40505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40507 echo "${ECHO_T}$ac_header_compiler" >&6; }
40509 # Is the header present?
40510 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
40511 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
40512 cat >conftest.$ac_ext <<_ACEOF
40513 /* confdefs.h. */
40514 _ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h. */
40518 #include </usr/local/include/openh323/h323.h>
40519 _ACEOF
40520 if { (ac_try="$ac_cpp conftest.$ac_ext"
40521 case "(($ac_try" in
40522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40523 *) ac_try_echo=$ac_try;;
40524 esac
40525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40527 ac_status=$?
40528 grep -v '^ *+' conftest.er1 >conftest.err
40529 rm -f conftest.er1
40530 cat conftest.err >&5
40531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532 (exit $ac_status); } >/dev/null && {
40533 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40534 test ! -s conftest.err
40535 }; then
40536 ac_header_preproc=yes
40537 else
40538 echo "$as_me: failed program was:" >&5
40539 sed 's/^/| /' conftest.$ac_ext >&5
40541 ac_header_preproc=no
40544 rm -f conftest.err conftest.$ac_ext
40545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40546 echo "${ECHO_T}$ac_header_preproc" >&6; }
40548 # So? What about this header?
40549 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40550 yes:no: )
40551 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
40552 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40553 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
40554 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
40555 ac_header_preproc=yes
40557 no:yes:* )
40558 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
40559 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
40560 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
40561 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
40562 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
40563 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
40564 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
40565 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
40566 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
40567 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
40568 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
40569 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
40570 ( cat <<\_ASBOX
40571 ## ------------------------------- ##
40572 ## Report this to www.asterisk.org ##
40573 ## ------------------------------- ##
40574 _ASBOX
40575 ) | sed "s/^/$as_me: WARNING: /" >&2
40577 esac
40578 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
40579 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
40580 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40581 echo $ECHO_N "(cached) $ECHO_C" >&6
40582 else
40583 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
40585 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
40586 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
40589 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
40590 HAS_OPENH323=1
40594 CPPFLAGS="${saved_cppflags}"
40595 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40596 OPENH323DIR="/usr/local/share/openh323"
40597 OPENH323_INCDIR="/usr/local/include/openh323"
40598 if test "x$LIB64" != "x"; then
40599 OPENH323_LIBDIR="/usr/local/lib64"
40600 else
40601 OPENH323_LIBDIR="/usr/local/lib"
40603 else
40604 saved_cppflags="${CPPFLAGS}"
40605 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
40606 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
40607 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
40608 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
40609 echo $ECHO_N "(cached) $ECHO_C" >&6
40610 else
40611 cat >conftest.$ac_ext <<_ACEOF
40612 /* confdefs.h. */
40613 _ACEOF
40614 cat confdefs.h >>conftest.$ac_ext
40615 cat >>conftest.$ac_ext <<_ACEOF
40616 /* end confdefs.h. */
40617 #include <ptlib.h>
40619 #include </usr/include/openh323/h323.h>
40620 _ACEOF
40621 rm -f conftest.$ac_objext
40622 if { (ac_try="$ac_compile"
40623 case "(($ac_try" in
40624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40625 *) ac_try_echo=$ac_try;;
40626 esac
40627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40628 (eval "$ac_compile") 2>conftest.er1
40629 ac_status=$?
40630 grep -v '^ *+' conftest.er1 >conftest.err
40631 rm -f conftest.er1
40632 cat conftest.err >&5
40633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40634 (exit $ac_status); } && {
40635 test -z "$ac_cxx_werror_flag" ||
40636 test ! -s conftest.err
40637 } && test -s conftest.$ac_objext; then
40638 ac_cv_header__usr_include_openh323_h323_h=yes
40639 else
40640 echo "$as_me: failed program was:" >&5
40641 sed 's/^/| /' conftest.$ac_ext >&5
40643 ac_cv_header__usr_include_openh323_h323_h=no
40646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40648 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
40649 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
40650 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
40651 HAS_OPENH323=1
40655 CPPFLAGS="${saved_cppflags}"
40656 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40657 OPENH323DIR="/usr/share/openh323"
40658 OPENH323_INCDIR="/usr/include/openh323"
40659 if test "x$LIB64" != "x"; then
40660 OPENH323_LIBDIR="/usr/lib64"
40661 else
40662 OPENH323_LIBDIR="/usr/lib"
40670 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40671 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
40672 OPENH323_INCDIR="${OPENH323DIR}/include"
40674 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
40675 OPENH323_LIBDIR="${OPENH323DIR}/lib"
40678 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
40679 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
40680 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
40686 ac_ext=c
40687 ac_cpp='$CPP $CPPFLAGS'
40688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40694 if test "${HAS_OPENH323:-unset}" != "unset"; then
40695 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
40696 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
40697 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
40698 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
40699 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
40700 let OPENH323_REQ=1*10000+17*100+3
40702 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
40703 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
40704 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
40705 { echo "$as_me:$LINENO: result: no" >&5
40706 echo "${ECHO_T}no" >&6; }
40707 unset HAS_OPENH323
40708 else
40709 { echo "$as_me:$LINENO: result: yes" >&5
40710 echo "${ECHO_T}yes" >&6; }
40715 if test "${HAS_OPENH323:-unset}" != "unset"; then
40716 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
40717 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
40718 OPENH323_SUFFIX=
40719 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
40720 for pfx in $prefixes; do
40721 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
40722 libfile=
40723 if test -n "$files"; then
40724 for f in $files; do
40725 if test -f $f -a ! -L $f; then
40726 libfile=`basename $f`
40727 break;
40729 done
40731 if test -n "$libfile"; then
40732 OPENH323_PREFIX=$pfx
40733 break;
40735 done
40736 if test "${libfile:-unset}" != "unset"; then
40737 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
40739 case "${OPENH323_SUFFIX}" in
40741 OPENH323_BUILD="notrace";;
40743 OPENH323_BUILD="opt";;
40745 OPENH323_BUILD="debug";;
40747 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
40748 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
40749 if test "x$notrace" = "x"; then
40750 notrace="0"
40752 if test "$notrace" -ne 0; then
40753 OPENH323_BUILD="notrace"
40754 else
40755 OPENH323_BUILD="opt"
40757 OPENH323_LIB="-l${OPENH323_PREFIX}"
40758 else
40759 OPENH323_BUILD="notrace"
40762 esac
40763 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
40764 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
40770 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
40772 if test "${HAS_OPENH323:-unset}" != "unset"; then
40773 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
40774 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
40776 saved_cppflags="${CPPFLAGS}"
40777 saved_libs="${LIBS}"
40778 if test "${OPENH323_LIB:-unset}" != "unset"; then
40779 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
40780 else
40781 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
40783 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
40785 ac_ext=cpp
40786 ac_cpp='$CXXCPP $CPPFLAGS'
40787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40792 cat >conftest.$ac_ext <<_ACEOF
40793 /* confdefs.h. */
40794 _ACEOF
40795 cat confdefs.h >>conftest.$ac_ext
40796 cat >>conftest.$ac_ext <<_ACEOF
40797 /* end confdefs.h. */
40798 #include "ptlib.h"
40799 #include "h323.h"
40800 #include "h323ep.h"
40802 main ()
40804 H323EndPoint ep = H323EndPoint();
40806 return 0;
40808 _ACEOF
40809 rm -f conftest.$ac_objext conftest$ac_exeext
40810 if { (ac_try="$ac_link"
40811 case "(($ac_try" in
40812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40813 *) ac_try_echo=$ac_try;;
40814 esac
40815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40816 (eval "$ac_link") 2>conftest.er1
40817 ac_status=$?
40818 grep -v '^ *+' conftest.er1 >conftest.err
40819 rm -f conftest.er1
40820 cat conftest.err >&5
40821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40822 (exit $ac_status); } && {
40823 test -z "$ac_cxx_werror_flag" ||
40824 test ! -s conftest.err
40825 } && test -s conftest$ac_exeext &&
40826 $as_test_x conftest$ac_exeext; then
40827 { echo "$as_me:$LINENO: result: yes" >&5
40828 echo "${ECHO_T}yes" >&6; }
40829 ac_cv_lib_OPENH323="yes"
40831 else
40832 echo "$as_me: failed program was:" >&5
40833 sed 's/^/| /' conftest.$ac_ext >&5
40835 { echo "$as_me:$LINENO: result: no" >&5
40836 echo "${ECHO_T}no" >&6; }
40837 ac_cv_lib_OPENH323="no"
40842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40843 conftest$ac_exeext conftest.$ac_ext
40845 ac_ext=c
40846 ac_cpp='$CPP $CPPFLAGS'
40847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40852 LIBS="${saved_libs}"
40853 CPPFLAGS="${saved_cppflags}"
40855 if test "${ac_cv_lib_OPENH323}" = "yes"; then
40856 if test "${OPENH323_LIB:-undef}" = "undef"; then
40857 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
40858 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
40859 else
40860 OPENH323_LIB="-l${PLATFORM_OPENH323}"
40863 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
40864 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
40866 PBX_OPENH323=1
40868 cat >>confdefs.h <<\_ACEOF
40869 #define HAVE_OPENH323 1
40870 _ACEOF
40877 LUA_INCLUDE="-I/usr/include/lua5.1"
40878 LUA_LIB="-llua5.1"
40880 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
40881 pbxlibdir=""
40882 # if --with-LUA=DIR has been specified, use it.
40883 if test "x${LUA_DIR}" != "x"; then
40884 if test -d ${LUA_DIR}/lib; then
40885 pbxlibdir="-L${LUA_DIR}/lib"
40886 else
40887 pbxlibdir="-L${LUA_DIR}"
40890 pbxfuncname="luaL_newstate"
40891 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
40892 AST_LUA_FOUND=yes
40893 else
40894 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
40895 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
40896 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
40897 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40898 echo $ECHO_N "(cached) $ECHO_C" >&6
40899 else
40900 ac_check_lib_save_LIBS=$LIBS
40901 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
40902 cat >conftest.$ac_ext <<_ACEOF
40903 /* confdefs.h. */
40904 _ACEOF
40905 cat confdefs.h >>conftest.$ac_ext
40906 cat >>conftest.$ac_ext <<_ACEOF
40907 /* end confdefs.h. */
40909 /* Override any GCC internal prototype to avoid an error.
40910 Use char because int might match the return type of a GCC
40911 builtin and then its argument prototype would still apply. */
40912 #ifdef __cplusplus
40913 extern "C"
40914 #endif
40915 char ${pbxfuncname} ();
40917 main ()
40919 return ${pbxfuncname} ();
40921 return 0;
40923 _ACEOF
40924 rm -f conftest.$ac_objext conftest$ac_exeext
40925 if { (ac_try="$ac_link"
40926 case "(($ac_try" in
40927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40928 *) ac_try_echo=$ac_try;;
40929 esac
40930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40931 (eval "$ac_link") 2>conftest.er1
40932 ac_status=$?
40933 grep -v '^ *+' conftest.er1 >conftest.err
40934 rm -f conftest.er1
40935 cat conftest.err >&5
40936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40937 (exit $ac_status); } && {
40938 test -z "$ac_c_werror_flag" ||
40939 test ! -s conftest.err
40940 } && test -s conftest$ac_exeext &&
40941 $as_test_x conftest$ac_exeext; then
40942 eval "$as_ac_Lib=yes"
40943 else
40944 echo "$as_me: failed program was:" >&5
40945 sed 's/^/| /' conftest.$ac_ext >&5
40947 eval "$as_ac_Lib=no"
40950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40951 conftest$ac_exeext conftest.$ac_ext
40952 LIBS=$ac_check_lib_save_LIBS
40954 ac_res=`eval echo '${'$as_ac_Lib'}'`
40955 { echo "$as_me:$LINENO: result: $ac_res" >&5
40956 echo "${ECHO_T}$ac_res" >&6; }
40957 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40958 AST_LUA_FOUND=yes
40959 else
40960 AST_LUA_FOUND=no
40965 # now check for the header.
40966 if test "${AST_LUA_FOUND}" = "yes"; then
40967 LUA_LIB="${pbxlibdir} -llua5.1 "
40968 # if --with-LUA=DIR has been specified, use it.
40969 if test "x${LUA_DIR}" != "x"; then
40970 LUA_INCLUDE="-I${LUA_DIR}/include"
40972 LUA_INCLUDE="${LUA_INCLUDE} "
40973 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
40974 LUA_HEADER_FOUND="1"
40975 else # check for the header
40976 saved_cppflags="${CPPFLAGS}"
40977 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE} "
40978 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
40979 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
40980 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
40981 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
40982 echo $ECHO_N "(cached) $ECHO_C" >&6
40984 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
40985 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
40986 else
40987 # Is the header compilable?
40988 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
40989 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
40990 cat >conftest.$ac_ext <<_ACEOF
40991 /* confdefs.h. */
40992 _ACEOF
40993 cat confdefs.h >>conftest.$ac_ext
40994 cat >>conftest.$ac_ext <<_ACEOF
40995 /* end confdefs.h. */
40996 $ac_includes_default
40997 #include <lua5.1/lua.h>
40998 _ACEOF
40999 rm -f conftest.$ac_objext
41000 if { (ac_try="$ac_compile"
41001 case "(($ac_try" in
41002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41003 *) ac_try_echo=$ac_try;;
41004 esac
41005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41006 (eval "$ac_compile") 2>conftest.er1
41007 ac_status=$?
41008 grep -v '^ *+' conftest.er1 >conftest.err
41009 rm -f conftest.er1
41010 cat conftest.err >&5
41011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41012 (exit $ac_status); } && {
41013 test -z "$ac_c_werror_flag" ||
41014 test ! -s conftest.err
41015 } && test -s conftest.$ac_objext; then
41016 ac_header_compiler=yes
41017 else
41018 echo "$as_me: failed program was:" >&5
41019 sed 's/^/| /' conftest.$ac_ext >&5
41021 ac_header_compiler=no
41024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41026 echo "${ECHO_T}$ac_header_compiler" >&6; }
41028 # Is the header present?
41029 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
41030 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
41031 cat >conftest.$ac_ext <<_ACEOF
41032 /* confdefs.h. */
41033 _ACEOF
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h. */
41037 #include <lua5.1/lua.h>
41038 _ACEOF
41039 if { (ac_try="$ac_cpp conftest.$ac_ext"
41040 case "(($ac_try" in
41041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41042 *) ac_try_echo=$ac_try;;
41043 esac
41044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41046 ac_status=$?
41047 grep -v '^ *+' conftest.er1 >conftest.err
41048 rm -f conftest.er1
41049 cat conftest.err >&5
41050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41051 (exit $ac_status); } >/dev/null && {
41052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41053 test ! -s conftest.err
41054 }; then
41055 ac_header_preproc=yes
41056 else
41057 echo "$as_me: failed program was:" >&5
41058 sed 's/^/| /' conftest.$ac_ext >&5
41060 ac_header_preproc=no
41063 rm -f conftest.err conftest.$ac_ext
41064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41065 echo "${ECHO_T}$ac_header_preproc" >&6; }
41067 # So? What about this header?
41068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41069 yes:no: )
41070 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
41071 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41072 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
41073 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
41074 ac_header_preproc=yes
41076 no:yes:* )
41077 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
41078 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
41079 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
41080 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
41081 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
41082 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
41083 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
41084 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
41085 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
41086 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
41087 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
41088 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
41089 ( cat <<\_ASBOX
41090 ## ------------------------------- ##
41091 ## Report this to www.asterisk.org ##
41092 ## ------------------------------- ##
41093 _ASBOX
41094 ) | sed "s/^/$as_me: WARNING: /" >&2
41096 esac
41097 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41098 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41099 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41100 echo $ECHO_N "(cached) $ECHO_C" >&6
41101 else
41102 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
41104 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41105 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41108 if test $ac_cv_header_lua5_1_lua_h = yes; then
41109 LUA_HEADER_FOUND=1
41110 else
41111 LUA_HEADER_FOUND=0
41115 CPPFLAGS="${saved_cppflags}"
41117 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
41118 LUA_LIB=""
41119 LUA_INCLUDE=""
41120 else
41121 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41122 LUA_LIB=""
41124 PBX_LUA=1
41125 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41127 cat >>confdefs.h <<_ACEOF
41128 #define HAVE_LUA 1
41129 _ACEOF
41132 cat >>confdefs.h <<_ACEOF
41133 #define HAVE_LUA_VERSION
41134 _ACEOF
41142 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
41143 pbxlibdir=""
41144 # if --with-RADIUS=DIR has been specified, use it.
41145 if test "x${RADIUS_DIR}" != "x"; then
41146 if test -d ${RADIUS_DIR}/lib; then
41147 pbxlibdir="-L${RADIUS_DIR}/lib"
41148 else
41149 pbxlibdir="-L${RADIUS_DIR}"
41152 pbxfuncname="rc_read_config"
41153 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41154 AST_RADIUS_FOUND=yes
41155 else
41156 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
41157 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
41158 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
41159 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41160 echo $ECHO_N "(cached) $ECHO_C" >&6
41161 else
41162 ac_check_lib_save_LIBS=$LIBS
41163 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
41164 cat >conftest.$ac_ext <<_ACEOF
41165 /* confdefs.h. */
41166 _ACEOF
41167 cat confdefs.h >>conftest.$ac_ext
41168 cat >>conftest.$ac_ext <<_ACEOF
41169 /* end confdefs.h. */
41171 /* Override any GCC internal prototype to avoid an error.
41172 Use char because int might match the return type of a GCC
41173 builtin and then its argument prototype would still apply. */
41174 #ifdef __cplusplus
41175 extern "C"
41176 #endif
41177 char ${pbxfuncname} ();
41179 main ()
41181 return ${pbxfuncname} ();
41183 return 0;
41185 _ACEOF
41186 rm -f conftest.$ac_objext conftest$ac_exeext
41187 if { (ac_try="$ac_link"
41188 case "(($ac_try" in
41189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41190 *) ac_try_echo=$ac_try;;
41191 esac
41192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41193 (eval "$ac_link") 2>conftest.er1
41194 ac_status=$?
41195 grep -v '^ *+' conftest.er1 >conftest.err
41196 rm -f conftest.er1
41197 cat conftest.err >&5
41198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199 (exit $ac_status); } && {
41200 test -z "$ac_c_werror_flag" ||
41201 test ! -s conftest.err
41202 } && test -s conftest$ac_exeext &&
41203 $as_test_x conftest$ac_exeext; then
41204 eval "$as_ac_Lib=yes"
41205 else
41206 echo "$as_me: failed program was:" >&5
41207 sed 's/^/| /' conftest.$ac_ext >&5
41209 eval "$as_ac_Lib=no"
41212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41213 conftest$ac_exeext conftest.$ac_ext
41214 LIBS=$ac_check_lib_save_LIBS
41216 ac_res=`eval echo '${'$as_ac_Lib'}'`
41217 { echo "$as_me:$LINENO: result: $ac_res" >&5
41218 echo "${ECHO_T}$ac_res" >&6; }
41219 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41220 AST_RADIUS_FOUND=yes
41221 else
41222 AST_RADIUS_FOUND=no
41227 # now check for the header.
41228 if test "${AST_RADIUS_FOUND}" = "yes"; then
41229 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
41230 # if --with-RADIUS=DIR has been specified, use it.
41231 if test "x${RADIUS_DIR}" != "x"; then
41232 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
41234 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
41235 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
41236 RADIUS_HEADER_FOUND="1"
41237 else # check for the header
41238 saved_cppflags="${CPPFLAGS}"
41239 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE} "
41240 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41241 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
41242 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
41243 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41244 echo $ECHO_N "(cached) $ECHO_C" >&6
41246 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
41247 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
41248 else
41249 # Is the header compilable?
41250 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
41251 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
41252 cat >conftest.$ac_ext <<_ACEOF
41253 /* confdefs.h. */
41254 _ACEOF
41255 cat confdefs.h >>conftest.$ac_ext
41256 cat >>conftest.$ac_ext <<_ACEOF
41257 /* end confdefs.h. */
41258 $ac_includes_default
41259 #include <radiusclient-ng.h>
41260 _ACEOF
41261 rm -f conftest.$ac_objext
41262 if { (ac_try="$ac_compile"
41263 case "(($ac_try" in
41264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41265 *) ac_try_echo=$ac_try;;
41266 esac
41267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41268 (eval "$ac_compile") 2>conftest.er1
41269 ac_status=$?
41270 grep -v '^ *+' conftest.er1 >conftest.err
41271 rm -f conftest.er1
41272 cat conftest.err >&5
41273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274 (exit $ac_status); } && {
41275 test -z "$ac_c_werror_flag" ||
41276 test ! -s conftest.err
41277 } && test -s conftest.$ac_objext; then
41278 ac_header_compiler=yes
41279 else
41280 echo "$as_me: failed program was:" >&5
41281 sed 's/^/| /' conftest.$ac_ext >&5
41283 ac_header_compiler=no
41286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41288 echo "${ECHO_T}$ac_header_compiler" >&6; }
41290 # Is the header present?
41291 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
41292 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
41293 cat >conftest.$ac_ext <<_ACEOF
41294 /* confdefs.h. */
41295 _ACEOF
41296 cat confdefs.h >>conftest.$ac_ext
41297 cat >>conftest.$ac_ext <<_ACEOF
41298 /* end confdefs.h. */
41299 #include <radiusclient-ng.h>
41300 _ACEOF
41301 if { (ac_try="$ac_cpp conftest.$ac_ext"
41302 case "(($ac_try" in
41303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41304 *) ac_try_echo=$ac_try;;
41305 esac
41306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41308 ac_status=$?
41309 grep -v '^ *+' conftest.er1 >conftest.err
41310 rm -f conftest.er1
41311 cat conftest.err >&5
41312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313 (exit $ac_status); } >/dev/null && {
41314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41315 test ! -s conftest.err
41316 }; then
41317 ac_header_preproc=yes
41318 else
41319 echo "$as_me: failed program was:" >&5
41320 sed 's/^/| /' conftest.$ac_ext >&5
41322 ac_header_preproc=no
41325 rm -f conftest.err conftest.$ac_ext
41326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41327 echo "${ECHO_T}$ac_header_preproc" >&6; }
41329 # So? What about this header?
41330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41331 yes:no: )
41332 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
41333 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41334 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
41335 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
41336 ac_header_preproc=yes
41338 no:yes:* )
41339 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
41340 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
41341 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
41342 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
41343 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
41344 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
41345 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
41346 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
41347 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
41348 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
41349 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
41350 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
41351 ( cat <<\_ASBOX
41352 ## ------------------------------- ##
41353 ## Report this to www.asterisk.org ##
41354 ## ------------------------------- ##
41355 _ASBOX
41356 ) | sed "s/^/$as_me: WARNING: /" >&2
41358 esac
41359 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
41360 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
41361 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41362 echo $ECHO_N "(cached) $ECHO_C" >&6
41363 else
41364 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
41366 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
41367 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
41370 if test $ac_cv_header_radiusclient_ng_h = yes; then
41371 RADIUS_HEADER_FOUND=1
41372 else
41373 RADIUS_HEADER_FOUND=0
41377 CPPFLAGS="${saved_cppflags}"
41379 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
41380 RADIUS_LIB=""
41381 RADIUS_INCLUDE=""
41382 else
41383 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41384 RADIUS_LIB=""
41386 PBX_RADIUS=1
41387 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41389 cat >>confdefs.h <<_ACEOF
41390 #define HAVE_RADIUS 1
41391 _ACEOF
41394 cat >>confdefs.h <<_ACEOF
41395 #define HAVE_RADIUS_VERSION
41396 _ACEOF
41404 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
41405 pbxlibdir=""
41406 # if --with-SPEEX=DIR has been specified, use it.
41407 if test "x${SPEEX_DIR}" != "x"; then
41408 if test -d ${SPEEX_DIR}/lib; then
41409 pbxlibdir="-L${SPEEX_DIR}/lib"
41410 else
41411 pbxlibdir="-L${SPEEX_DIR}"
41414 pbxfuncname="speex_encode"
41415 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41416 AST_SPEEX_FOUND=yes
41417 else
41418 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
41419 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
41420 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
41421 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41422 echo $ECHO_N "(cached) $ECHO_C" >&6
41423 else
41424 ac_check_lib_save_LIBS=$LIBS
41425 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
41426 cat >conftest.$ac_ext <<_ACEOF
41427 /* confdefs.h. */
41428 _ACEOF
41429 cat confdefs.h >>conftest.$ac_ext
41430 cat >>conftest.$ac_ext <<_ACEOF
41431 /* end confdefs.h. */
41433 /* Override any GCC internal prototype to avoid an error.
41434 Use char because int might match the return type of a GCC
41435 builtin and then its argument prototype would still apply. */
41436 #ifdef __cplusplus
41437 extern "C"
41438 #endif
41439 char ${pbxfuncname} ();
41441 main ()
41443 return ${pbxfuncname} ();
41445 return 0;
41447 _ACEOF
41448 rm -f conftest.$ac_objext conftest$ac_exeext
41449 if { (ac_try="$ac_link"
41450 case "(($ac_try" in
41451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41452 *) ac_try_echo=$ac_try;;
41453 esac
41454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41455 (eval "$ac_link") 2>conftest.er1
41456 ac_status=$?
41457 grep -v '^ *+' conftest.er1 >conftest.err
41458 rm -f conftest.er1
41459 cat conftest.err >&5
41460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); } && {
41462 test -z "$ac_c_werror_flag" ||
41463 test ! -s conftest.err
41464 } && test -s conftest$ac_exeext &&
41465 $as_test_x conftest$ac_exeext; then
41466 eval "$as_ac_Lib=yes"
41467 else
41468 echo "$as_me: failed program was:" >&5
41469 sed 's/^/| /' conftest.$ac_ext >&5
41471 eval "$as_ac_Lib=no"
41474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41475 conftest$ac_exeext conftest.$ac_ext
41476 LIBS=$ac_check_lib_save_LIBS
41478 ac_res=`eval echo '${'$as_ac_Lib'}'`
41479 { echo "$as_me:$LINENO: result: $ac_res" >&5
41480 echo "${ECHO_T}$ac_res" >&6; }
41481 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41482 AST_SPEEX_FOUND=yes
41483 else
41484 AST_SPEEX_FOUND=no
41489 # now check for the header.
41490 if test "${AST_SPEEX_FOUND}" = "yes"; then
41491 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
41492 # if --with-SPEEX=DIR has been specified, use it.
41493 if test "x${SPEEX_DIR}" != "x"; then
41494 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
41496 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
41497 if test "xspeex/speex.h" = "x" ; then # no header, assume found
41498 SPEEX_HEADER_FOUND="1"
41499 else # check for the header
41500 saved_cppflags="${CPPFLAGS}"
41501 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE} "
41502 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41503 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41504 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41505 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41506 echo $ECHO_N "(cached) $ECHO_C" >&6
41508 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41509 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41510 else
41511 # Is the header compilable?
41512 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
41513 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
41514 cat >conftest.$ac_ext <<_ACEOF
41515 /* confdefs.h. */
41516 _ACEOF
41517 cat confdefs.h >>conftest.$ac_ext
41518 cat >>conftest.$ac_ext <<_ACEOF
41519 /* end confdefs.h. */
41520 $ac_includes_default
41521 #include <speex/speex.h>
41522 _ACEOF
41523 rm -f conftest.$ac_objext
41524 if { (ac_try="$ac_compile"
41525 case "(($ac_try" in
41526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41527 *) ac_try_echo=$ac_try;;
41528 esac
41529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41530 (eval "$ac_compile") 2>conftest.er1
41531 ac_status=$?
41532 grep -v '^ *+' conftest.er1 >conftest.err
41533 rm -f conftest.er1
41534 cat conftest.err >&5
41535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41536 (exit $ac_status); } && {
41537 test -z "$ac_c_werror_flag" ||
41538 test ! -s conftest.err
41539 } && test -s conftest.$ac_objext; then
41540 ac_header_compiler=yes
41541 else
41542 echo "$as_me: failed program was:" >&5
41543 sed 's/^/| /' conftest.$ac_ext >&5
41545 ac_header_compiler=no
41548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41550 echo "${ECHO_T}$ac_header_compiler" >&6; }
41552 # Is the header present?
41553 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
41554 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
41555 cat >conftest.$ac_ext <<_ACEOF
41556 /* confdefs.h. */
41557 _ACEOF
41558 cat confdefs.h >>conftest.$ac_ext
41559 cat >>conftest.$ac_ext <<_ACEOF
41560 /* end confdefs.h. */
41561 #include <speex/speex.h>
41562 _ACEOF
41563 if { (ac_try="$ac_cpp conftest.$ac_ext"
41564 case "(($ac_try" in
41565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41566 *) ac_try_echo=$ac_try;;
41567 esac
41568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41570 ac_status=$?
41571 grep -v '^ *+' conftest.er1 >conftest.err
41572 rm -f conftest.er1
41573 cat conftest.err >&5
41574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575 (exit $ac_status); } >/dev/null && {
41576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41577 test ! -s conftest.err
41578 }; then
41579 ac_header_preproc=yes
41580 else
41581 echo "$as_me: failed program was:" >&5
41582 sed 's/^/| /' conftest.$ac_ext >&5
41584 ac_header_preproc=no
41587 rm -f conftest.err conftest.$ac_ext
41588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41589 echo "${ECHO_T}$ac_header_preproc" >&6; }
41591 # So? What about this header?
41592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41593 yes:no: )
41594 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
41595 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41596 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
41597 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
41598 ac_header_preproc=yes
41600 no:yes:* )
41601 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
41602 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
41603 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
41604 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
41605 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
41606 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
41607 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
41608 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
41609 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
41610 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
41611 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
41612 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
41613 ( cat <<\_ASBOX
41614 ## ------------------------------- ##
41615 ## Report this to www.asterisk.org ##
41616 ## ------------------------------- ##
41617 _ASBOX
41618 ) | sed "s/^/$as_me: WARNING: /" >&2
41620 esac
41621 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41622 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41623 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41624 echo $ECHO_N "(cached) $ECHO_C" >&6
41625 else
41626 ac_cv_header_speex_speex_h=$ac_header_preproc
41628 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41629 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41632 if test $ac_cv_header_speex_speex_h = yes; then
41633 SPEEX_HEADER_FOUND=1
41634 else
41635 SPEEX_HEADER_FOUND=0
41639 CPPFLAGS="${saved_cppflags}"
41641 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
41642 SPEEX_LIB=""
41643 SPEEX_INCLUDE=""
41644 else
41645 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41646 SPEEX_LIB=""
41648 PBX_SPEEX=1
41649 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41651 cat >>confdefs.h <<_ACEOF
41652 #define HAVE_SPEEX 1
41653 _ACEOF
41656 cat >>confdefs.h <<_ACEOF
41657 #define HAVE_SPEEX_VERSION
41658 _ACEOF
41666 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
41667 pbxlibdir=""
41668 # if --with-SPEEXDSP=DIR has been specified, use it.
41669 if test "x${SPEEXDSP_DIR}" != "x"; then
41670 if test -d ${SPEEXDSP_DIR}/lib; then
41671 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
41672 else
41673 pbxlibdir="-L${SPEEXDSP_DIR}"
41676 pbxfuncname="speex_preprocess_ctl"
41677 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41678 AST_SPEEXDSP_FOUND=yes
41679 else
41680 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
41681 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
41682 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
41683 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41684 echo $ECHO_N "(cached) $ECHO_C" >&6
41685 else
41686 ac_check_lib_save_LIBS=$LIBS
41687 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
41688 cat >conftest.$ac_ext <<_ACEOF
41689 /* confdefs.h. */
41690 _ACEOF
41691 cat confdefs.h >>conftest.$ac_ext
41692 cat >>conftest.$ac_ext <<_ACEOF
41693 /* end confdefs.h. */
41695 /* Override any GCC internal prototype to avoid an error.
41696 Use char because int might match the return type of a GCC
41697 builtin and then its argument prototype would still apply. */
41698 #ifdef __cplusplus
41699 extern "C"
41700 #endif
41701 char ${pbxfuncname} ();
41703 main ()
41705 return ${pbxfuncname} ();
41707 return 0;
41709 _ACEOF
41710 rm -f conftest.$ac_objext conftest$ac_exeext
41711 if { (ac_try="$ac_link"
41712 case "(($ac_try" in
41713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41714 *) ac_try_echo=$ac_try;;
41715 esac
41716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41717 (eval "$ac_link") 2>conftest.er1
41718 ac_status=$?
41719 grep -v '^ *+' conftest.er1 >conftest.err
41720 rm -f conftest.er1
41721 cat conftest.err >&5
41722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723 (exit $ac_status); } && {
41724 test -z "$ac_c_werror_flag" ||
41725 test ! -s conftest.err
41726 } && test -s conftest$ac_exeext &&
41727 $as_test_x conftest$ac_exeext; then
41728 eval "$as_ac_Lib=yes"
41729 else
41730 echo "$as_me: failed program was:" >&5
41731 sed 's/^/| /' conftest.$ac_ext >&5
41733 eval "$as_ac_Lib=no"
41736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41737 conftest$ac_exeext conftest.$ac_ext
41738 LIBS=$ac_check_lib_save_LIBS
41740 ac_res=`eval echo '${'$as_ac_Lib'}'`
41741 { echo "$as_me:$LINENO: result: $ac_res" >&5
41742 echo "${ECHO_T}$ac_res" >&6; }
41743 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41744 AST_SPEEXDSP_FOUND=yes
41745 else
41746 AST_SPEEXDSP_FOUND=no
41751 # now check for the header.
41752 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
41753 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
41754 # if --with-SPEEXDSP=DIR has been specified, use it.
41755 if test "x${SPEEXDSP_DIR}" != "x"; then
41756 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
41758 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
41759 if test "xspeex/speex.h" = "x" ; then # no header, assume found
41760 SPEEXDSP_HEADER_FOUND="1"
41761 else # check for the header
41762 saved_cppflags="${CPPFLAGS}"
41763 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE} "
41764 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41765 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41766 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41767 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41768 echo $ECHO_N "(cached) $ECHO_C" >&6
41770 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41771 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41772 else
41773 # Is the header compilable?
41774 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
41775 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
41776 cat >conftest.$ac_ext <<_ACEOF
41777 /* confdefs.h. */
41778 _ACEOF
41779 cat confdefs.h >>conftest.$ac_ext
41780 cat >>conftest.$ac_ext <<_ACEOF
41781 /* end confdefs.h. */
41782 $ac_includes_default
41783 #include <speex/speex.h>
41784 _ACEOF
41785 rm -f conftest.$ac_objext
41786 if { (ac_try="$ac_compile"
41787 case "(($ac_try" in
41788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41789 *) ac_try_echo=$ac_try;;
41790 esac
41791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41792 (eval "$ac_compile") 2>conftest.er1
41793 ac_status=$?
41794 grep -v '^ *+' conftest.er1 >conftest.err
41795 rm -f conftest.er1
41796 cat conftest.err >&5
41797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798 (exit $ac_status); } && {
41799 test -z "$ac_c_werror_flag" ||
41800 test ! -s conftest.err
41801 } && test -s conftest.$ac_objext; then
41802 ac_header_compiler=yes
41803 else
41804 echo "$as_me: failed program was:" >&5
41805 sed 's/^/| /' conftest.$ac_ext >&5
41807 ac_header_compiler=no
41810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41812 echo "${ECHO_T}$ac_header_compiler" >&6; }
41814 # Is the header present?
41815 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
41816 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
41817 cat >conftest.$ac_ext <<_ACEOF
41818 /* confdefs.h. */
41819 _ACEOF
41820 cat confdefs.h >>conftest.$ac_ext
41821 cat >>conftest.$ac_ext <<_ACEOF
41822 /* end confdefs.h. */
41823 #include <speex/speex.h>
41824 _ACEOF
41825 if { (ac_try="$ac_cpp conftest.$ac_ext"
41826 case "(($ac_try" in
41827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41828 *) ac_try_echo=$ac_try;;
41829 esac
41830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41832 ac_status=$?
41833 grep -v '^ *+' conftest.er1 >conftest.err
41834 rm -f conftest.er1
41835 cat conftest.err >&5
41836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41837 (exit $ac_status); } >/dev/null && {
41838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41839 test ! -s conftest.err
41840 }; then
41841 ac_header_preproc=yes
41842 else
41843 echo "$as_me: failed program was:" >&5
41844 sed 's/^/| /' conftest.$ac_ext >&5
41846 ac_header_preproc=no
41849 rm -f conftest.err conftest.$ac_ext
41850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41851 echo "${ECHO_T}$ac_header_preproc" >&6; }
41853 # So? What about this header?
41854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41855 yes:no: )
41856 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
41857 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41858 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
41859 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
41860 ac_header_preproc=yes
41862 no:yes:* )
41863 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
41864 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
41865 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
41866 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
41867 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
41868 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
41869 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
41870 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
41871 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
41872 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
41873 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
41874 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
41875 ( cat <<\_ASBOX
41876 ## ------------------------------- ##
41877 ## Report this to www.asterisk.org ##
41878 ## ------------------------------- ##
41879 _ASBOX
41880 ) | sed "s/^/$as_me: WARNING: /" >&2
41882 esac
41883 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41884 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41885 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41886 echo $ECHO_N "(cached) $ECHO_C" >&6
41887 else
41888 ac_cv_header_speex_speex_h=$ac_header_preproc
41890 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41891 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41894 if test $ac_cv_header_speex_speex_h = yes; then
41895 SPEEXDSP_HEADER_FOUND=1
41896 else
41897 SPEEXDSP_HEADER_FOUND=0
41901 CPPFLAGS="${saved_cppflags}"
41903 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
41904 SPEEXDSP_LIB=""
41905 SPEEXDSP_INCLUDE=""
41906 else
41907 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41908 SPEEXDSP_LIB=""
41910 PBX_SPEEXDSP=1
41911 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41913 cat >>confdefs.h <<_ACEOF
41914 #define HAVE_SPEEXDSP 1
41915 _ACEOF
41918 cat >>confdefs.h <<_ACEOF
41919 #define HAVE_SPEEXDSP_VERSION
41920 _ACEOF
41928 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
41929 pbxlibdir=""
41930 # if --with-SQLITE=DIR has been specified, use it.
41931 if test "x${SQLITE_DIR}" != "x"; then
41932 if test -d ${SQLITE_DIR}/lib; then
41933 pbxlibdir="-L${SQLITE_DIR}/lib"
41934 else
41935 pbxlibdir="-L${SQLITE_DIR}"
41938 pbxfuncname="sqlite_exec"
41939 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41940 AST_SQLITE_FOUND=yes
41941 else
41942 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
41943 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
41944 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
41945 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41946 echo $ECHO_N "(cached) $ECHO_C" >&6
41947 else
41948 ac_check_lib_save_LIBS=$LIBS
41949 LIBS="-lsqlite ${pbxlibdir} $LIBS"
41950 cat >conftest.$ac_ext <<_ACEOF
41951 /* confdefs.h. */
41952 _ACEOF
41953 cat confdefs.h >>conftest.$ac_ext
41954 cat >>conftest.$ac_ext <<_ACEOF
41955 /* end confdefs.h. */
41957 /* Override any GCC internal prototype to avoid an error.
41958 Use char because int might match the return type of a GCC
41959 builtin and then its argument prototype would still apply. */
41960 #ifdef __cplusplus
41961 extern "C"
41962 #endif
41963 char ${pbxfuncname} ();
41965 main ()
41967 return ${pbxfuncname} ();
41969 return 0;
41971 _ACEOF
41972 rm -f conftest.$ac_objext conftest$ac_exeext
41973 if { (ac_try="$ac_link"
41974 case "(($ac_try" in
41975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41976 *) ac_try_echo=$ac_try;;
41977 esac
41978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41979 (eval "$ac_link") 2>conftest.er1
41980 ac_status=$?
41981 grep -v '^ *+' conftest.er1 >conftest.err
41982 rm -f conftest.er1
41983 cat conftest.err >&5
41984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41985 (exit $ac_status); } && {
41986 test -z "$ac_c_werror_flag" ||
41987 test ! -s conftest.err
41988 } && test -s conftest$ac_exeext &&
41989 $as_test_x conftest$ac_exeext; then
41990 eval "$as_ac_Lib=yes"
41991 else
41992 echo "$as_me: failed program was:" >&5
41993 sed 's/^/| /' conftest.$ac_ext >&5
41995 eval "$as_ac_Lib=no"
41998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41999 conftest$ac_exeext conftest.$ac_ext
42000 LIBS=$ac_check_lib_save_LIBS
42002 ac_res=`eval echo '${'$as_ac_Lib'}'`
42003 { echo "$as_me:$LINENO: result: $ac_res" >&5
42004 echo "${ECHO_T}$ac_res" >&6; }
42005 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42006 AST_SQLITE_FOUND=yes
42007 else
42008 AST_SQLITE_FOUND=no
42013 # now check for the header.
42014 if test "${AST_SQLITE_FOUND}" = "yes"; then
42015 SQLITE_LIB="${pbxlibdir} -lsqlite "
42016 # if --with-SQLITE=DIR has been specified, use it.
42017 if test "x${SQLITE_DIR}" != "x"; then
42018 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
42020 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
42021 if test "xsqlite.h" = "x" ; then # no header, assume found
42022 SQLITE_HEADER_FOUND="1"
42023 else # check for the header
42024 saved_cppflags="${CPPFLAGS}"
42025 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE} "
42026 if test "${ac_cv_header_sqlite_h+set}" = set; then
42027 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
42028 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
42029 if test "${ac_cv_header_sqlite_h+set}" = set; then
42030 echo $ECHO_N "(cached) $ECHO_C" >&6
42032 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
42033 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
42034 else
42035 # Is the header compilable?
42036 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
42037 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
42038 cat >conftest.$ac_ext <<_ACEOF
42039 /* confdefs.h. */
42040 _ACEOF
42041 cat confdefs.h >>conftest.$ac_ext
42042 cat >>conftest.$ac_ext <<_ACEOF
42043 /* end confdefs.h. */
42044 $ac_includes_default
42045 #include <sqlite.h>
42046 _ACEOF
42047 rm -f conftest.$ac_objext
42048 if { (ac_try="$ac_compile"
42049 case "(($ac_try" in
42050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42051 *) ac_try_echo=$ac_try;;
42052 esac
42053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42054 (eval "$ac_compile") 2>conftest.er1
42055 ac_status=$?
42056 grep -v '^ *+' conftest.er1 >conftest.err
42057 rm -f conftest.er1
42058 cat conftest.err >&5
42059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060 (exit $ac_status); } && {
42061 test -z "$ac_c_werror_flag" ||
42062 test ! -s conftest.err
42063 } && test -s conftest.$ac_objext; then
42064 ac_header_compiler=yes
42065 else
42066 echo "$as_me: failed program was:" >&5
42067 sed 's/^/| /' conftest.$ac_ext >&5
42069 ac_header_compiler=no
42072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42074 echo "${ECHO_T}$ac_header_compiler" >&6; }
42076 # Is the header present?
42077 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
42078 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
42079 cat >conftest.$ac_ext <<_ACEOF
42080 /* confdefs.h. */
42081 _ACEOF
42082 cat confdefs.h >>conftest.$ac_ext
42083 cat >>conftest.$ac_ext <<_ACEOF
42084 /* end confdefs.h. */
42085 #include <sqlite.h>
42086 _ACEOF
42087 if { (ac_try="$ac_cpp conftest.$ac_ext"
42088 case "(($ac_try" in
42089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42090 *) ac_try_echo=$ac_try;;
42091 esac
42092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42094 ac_status=$?
42095 grep -v '^ *+' conftest.er1 >conftest.err
42096 rm -f conftest.er1
42097 cat conftest.err >&5
42098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099 (exit $ac_status); } >/dev/null && {
42100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42101 test ! -s conftest.err
42102 }; then
42103 ac_header_preproc=yes
42104 else
42105 echo "$as_me: failed program was:" >&5
42106 sed 's/^/| /' conftest.$ac_ext >&5
42108 ac_header_preproc=no
42111 rm -f conftest.err conftest.$ac_ext
42112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42113 echo "${ECHO_T}$ac_header_preproc" >&6; }
42115 # So? What about this header?
42116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42117 yes:no: )
42118 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
42119 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42120 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
42121 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
42122 ac_header_preproc=yes
42124 no:yes:* )
42125 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
42126 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
42127 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
42128 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
42129 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
42130 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
42131 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
42132 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
42133 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
42134 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
42135 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
42136 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
42137 ( cat <<\_ASBOX
42138 ## ------------------------------- ##
42139 ## Report this to www.asterisk.org ##
42140 ## ------------------------------- ##
42141 _ASBOX
42142 ) | sed "s/^/$as_me: WARNING: /" >&2
42144 esac
42145 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
42146 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
42147 if test "${ac_cv_header_sqlite_h+set}" = set; then
42148 echo $ECHO_N "(cached) $ECHO_C" >&6
42149 else
42150 ac_cv_header_sqlite_h=$ac_header_preproc
42152 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
42153 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
42156 if test $ac_cv_header_sqlite_h = yes; then
42157 SQLITE_HEADER_FOUND=1
42158 else
42159 SQLITE_HEADER_FOUND=0
42163 CPPFLAGS="${saved_cppflags}"
42165 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
42166 SQLITE_LIB=""
42167 SQLITE_INCLUDE=""
42168 else
42169 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42170 SQLITE_LIB=""
42172 PBX_SQLITE=1
42173 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42175 cat >>confdefs.h <<_ACEOF
42176 #define HAVE_SQLITE 1
42177 _ACEOF
42180 cat >>confdefs.h <<_ACEOF
42181 #define HAVE_SQLITE_VERSION
42182 _ACEOF
42190 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
42191 pbxlibdir=""
42192 # if --with-SQLITE3=DIR has been specified, use it.
42193 if test "x${SQLITE3_DIR}" != "x"; then
42194 if test -d ${SQLITE3_DIR}/lib; then
42195 pbxlibdir="-L${SQLITE3_DIR}/lib"
42196 else
42197 pbxlibdir="-L${SQLITE3_DIR}"
42200 pbxfuncname="sqlite3_open"
42201 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42202 AST_SQLITE3_FOUND=yes
42203 else
42204 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
42205 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
42206 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
42207 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42208 echo $ECHO_N "(cached) $ECHO_C" >&6
42209 else
42210 ac_check_lib_save_LIBS=$LIBS
42211 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
42212 cat >conftest.$ac_ext <<_ACEOF
42213 /* confdefs.h. */
42214 _ACEOF
42215 cat confdefs.h >>conftest.$ac_ext
42216 cat >>conftest.$ac_ext <<_ACEOF
42217 /* end confdefs.h. */
42219 /* Override any GCC internal prototype to avoid an error.
42220 Use char because int might match the return type of a GCC
42221 builtin and then its argument prototype would still apply. */
42222 #ifdef __cplusplus
42223 extern "C"
42224 #endif
42225 char ${pbxfuncname} ();
42227 main ()
42229 return ${pbxfuncname} ();
42231 return 0;
42233 _ACEOF
42234 rm -f conftest.$ac_objext conftest$ac_exeext
42235 if { (ac_try="$ac_link"
42236 case "(($ac_try" in
42237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42238 *) ac_try_echo=$ac_try;;
42239 esac
42240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42241 (eval "$ac_link") 2>conftest.er1
42242 ac_status=$?
42243 grep -v '^ *+' conftest.er1 >conftest.err
42244 rm -f conftest.er1
42245 cat conftest.err >&5
42246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247 (exit $ac_status); } && {
42248 test -z "$ac_c_werror_flag" ||
42249 test ! -s conftest.err
42250 } && test -s conftest$ac_exeext &&
42251 $as_test_x conftest$ac_exeext; then
42252 eval "$as_ac_Lib=yes"
42253 else
42254 echo "$as_me: failed program was:" >&5
42255 sed 's/^/| /' conftest.$ac_ext >&5
42257 eval "$as_ac_Lib=no"
42260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42261 conftest$ac_exeext conftest.$ac_ext
42262 LIBS=$ac_check_lib_save_LIBS
42264 ac_res=`eval echo '${'$as_ac_Lib'}'`
42265 { echo "$as_me:$LINENO: result: $ac_res" >&5
42266 echo "${ECHO_T}$ac_res" >&6; }
42267 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42268 AST_SQLITE3_FOUND=yes
42269 else
42270 AST_SQLITE3_FOUND=no
42275 # now check for the header.
42276 if test "${AST_SQLITE3_FOUND}" = "yes"; then
42277 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
42278 # if --with-SQLITE3=DIR has been specified, use it.
42279 if test "x${SQLITE3_DIR}" != "x"; then
42280 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
42282 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
42283 if test "xsqlite3.h" = "x" ; then # no header, assume found
42284 SQLITE3_HEADER_FOUND="1"
42285 else # check for the header
42286 saved_cppflags="${CPPFLAGS}"
42287 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE} "
42288 if test "${ac_cv_header_sqlite3_h+set}" = set; then
42289 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
42290 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
42291 if test "${ac_cv_header_sqlite3_h+set}" = set; then
42292 echo $ECHO_N "(cached) $ECHO_C" >&6
42294 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
42295 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
42296 else
42297 # Is the header compilable?
42298 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
42299 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
42300 cat >conftest.$ac_ext <<_ACEOF
42301 /* confdefs.h. */
42302 _ACEOF
42303 cat confdefs.h >>conftest.$ac_ext
42304 cat >>conftest.$ac_ext <<_ACEOF
42305 /* end confdefs.h. */
42306 $ac_includes_default
42307 #include <sqlite3.h>
42308 _ACEOF
42309 rm -f conftest.$ac_objext
42310 if { (ac_try="$ac_compile"
42311 case "(($ac_try" in
42312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42313 *) ac_try_echo=$ac_try;;
42314 esac
42315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42316 (eval "$ac_compile") 2>conftest.er1
42317 ac_status=$?
42318 grep -v '^ *+' conftest.er1 >conftest.err
42319 rm -f conftest.er1
42320 cat conftest.err >&5
42321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42322 (exit $ac_status); } && {
42323 test -z "$ac_c_werror_flag" ||
42324 test ! -s conftest.err
42325 } && test -s conftest.$ac_objext; then
42326 ac_header_compiler=yes
42327 else
42328 echo "$as_me: failed program was:" >&5
42329 sed 's/^/| /' conftest.$ac_ext >&5
42331 ac_header_compiler=no
42334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42336 echo "${ECHO_T}$ac_header_compiler" >&6; }
42338 # Is the header present?
42339 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
42340 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
42341 cat >conftest.$ac_ext <<_ACEOF
42342 /* confdefs.h. */
42343 _ACEOF
42344 cat confdefs.h >>conftest.$ac_ext
42345 cat >>conftest.$ac_ext <<_ACEOF
42346 /* end confdefs.h. */
42347 #include <sqlite3.h>
42348 _ACEOF
42349 if { (ac_try="$ac_cpp conftest.$ac_ext"
42350 case "(($ac_try" in
42351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42352 *) ac_try_echo=$ac_try;;
42353 esac
42354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42356 ac_status=$?
42357 grep -v '^ *+' conftest.er1 >conftest.err
42358 rm -f conftest.er1
42359 cat conftest.err >&5
42360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361 (exit $ac_status); } >/dev/null && {
42362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42363 test ! -s conftest.err
42364 }; then
42365 ac_header_preproc=yes
42366 else
42367 echo "$as_me: failed program was:" >&5
42368 sed 's/^/| /' conftest.$ac_ext >&5
42370 ac_header_preproc=no
42373 rm -f conftest.err conftest.$ac_ext
42374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42375 echo "${ECHO_T}$ac_header_preproc" >&6; }
42377 # So? What about this header?
42378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42379 yes:no: )
42380 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
42381 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42382 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
42383 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
42384 ac_header_preproc=yes
42386 no:yes:* )
42387 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
42388 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
42389 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
42390 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
42391 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
42392 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
42393 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
42394 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
42395 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
42396 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
42397 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
42398 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
42399 ( cat <<\_ASBOX
42400 ## ------------------------------- ##
42401 ## Report this to www.asterisk.org ##
42402 ## ------------------------------- ##
42403 _ASBOX
42404 ) | sed "s/^/$as_me: WARNING: /" >&2
42406 esac
42407 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
42408 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
42409 if test "${ac_cv_header_sqlite3_h+set}" = set; then
42410 echo $ECHO_N "(cached) $ECHO_C" >&6
42411 else
42412 ac_cv_header_sqlite3_h=$ac_header_preproc
42414 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
42415 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
42418 if test $ac_cv_header_sqlite3_h = yes; then
42419 SQLITE3_HEADER_FOUND=1
42420 else
42421 SQLITE3_HEADER_FOUND=0
42425 CPPFLAGS="${saved_cppflags}"
42427 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
42428 SQLITE3_LIB=""
42429 SQLITE3_INCLUDE=""
42430 else
42431 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42432 SQLITE3_LIB=""
42434 PBX_SQLITE3=1
42435 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42437 cat >>confdefs.h <<_ACEOF
42438 #define HAVE_SQLITE3 1
42439 _ACEOF
42442 cat >>confdefs.h <<_ACEOF
42443 #define HAVE_SQLITE3_VERSION
42444 _ACEOF
42452 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
42453 pbxlibdir=""
42454 # if --with-CRYPTO=DIR has been specified, use it.
42455 if test "x${CRYPTO_DIR}" != "x"; then
42456 if test -d ${CRYPTO_DIR}/lib; then
42457 pbxlibdir="-L${CRYPTO_DIR}/lib"
42458 else
42459 pbxlibdir="-L${CRYPTO_DIR}"
42462 pbxfuncname="AES_encrypt"
42463 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42464 AST_CRYPTO_FOUND=yes
42465 else
42466 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
42467 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
42468 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
42469 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42470 echo $ECHO_N "(cached) $ECHO_C" >&6
42471 else
42472 ac_check_lib_save_LIBS=$LIBS
42473 LIBS="-lcrypto ${pbxlibdir} $LIBS"
42474 cat >conftest.$ac_ext <<_ACEOF
42475 /* confdefs.h. */
42476 _ACEOF
42477 cat confdefs.h >>conftest.$ac_ext
42478 cat >>conftest.$ac_ext <<_ACEOF
42479 /* end confdefs.h. */
42481 /* Override any GCC internal prototype to avoid an error.
42482 Use char because int might match the return type of a GCC
42483 builtin and then its argument prototype would still apply. */
42484 #ifdef __cplusplus
42485 extern "C"
42486 #endif
42487 char ${pbxfuncname} ();
42489 main ()
42491 return ${pbxfuncname} ();
42493 return 0;
42495 _ACEOF
42496 rm -f conftest.$ac_objext conftest$ac_exeext
42497 if { (ac_try="$ac_link"
42498 case "(($ac_try" in
42499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42500 *) ac_try_echo=$ac_try;;
42501 esac
42502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42503 (eval "$ac_link") 2>conftest.er1
42504 ac_status=$?
42505 grep -v '^ *+' conftest.er1 >conftest.err
42506 rm -f conftest.er1
42507 cat conftest.err >&5
42508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42509 (exit $ac_status); } && {
42510 test -z "$ac_c_werror_flag" ||
42511 test ! -s conftest.err
42512 } && test -s conftest$ac_exeext &&
42513 $as_test_x conftest$ac_exeext; then
42514 eval "$as_ac_Lib=yes"
42515 else
42516 echo "$as_me: failed program was:" >&5
42517 sed 's/^/| /' conftest.$ac_ext >&5
42519 eval "$as_ac_Lib=no"
42522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42523 conftest$ac_exeext conftest.$ac_ext
42524 LIBS=$ac_check_lib_save_LIBS
42526 ac_res=`eval echo '${'$as_ac_Lib'}'`
42527 { echo "$as_me:$LINENO: result: $ac_res" >&5
42528 echo "${ECHO_T}$ac_res" >&6; }
42529 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42530 AST_CRYPTO_FOUND=yes
42531 else
42532 AST_CRYPTO_FOUND=no
42537 # now check for the header.
42538 if test "${AST_CRYPTO_FOUND}" = "yes"; then
42539 CRYPTO_LIB="${pbxlibdir} -lcrypto "
42540 # if --with-CRYPTO=DIR has been specified, use it.
42541 if test "x${CRYPTO_DIR}" != "x"; then
42542 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
42544 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
42545 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
42546 CRYPTO_HEADER_FOUND="1"
42547 else # check for the header
42548 saved_cppflags="${CPPFLAGS}"
42549 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE} "
42550 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
42551 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
42552 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
42553 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
42554 echo $ECHO_N "(cached) $ECHO_C" >&6
42556 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
42557 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
42558 else
42559 # Is the header compilable?
42560 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
42561 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
42562 cat >conftest.$ac_ext <<_ACEOF
42563 /* confdefs.h. */
42564 _ACEOF
42565 cat confdefs.h >>conftest.$ac_ext
42566 cat >>conftest.$ac_ext <<_ACEOF
42567 /* end confdefs.h. */
42568 $ac_includes_default
42569 #include <openssl/aes.h>
42570 _ACEOF
42571 rm -f conftest.$ac_objext
42572 if { (ac_try="$ac_compile"
42573 case "(($ac_try" in
42574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42575 *) ac_try_echo=$ac_try;;
42576 esac
42577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42578 (eval "$ac_compile") 2>conftest.er1
42579 ac_status=$?
42580 grep -v '^ *+' conftest.er1 >conftest.err
42581 rm -f conftest.er1
42582 cat conftest.err >&5
42583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42584 (exit $ac_status); } && {
42585 test -z "$ac_c_werror_flag" ||
42586 test ! -s conftest.err
42587 } && test -s conftest.$ac_objext; then
42588 ac_header_compiler=yes
42589 else
42590 echo "$as_me: failed program was:" >&5
42591 sed 's/^/| /' conftest.$ac_ext >&5
42593 ac_header_compiler=no
42596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42598 echo "${ECHO_T}$ac_header_compiler" >&6; }
42600 # Is the header present?
42601 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
42602 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
42603 cat >conftest.$ac_ext <<_ACEOF
42604 /* confdefs.h. */
42605 _ACEOF
42606 cat confdefs.h >>conftest.$ac_ext
42607 cat >>conftest.$ac_ext <<_ACEOF
42608 /* end confdefs.h. */
42609 #include <openssl/aes.h>
42610 _ACEOF
42611 if { (ac_try="$ac_cpp conftest.$ac_ext"
42612 case "(($ac_try" in
42613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42614 *) ac_try_echo=$ac_try;;
42615 esac
42616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42618 ac_status=$?
42619 grep -v '^ *+' conftest.er1 >conftest.err
42620 rm -f conftest.er1
42621 cat conftest.err >&5
42622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42623 (exit $ac_status); } >/dev/null && {
42624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42625 test ! -s conftest.err
42626 }; then
42627 ac_header_preproc=yes
42628 else
42629 echo "$as_me: failed program was:" >&5
42630 sed 's/^/| /' conftest.$ac_ext >&5
42632 ac_header_preproc=no
42635 rm -f conftest.err conftest.$ac_ext
42636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42637 echo "${ECHO_T}$ac_header_preproc" >&6; }
42639 # So? What about this header?
42640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42641 yes:no: )
42642 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
42643 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42644 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
42645 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
42646 ac_header_preproc=yes
42648 no:yes:* )
42649 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
42650 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
42651 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
42652 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
42653 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
42654 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
42655 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
42656 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
42657 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
42658 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
42659 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
42660 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
42661 ( cat <<\_ASBOX
42662 ## ------------------------------- ##
42663 ## Report this to www.asterisk.org ##
42664 ## ------------------------------- ##
42665 _ASBOX
42666 ) | sed "s/^/$as_me: WARNING: /" >&2
42668 esac
42669 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
42670 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
42671 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
42672 echo $ECHO_N "(cached) $ECHO_C" >&6
42673 else
42674 ac_cv_header_openssl_aes_h=$ac_header_preproc
42676 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
42677 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
42680 if test $ac_cv_header_openssl_aes_h = yes; then
42681 CRYPTO_HEADER_FOUND=1
42682 else
42683 CRYPTO_HEADER_FOUND=0
42687 CPPFLAGS="${saved_cppflags}"
42689 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
42690 CRYPTO_LIB=""
42691 CRYPTO_INCLUDE=""
42692 else
42693 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42694 CRYPTO_LIB=""
42696 PBX_CRYPTO=1
42697 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42699 cat >>confdefs.h <<_ACEOF
42700 #define HAVE_CRYPTO 1
42701 _ACEOF
42704 cat >>confdefs.h <<_ACEOF
42705 #define HAVE_CRYPTO_VERSION
42706 _ACEOF
42713 if test "$PBX_CRYPTO" = "1";
42714 then
42716 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
42717 pbxlibdir=""
42718 # if --with-OPENSSL=DIR has been specified, use it.
42719 if test "x${OPENSSL_DIR}" != "x"; then
42720 if test -d ${OPENSSL_DIR}/lib; then
42721 pbxlibdir="-L${OPENSSL_DIR}/lib"
42722 else
42723 pbxlibdir="-L${OPENSSL_DIR}"
42726 pbxfuncname="ssl2_connect"
42727 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42728 AST_OPENSSL_FOUND=yes
42729 else
42730 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
42731 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
42732 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
42733 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42734 echo $ECHO_N "(cached) $ECHO_C" >&6
42735 else
42736 ac_check_lib_save_LIBS=$LIBS
42737 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
42738 cat >conftest.$ac_ext <<_ACEOF
42739 /* confdefs.h. */
42740 _ACEOF
42741 cat confdefs.h >>conftest.$ac_ext
42742 cat >>conftest.$ac_ext <<_ACEOF
42743 /* end confdefs.h. */
42745 /* Override any GCC internal prototype to avoid an error.
42746 Use char because int might match the return type of a GCC
42747 builtin and then its argument prototype would still apply. */
42748 #ifdef __cplusplus
42749 extern "C"
42750 #endif
42751 char ${pbxfuncname} ();
42753 main ()
42755 return ${pbxfuncname} ();
42757 return 0;
42759 _ACEOF
42760 rm -f conftest.$ac_objext conftest$ac_exeext
42761 if { (ac_try="$ac_link"
42762 case "(($ac_try" in
42763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42764 *) ac_try_echo=$ac_try;;
42765 esac
42766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42767 (eval "$ac_link") 2>conftest.er1
42768 ac_status=$?
42769 grep -v '^ *+' conftest.er1 >conftest.err
42770 rm -f conftest.er1
42771 cat conftest.err >&5
42772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42773 (exit $ac_status); } && {
42774 test -z "$ac_c_werror_flag" ||
42775 test ! -s conftest.err
42776 } && test -s conftest$ac_exeext &&
42777 $as_test_x conftest$ac_exeext; then
42778 eval "$as_ac_Lib=yes"
42779 else
42780 echo "$as_me: failed program was:" >&5
42781 sed 's/^/| /' conftest.$ac_ext >&5
42783 eval "$as_ac_Lib=no"
42786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42787 conftest$ac_exeext conftest.$ac_ext
42788 LIBS=$ac_check_lib_save_LIBS
42790 ac_res=`eval echo '${'$as_ac_Lib'}'`
42791 { echo "$as_me:$LINENO: result: $ac_res" >&5
42792 echo "${ECHO_T}$ac_res" >&6; }
42793 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42794 AST_OPENSSL_FOUND=yes
42795 else
42796 AST_OPENSSL_FOUND=no
42801 # now check for the header.
42802 if test "${AST_OPENSSL_FOUND}" = "yes"; then
42803 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
42804 # if --with-OPENSSL=DIR has been specified, use it.
42805 if test "x${OPENSSL_DIR}" != "x"; then
42806 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
42808 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
42809 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
42810 OPENSSL_HEADER_FOUND="1"
42811 else # check for the header
42812 saved_cppflags="${CPPFLAGS}"
42813 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE} "
42814 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
42815 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
42816 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
42817 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
42818 echo $ECHO_N "(cached) $ECHO_C" >&6
42820 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
42821 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
42822 else
42823 # Is the header compilable?
42824 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
42825 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
42826 cat >conftest.$ac_ext <<_ACEOF
42827 /* confdefs.h. */
42828 _ACEOF
42829 cat confdefs.h >>conftest.$ac_ext
42830 cat >>conftest.$ac_ext <<_ACEOF
42831 /* end confdefs.h. */
42832 $ac_includes_default
42833 #include <openssl/ssl.h>
42834 _ACEOF
42835 rm -f conftest.$ac_objext
42836 if { (ac_try="$ac_compile"
42837 case "(($ac_try" in
42838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42839 *) ac_try_echo=$ac_try;;
42840 esac
42841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42842 (eval "$ac_compile") 2>conftest.er1
42843 ac_status=$?
42844 grep -v '^ *+' conftest.er1 >conftest.err
42845 rm -f conftest.er1
42846 cat conftest.err >&5
42847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42848 (exit $ac_status); } && {
42849 test -z "$ac_c_werror_flag" ||
42850 test ! -s conftest.err
42851 } && test -s conftest.$ac_objext; then
42852 ac_header_compiler=yes
42853 else
42854 echo "$as_me: failed program was:" >&5
42855 sed 's/^/| /' conftest.$ac_ext >&5
42857 ac_header_compiler=no
42860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42862 echo "${ECHO_T}$ac_header_compiler" >&6; }
42864 # Is the header present?
42865 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
42866 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
42867 cat >conftest.$ac_ext <<_ACEOF
42868 /* confdefs.h. */
42869 _ACEOF
42870 cat confdefs.h >>conftest.$ac_ext
42871 cat >>conftest.$ac_ext <<_ACEOF
42872 /* end confdefs.h. */
42873 #include <openssl/ssl.h>
42874 _ACEOF
42875 if { (ac_try="$ac_cpp conftest.$ac_ext"
42876 case "(($ac_try" in
42877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42878 *) ac_try_echo=$ac_try;;
42879 esac
42880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42882 ac_status=$?
42883 grep -v '^ *+' conftest.er1 >conftest.err
42884 rm -f conftest.er1
42885 cat conftest.err >&5
42886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887 (exit $ac_status); } >/dev/null && {
42888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42889 test ! -s conftest.err
42890 }; then
42891 ac_header_preproc=yes
42892 else
42893 echo "$as_me: failed program was:" >&5
42894 sed 's/^/| /' conftest.$ac_ext >&5
42896 ac_header_preproc=no
42899 rm -f conftest.err conftest.$ac_ext
42900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42901 echo "${ECHO_T}$ac_header_preproc" >&6; }
42903 # So? What about this header?
42904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42905 yes:no: )
42906 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
42907 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42908 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
42909 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
42910 ac_header_preproc=yes
42912 no:yes:* )
42913 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
42914 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
42915 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
42916 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
42917 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
42918 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
42919 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
42920 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
42921 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
42922 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
42923 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
42924 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
42925 ( cat <<\_ASBOX
42926 ## ------------------------------- ##
42927 ## Report this to www.asterisk.org ##
42928 ## ------------------------------- ##
42929 _ASBOX
42930 ) | sed "s/^/$as_me: WARNING: /" >&2
42932 esac
42933 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
42934 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
42935 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
42936 echo $ECHO_N "(cached) $ECHO_C" >&6
42937 else
42938 ac_cv_header_openssl_ssl_h=$ac_header_preproc
42940 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
42941 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
42944 if test $ac_cv_header_openssl_ssl_h = yes; then
42945 OPENSSL_HEADER_FOUND=1
42946 else
42947 OPENSSL_HEADER_FOUND=0
42951 CPPFLAGS="${saved_cppflags}"
42953 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
42954 OPENSSL_LIB=""
42955 OPENSSL_INCLUDE=""
42956 else
42957 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42958 OPENSSL_LIB=""
42960 PBX_OPENSSL=1
42961 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42963 cat >>confdefs.h <<_ACEOF
42964 #define HAVE_OPENSSL 1
42965 _ACEOF
42968 cat >>confdefs.h <<_ACEOF
42969 #define HAVE_OPENSSL_VERSION
42970 _ACEOF
42978 if test "$PBX_OPENSSL" = "1";
42979 then
42981 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
42982 pbxlibdir=""
42983 # if --with-OSPTK=DIR has been specified, use it.
42984 if test "x${OSPTK_DIR}" != "x"; then
42985 if test -d ${OSPTK_DIR}/lib; then
42986 pbxlibdir="-L${OSPTK_DIR}/lib"
42987 else
42988 pbxlibdir="-L${OSPTK_DIR}"
42991 pbxfuncname="OSPPCryptoDecrypt"
42992 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42993 AST_OSPTK_FOUND=yes
42994 else
42995 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
42996 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
42997 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
42998 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42999 echo $ECHO_N "(cached) $ECHO_C" >&6
43000 else
43001 ac_check_lib_save_LIBS=$LIBS
43002 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
43003 cat >conftest.$ac_ext <<_ACEOF
43004 /* confdefs.h. */
43005 _ACEOF
43006 cat confdefs.h >>conftest.$ac_ext
43007 cat >>conftest.$ac_ext <<_ACEOF
43008 /* end confdefs.h. */
43010 /* Override any GCC internal prototype to avoid an error.
43011 Use char because int might match the return type of a GCC
43012 builtin and then its argument prototype would still apply. */
43013 #ifdef __cplusplus
43014 extern "C"
43015 #endif
43016 char ${pbxfuncname} ();
43018 main ()
43020 return ${pbxfuncname} ();
43022 return 0;
43024 _ACEOF
43025 rm -f conftest.$ac_objext conftest$ac_exeext
43026 if { (ac_try="$ac_link"
43027 case "(($ac_try" in
43028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43029 *) ac_try_echo=$ac_try;;
43030 esac
43031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43032 (eval "$ac_link") 2>conftest.er1
43033 ac_status=$?
43034 grep -v '^ *+' conftest.er1 >conftest.err
43035 rm -f conftest.er1
43036 cat conftest.err >&5
43037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43038 (exit $ac_status); } && {
43039 test -z "$ac_c_werror_flag" ||
43040 test ! -s conftest.err
43041 } && test -s conftest$ac_exeext &&
43042 $as_test_x conftest$ac_exeext; then
43043 eval "$as_ac_Lib=yes"
43044 else
43045 echo "$as_me: failed program was:" >&5
43046 sed 's/^/| /' conftest.$ac_ext >&5
43048 eval "$as_ac_Lib=no"
43051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43052 conftest$ac_exeext conftest.$ac_ext
43053 LIBS=$ac_check_lib_save_LIBS
43055 ac_res=`eval echo '${'$as_ac_Lib'}'`
43056 { echo "$as_me:$LINENO: result: $ac_res" >&5
43057 echo "${ECHO_T}$ac_res" >&6; }
43058 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43059 AST_OSPTK_FOUND=yes
43060 else
43061 AST_OSPTK_FOUND=no
43066 # now check for the header.
43067 if test "${AST_OSPTK_FOUND}" = "yes"; then
43068 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
43069 # if --with-OSPTK=DIR has been specified, use it.
43070 if test "x${OSPTK_DIR}" != "x"; then
43071 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
43073 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
43074 if test "xosp/osp.h" = "x" ; then # no header, assume found
43075 OSPTK_HEADER_FOUND="1"
43076 else # check for the header
43077 saved_cppflags="${CPPFLAGS}"
43078 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE} "
43079 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43080 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
43081 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
43082 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43083 echo $ECHO_N "(cached) $ECHO_C" >&6
43085 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
43086 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
43087 else
43088 # Is the header compilable?
43089 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
43090 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
43091 cat >conftest.$ac_ext <<_ACEOF
43092 /* confdefs.h. */
43093 _ACEOF
43094 cat confdefs.h >>conftest.$ac_ext
43095 cat >>conftest.$ac_ext <<_ACEOF
43096 /* end confdefs.h. */
43097 $ac_includes_default
43098 #include <osp/osp.h>
43099 _ACEOF
43100 rm -f conftest.$ac_objext
43101 if { (ac_try="$ac_compile"
43102 case "(($ac_try" in
43103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43104 *) ac_try_echo=$ac_try;;
43105 esac
43106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43107 (eval "$ac_compile") 2>conftest.er1
43108 ac_status=$?
43109 grep -v '^ *+' conftest.er1 >conftest.err
43110 rm -f conftest.er1
43111 cat conftest.err >&5
43112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43113 (exit $ac_status); } && {
43114 test -z "$ac_c_werror_flag" ||
43115 test ! -s conftest.err
43116 } && test -s conftest.$ac_objext; then
43117 ac_header_compiler=yes
43118 else
43119 echo "$as_me: failed program was:" >&5
43120 sed 's/^/| /' conftest.$ac_ext >&5
43122 ac_header_compiler=no
43125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43127 echo "${ECHO_T}$ac_header_compiler" >&6; }
43129 # Is the header present?
43130 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
43131 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
43132 cat >conftest.$ac_ext <<_ACEOF
43133 /* confdefs.h. */
43134 _ACEOF
43135 cat confdefs.h >>conftest.$ac_ext
43136 cat >>conftest.$ac_ext <<_ACEOF
43137 /* end confdefs.h. */
43138 #include <osp/osp.h>
43139 _ACEOF
43140 if { (ac_try="$ac_cpp conftest.$ac_ext"
43141 case "(($ac_try" in
43142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43143 *) ac_try_echo=$ac_try;;
43144 esac
43145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43147 ac_status=$?
43148 grep -v '^ *+' conftest.er1 >conftest.err
43149 rm -f conftest.er1
43150 cat conftest.err >&5
43151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); } >/dev/null && {
43153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43154 test ! -s conftest.err
43155 }; then
43156 ac_header_preproc=yes
43157 else
43158 echo "$as_me: failed program was:" >&5
43159 sed 's/^/| /' conftest.$ac_ext >&5
43161 ac_header_preproc=no
43164 rm -f conftest.err conftest.$ac_ext
43165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43166 echo "${ECHO_T}$ac_header_preproc" >&6; }
43168 # So? What about this header?
43169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43170 yes:no: )
43171 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
43172 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43173 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
43174 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
43175 ac_header_preproc=yes
43177 no:yes:* )
43178 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
43179 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
43180 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
43181 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
43182 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
43183 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
43184 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
43185 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
43186 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
43187 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
43188 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
43189 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
43190 ( cat <<\_ASBOX
43191 ## ------------------------------- ##
43192 ## Report this to www.asterisk.org ##
43193 ## ------------------------------- ##
43194 _ASBOX
43195 ) | sed "s/^/$as_me: WARNING: /" >&2
43197 esac
43198 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
43199 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
43200 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43201 echo $ECHO_N "(cached) $ECHO_C" >&6
43202 else
43203 ac_cv_header_osp_osp_h=$ac_header_preproc
43205 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
43206 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
43209 if test $ac_cv_header_osp_osp_h = yes; then
43210 OSPTK_HEADER_FOUND=1
43211 else
43212 OSPTK_HEADER_FOUND=0
43216 CPPFLAGS="${saved_cppflags}"
43218 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
43219 OSPTK_LIB=""
43220 OSPTK_INCLUDE=""
43221 else
43222 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43223 OSPTK_LIB=""
43225 PBX_OSPTK=1
43226 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43228 cat >>confdefs.h <<_ACEOF
43229 #define HAVE_OSPTK 1
43230 _ACEOF
43233 cat >>confdefs.h <<_ACEOF
43234 #define HAVE_OSPTK_VERSION
43235 _ACEOF
43244 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
43245 PBX_GMIME=0
43246 if test -n "$ac_tool_prefix"; then
43247 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
43248 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
43249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43251 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
43252 echo $ECHO_N "(cached) $ECHO_C" >&6
43253 else
43254 if test -n "$CONFIG_GMIME"; then
43255 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
43256 else
43257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43258 for as_dir in $PATH
43260 IFS=$as_save_IFS
43261 test -z "$as_dir" && as_dir=.
43262 for ac_exec_ext in '' $ac_executable_extensions; do
43263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43264 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
43265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43266 break 2
43268 done
43269 done
43270 IFS=$as_save_IFS
43274 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
43275 if test -n "$CONFIG_GMIME"; then
43276 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
43277 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
43278 else
43279 { echo "$as_me:$LINENO: result: no" >&5
43280 echo "${ECHO_T}no" >&6; }
43285 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
43286 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
43287 # Extract the first word of "gmime-config", so it can be a program name with args.
43288 set dummy gmime-config; ac_word=$2
43289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43291 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
43292 echo $ECHO_N "(cached) $ECHO_C" >&6
43293 else
43294 if test -n "$ac_ct_CONFIG_GMIME"; then
43295 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
43296 else
43297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43298 for as_dir in $PATH
43300 IFS=$as_save_IFS
43301 test -z "$as_dir" && as_dir=.
43302 for ac_exec_ext in '' $ac_executable_extensions; do
43303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43304 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
43305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43306 break 2
43308 done
43309 done
43310 IFS=$as_save_IFS
43314 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
43315 if test -n "$ac_ct_CONFIG_GMIME"; then
43316 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
43317 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
43318 else
43319 { echo "$as_me:$LINENO: result: no" >&5
43320 echo "${ECHO_T}no" >&6; }
43323 if test "x$ac_ct_CONFIG_GMIME" = x; then
43324 CONFIG_GMIME="No"
43325 else
43326 case $cross_compiling:$ac_tool_warned in
43327 yes:)
43328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
43329 whose name does not start with the host triplet. If you think this
43330 configuration is useful to you, please write to autoconf@gnu.org." >&5
43331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
43332 whose name does not start with the host triplet. If you think this
43333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
43334 ac_tool_warned=yes ;;
43335 esac
43336 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
43338 else
43339 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
43342 if test ! "x${CONFIG_GMIME}" = xNo; then
43343 if test x"" = x ; then A=--cflags ; else A="" ; fi
43344 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
43345 if test x"" = x ; then A=--libs ; else A="" ; fi
43346 GMIME_LIB=$(${CONFIG_GMIME} $A)
43347 if test x"" != x ; then
43348 saved_cppflags="${CPPFLAGS}"
43349 if test "x${GMIME_DIR}" != "x"; then
43350 GMIME_INCLUDE="-I${GMIME_DIR}/include"
43352 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
43354 saved_ldflags="${LDFLAGS}"
43355 LDFLAGS="${GMIME_LIB}"
43357 cat >conftest.$ac_ext <<_ACEOF
43358 /* confdefs.h. */
43359 _ACEOF
43360 cat confdefs.h >>conftest.$ac_ext
43361 cat >>conftest.$ac_ext <<_ACEOF
43362 /* end confdefs.h. */
43365 main ()
43370 return 0;
43372 _ACEOF
43373 rm -f conftest.$ac_objext conftest$ac_exeext
43374 if { (ac_try="$ac_link"
43375 case "(($ac_try" in
43376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43377 *) ac_try_echo=$ac_try;;
43378 esac
43379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43380 (eval "$ac_link") 2>conftest.er1
43381 ac_status=$?
43382 grep -v '^ *+' conftest.er1 >conftest.err
43383 rm -f conftest.er1
43384 cat conftest.err >&5
43385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43386 (exit $ac_status); } && {
43387 test -z "$ac_c_werror_flag" ||
43388 test ! -s conftest.err
43389 } && test -s conftest$ac_exeext &&
43390 $as_test_x conftest$ac_exeext; then
43391 PBX_GMIME=1
43393 cat >>confdefs.h <<\_ACEOF
43394 #define HAVE_GMIME 1
43395 _ACEOF
43398 else
43399 echo "$as_me: failed program was:" >&5
43400 sed 's/^/| /' conftest.$ac_ext >&5
43406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43407 conftest$ac_exeext conftest.$ac_ext
43408 CPPFLAGS="${saved_cppflags}"
43409 LDFLAGS="${saved_ldflags}"
43410 else
43411 PBX_GMIME=1
43413 cat >>confdefs.h <<\_ACEOF
43414 #define HAVE_GMIME 1
43415 _ACEOF
43423 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
43424 pbxlibdir=""
43425 # if --with-FREETDS=DIR has been specified, use it.
43426 if test "x${FREETDS_DIR}" != "x"; then
43427 if test -d ${FREETDS_DIR}/lib; then
43428 pbxlibdir="-L${FREETDS_DIR}/lib"
43429 else
43430 pbxlibdir="-L${FREETDS_DIR}"
43433 pbxfuncname="tds_version"
43434 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43435 AST_FREETDS_FOUND=yes
43436 else
43437 as_ac_Lib=`echo "ac_cv_lib_tds_${pbxfuncname}" | $as_tr_sh`
43438 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltds" >&5
43439 echo $ECHO_N "checking for ${pbxfuncname} in -ltds... $ECHO_C" >&6; }
43440 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43441 echo $ECHO_N "(cached) $ECHO_C" >&6
43442 else
43443 ac_check_lib_save_LIBS=$LIBS
43444 LIBS="-ltds ${pbxlibdir} $LIBS"
43445 cat >conftest.$ac_ext <<_ACEOF
43446 /* confdefs.h. */
43447 _ACEOF
43448 cat confdefs.h >>conftest.$ac_ext
43449 cat >>conftest.$ac_ext <<_ACEOF
43450 /* end confdefs.h. */
43452 /* Override any GCC internal prototype to avoid an error.
43453 Use char because int might match the return type of a GCC
43454 builtin and then its argument prototype would still apply. */
43455 #ifdef __cplusplus
43456 extern "C"
43457 #endif
43458 char ${pbxfuncname} ();
43460 main ()
43462 return ${pbxfuncname} ();
43464 return 0;
43466 _ACEOF
43467 rm -f conftest.$ac_objext conftest$ac_exeext
43468 if { (ac_try="$ac_link"
43469 case "(($ac_try" in
43470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43471 *) ac_try_echo=$ac_try;;
43472 esac
43473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43474 (eval "$ac_link") 2>conftest.er1
43475 ac_status=$?
43476 grep -v '^ *+' conftest.er1 >conftest.err
43477 rm -f conftest.er1
43478 cat conftest.err >&5
43479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43480 (exit $ac_status); } && {
43481 test -z "$ac_c_werror_flag" ||
43482 test ! -s conftest.err
43483 } && test -s conftest$ac_exeext &&
43484 $as_test_x conftest$ac_exeext; then
43485 eval "$as_ac_Lib=yes"
43486 else
43487 echo "$as_me: failed program was:" >&5
43488 sed 's/^/| /' conftest.$ac_ext >&5
43490 eval "$as_ac_Lib=no"
43493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43494 conftest$ac_exeext conftest.$ac_ext
43495 LIBS=$ac_check_lib_save_LIBS
43497 ac_res=`eval echo '${'$as_ac_Lib'}'`
43498 { echo "$as_me:$LINENO: result: $ac_res" >&5
43499 echo "${ECHO_T}$ac_res" >&6; }
43500 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43501 AST_FREETDS_FOUND=yes
43502 else
43503 AST_FREETDS_FOUND=no
43508 # now check for the header.
43509 if test "${AST_FREETDS_FOUND}" = "yes"; then
43510 FREETDS_LIB="${pbxlibdir} -ltds "
43511 # if --with-FREETDS=DIR has been specified, use it.
43512 if test "x${FREETDS_DIR}" != "x"; then
43513 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
43515 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
43516 if test "xtds.h" = "x" ; then # no header, assume found
43517 FREETDS_HEADER_FOUND="1"
43518 else # check for the header
43519 saved_cppflags="${CPPFLAGS}"
43520 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE} "
43521 if test "${ac_cv_header_tds_h+set}" = set; then
43522 { echo "$as_me:$LINENO: checking for tds.h" >&5
43523 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
43524 if test "${ac_cv_header_tds_h+set}" = set; then
43525 echo $ECHO_N "(cached) $ECHO_C" >&6
43527 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
43528 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
43529 else
43530 # Is the header compilable?
43531 { echo "$as_me:$LINENO: checking tds.h usability" >&5
43532 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
43533 cat >conftest.$ac_ext <<_ACEOF
43534 /* confdefs.h. */
43535 _ACEOF
43536 cat confdefs.h >>conftest.$ac_ext
43537 cat >>conftest.$ac_ext <<_ACEOF
43538 /* end confdefs.h. */
43539 $ac_includes_default
43540 #include <tds.h>
43541 _ACEOF
43542 rm -f conftest.$ac_objext
43543 if { (ac_try="$ac_compile"
43544 case "(($ac_try" in
43545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43546 *) ac_try_echo=$ac_try;;
43547 esac
43548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43549 (eval "$ac_compile") 2>conftest.er1
43550 ac_status=$?
43551 grep -v '^ *+' conftest.er1 >conftest.err
43552 rm -f conftest.er1
43553 cat conftest.err >&5
43554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43555 (exit $ac_status); } && {
43556 test -z "$ac_c_werror_flag" ||
43557 test ! -s conftest.err
43558 } && test -s conftest.$ac_objext; then
43559 ac_header_compiler=yes
43560 else
43561 echo "$as_me: failed program was:" >&5
43562 sed 's/^/| /' conftest.$ac_ext >&5
43564 ac_header_compiler=no
43567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43569 echo "${ECHO_T}$ac_header_compiler" >&6; }
43571 # Is the header present?
43572 { echo "$as_me:$LINENO: checking tds.h presence" >&5
43573 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
43574 cat >conftest.$ac_ext <<_ACEOF
43575 /* confdefs.h. */
43576 _ACEOF
43577 cat confdefs.h >>conftest.$ac_ext
43578 cat >>conftest.$ac_ext <<_ACEOF
43579 /* end confdefs.h. */
43580 #include <tds.h>
43581 _ACEOF
43582 if { (ac_try="$ac_cpp conftest.$ac_ext"
43583 case "(($ac_try" in
43584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43585 *) ac_try_echo=$ac_try;;
43586 esac
43587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43589 ac_status=$?
43590 grep -v '^ *+' conftest.er1 >conftest.err
43591 rm -f conftest.er1
43592 cat conftest.err >&5
43593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594 (exit $ac_status); } >/dev/null && {
43595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43596 test ! -s conftest.err
43597 }; then
43598 ac_header_preproc=yes
43599 else
43600 echo "$as_me: failed program was:" >&5
43601 sed 's/^/| /' conftest.$ac_ext >&5
43603 ac_header_preproc=no
43606 rm -f conftest.err conftest.$ac_ext
43607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43608 echo "${ECHO_T}$ac_header_preproc" >&6; }
43610 # So? What about this header?
43611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43612 yes:no: )
43613 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
43614 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43615 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
43616 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
43617 ac_header_preproc=yes
43619 no:yes:* )
43620 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
43621 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
43622 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
43623 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
43624 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
43625 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
43626 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
43627 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
43628 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
43629 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
43630 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
43631 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
43632 ( cat <<\_ASBOX
43633 ## ------------------------------- ##
43634 ## Report this to www.asterisk.org ##
43635 ## ------------------------------- ##
43636 _ASBOX
43637 ) | sed "s/^/$as_me: WARNING: /" >&2
43639 esac
43640 { echo "$as_me:$LINENO: checking for tds.h" >&5
43641 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
43642 if test "${ac_cv_header_tds_h+set}" = set; then
43643 echo $ECHO_N "(cached) $ECHO_C" >&6
43644 else
43645 ac_cv_header_tds_h=$ac_header_preproc
43647 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
43648 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
43651 if test $ac_cv_header_tds_h = yes; then
43652 FREETDS_HEADER_FOUND=1
43653 else
43654 FREETDS_HEADER_FOUND=0
43658 CPPFLAGS="${saved_cppflags}"
43660 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
43661 FREETDS_LIB=""
43662 FREETDS_INCLUDE=""
43663 else
43664 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43665 FREETDS_LIB=""
43667 PBX_FREETDS=1
43668 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43670 cat >>confdefs.h <<_ACEOF
43671 #define HAVE_FREETDS 1
43672 _ACEOF
43675 cat >>confdefs.h <<_ACEOF
43676 #define HAVE_FREETDS_VERSION
43677 _ACEOF
43683 if test "${PBX_FREETDS}" != "0";
43684 then
43685 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
43686 *0.64*)
43687 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
43689 *0.63*)
43690 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
43692 *0.62*)
43693 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
43696 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
43698 esac
43702 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
43703 pbxlibdir=""
43704 # if --with-TERMCAP=DIR has been specified, use it.
43705 if test "x${TERMCAP_DIR}" != "x"; then
43706 if test -d ${TERMCAP_DIR}/lib; then
43707 pbxlibdir="-L${TERMCAP_DIR}/lib"
43708 else
43709 pbxlibdir="-L${TERMCAP_DIR}"
43712 pbxfuncname="tgetent"
43713 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43714 AST_TERMCAP_FOUND=yes
43715 else
43716 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
43717 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
43718 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
43719 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43720 echo $ECHO_N "(cached) $ECHO_C" >&6
43721 else
43722 ac_check_lib_save_LIBS=$LIBS
43723 LIBS="-ltermcap ${pbxlibdir} $LIBS"
43724 cat >conftest.$ac_ext <<_ACEOF
43725 /* confdefs.h. */
43726 _ACEOF
43727 cat confdefs.h >>conftest.$ac_ext
43728 cat >>conftest.$ac_ext <<_ACEOF
43729 /* end confdefs.h. */
43731 /* Override any GCC internal prototype to avoid an error.
43732 Use char because int might match the return type of a GCC
43733 builtin and then its argument prototype would still apply. */
43734 #ifdef __cplusplus
43735 extern "C"
43736 #endif
43737 char ${pbxfuncname} ();
43739 main ()
43741 return ${pbxfuncname} ();
43743 return 0;
43745 _ACEOF
43746 rm -f conftest.$ac_objext conftest$ac_exeext
43747 if { (ac_try="$ac_link"
43748 case "(($ac_try" in
43749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43750 *) ac_try_echo=$ac_try;;
43751 esac
43752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43753 (eval "$ac_link") 2>conftest.er1
43754 ac_status=$?
43755 grep -v '^ *+' conftest.er1 >conftest.err
43756 rm -f conftest.er1
43757 cat conftest.err >&5
43758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759 (exit $ac_status); } && {
43760 test -z "$ac_c_werror_flag" ||
43761 test ! -s conftest.err
43762 } && test -s conftest$ac_exeext &&
43763 $as_test_x conftest$ac_exeext; then
43764 eval "$as_ac_Lib=yes"
43765 else
43766 echo "$as_me: failed program was:" >&5
43767 sed 's/^/| /' conftest.$ac_ext >&5
43769 eval "$as_ac_Lib=no"
43772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43773 conftest$ac_exeext conftest.$ac_ext
43774 LIBS=$ac_check_lib_save_LIBS
43776 ac_res=`eval echo '${'$as_ac_Lib'}'`
43777 { echo "$as_me:$LINENO: result: $ac_res" >&5
43778 echo "${ECHO_T}$ac_res" >&6; }
43779 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43780 AST_TERMCAP_FOUND=yes
43781 else
43782 AST_TERMCAP_FOUND=no
43787 # now check for the header.
43788 if test "${AST_TERMCAP_FOUND}" = "yes"; then
43789 TERMCAP_LIB="${pbxlibdir} -ltermcap "
43790 # if --with-TERMCAP=DIR has been specified, use it.
43791 if test "x${TERMCAP_DIR}" != "x"; then
43792 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
43794 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
43795 if test "x" = "x" ; then # no header, assume found
43796 TERMCAP_HEADER_FOUND="1"
43797 else # check for the header
43798 saved_cppflags="${CPPFLAGS}"
43799 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE} "
43800 if test "${ac_cv_header_+set}" = set; then
43801 { echo "$as_me:$LINENO: checking for " >&5
43802 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
43803 if test "${ac_cv_header_+set}" = set; then
43804 echo $ECHO_N "(cached) $ECHO_C" >&6
43806 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
43807 echo "${ECHO_T}$ac_cv_header_" >&6; }
43808 else
43809 # Is the header compilable?
43810 { echo "$as_me:$LINENO: checking usability" >&5
43811 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
43812 cat >conftest.$ac_ext <<_ACEOF
43813 /* confdefs.h. */
43814 _ACEOF
43815 cat confdefs.h >>conftest.$ac_ext
43816 cat >>conftest.$ac_ext <<_ACEOF
43817 /* end confdefs.h. */
43818 $ac_includes_default
43819 #include <>
43820 _ACEOF
43821 rm -f conftest.$ac_objext
43822 if { (ac_try="$ac_compile"
43823 case "(($ac_try" in
43824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43825 *) ac_try_echo=$ac_try;;
43826 esac
43827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43828 (eval "$ac_compile") 2>conftest.er1
43829 ac_status=$?
43830 grep -v '^ *+' conftest.er1 >conftest.err
43831 rm -f conftest.er1
43832 cat conftest.err >&5
43833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43834 (exit $ac_status); } && {
43835 test -z "$ac_c_werror_flag" ||
43836 test ! -s conftest.err
43837 } && test -s conftest.$ac_objext; then
43838 ac_header_compiler=yes
43839 else
43840 echo "$as_me: failed program was:" >&5
43841 sed 's/^/| /' conftest.$ac_ext >&5
43843 ac_header_compiler=no
43846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43848 echo "${ECHO_T}$ac_header_compiler" >&6; }
43850 # Is the header present?
43851 { echo "$as_me:$LINENO: checking presence" >&5
43852 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
43853 cat >conftest.$ac_ext <<_ACEOF
43854 /* confdefs.h. */
43855 _ACEOF
43856 cat confdefs.h >>conftest.$ac_ext
43857 cat >>conftest.$ac_ext <<_ACEOF
43858 /* end confdefs.h. */
43859 #include <>
43860 _ACEOF
43861 if { (ac_try="$ac_cpp conftest.$ac_ext"
43862 case "(($ac_try" in
43863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43864 *) ac_try_echo=$ac_try;;
43865 esac
43866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43868 ac_status=$?
43869 grep -v '^ *+' conftest.er1 >conftest.err
43870 rm -f conftest.er1
43871 cat conftest.err >&5
43872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43873 (exit $ac_status); } >/dev/null && {
43874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43875 test ! -s conftest.err
43876 }; then
43877 ac_header_preproc=yes
43878 else
43879 echo "$as_me: failed program was:" >&5
43880 sed 's/^/| /' conftest.$ac_ext >&5
43882 ac_header_preproc=no
43885 rm -f conftest.err conftest.$ac_ext
43886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43887 echo "${ECHO_T}$ac_header_preproc" >&6; }
43889 # So? What about this header?
43890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43891 yes:no: )
43892 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
43893 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
43894 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
43895 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
43896 ac_header_preproc=yes
43898 no:yes:* )
43899 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
43900 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
43901 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
43902 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
43903 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
43904 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
43905 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
43906 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
43907 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
43908 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
43909 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
43910 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
43911 ( cat <<\_ASBOX
43912 ## ------------------------------- ##
43913 ## Report this to www.asterisk.org ##
43914 ## ------------------------------- ##
43915 _ASBOX
43916 ) | sed "s/^/$as_me: WARNING: /" >&2
43918 esac
43919 { echo "$as_me:$LINENO: checking for " >&5
43920 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
43921 if test "${ac_cv_header_+set}" = set; then
43922 echo $ECHO_N "(cached) $ECHO_C" >&6
43923 else
43924 ac_cv_header_=$ac_header_preproc
43926 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
43927 echo "${ECHO_T}$ac_cv_header_" >&6; }
43930 if test $ac_cv_header_ = yes; then
43931 TERMCAP_HEADER_FOUND=1
43932 else
43933 TERMCAP_HEADER_FOUND=0
43937 CPPFLAGS="${saved_cppflags}"
43939 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
43940 TERMCAP_LIB=""
43941 TERMCAP_INCLUDE=""
43942 else
43943 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43944 TERMCAP_LIB=""
43946 PBX_TERMCAP=1
43947 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43949 cat >>confdefs.h <<_ACEOF
43950 #define HAVE_TERMCAP 1
43951 _ACEOF
43954 cat >>confdefs.h <<_ACEOF
43955 #define HAVE_TERMCAP_VERSION
43956 _ACEOF
43964 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
43965 pbxlibdir=""
43966 # if --with-TINFO=DIR has been specified, use it.
43967 if test "x${TINFO_DIR}" != "x"; then
43968 if test -d ${TINFO_DIR}/lib; then
43969 pbxlibdir="-L${TINFO_DIR}/lib"
43970 else
43971 pbxlibdir="-L${TINFO_DIR}"
43974 pbxfuncname="tgetent"
43975 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43976 AST_TINFO_FOUND=yes
43977 else
43978 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
43979 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
43980 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
43981 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43982 echo $ECHO_N "(cached) $ECHO_C" >&6
43983 else
43984 ac_check_lib_save_LIBS=$LIBS
43985 LIBS="-ltinfo ${pbxlibdir} $LIBS"
43986 cat >conftest.$ac_ext <<_ACEOF
43987 /* confdefs.h. */
43988 _ACEOF
43989 cat confdefs.h >>conftest.$ac_ext
43990 cat >>conftest.$ac_ext <<_ACEOF
43991 /* end confdefs.h. */
43993 /* Override any GCC internal prototype to avoid an error.
43994 Use char because int might match the return type of a GCC
43995 builtin and then its argument prototype would still apply. */
43996 #ifdef __cplusplus
43997 extern "C"
43998 #endif
43999 char ${pbxfuncname} ();
44001 main ()
44003 return ${pbxfuncname} ();
44005 return 0;
44007 _ACEOF
44008 rm -f conftest.$ac_objext conftest$ac_exeext
44009 if { (ac_try="$ac_link"
44010 case "(($ac_try" in
44011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44012 *) ac_try_echo=$ac_try;;
44013 esac
44014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44015 (eval "$ac_link") 2>conftest.er1
44016 ac_status=$?
44017 grep -v '^ *+' conftest.er1 >conftest.err
44018 rm -f conftest.er1
44019 cat conftest.err >&5
44020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44021 (exit $ac_status); } && {
44022 test -z "$ac_c_werror_flag" ||
44023 test ! -s conftest.err
44024 } && test -s conftest$ac_exeext &&
44025 $as_test_x conftest$ac_exeext; then
44026 eval "$as_ac_Lib=yes"
44027 else
44028 echo "$as_me: failed program was:" >&5
44029 sed 's/^/| /' conftest.$ac_ext >&5
44031 eval "$as_ac_Lib=no"
44034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44035 conftest$ac_exeext conftest.$ac_ext
44036 LIBS=$ac_check_lib_save_LIBS
44038 ac_res=`eval echo '${'$as_ac_Lib'}'`
44039 { echo "$as_me:$LINENO: result: $ac_res" >&5
44040 echo "${ECHO_T}$ac_res" >&6; }
44041 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44042 AST_TINFO_FOUND=yes
44043 else
44044 AST_TINFO_FOUND=no
44049 # now check for the header.
44050 if test "${AST_TINFO_FOUND}" = "yes"; then
44051 TINFO_LIB="${pbxlibdir} -ltinfo "
44052 # if --with-TINFO=DIR has been specified, use it.
44053 if test "x${TINFO_DIR}" != "x"; then
44054 TINFO_INCLUDE="-I${TINFO_DIR}/include"
44056 TINFO_INCLUDE="${TINFO_INCLUDE} "
44057 if test "x" = "x" ; then # no header, assume found
44058 TINFO_HEADER_FOUND="1"
44059 else # check for the header
44060 saved_cppflags="${CPPFLAGS}"
44061 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE} "
44062 if test "${ac_cv_header_+set}" = set; then
44063 { echo "$as_me:$LINENO: checking for " >&5
44064 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44065 if test "${ac_cv_header_+set}" = set; then
44066 echo $ECHO_N "(cached) $ECHO_C" >&6
44068 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44069 echo "${ECHO_T}$ac_cv_header_" >&6; }
44070 else
44071 # Is the header compilable?
44072 { echo "$as_me:$LINENO: checking usability" >&5
44073 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
44074 cat >conftest.$ac_ext <<_ACEOF
44075 /* confdefs.h. */
44076 _ACEOF
44077 cat confdefs.h >>conftest.$ac_ext
44078 cat >>conftest.$ac_ext <<_ACEOF
44079 /* end confdefs.h. */
44080 $ac_includes_default
44081 #include <>
44082 _ACEOF
44083 rm -f conftest.$ac_objext
44084 if { (ac_try="$ac_compile"
44085 case "(($ac_try" in
44086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44087 *) ac_try_echo=$ac_try;;
44088 esac
44089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44090 (eval "$ac_compile") 2>conftest.er1
44091 ac_status=$?
44092 grep -v '^ *+' conftest.er1 >conftest.err
44093 rm -f conftest.er1
44094 cat conftest.err >&5
44095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44096 (exit $ac_status); } && {
44097 test -z "$ac_c_werror_flag" ||
44098 test ! -s conftest.err
44099 } && test -s conftest.$ac_objext; then
44100 ac_header_compiler=yes
44101 else
44102 echo "$as_me: failed program was:" >&5
44103 sed 's/^/| /' conftest.$ac_ext >&5
44105 ac_header_compiler=no
44108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44110 echo "${ECHO_T}$ac_header_compiler" >&6; }
44112 # Is the header present?
44113 { echo "$as_me:$LINENO: checking presence" >&5
44114 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
44115 cat >conftest.$ac_ext <<_ACEOF
44116 /* confdefs.h. */
44117 _ACEOF
44118 cat confdefs.h >>conftest.$ac_ext
44119 cat >>conftest.$ac_ext <<_ACEOF
44120 /* end confdefs.h. */
44121 #include <>
44122 _ACEOF
44123 if { (ac_try="$ac_cpp conftest.$ac_ext"
44124 case "(($ac_try" in
44125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44126 *) ac_try_echo=$ac_try;;
44127 esac
44128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44130 ac_status=$?
44131 grep -v '^ *+' conftest.er1 >conftest.err
44132 rm -f conftest.er1
44133 cat conftest.err >&5
44134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44135 (exit $ac_status); } >/dev/null && {
44136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44137 test ! -s conftest.err
44138 }; then
44139 ac_header_preproc=yes
44140 else
44141 echo "$as_me: failed program was:" >&5
44142 sed 's/^/| /' conftest.$ac_ext >&5
44144 ac_header_preproc=no
44147 rm -f conftest.err conftest.$ac_ext
44148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44149 echo "${ECHO_T}$ac_header_preproc" >&6; }
44151 # So? What about this header?
44152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44153 yes:no: )
44154 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
44155 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
44156 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
44157 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
44158 ac_header_preproc=yes
44160 no:yes:* )
44161 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
44162 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
44163 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
44164 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
44165 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
44166 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
44167 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
44168 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
44169 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
44170 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
44171 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
44172 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
44173 ( cat <<\_ASBOX
44174 ## ------------------------------- ##
44175 ## Report this to www.asterisk.org ##
44176 ## ------------------------------- ##
44177 _ASBOX
44178 ) | sed "s/^/$as_me: WARNING: /" >&2
44180 esac
44181 { echo "$as_me:$LINENO: checking for " >&5
44182 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44183 if test "${ac_cv_header_+set}" = set; then
44184 echo $ECHO_N "(cached) $ECHO_C" >&6
44185 else
44186 ac_cv_header_=$ac_header_preproc
44188 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44189 echo "${ECHO_T}$ac_cv_header_" >&6; }
44192 if test $ac_cv_header_ = yes; then
44193 TINFO_HEADER_FOUND=1
44194 else
44195 TINFO_HEADER_FOUND=0
44199 CPPFLAGS="${saved_cppflags}"
44201 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
44202 TINFO_LIB=""
44203 TINFO_INCLUDE=""
44204 else
44205 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44206 TINFO_LIB=""
44208 PBX_TINFO=1
44209 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44211 cat >>confdefs.h <<_ACEOF
44212 #define HAVE_TINFO 1
44213 _ACEOF
44216 cat >>confdefs.h <<_ACEOF
44217 #define HAVE_TINFO_VERSION
44218 _ACEOF
44225 if test "${host_os}" != "linux-gnu" ; then
44226 tonezone_extra="-lm"
44229 # new tonezone, version 1.4.0
44231 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
44232 pbxlibdir=""
44233 # if --with-TONEZONE=DIR has been specified, use it.
44234 if test "x${TONEZONE_DIR}" != "x"; then
44235 if test -d ${TONEZONE_DIR}/lib; then
44236 pbxlibdir="-L${TONEZONE_DIR}/lib"
44237 else
44238 pbxlibdir="-L${TONEZONE_DIR}"
44241 pbxfuncname="tone_zone_find"
44242 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44243 AST_TONEZONE_FOUND=yes
44244 else
44245 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
44246 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
44247 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
44248 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44249 echo $ECHO_N "(cached) $ECHO_C" >&6
44250 else
44251 ac_check_lib_save_LIBS=$LIBS
44252 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
44253 cat >conftest.$ac_ext <<_ACEOF
44254 /* confdefs.h. */
44255 _ACEOF
44256 cat confdefs.h >>conftest.$ac_ext
44257 cat >>conftest.$ac_ext <<_ACEOF
44258 /* end confdefs.h. */
44260 /* Override any GCC internal prototype to avoid an error.
44261 Use char because int might match the return type of a GCC
44262 builtin and then its argument prototype would still apply. */
44263 #ifdef __cplusplus
44264 extern "C"
44265 #endif
44266 char ${pbxfuncname} ();
44268 main ()
44270 return ${pbxfuncname} ();
44272 return 0;
44274 _ACEOF
44275 rm -f conftest.$ac_objext conftest$ac_exeext
44276 if { (ac_try="$ac_link"
44277 case "(($ac_try" in
44278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44279 *) ac_try_echo=$ac_try;;
44280 esac
44281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44282 (eval "$ac_link") 2>conftest.er1
44283 ac_status=$?
44284 grep -v '^ *+' conftest.er1 >conftest.err
44285 rm -f conftest.er1
44286 cat conftest.err >&5
44287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44288 (exit $ac_status); } && {
44289 test -z "$ac_c_werror_flag" ||
44290 test ! -s conftest.err
44291 } && test -s conftest$ac_exeext &&
44292 $as_test_x conftest$ac_exeext; then
44293 eval "$as_ac_Lib=yes"
44294 else
44295 echo "$as_me: failed program was:" >&5
44296 sed 's/^/| /' conftest.$ac_ext >&5
44298 eval "$as_ac_Lib=no"
44301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44302 conftest$ac_exeext conftest.$ac_ext
44303 LIBS=$ac_check_lib_save_LIBS
44305 ac_res=`eval echo '${'$as_ac_Lib'}'`
44306 { echo "$as_me:$LINENO: result: $ac_res" >&5
44307 echo "${ECHO_T}$ac_res" >&6; }
44308 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44309 AST_TONEZONE_FOUND=yes
44310 else
44311 AST_TONEZONE_FOUND=no
44316 # now check for the header.
44317 if test "${AST_TONEZONE_FOUND}" = "yes"; then
44318 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
44319 # if --with-TONEZONE=DIR has been specified, use it.
44320 if test "x${TONEZONE_DIR}" != "x"; then
44321 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
44323 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
44324 if test "xzaptel/tonezone.h" = "x" ; then # no header, assume found
44325 TONEZONE_HEADER_FOUND="1"
44326 else # check for the header
44327 saved_cppflags="${CPPFLAGS}"
44328 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
44329 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
44330 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
44331 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
44332 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
44333 echo $ECHO_N "(cached) $ECHO_C" >&6
44335 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
44336 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
44337 else
44338 # Is the header compilable?
44339 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
44340 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
44341 cat >conftest.$ac_ext <<_ACEOF
44342 /* confdefs.h. */
44343 _ACEOF
44344 cat confdefs.h >>conftest.$ac_ext
44345 cat >>conftest.$ac_ext <<_ACEOF
44346 /* end confdefs.h. */
44347 $ac_includes_default
44348 #include <zaptel/tonezone.h>
44349 _ACEOF
44350 rm -f conftest.$ac_objext
44351 if { (ac_try="$ac_compile"
44352 case "(($ac_try" in
44353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44354 *) ac_try_echo=$ac_try;;
44355 esac
44356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44357 (eval "$ac_compile") 2>conftest.er1
44358 ac_status=$?
44359 grep -v '^ *+' conftest.er1 >conftest.err
44360 rm -f conftest.er1
44361 cat conftest.err >&5
44362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44363 (exit $ac_status); } && {
44364 test -z "$ac_c_werror_flag" ||
44365 test ! -s conftest.err
44366 } && test -s conftest.$ac_objext; then
44367 ac_header_compiler=yes
44368 else
44369 echo "$as_me: failed program was:" >&5
44370 sed 's/^/| /' conftest.$ac_ext >&5
44372 ac_header_compiler=no
44375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44377 echo "${ECHO_T}$ac_header_compiler" >&6; }
44379 # Is the header present?
44380 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
44381 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
44382 cat >conftest.$ac_ext <<_ACEOF
44383 /* confdefs.h. */
44384 _ACEOF
44385 cat confdefs.h >>conftest.$ac_ext
44386 cat >>conftest.$ac_ext <<_ACEOF
44387 /* end confdefs.h. */
44388 #include <zaptel/tonezone.h>
44389 _ACEOF
44390 if { (ac_try="$ac_cpp conftest.$ac_ext"
44391 case "(($ac_try" in
44392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44393 *) ac_try_echo=$ac_try;;
44394 esac
44395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44397 ac_status=$?
44398 grep -v '^ *+' conftest.er1 >conftest.err
44399 rm -f conftest.er1
44400 cat conftest.err >&5
44401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402 (exit $ac_status); } >/dev/null && {
44403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44404 test ! -s conftest.err
44405 }; then
44406 ac_header_preproc=yes
44407 else
44408 echo "$as_me: failed program was:" >&5
44409 sed 's/^/| /' conftest.$ac_ext >&5
44411 ac_header_preproc=no
44414 rm -f conftest.err conftest.$ac_ext
44415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44416 echo "${ECHO_T}$ac_header_preproc" >&6; }
44418 # So? What about this header?
44419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44420 yes:no: )
44421 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
44422 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44423 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
44424 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
44425 ac_header_preproc=yes
44427 no:yes:* )
44428 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
44429 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
44430 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
44431 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
44432 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
44433 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
44434 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
44435 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
44436 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
44437 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
44438 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
44439 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
44440 ( cat <<\_ASBOX
44441 ## ------------------------------- ##
44442 ## Report this to www.asterisk.org ##
44443 ## ------------------------------- ##
44444 _ASBOX
44445 ) | sed "s/^/$as_me: WARNING: /" >&2
44447 esac
44448 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
44449 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
44450 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
44451 echo $ECHO_N "(cached) $ECHO_C" >&6
44452 else
44453 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
44455 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
44456 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
44459 if test $ac_cv_header_zaptel_tonezone_h = yes; then
44460 TONEZONE_HEADER_FOUND=1
44461 else
44462 TONEZONE_HEADER_FOUND=0
44466 CPPFLAGS="${saved_cppflags}"
44468 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
44469 TONEZONE_LIB=""
44470 TONEZONE_INCLUDE=""
44471 else
44472 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44473 TONEZONE_LIB=""
44475 PBX_TONEZONE=1
44476 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44478 cat >>confdefs.h <<_ACEOF
44479 #define HAVE_TONEZONE 1
44480 _ACEOF
44483 cat >>confdefs.h <<_ACEOF
44484 #define HAVE_TONEZONE_VERSION 140
44485 _ACEOF
44491 # other case, old tonezone (0.80)
44493 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
44494 pbxlibdir=""
44495 # if --with-TONEZONE=DIR has been specified, use it.
44496 if test "x${TONEZONE_DIR}" != "x"; then
44497 if test -d ${TONEZONE_DIR}/lib; then
44498 pbxlibdir="-L${TONEZONE_DIR}/lib"
44499 else
44500 pbxlibdir="-L${TONEZONE_DIR}"
44503 pbxfuncname="tone_zone_find"
44504 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44505 AST_TONEZONE_FOUND=yes
44506 else
44507 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
44508 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
44509 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
44510 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44511 echo $ECHO_N "(cached) $ECHO_C" >&6
44512 else
44513 ac_check_lib_save_LIBS=$LIBS
44514 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
44515 cat >conftest.$ac_ext <<_ACEOF
44516 /* confdefs.h. */
44517 _ACEOF
44518 cat confdefs.h >>conftest.$ac_ext
44519 cat >>conftest.$ac_ext <<_ACEOF
44520 /* end confdefs.h. */
44522 /* Override any GCC internal prototype to avoid an error.
44523 Use char because int might match the return type of a GCC
44524 builtin and then its argument prototype would still apply. */
44525 #ifdef __cplusplus
44526 extern "C"
44527 #endif
44528 char ${pbxfuncname} ();
44530 main ()
44532 return ${pbxfuncname} ();
44534 return 0;
44536 _ACEOF
44537 rm -f conftest.$ac_objext conftest$ac_exeext
44538 if { (ac_try="$ac_link"
44539 case "(($ac_try" in
44540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44541 *) ac_try_echo=$ac_try;;
44542 esac
44543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44544 (eval "$ac_link") 2>conftest.er1
44545 ac_status=$?
44546 grep -v '^ *+' conftest.er1 >conftest.err
44547 rm -f conftest.er1
44548 cat conftest.err >&5
44549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44550 (exit $ac_status); } && {
44551 test -z "$ac_c_werror_flag" ||
44552 test ! -s conftest.err
44553 } && test -s conftest$ac_exeext &&
44554 $as_test_x conftest$ac_exeext; then
44555 eval "$as_ac_Lib=yes"
44556 else
44557 echo "$as_me: failed program was:" >&5
44558 sed 's/^/| /' conftest.$ac_ext >&5
44560 eval "$as_ac_Lib=no"
44563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44564 conftest$ac_exeext conftest.$ac_ext
44565 LIBS=$ac_check_lib_save_LIBS
44567 ac_res=`eval echo '${'$as_ac_Lib'}'`
44568 { echo "$as_me:$LINENO: result: $ac_res" >&5
44569 echo "${ECHO_T}$ac_res" >&6; }
44570 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44571 AST_TONEZONE_FOUND=yes
44572 else
44573 AST_TONEZONE_FOUND=no
44578 # now check for the header.
44579 if test "${AST_TONEZONE_FOUND}" = "yes"; then
44580 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
44581 # if --with-TONEZONE=DIR has been specified, use it.
44582 if test "x${TONEZONE_DIR}" != "x"; then
44583 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
44585 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
44586 if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found
44587 TONEZONE_HEADER_FOUND="1"
44588 else # check for the header
44589 saved_cppflags="${CPPFLAGS}"
44590 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
44591 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
44592 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
44593 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
44594 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
44595 echo $ECHO_N "(cached) $ECHO_C" >&6
44597 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
44598 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
44599 else
44600 # Is the header compilable?
44601 { echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5
44602 echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; }
44603 cat >conftest.$ac_ext <<_ACEOF
44604 /* confdefs.h. */
44605 _ACEOF
44606 cat confdefs.h >>conftest.$ac_ext
44607 cat >>conftest.$ac_ext <<_ACEOF
44608 /* end confdefs.h. */
44609 $ac_includes_default
44610 #include <zaptel/zaptel.h>
44611 _ACEOF
44612 rm -f conftest.$ac_objext
44613 if { (ac_try="$ac_compile"
44614 case "(($ac_try" in
44615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44616 *) ac_try_echo=$ac_try;;
44617 esac
44618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44619 (eval "$ac_compile") 2>conftest.er1
44620 ac_status=$?
44621 grep -v '^ *+' conftest.er1 >conftest.err
44622 rm -f conftest.er1
44623 cat conftest.err >&5
44624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44625 (exit $ac_status); } && {
44626 test -z "$ac_c_werror_flag" ||
44627 test ! -s conftest.err
44628 } && test -s conftest.$ac_objext; then
44629 ac_header_compiler=yes
44630 else
44631 echo "$as_me: failed program was:" >&5
44632 sed 's/^/| /' conftest.$ac_ext >&5
44634 ac_header_compiler=no
44637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44639 echo "${ECHO_T}$ac_header_compiler" >&6; }
44641 # Is the header present?
44642 { echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5
44643 echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; }
44644 cat >conftest.$ac_ext <<_ACEOF
44645 /* confdefs.h. */
44646 _ACEOF
44647 cat confdefs.h >>conftest.$ac_ext
44648 cat >>conftest.$ac_ext <<_ACEOF
44649 /* end confdefs.h. */
44650 #include <zaptel/zaptel.h>
44651 _ACEOF
44652 if { (ac_try="$ac_cpp conftest.$ac_ext"
44653 case "(($ac_try" in
44654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44655 *) ac_try_echo=$ac_try;;
44656 esac
44657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44659 ac_status=$?
44660 grep -v '^ *+' conftest.er1 >conftest.err
44661 rm -f conftest.er1
44662 cat conftest.err >&5
44663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44664 (exit $ac_status); } >/dev/null && {
44665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44666 test ! -s conftest.err
44667 }; then
44668 ac_header_preproc=yes
44669 else
44670 echo "$as_me: failed program was:" >&5
44671 sed 's/^/| /' conftest.$ac_ext >&5
44673 ac_header_preproc=no
44676 rm -f conftest.err conftest.$ac_ext
44677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44678 echo "${ECHO_T}$ac_header_preproc" >&6; }
44680 # So? What about this header?
44681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44682 yes:no: )
44683 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
44684 echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44685 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5
44686 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
44687 ac_header_preproc=yes
44689 no:yes:* )
44690 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5
44691 echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;}
44692 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5
44693 echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
44694 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5
44695 echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;}
44696 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
44697 echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
44698 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
44699 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
44700 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
44701 echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
44702 ( cat <<\_ASBOX
44703 ## ------------------------------- ##
44704 ## Report this to www.asterisk.org ##
44705 ## ------------------------------- ##
44706 _ASBOX
44707 ) | sed "s/^/$as_me: WARNING: /" >&2
44709 esac
44710 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
44711 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
44712 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
44713 echo $ECHO_N "(cached) $ECHO_C" >&6
44714 else
44715 ac_cv_header_zaptel_zaptel_h=$ac_header_preproc
44717 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
44718 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
44721 if test $ac_cv_header_zaptel_zaptel_h = yes; then
44722 TONEZONE_HEADER_FOUND=1
44723 else
44724 TONEZONE_HEADER_FOUND=0
44728 CPPFLAGS="${saved_cppflags}"
44730 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
44731 TONEZONE_LIB=""
44732 TONEZONE_INCLUDE=""
44733 else
44734 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44735 TONEZONE_LIB=""
44737 PBX_TONEZONE=1
44738 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44740 cat >>confdefs.h <<_ACEOF
44741 #define HAVE_TONEZONE 1
44742 _ACEOF
44745 cat >>confdefs.h <<_ACEOF
44746 #define HAVE_TONEZONE_VERSION 80
44747 _ACEOF
44755 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
44756 pbxlibdir=""
44757 # if --with-USB=DIR has been specified, use it.
44758 if test "x${USB_DIR}" != "x"; then
44759 if test -d ${USB_DIR}/lib; then
44760 pbxlibdir="-L${USB_DIR}/lib"
44761 else
44762 pbxlibdir="-L${USB_DIR}"
44765 pbxfuncname="usb_init"
44766 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44767 AST_USB_FOUND=yes
44768 else
44769 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
44770 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
44771 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
44772 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44773 echo $ECHO_N "(cached) $ECHO_C" >&6
44774 else
44775 ac_check_lib_save_LIBS=$LIBS
44776 LIBS="-lusb ${pbxlibdir} $LIBS"
44777 cat >conftest.$ac_ext <<_ACEOF
44778 /* confdefs.h. */
44779 _ACEOF
44780 cat confdefs.h >>conftest.$ac_ext
44781 cat >>conftest.$ac_ext <<_ACEOF
44782 /* end confdefs.h. */
44784 /* Override any GCC internal prototype to avoid an error.
44785 Use char because int might match the return type of a GCC
44786 builtin and then its argument prototype would still apply. */
44787 #ifdef __cplusplus
44788 extern "C"
44789 #endif
44790 char ${pbxfuncname} ();
44792 main ()
44794 return ${pbxfuncname} ();
44796 return 0;
44798 _ACEOF
44799 rm -f conftest.$ac_objext conftest$ac_exeext
44800 if { (ac_try="$ac_link"
44801 case "(($ac_try" in
44802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44803 *) ac_try_echo=$ac_try;;
44804 esac
44805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44806 (eval "$ac_link") 2>conftest.er1
44807 ac_status=$?
44808 grep -v '^ *+' conftest.er1 >conftest.err
44809 rm -f conftest.er1
44810 cat conftest.err >&5
44811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812 (exit $ac_status); } && {
44813 test -z "$ac_c_werror_flag" ||
44814 test ! -s conftest.err
44815 } && test -s conftest$ac_exeext &&
44816 $as_test_x conftest$ac_exeext; then
44817 eval "$as_ac_Lib=yes"
44818 else
44819 echo "$as_me: failed program was:" >&5
44820 sed 's/^/| /' conftest.$ac_ext >&5
44822 eval "$as_ac_Lib=no"
44825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44826 conftest$ac_exeext conftest.$ac_ext
44827 LIBS=$ac_check_lib_save_LIBS
44829 ac_res=`eval echo '${'$as_ac_Lib'}'`
44830 { echo "$as_me:$LINENO: result: $ac_res" >&5
44831 echo "${ECHO_T}$ac_res" >&6; }
44832 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44833 AST_USB_FOUND=yes
44834 else
44835 AST_USB_FOUND=no
44840 # now check for the header.
44841 if test "${AST_USB_FOUND}" = "yes"; then
44842 USB_LIB="${pbxlibdir} -lusb "
44843 # if --with-USB=DIR has been specified, use it.
44844 if test "x${USB_DIR}" != "x"; then
44845 USB_INCLUDE="-I${USB_DIR}/include"
44847 USB_INCLUDE="${USB_INCLUDE} "
44848 if test "xusb.h" = "x" ; then # no header, assume found
44849 USB_HEADER_FOUND="1"
44850 else # check for the header
44851 saved_cppflags="${CPPFLAGS}"
44852 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} "
44853 if test "${ac_cv_header_usb_h+set}" = set; then
44854 { echo "$as_me:$LINENO: checking for usb.h" >&5
44855 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
44856 if test "${ac_cv_header_usb_h+set}" = set; then
44857 echo $ECHO_N "(cached) $ECHO_C" >&6
44859 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
44860 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
44861 else
44862 # Is the header compilable?
44863 { echo "$as_me:$LINENO: checking usb.h usability" >&5
44864 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
44865 cat >conftest.$ac_ext <<_ACEOF
44866 /* confdefs.h. */
44867 _ACEOF
44868 cat confdefs.h >>conftest.$ac_ext
44869 cat >>conftest.$ac_ext <<_ACEOF
44870 /* end confdefs.h. */
44871 $ac_includes_default
44872 #include <usb.h>
44873 _ACEOF
44874 rm -f conftest.$ac_objext
44875 if { (ac_try="$ac_compile"
44876 case "(($ac_try" in
44877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44878 *) ac_try_echo=$ac_try;;
44879 esac
44880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44881 (eval "$ac_compile") 2>conftest.er1
44882 ac_status=$?
44883 grep -v '^ *+' conftest.er1 >conftest.err
44884 rm -f conftest.er1
44885 cat conftest.err >&5
44886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44887 (exit $ac_status); } && {
44888 test -z "$ac_c_werror_flag" ||
44889 test ! -s conftest.err
44890 } && test -s conftest.$ac_objext; then
44891 ac_header_compiler=yes
44892 else
44893 echo "$as_me: failed program was:" >&5
44894 sed 's/^/| /' conftest.$ac_ext >&5
44896 ac_header_compiler=no
44899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44901 echo "${ECHO_T}$ac_header_compiler" >&6; }
44903 # Is the header present?
44904 { echo "$as_me:$LINENO: checking usb.h presence" >&5
44905 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
44906 cat >conftest.$ac_ext <<_ACEOF
44907 /* confdefs.h. */
44908 _ACEOF
44909 cat confdefs.h >>conftest.$ac_ext
44910 cat >>conftest.$ac_ext <<_ACEOF
44911 /* end confdefs.h. */
44912 #include <usb.h>
44913 _ACEOF
44914 if { (ac_try="$ac_cpp conftest.$ac_ext"
44915 case "(($ac_try" in
44916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44917 *) ac_try_echo=$ac_try;;
44918 esac
44919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44921 ac_status=$?
44922 grep -v '^ *+' conftest.er1 >conftest.err
44923 rm -f conftest.er1
44924 cat conftest.err >&5
44925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926 (exit $ac_status); } >/dev/null && {
44927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44928 test ! -s conftest.err
44929 }; then
44930 ac_header_preproc=yes
44931 else
44932 echo "$as_me: failed program was:" >&5
44933 sed 's/^/| /' conftest.$ac_ext >&5
44935 ac_header_preproc=no
44938 rm -f conftest.err conftest.$ac_ext
44939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44940 echo "${ECHO_T}$ac_header_preproc" >&6; }
44942 # So? What about this header?
44943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44944 yes:no: )
44945 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
44946 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44947 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
44948 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
44949 ac_header_preproc=yes
44951 no:yes:* )
44952 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
44953 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
44954 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
44955 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
44956 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
44957 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
44958 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
44959 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
44960 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
44961 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
44962 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
44963 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
44964 ( cat <<\_ASBOX
44965 ## ------------------------------- ##
44966 ## Report this to www.asterisk.org ##
44967 ## ------------------------------- ##
44968 _ASBOX
44969 ) | sed "s/^/$as_me: WARNING: /" >&2
44971 esac
44972 { echo "$as_me:$LINENO: checking for usb.h" >&5
44973 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
44974 if test "${ac_cv_header_usb_h+set}" = set; then
44975 echo $ECHO_N "(cached) $ECHO_C" >&6
44976 else
44977 ac_cv_header_usb_h=$ac_header_preproc
44979 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
44980 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
44983 if test $ac_cv_header_usb_h = yes; then
44984 USB_HEADER_FOUND=1
44985 else
44986 USB_HEADER_FOUND=0
44990 CPPFLAGS="${saved_cppflags}"
44992 if test "x${USB_HEADER_FOUND}" = "x0" ; then
44993 USB_LIB=""
44994 USB_INCLUDE=""
44995 else
44996 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44997 USB_LIB=""
44999 PBX_USB=1
45000 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45002 cat >>confdefs.h <<_ACEOF
45003 #define HAVE_USB 1
45004 _ACEOF
45007 cat >>confdefs.h <<_ACEOF
45008 #define HAVE_USB_VERSION
45009 _ACEOF
45017 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
45018 pbxlibdir=""
45019 # if --with-VORBIS=DIR has been specified, use it.
45020 if test "x${VORBIS_DIR}" != "x"; then
45021 if test -d ${VORBIS_DIR}/lib; then
45022 pbxlibdir="-L${VORBIS_DIR}/lib"
45023 else
45024 pbxlibdir="-L${VORBIS_DIR}"
45027 pbxfuncname="vorbis_info_init"
45028 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45029 AST_VORBIS_FOUND=yes
45030 else
45031 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
45032 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
45033 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
45034 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45035 echo $ECHO_N "(cached) $ECHO_C" >&6
45036 else
45037 ac_check_lib_save_LIBS=$LIBS
45038 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
45039 cat >conftest.$ac_ext <<_ACEOF
45040 /* confdefs.h. */
45041 _ACEOF
45042 cat confdefs.h >>conftest.$ac_ext
45043 cat >>conftest.$ac_ext <<_ACEOF
45044 /* end confdefs.h. */
45046 /* Override any GCC internal prototype to avoid an error.
45047 Use char because int might match the return type of a GCC
45048 builtin and then its argument prototype would still apply. */
45049 #ifdef __cplusplus
45050 extern "C"
45051 #endif
45052 char ${pbxfuncname} ();
45054 main ()
45056 return ${pbxfuncname} ();
45058 return 0;
45060 _ACEOF
45061 rm -f conftest.$ac_objext conftest$ac_exeext
45062 if { (ac_try="$ac_link"
45063 case "(($ac_try" in
45064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45065 *) ac_try_echo=$ac_try;;
45066 esac
45067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45068 (eval "$ac_link") 2>conftest.er1
45069 ac_status=$?
45070 grep -v '^ *+' conftest.er1 >conftest.err
45071 rm -f conftest.er1
45072 cat conftest.err >&5
45073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45074 (exit $ac_status); } && {
45075 test -z "$ac_c_werror_flag" ||
45076 test ! -s conftest.err
45077 } && test -s conftest$ac_exeext &&
45078 $as_test_x conftest$ac_exeext; then
45079 eval "$as_ac_Lib=yes"
45080 else
45081 echo "$as_me: failed program was:" >&5
45082 sed 's/^/| /' conftest.$ac_ext >&5
45084 eval "$as_ac_Lib=no"
45087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45088 conftest$ac_exeext conftest.$ac_ext
45089 LIBS=$ac_check_lib_save_LIBS
45091 ac_res=`eval echo '${'$as_ac_Lib'}'`
45092 { echo "$as_me:$LINENO: result: $ac_res" >&5
45093 echo "${ECHO_T}$ac_res" >&6; }
45094 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45095 AST_VORBIS_FOUND=yes
45096 else
45097 AST_VORBIS_FOUND=no
45102 # now check for the header.
45103 if test "${AST_VORBIS_FOUND}" = "yes"; then
45104 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
45105 # if --with-VORBIS=DIR has been specified, use it.
45106 if test "x${VORBIS_DIR}" != "x"; then
45107 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
45109 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
45110 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
45111 VORBIS_HEADER_FOUND="1"
45112 else # check for the header
45113 saved_cppflags="${CPPFLAGS}"
45114 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE} "
45115 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45116 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
45117 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
45118 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45119 echo $ECHO_N "(cached) $ECHO_C" >&6
45121 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
45122 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
45123 else
45124 # Is the header compilable?
45125 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
45126 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
45127 cat >conftest.$ac_ext <<_ACEOF
45128 /* confdefs.h. */
45129 _ACEOF
45130 cat confdefs.h >>conftest.$ac_ext
45131 cat >>conftest.$ac_ext <<_ACEOF
45132 /* end confdefs.h. */
45133 $ac_includes_default
45134 #include <vorbis/codec.h>
45135 _ACEOF
45136 rm -f conftest.$ac_objext
45137 if { (ac_try="$ac_compile"
45138 case "(($ac_try" in
45139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45140 *) ac_try_echo=$ac_try;;
45141 esac
45142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45143 (eval "$ac_compile") 2>conftest.er1
45144 ac_status=$?
45145 grep -v '^ *+' conftest.er1 >conftest.err
45146 rm -f conftest.er1
45147 cat conftest.err >&5
45148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45149 (exit $ac_status); } && {
45150 test -z "$ac_c_werror_flag" ||
45151 test ! -s conftest.err
45152 } && test -s conftest.$ac_objext; then
45153 ac_header_compiler=yes
45154 else
45155 echo "$as_me: failed program was:" >&5
45156 sed 's/^/| /' conftest.$ac_ext >&5
45158 ac_header_compiler=no
45161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45163 echo "${ECHO_T}$ac_header_compiler" >&6; }
45165 # Is the header present?
45166 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
45167 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
45168 cat >conftest.$ac_ext <<_ACEOF
45169 /* confdefs.h. */
45170 _ACEOF
45171 cat confdefs.h >>conftest.$ac_ext
45172 cat >>conftest.$ac_ext <<_ACEOF
45173 /* end confdefs.h. */
45174 #include <vorbis/codec.h>
45175 _ACEOF
45176 if { (ac_try="$ac_cpp conftest.$ac_ext"
45177 case "(($ac_try" in
45178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45179 *) ac_try_echo=$ac_try;;
45180 esac
45181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45183 ac_status=$?
45184 grep -v '^ *+' conftest.er1 >conftest.err
45185 rm -f conftest.er1
45186 cat conftest.err >&5
45187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45188 (exit $ac_status); } >/dev/null && {
45189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45190 test ! -s conftest.err
45191 }; then
45192 ac_header_preproc=yes
45193 else
45194 echo "$as_me: failed program was:" >&5
45195 sed 's/^/| /' conftest.$ac_ext >&5
45197 ac_header_preproc=no
45200 rm -f conftest.err conftest.$ac_ext
45201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45202 echo "${ECHO_T}$ac_header_preproc" >&6; }
45204 # So? What about this header?
45205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45206 yes:no: )
45207 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
45208 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45209 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
45210 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
45211 ac_header_preproc=yes
45213 no:yes:* )
45214 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
45215 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
45216 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
45217 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
45218 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
45219 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
45220 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
45221 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
45222 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
45223 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
45224 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
45225 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
45226 ( cat <<\_ASBOX
45227 ## ------------------------------- ##
45228 ## Report this to www.asterisk.org ##
45229 ## ------------------------------- ##
45230 _ASBOX
45231 ) | sed "s/^/$as_me: WARNING: /" >&2
45233 esac
45234 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
45235 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
45236 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45237 echo $ECHO_N "(cached) $ECHO_C" >&6
45238 else
45239 ac_cv_header_vorbis_codec_h=$ac_header_preproc
45241 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
45242 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
45245 if test $ac_cv_header_vorbis_codec_h = yes; then
45246 VORBIS_HEADER_FOUND=1
45247 else
45248 VORBIS_HEADER_FOUND=0
45252 CPPFLAGS="${saved_cppflags}"
45254 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
45255 VORBIS_LIB=""
45256 VORBIS_INCLUDE=""
45257 else
45258 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45259 VORBIS_LIB=""
45261 PBX_VORBIS=1
45262 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45264 cat >>confdefs.h <<_ACEOF
45265 #define HAVE_VORBIS 1
45266 _ACEOF
45269 cat >>confdefs.h <<_ACEOF
45270 #define HAVE_VORBIS_VERSION
45271 _ACEOF
45278 ac_ext=cpp
45279 ac_cpp='$CXXCPP $CPPFLAGS'
45280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45285 if test "${USE_VPB}" != "no"; then
45286 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
45287 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
45288 saved_libs="${LIBS}"
45289 saved_cppflags="${CPPFLAGS}"
45290 if test "x${VPB_DIR}" != "x"; then
45291 if test -d ${VPB_DIR}/lib; then
45292 vpblibdir=${VPB_DIR}/lib
45293 else
45294 vpblibdir=${VPB_DIR}
45296 LIBS="${LIBS} -L${vpblibdir}"
45297 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
45299 LIBS="${LIBS} -lvpb -lpthread"
45300 cat >conftest.$ac_ext <<_ACEOF
45302 /* confdefs.h. */
45303 _ACEOF
45304 cat confdefs.h >>conftest.$ac_ext
45305 cat >>conftest.$ac_ext <<_ACEOF
45306 /* end confdefs.h. */
45307 #include <vpbapi.h>
45309 main ()
45311 int q = vpb_open(0,0);
45313 return 0;
45316 _ACEOF
45317 rm -f conftest.$ac_objext conftest$ac_exeext
45318 if { (ac_try="$ac_link"
45319 case "(($ac_try" in
45320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45321 *) ac_try_echo=$ac_try;;
45322 esac
45323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45324 (eval "$ac_link") 2>conftest.er1
45325 ac_status=$?
45326 grep -v '^ *+' conftest.er1 >conftest.err
45327 rm -f conftest.er1
45328 cat conftest.err >&5
45329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45330 (exit $ac_status); } && {
45331 test -z "$ac_cxx_werror_flag" ||
45332 test ! -s conftest.err
45333 } && test -s conftest$ac_exeext &&
45334 $as_test_x conftest$ac_exeext; then
45335 { echo "$as_me:$LINENO: result: yes" >&5
45336 echo "${ECHO_T}yes" >&6; }
45337 ac_cv_lib_vpb_vpb_open="yes"
45339 else
45340 echo "$as_me: failed program was:" >&5
45341 sed 's/^/| /' conftest.$ac_ext >&5
45343 { echo "$as_me:$LINENO: result: no" >&5
45344 echo "${ECHO_T}no" >&6; }
45345 ac_cv_lib_vpb_vpb_open="no"
45350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45351 conftest$ac_exeext conftest.$ac_ext
45352 LIBS="${saved_libs}"
45353 CPPFLAGS="${saved_cppflags}"
45354 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
45355 VPB_LIB="-lvpb"
45356 if test "${VPB_DIR}" != ""; then
45357 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
45358 VPB_INCLUDE="-I${VPB_DIR}/include"
45360 PBX_VPB=1
45362 cat >>confdefs.h <<\_ACEOF
45363 #define HAVE_VPB 1
45364 _ACEOF
45369 ac_ext=c
45370 ac_cpp='$CPP $CPPFLAGS'
45371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45377 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
45378 pbxlibdir=""
45379 # if --with-ZLIB=DIR has been specified, use it.
45380 if test "x${ZLIB_DIR}" != "x"; then
45381 if test -d ${ZLIB_DIR}/lib; then
45382 pbxlibdir="-L${ZLIB_DIR}/lib"
45383 else
45384 pbxlibdir="-L${ZLIB_DIR}"
45387 pbxfuncname="compress"
45388 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45389 AST_ZLIB_FOUND=yes
45390 else
45391 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
45392 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
45393 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $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="-lz ${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_ZLIB_FOUND=yes
45456 else
45457 AST_ZLIB_FOUND=no
45462 # now check for the header.
45463 if test "${AST_ZLIB_FOUND}" = "yes"; then
45464 ZLIB_LIB="${pbxlibdir} -lz "
45465 # if --with-ZLIB=DIR has been specified, use it.
45466 if test "x${ZLIB_DIR}" != "x"; then
45467 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
45469 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
45470 if test "xzlib.h" = "x" ; then # no header, assume found
45471 ZLIB_HEADER_FOUND="1"
45472 else # check for the header
45473 saved_cppflags="${CPPFLAGS}"
45474 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE} "
45475 if test "${ac_cv_header_zlib_h+set}" = set; then
45476 { echo "$as_me:$LINENO: checking for zlib.h" >&5
45477 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
45478 if test "${ac_cv_header_zlib_h+set}" = set; then
45479 echo $ECHO_N "(cached) $ECHO_C" >&6
45481 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
45482 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
45483 else
45484 # Is the header compilable?
45485 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
45486 echo $ECHO_N "checking zlib.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 <zlib.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 zlib.h presence" >&5
45527 echo $ECHO_N "checking zlib.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 <zlib.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: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
45568 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45569 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
45570 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
45571 ac_header_preproc=yes
45573 no:yes:* )
45574 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
45575 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
45576 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
45577 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
45578 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
45579 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
45580 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
45581 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
45582 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
45583 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
45584 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
45585 echo "$as_me: WARNING: zlib.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 zlib.h" >&5
45595 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
45596 if test "${ac_cv_header_zlib_h+set}" = set; then
45597 echo $ECHO_N "(cached) $ECHO_C" >&6
45598 else
45599 ac_cv_header_zlib_h=$ac_header_preproc
45601 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
45602 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
45605 if test $ac_cv_header_zlib_h = yes; then
45606 ZLIB_HEADER_FOUND=1
45607 else
45608 ZLIB_HEADER_FOUND=0
45612 CPPFLAGS="${saved_cppflags}"
45614 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
45615 ZLIB_LIB=""
45616 ZLIB_INCLUDE=""
45617 else
45618 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45619 ZLIB_LIB=""
45621 PBX_ZLIB=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_ZLIB 1
45626 _ACEOF
45629 cat >>confdefs.h <<_ACEOF
45630 #define HAVE_ZLIB_VERSION
45631 _ACEOF
45638 # Check for various zaptel features and locations.
45639 # The version number, which goes into HAVE_ZAPTEL_VERSION,
45640 # will be used in the system headers to determine the location
45641 # of the zaptel.h header.
45644 if test "x${PBX_ZAPTEL}" != "x1"; then
45645 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
45646 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
45647 saved_cppflags="${CPPFLAGS}"
45648 if test "x${ZAPTEL_DIR}" != "x"; then
45649 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
45651 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
45653 cat >conftest.$ac_ext <<_ACEOF
45654 /* confdefs.h. */
45655 _ACEOF
45656 cat confdefs.h >>conftest.$ac_ext
45657 cat >>conftest.$ac_ext <<_ACEOF
45658 /* end confdefs.h. */
45659 #include <zaptel/zaptel.h>
45661 main ()
45663 #if defined(ZT_TONE_DTMF_BASE)
45664 int foo = 0;
45665 #else
45666 int foo = bar;
45667 #endif
45671 return 0;
45673 _ACEOF
45674 rm -f conftest.$ac_objext
45675 if { (ac_try="$ac_compile"
45676 case "(($ac_try" in
45677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45678 *) ac_try_echo=$ac_try;;
45679 esac
45680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45681 (eval "$ac_compile") 2>conftest.er1
45682 ac_status=$?
45683 grep -v '^ *+' conftest.er1 >conftest.err
45684 rm -f conftest.er1
45685 cat conftest.err >&5
45686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45687 (exit $ac_status); } && {
45688 test -z "$ac_c_werror_flag" ||
45689 test ! -s conftest.err
45690 } && test -s conftest.$ac_objext; then
45691 { echo "$as_me:$LINENO: result: yes" >&5
45692 echo "${ECHO_T}yes" >&6; }
45693 PBX_ZAPTEL=1
45695 cat >>confdefs.h <<\_ACEOF
45696 #define HAVE_ZAPTEL 1
45697 _ACEOF
45700 cat >>confdefs.h <<\_ACEOF
45701 #define HAVE_ZAPTEL_VERSION 140
45702 _ACEOF
45705 else
45706 echo "$as_me: failed program was:" >&5
45707 sed 's/^/| /' conftest.$ac_ext >&5
45709 { echo "$as_me:$LINENO: result: no" >&5
45710 echo "${ECHO_T}no" >&6; }
45714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45715 CPPFLAGS="${saved_cppflags}"
45720 if test "x${PBX_ZAPTEL}" != "x1"; then
45721 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
45722 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
45723 saved_cppflags="${CPPFLAGS}"
45724 if test "x${ZAPTEL_DIR}" != "x"; then
45725 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
45727 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
45729 cat >conftest.$ac_ext <<_ACEOF
45730 /* confdefs.h. */
45731 _ACEOF
45732 cat confdefs.h >>conftest.$ac_ext
45733 cat >>conftest.$ac_ext <<_ACEOF
45734 /* end confdefs.h. */
45735 #include <zaptel/zaptel.h>
45737 main ()
45739 #if defined(ZT_DIAL_OP_CANCEL)
45740 int foo = 0;
45741 #else
45742 int foo = bar;
45743 #endif
45747 return 0;
45749 _ACEOF
45750 rm -f conftest.$ac_objext
45751 if { (ac_try="$ac_compile"
45752 case "(($ac_try" in
45753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45754 *) ac_try_echo=$ac_try;;
45755 esac
45756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45757 (eval "$ac_compile") 2>conftest.er1
45758 ac_status=$?
45759 grep -v '^ *+' conftest.er1 >conftest.err
45760 rm -f conftest.er1
45761 cat conftest.err >&5
45762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45763 (exit $ac_status); } && {
45764 test -z "$ac_c_werror_flag" ||
45765 test ! -s conftest.err
45766 } && test -s conftest.$ac_objext; then
45767 { echo "$as_me:$LINENO: result: yes" >&5
45768 echo "${ECHO_T}yes" >&6; }
45769 PBX_ZAPTEL=1
45771 cat >>confdefs.h <<\_ACEOF
45772 #define HAVE_ZAPTEL 1
45773 _ACEOF
45776 cat >>confdefs.h <<\_ACEOF
45777 #define HAVE_ZAPTEL_VERSION 90
45778 _ACEOF
45781 else
45782 echo "$as_me: failed program was:" >&5
45783 sed 's/^/| /' conftest.$ac_ext >&5
45785 { echo "$as_me:$LINENO: result: no" >&5
45786 echo "${ECHO_T}no" >&6; }
45790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45791 CPPFLAGS="${saved_cppflags}"
45796 # Check for VLDTMF support
45798 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1"; then
45799 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
45800 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
45801 saved_cppflags="${CPPFLAGS}"
45802 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
45803 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
45805 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE}"
45807 cat >conftest.$ac_ext <<_ACEOF
45808 /* confdefs.h. */
45809 _ACEOF
45810 cat confdefs.h >>conftest.$ac_ext
45811 cat >>conftest.$ac_ext <<_ACEOF
45812 /* end confdefs.h. */
45813 #include <zaptel/zaptel.h>
45815 main ()
45817 #if defined(ZT_EVENT_REMOVED)
45818 int foo = 0;
45819 #else
45820 int foo = bar;
45821 #endif
45825 return 0;
45827 _ACEOF
45828 rm -f conftest.$ac_objext
45829 if { (ac_try="$ac_compile"
45830 case "(($ac_try" in
45831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45832 *) ac_try_echo=$ac_try;;
45833 esac
45834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45835 (eval "$ac_compile") 2>conftest.er1
45836 ac_status=$?
45837 grep -v '^ *+' conftest.er1 >conftest.err
45838 rm -f conftest.er1
45839 cat conftest.err >&5
45840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45841 (exit $ac_status); } && {
45842 test -z "$ac_c_werror_flag" ||
45843 test ! -s conftest.err
45844 } && test -s conftest.$ac_objext; then
45845 { echo "$as_me:$LINENO: result: yes" >&5
45846 echo "${ECHO_T}yes" >&6; }
45847 PBX_ZAPTEL_VLDTMF=1
45849 cat >>confdefs.h <<\_ACEOF
45850 #define HAVE_ZAPTEL_VLDTMF 1
45851 _ACEOF
45854 cat >>confdefs.h <<\_ACEOF
45855 #define HAVE_ZAPTEL_VLDTMF_VERSION
45856 _ACEOF
45859 else
45860 echo "$as_me: failed program was:" >&5
45861 sed 's/^/| /' conftest.$ac_ext >&5
45863 { echo "$as_me:$LINENO: result: no" >&5
45864 echo "${ECHO_T}no" >&6; }
45868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45869 CPPFLAGS="${saved_cppflags}"
45874 # Check for echo canceler parameters support
45876 if test "x${PBX_ZAPTEL_ECHOCANPARAMS}" != "x1"; then
45877 { echo "$as_me:$LINENO: checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h" >&5
45878 echo $ECHO_N "checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h... $ECHO_C" >&6; }
45879 saved_cppflags="${CPPFLAGS}"
45880 if test "x${ZAPTEL_ECHOCANPARAMS_DIR}" != "x"; then
45881 ZAPTEL_ECHOCANPARAMS_INCLUDE="-I${ZAPTEL_ECHOCANPARAMS_DIR}/include"
45883 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_ECHOCANPARAMS_INCLUDE}"
45885 cat >conftest.$ac_ext <<_ACEOF
45886 /* confdefs.h. */
45887 _ACEOF
45888 cat confdefs.h >>conftest.$ac_ext
45889 cat >>conftest.$ac_ext <<_ACEOF
45890 /* end confdefs.h. */
45891 #include <zaptel/zaptel.h>
45893 main ()
45895 #if defined(ZT_ECHOCANCEL_PARAMS)
45896 int foo = 0;
45897 #else
45898 int foo = bar;
45899 #endif
45903 return 0;
45905 _ACEOF
45906 rm -f conftest.$ac_objext
45907 if { (ac_try="$ac_compile"
45908 case "(($ac_try" in
45909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45910 *) ac_try_echo=$ac_try;;
45911 esac
45912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45913 (eval "$ac_compile") 2>conftest.er1
45914 ac_status=$?
45915 grep -v '^ *+' conftest.er1 >conftest.err
45916 rm -f conftest.er1
45917 cat conftest.err >&5
45918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45919 (exit $ac_status); } && {
45920 test -z "$ac_c_werror_flag" ||
45921 test ! -s conftest.err
45922 } && test -s conftest.$ac_objext; then
45923 { echo "$as_me:$LINENO: result: yes" >&5
45924 echo "${ECHO_T}yes" >&6; }
45925 PBX_ZAPTEL_ECHOCANPARAMS=1
45927 cat >>confdefs.h <<\_ACEOF
45928 #define HAVE_ZAPTEL_ECHOCANPARAMS 1
45929 _ACEOF
45932 cat >>confdefs.h <<\_ACEOF
45933 #define HAVE_ZAPTEL_ECHOCANPARAMS_VERSION
45934 _ACEOF
45937 else
45938 echo "$as_me: failed program was:" >&5
45939 sed 's/^/| /' conftest.$ac_ext >&5
45941 { echo "$as_me:$LINENO: result: no" >&5
45942 echo "${ECHO_T}no" >&6; }
45946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45947 CPPFLAGS="${saved_cppflags}"
45952 # Check for transcoder support
45954 if test "x${PBX_ZAPTEL_TRANSCODE}" != "x1"; then
45955 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
45956 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
45957 saved_cppflags="${CPPFLAGS}"
45958 if test "x${ZAPTEL_TRANSCODE_DIR}" != "x"; then
45959 ZAPTEL_TRANSCODE_INCLUDE="-I${ZAPTEL_TRANSCODE_DIR}/include"
45961 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_TRANSCODE_INCLUDE}"
45963 cat >conftest.$ac_ext <<_ACEOF
45964 /* confdefs.h. */
45965 _ACEOF
45966 cat confdefs.h >>conftest.$ac_ext
45967 cat >>conftest.$ac_ext <<_ACEOF
45968 /* end confdefs.h. */
45969 #include <zaptel/zaptel.h>
45971 main ()
45973 #if defined(ZT_TCOP_ALLOCATE)
45974 int foo = 0;
45975 #else
45976 int foo = bar;
45977 #endif
45981 return 0;
45983 _ACEOF
45984 rm -f conftest.$ac_objext
45985 if { (ac_try="$ac_compile"
45986 case "(($ac_try" in
45987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45988 *) ac_try_echo=$ac_try;;
45989 esac
45990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45991 (eval "$ac_compile") 2>conftest.er1
45992 ac_status=$?
45993 grep -v '^ *+' conftest.er1 >conftest.err
45994 rm -f conftest.er1
45995 cat conftest.err >&5
45996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45997 (exit $ac_status); } && {
45998 test -z "$ac_c_werror_flag" ||
45999 test ! -s conftest.err
46000 } && test -s conftest.$ac_objext; then
46001 { echo "$as_me:$LINENO: result: yes" >&5
46002 echo "${ECHO_T}yes" >&6; }
46003 PBX_ZAPTEL_TRANSCODE=1
46005 cat >>confdefs.h <<\_ACEOF
46006 #define HAVE_ZAPTEL_TRANSCODE 1
46007 _ACEOF
46010 cat >>confdefs.h <<\_ACEOF
46011 #define HAVE_ZAPTEL_TRANSCODE_VERSION
46012 _ACEOF
46015 else
46016 echo "$as_me: failed program was:" >&5
46017 sed 's/^/| /' conftest.$ac_ext >&5
46019 { echo "$as_me:$LINENO: result: no" >&5
46020 echo "${ECHO_T}no" >&6; }
46024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46025 CPPFLAGS="${saved_cppflags}"
46030 # Check for hwgain support
46032 if test "x${PBX_ZAPTEL_HWGAIN}" != "x1"; then
46033 { echo "$as_me:$LINENO: checking for ZT_SET_HWGAIN in zaptel/zaptel.h" >&5
46034 echo $ECHO_N "checking for ZT_SET_HWGAIN in zaptel/zaptel.h... $ECHO_C" >&6; }
46035 saved_cppflags="${CPPFLAGS}"
46036 if test "x${ZAPTEL_HWGAIN_DIR}" != "x"; then
46037 ZAPTEL_HWGAIN_INCLUDE="-I${ZAPTEL_HWGAIN_DIR}/include"
46039 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_HWGAIN_INCLUDE}"
46041 cat >conftest.$ac_ext <<_ACEOF
46042 /* confdefs.h. */
46043 _ACEOF
46044 cat confdefs.h >>conftest.$ac_ext
46045 cat >>conftest.$ac_ext <<_ACEOF
46046 /* end confdefs.h. */
46047 #include <zaptel/zaptel.h>
46049 main ()
46051 #if defined(ZT_SET_HWGAIN)
46052 int foo = 0;
46053 #else
46054 int foo = bar;
46055 #endif
46059 return 0;
46061 _ACEOF
46062 rm -f conftest.$ac_objext
46063 if { (ac_try="$ac_compile"
46064 case "(($ac_try" in
46065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46066 *) ac_try_echo=$ac_try;;
46067 esac
46068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46069 (eval "$ac_compile") 2>conftest.er1
46070 ac_status=$?
46071 grep -v '^ *+' conftest.er1 >conftest.err
46072 rm -f conftest.er1
46073 cat conftest.err >&5
46074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46075 (exit $ac_status); } && {
46076 test -z "$ac_c_werror_flag" ||
46077 test ! -s conftest.err
46078 } && test -s conftest.$ac_objext; then
46079 { echo "$as_me:$LINENO: result: yes" >&5
46080 echo "${ECHO_T}yes" >&6; }
46081 PBX_ZAPTEL_HWGAIN=1
46083 cat >>confdefs.h <<\_ACEOF
46084 #define HAVE_ZAPTEL_HWGAIN 1
46085 _ACEOF
46088 cat >>confdefs.h <<\_ACEOF
46089 #define HAVE_ZAPTEL_HWGAIN_VERSION
46090 _ACEOF
46093 else
46094 echo "$as_me: failed program was:" >&5
46095 sed 's/^/| /' conftest.$ac_ext >&5
46097 { echo "$as_me:$LINENO: result: no" >&5
46098 echo "${ECHO_T}no" >&6; }
46102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46103 CPPFLAGS="${saved_cppflags}"
46108 # Check for neon mwi support
46110 if test "x${PBX_ZAPTEL_NEONMWI}" != "x1"; then
46111 { echo "$as_me:$LINENO: checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h" >&5
46112 echo $ECHO_N "checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h... $ECHO_C" >&6; }
46113 saved_cppflags="${CPPFLAGS}"
46114 if test "x${ZAPTEL_NEONMWI_DIR}" != "x"; then
46115 ZAPTEL_NEONMWI_INCLUDE="-I${ZAPTEL_NEONMWI_DIR}/include"
46117 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_NEONMWI_INCLUDE}"
46119 cat >conftest.$ac_ext <<_ACEOF
46120 /* confdefs.h. */
46121 _ACEOF
46122 cat confdefs.h >>conftest.$ac_ext
46123 cat >>conftest.$ac_ext <<_ACEOF
46124 /* end confdefs.h. */
46125 #include <zaptel/zaptel.h>
46127 main ()
46129 #if defined(ZT_EVENT_NEONMWI_ACTIVE)
46130 int foo = 0;
46131 #else
46132 int foo = bar;
46133 #endif
46137 return 0;
46139 _ACEOF
46140 rm -f conftest.$ac_objext
46141 if { (ac_try="$ac_compile"
46142 case "(($ac_try" in
46143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46144 *) ac_try_echo=$ac_try;;
46145 esac
46146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46147 (eval "$ac_compile") 2>conftest.er1
46148 ac_status=$?
46149 grep -v '^ *+' conftest.er1 >conftest.err
46150 rm -f conftest.er1
46151 cat conftest.err >&5
46152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46153 (exit $ac_status); } && {
46154 test -z "$ac_c_werror_flag" ||
46155 test ! -s conftest.err
46156 } && test -s conftest.$ac_objext; then
46157 { echo "$as_me:$LINENO: result: yes" >&5
46158 echo "${ECHO_T}yes" >&6; }
46159 PBX_ZAPTEL_NEONMWI=1
46161 cat >>confdefs.h <<\_ACEOF
46162 #define HAVE_ZAPTEL_NEONMWI 1
46163 _ACEOF
46166 cat >>confdefs.h <<\_ACEOF
46167 #define HAVE_ZAPTEL_NEONMWI_VERSION
46168 _ACEOF
46171 else
46172 echo "$as_me: failed program was:" >&5
46173 sed 's/^/| /' conftest.$ac_ext >&5
46175 { echo "$as_me:$LINENO: result: no" >&5
46176 echo "${ECHO_T}no" >&6; }
46180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46181 CPPFLAGS="${saved_cppflags}"
46186 # Check for channel alarm support
46188 if test "x${PBX_ZAPTEL_CHANALARMS}" != "x1" -a "${USE_ZAPTEL_CHANALARMS}" != "no"; then
46189 { echo "$as_me:$LINENO: checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h" >&5
46190 echo $ECHO_N "checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h... $ECHO_C" >&6; }
46191 saved_cppflags="${CPPFLAGS}"
46192 if test "x${ZAPTEL_CHANALARMS_DIR}" != "x"; then
46193 ZAPTEL_CHANALARMS_INCLUDE="-I${ZAPTEL_CHANALARMS_DIR}/include"
46195 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_CHANALARMS_INCLUDE}"
46197 cat >conftest.$ac_ext <<_ACEOF
46198 /* confdefs.h. */
46199 _ACEOF
46200 cat confdefs.h >>conftest.$ac_ext
46201 cat >>conftest.$ac_ext <<_ACEOF
46202 /* end confdefs.h. */
46203 #include <zaptel/zaptel.h>
46205 main ()
46207 size_t foo = sizeof(struct zt_params_v1);
46210 return 0;
46212 _ACEOF
46213 rm -f conftest.$ac_objext
46214 if { (ac_try="$ac_compile"
46215 case "(($ac_try" in
46216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46217 *) ac_try_echo=$ac_try;;
46218 esac
46219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46220 (eval "$ac_compile") 2>conftest.er1
46221 ac_status=$?
46222 grep -v '^ *+' conftest.er1 >conftest.err
46223 rm -f conftest.er1
46224 cat conftest.err >&5
46225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46226 (exit $ac_status); } && {
46227 test -z "$ac_c_werror_flag" ||
46228 test ! -s conftest.err
46229 } && test -s conftest.$ac_objext; then
46230 { echo "$as_me:$LINENO: result: yes" >&5
46231 echo "${ECHO_T}yes" >&6; }
46232 PBX_ZAPTEL_CHANALARMS=1
46234 cat >>confdefs.h <<\_ACEOF
46235 #define HAVE_ZAPTEL_CHANALARMS 1
46236 _ACEOF
46239 cat >>confdefs.h <<\_ACEOF
46240 #define HAVE_ZAPTEL_CHANALARMS_VERSION
46241 _ACEOF
46244 else
46245 echo "$as_me: failed program was:" >&5
46246 sed 's/^/| /' conftest.$ac_ext >&5
46248 { echo "$as_me:$LINENO: result: no" >&5
46249 echo "${ECHO_T}no" >&6; }
46253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46254 CPPFLAGS="${saved_cppflags}"
46258 # On FreeBSD, try old zaptel (0.80 or so) and pretend we have vldtmf
46259 case "${host_os}" in
46260 freebsd*)
46262 if test "x${PBX_ZAPTEL}" != "x1" -a "${USE_ZAPTEL}" != "no"; then
46263 pbxlibdir=""
46264 # if --with-ZAPTEL=DIR has been specified, use it.
46265 if test "x${ZAPTEL_DIR}" != "x"; then
46266 if test -d ${ZAPTEL_DIR}/lib; then
46267 pbxlibdir="-L${ZAPTEL_DIR}/lib"
46268 else
46269 pbxlibdir="-L${ZAPTEL_DIR}"
46272 pbxfuncname=""
46273 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46274 AST_ZAPTEL_FOUND=yes
46275 else
46276 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
46277 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
46278 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
46279 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46280 echo $ECHO_N "(cached) $ECHO_C" >&6
46281 else
46282 ac_check_lib_save_LIBS=$LIBS
46283 LIBS="-lzaptel ${pbxlibdir} $LIBS"
46284 cat >conftest.$ac_ext <<_ACEOF
46285 /* confdefs.h. */
46286 _ACEOF
46287 cat confdefs.h >>conftest.$ac_ext
46288 cat >>conftest.$ac_ext <<_ACEOF
46289 /* end confdefs.h. */
46291 /* Override any GCC internal prototype to avoid an error.
46292 Use char because int might match the return type of a GCC
46293 builtin and then its argument prototype would still apply. */
46294 #ifdef __cplusplus
46295 extern "C"
46296 #endif
46297 char ${pbxfuncname} ();
46299 main ()
46301 return ${pbxfuncname} ();
46303 return 0;
46305 _ACEOF
46306 rm -f conftest.$ac_objext conftest$ac_exeext
46307 if { (ac_try="$ac_link"
46308 case "(($ac_try" in
46309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46310 *) ac_try_echo=$ac_try;;
46311 esac
46312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46313 (eval "$ac_link") 2>conftest.er1
46314 ac_status=$?
46315 grep -v '^ *+' conftest.er1 >conftest.err
46316 rm -f conftest.er1
46317 cat conftest.err >&5
46318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46319 (exit $ac_status); } && {
46320 test -z "$ac_c_werror_flag" ||
46321 test ! -s conftest.err
46322 } && test -s conftest$ac_exeext &&
46323 $as_test_x conftest$ac_exeext; then
46324 eval "$as_ac_Lib=yes"
46325 else
46326 echo "$as_me: failed program was:" >&5
46327 sed 's/^/| /' conftest.$ac_ext >&5
46329 eval "$as_ac_Lib=no"
46332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46333 conftest$ac_exeext conftest.$ac_ext
46334 LIBS=$ac_check_lib_save_LIBS
46336 ac_res=`eval echo '${'$as_ac_Lib'}'`
46337 { echo "$as_me:$LINENO: result: $ac_res" >&5
46338 echo "${ECHO_T}$ac_res" >&6; }
46339 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46340 AST_ZAPTEL_FOUND=yes
46341 else
46342 AST_ZAPTEL_FOUND=no
46347 # now check for the header.
46348 if test "${AST_ZAPTEL_FOUND}" = "yes"; then
46349 ZAPTEL_LIB="${pbxlibdir} -lzaptel "
46350 # if --with-ZAPTEL=DIR has been specified, use it.
46351 if test "x${ZAPTEL_DIR}" != "x"; then
46352 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
46354 ZAPTEL_INCLUDE="${ZAPTEL_INCLUDE} "
46355 if test "xzaptel.h" = "x" ; then # no header, assume found
46356 ZAPTEL_HEADER_FOUND="1"
46357 else # check for the header
46358 saved_cppflags="${CPPFLAGS}"
46359 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE} "
46360 if test "${ac_cv_header_zaptel_h+set}" = set; then
46361 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
46362 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
46363 if test "${ac_cv_header_zaptel_h+set}" = set; then
46364 echo $ECHO_N "(cached) $ECHO_C" >&6
46366 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
46367 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
46368 else
46369 # Is the header compilable?
46370 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
46371 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
46372 cat >conftest.$ac_ext <<_ACEOF
46373 /* confdefs.h. */
46374 _ACEOF
46375 cat confdefs.h >>conftest.$ac_ext
46376 cat >>conftest.$ac_ext <<_ACEOF
46377 /* end confdefs.h. */
46378 $ac_includes_default
46379 #include <zaptel.h>
46380 _ACEOF
46381 rm -f conftest.$ac_objext
46382 if { (ac_try="$ac_compile"
46383 case "(($ac_try" in
46384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46385 *) ac_try_echo=$ac_try;;
46386 esac
46387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46388 (eval "$ac_compile") 2>conftest.er1
46389 ac_status=$?
46390 grep -v '^ *+' conftest.er1 >conftest.err
46391 rm -f conftest.er1
46392 cat conftest.err >&5
46393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46394 (exit $ac_status); } && {
46395 test -z "$ac_c_werror_flag" ||
46396 test ! -s conftest.err
46397 } && test -s conftest.$ac_objext; then
46398 ac_header_compiler=yes
46399 else
46400 echo "$as_me: failed program was:" >&5
46401 sed 's/^/| /' conftest.$ac_ext >&5
46403 ac_header_compiler=no
46406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46408 echo "${ECHO_T}$ac_header_compiler" >&6; }
46410 # Is the header present?
46411 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
46412 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
46413 cat >conftest.$ac_ext <<_ACEOF
46414 /* confdefs.h. */
46415 _ACEOF
46416 cat confdefs.h >>conftest.$ac_ext
46417 cat >>conftest.$ac_ext <<_ACEOF
46418 /* end confdefs.h. */
46419 #include <zaptel.h>
46420 _ACEOF
46421 if { (ac_try="$ac_cpp conftest.$ac_ext"
46422 case "(($ac_try" in
46423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46424 *) ac_try_echo=$ac_try;;
46425 esac
46426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46428 ac_status=$?
46429 grep -v '^ *+' conftest.er1 >conftest.err
46430 rm -f conftest.er1
46431 cat conftest.err >&5
46432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46433 (exit $ac_status); } >/dev/null && {
46434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46435 test ! -s conftest.err
46436 }; then
46437 ac_header_preproc=yes
46438 else
46439 echo "$as_me: failed program was:" >&5
46440 sed 's/^/| /' conftest.$ac_ext >&5
46442 ac_header_preproc=no
46445 rm -f conftest.err conftest.$ac_ext
46446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46447 echo "${ECHO_T}$ac_header_preproc" >&6; }
46449 # So? What about this header?
46450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46451 yes:no: )
46452 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
46453 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46454 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
46455 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
46456 ac_header_preproc=yes
46458 no:yes:* )
46459 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
46460 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
46461 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
46462 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
46463 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
46464 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
46465 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
46466 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
46467 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
46468 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
46469 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
46470 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
46471 ( cat <<\_ASBOX
46472 ## ------------------------------- ##
46473 ## Report this to www.asterisk.org ##
46474 ## ------------------------------- ##
46475 _ASBOX
46476 ) | sed "s/^/$as_me: WARNING: /" >&2
46478 esac
46479 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
46480 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
46481 if test "${ac_cv_header_zaptel_h+set}" = set; then
46482 echo $ECHO_N "(cached) $ECHO_C" >&6
46483 else
46484 ac_cv_header_zaptel_h=$ac_header_preproc
46486 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
46487 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
46490 if test $ac_cv_header_zaptel_h = yes; then
46491 ZAPTEL_HEADER_FOUND=1
46492 else
46493 ZAPTEL_HEADER_FOUND=0
46497 CPPFLAGS="${saved_cppflags}"
46499 if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then
46500 ZAPTEL_LIB=""
46501 ZAPTEL_INCLUDE=""
46502 else
46503 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46504 ZAPTEL_LIB=""
46506 PBX_ZAPTEL=1
46507 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46509 cat >>confdefs.h <<_ACEOF
46510 #define HAVE_ZAPTEL 1
46511 _ACEOF
46514 cat >>confdefs.h <<_ACEOF
46515 #define HAVE_ZAPTEL_VERSION 80
46516 _ACEOF
46523 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then
46524 pbxlibdir=""
46525 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
46526 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
46527 if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then
46528 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib"
46529 else
46530 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}"
46533 pbxfuncname=""
46534 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46535 AST_ZAPTEL_VLDTMF_FOUND=yes
46536 else
46537 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
46538 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
46539 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
46540 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46541 echo $ECHO_N "(cached) $ECHO_C" >&6
46542 else
46543 ac_check_lib_save_LIBS=$LIBS
46544 LIBS="-lzaptel ${pbxlibdir} $LIBS"
46545 cat >conftest.$ac_ext <<_ACEOF
46546 /* confdefs.h. */
46547 _ACEOF
46548 cat confdefs.h >>conftest.$ac_ext
46549 cat >>conftest.$ac_ext <<_ACEOF
46550 /* end confdefs.h. */
46552 /* Override any GCC internal prototype to avoid an error.
46553 Use char because int might match the return type of a GCC
46554 builtin and then its argument prototype would still apply. */
46555 #ifdef __cplusplus
46556 extern "C"
46557 #endif
46558 char ${pbxfuncname} ();
46560 main ()
46562 return ${pbxfuncname} ();
46564 return 0;
46566 _ACEOF
46567 rm -f conftest.$ac_objext conftest$ac_exeext
46568 if { (ac_try="$ac_link"
46569 case "(($ac_try" in
46570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46571 *) ac_try_echo=$ac_try;;
46572 esac
46573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46574 (eval "$ac_link") 2>conftest.er1
46575 ac_status=$?
46576 grep -v '^ *+' conftest.er1 >conftest.err
46577 rm -f conftest.er1
46578 cat conftest.err >&5
46579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46580 (exit $ac_status); } && {
46581 test -z "$ac_c_werror_flag" ||
46582 test ! -s conftest.err
46583 } && test -s conftest$ac_exeext &&
46584 $as_test_x conftest$ac_exeext; then
46585 eval "$as_ac_Lib=yes"
46586 else
46587 echo "$as_me: failed program was:" >&5
46588 sed 's/^/| /' conftest.$ac_ext >&5
46590 eval "$as_ac_Lib=no"
46593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46594 conftest$ac_exeext conftest.$ac_ext
46595 LIBS=$ac_check_lib_save_LIBS
46597 ac_res=`eval echo '${'$as_ac_Lib'}'`
46598 { echo "$as_me:$LINENO: result: $ac_res" >&5
46599 echo "${ECHO_T}$ac_res" >&6; }
46600 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46601 AST_ZAPTEL_VLDTMF_FOUND=yes
46602 else
46603 AST_ZAPTEL_VLDTMF_FOUND=no
46608 # now check for the header.
46609 if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then
46610 ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel "
46611 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
46612 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
46613 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
46615 ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} "
46616 if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found
46617 ZAPTEL_VLDTMF_HEADER_FOUND="1"
46618 else # check for the header
46619 saved_cppflags="${CPPFLAGS}"
46620 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} "
46621 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
46622 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
46623 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
46624 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
46625 echo $ECHO_N "(cached) $ECHO_C" >&6
46627 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
46628 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
46629 else
46630 # Is the header compilable?
46631 { echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5
46632 echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; }
46633 cat >conftest.$ac_ext <<_ACEOF
46634 /* confdefs.h. */
46635 _ACEOF
46636 cat confdefs.h >>conftest.$ac_ext
46637 cat >>conftest.$ac_ext <<_ACEOF
46638 /* end confdefs.h. */
46639 $ac_includes_default
46640 #include <zaptel/zaptel.h>
46641 _ACEOF
46642 rm -f conftest.$ac_objext
46643 if { (ac_try="$ac_compile"
46644 case "(($ac_try" in
46645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46646 *) ac_try_echo=$ac_try;;
46647 esac
46648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46649 (eval "$ac_compile") 2>conftest.er1
46650 ac_status=$?
46651 grep -v '^ *+' conftest.er1 >conftest.err
46652 rm -f conftest.er1
46653 cat conftest.err >&5
46654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46655 (exit $ac_status); } && {
46656 test -z "$ac_c_werror_flag" ||
46657 test ! -s conftest.err
46658 } && test -s conftest.$ac_objext; then
46659 ac_header_compiler=yes
46660 else
46661 echo "$as_me: failed program was:" >&5
46662 sed 's/^/| /' conftest.$ac_ext >&5
46664 ac_header_compiler=no
46667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46669 echo "${ECHO_T}$ac_header_compiler" >&6; }
46671 # Is the header present?
46672 { echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5
46673 echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; }
46674 cat >conftest.$ac_ext <<_ACEOF
46675 /* confdefs.h. */
46676 _ACEOF
46677 cat confdefs.h >>conftest.$ac_ext
46678 cat >>conftest.$ac_ext <<_ACEOF
46679 /* end confdefs.h. */
46680 #include <zaptel/zaptel.h>
46681 _ACEOF
46682 if { (ac_try="$ac_cpp conftest.$ac_ext"
46683 case "(($ac_try" in
46684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46685 *) ac_try_echo=$ac_try;;
46686 esac
46687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46689 ac_status=$?
46690 grep -v '^ *+' conftest.er1 >conftest.err
46691 rm -f conftest.er1
46692 cat conftest.err >&5
46693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46694 (exit $ac_status); } >/dev/null && {
46695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46696 test ! -s conftest.err
46697 }; then
46698 ac_header_preproc=yes
46699 else
46700 echo "$as_me: failed program was:" >&5
46701 sed 's/^/| /' conftest.$ac_ext >&5
46703 ac_header_preproc=no
46706 rm -f conftest.err conftest.$ac_ext
46707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46708 echo "${ECHO_T}$ac_header_preproc" >&6; }
46710 # So? What about this header?
46711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46712 yes:no: )
46713 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
46714 echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46715 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5
46716 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
46717 ac_header_preproc=yes
46719 no:yes:* )
46720 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5
46721 echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;}
46722 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5
46723 echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
46724 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5
46725 echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;}
46726 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
46727 echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
46728 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
46729 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
46730 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
46731 echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
46732 ( cat <<\_ASBOX
46733 ## ------------------------------- ##
46734 ## Report this to www.asterisk.org ##
46735 ## ------------------------------- ##
46736 _ASBOX
46737 ) | sed "s/^/$as_me: WARNING: /" >&2
46739 esac
46740 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
46741 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
46742 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
46743 echo $ECHO_N "(cached) $ECHO_C" >&6
46744 else
46745 ac_cv_header_zaptel_zaptel_h=$ac_header_preproc
46747 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
46748 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
46751 if test $ac_cv_header_zaptel_zaptel_h = yes; then
46752 ZAPTEL_VLDTMF_HEADER_FOUND=1
46753 else
46754 ZAPTEL_VLDTMF_HEADER_FOUND=0
46758 CPPFLAGS="${saved_cppflags}"
46760 if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then
46761 ZAPTEL_VLDTMF_LIB=""
46762 ZAPTEL_VLDTMF_INCLUDE=""
46763 else
46764 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46765 ZAPTEL_VLDTMF_LIB=""
46767 PBX_ZAPTEL_VLDTMF=1
46768 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46770 cat >>confdefs.h <<_ACEOF
46771 #define HAVE_ZAPTEL_VLDTMF 1
46772 _ACEOF
46775 cat >>confdefs.h <<_ACEOF
46776 #define HAVE_ZAPTEL_VLDTMF_VERSION 90
46777 _ACEOF
46784 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then
46785 pbxlibdir=""
46786 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
46787 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
46788 if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then
46789 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib"
46790 else
46791 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}"
46794 pbxfuncname=""
46795 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46796 AST_ZAPTEL_VLDTMF_FOUND=yes
46797 else
46798 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
46799 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
46800 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
46801 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46802 echo $ECHO_N "(cached) $ECHO_C" >&6
46803 else
46804 ac_check_lib_save_LIBS=$LIBS
46805 LIBS="-lzaptel ${pbxlibdir} $LIBS"
46806 cat >conftest.$ac_ext <<_ACEOF
46807 /* confdefs.h. */
46808 _ACEOF
46809 cat confdefs.h >>conftest.$ac_ext
46810 cat >>conftest.$ac_ext <<_ACEOF
46811 /* end confdefs.h. */
46813 /* Override any GCC internal prototype to avoid an error.
46814 Use char because int might match the return type of a GCC
46815 builtin and then its argument prototype would still apply. */
46816 #ifdef __cplusplus
46817 extern "C"
46818 #endif
46819 char ${pbxfuncname} ();
46821 main ()
46823 return ${pbxfuncname} ();
46825 return 0;
46827 _ACEOF
46828 rm -f conftest.$ac_objext conftest$ac_exeext
46829 if { (ac_try="$ac_link"
46830 case "(($ac_try" in
46831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46832 *) ac_try_echo=$ac_try;;
46833 esac
46834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46835 (eval "$ac_link") 2>conftest.er1
46836 ac_status=$?
46837 grep -v '^ *+' conftest.er1 >conftest.err
46838 rm -f conftest.er1
46839 cat conftest.err >&5
46840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46841 (exit $ac_status); } && {
46842 test -z "$ac_c_werror_flag" ||
46843 test ! -s conftest.err
46844 } && test -s conftest$ac_exeext &&
46845 $as_test_x conftest$ac_exeext; then
46846 eval "$as_ac_Lib=yes"
46847 else
46848 echo "$as_me: failed program was:" >&5
46849 sed 's/^/| /' conftest.$ac_ext >&5
46851 eval "$as_ac_Lib=no"
46854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46855 conftest$ac_exeext conftest.$ac_ext
46856 LIBS=$ac_check_lib_save_LIBS
46858 ac_res=`eval echo '${'$as_ac_Lib'}'`
46859 { echo "$as_me:$LINENO: result: $ac_res" >&5
46860 echo "${ECHO_T}$ac_res" >&6; }
46861 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46862 AST_ZAPTEL_VLDTMF_FOUND=yes
46863 else
46864 AST_ZAPTEL_VLDTMF_FOUND=no
46869 # now check for the header.
46870 if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then
46871 ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel "
46872 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
46873 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
46874 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
46876 ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} "
46877 if test "xzaptel.h" = "x" ; then # no header, assume found
46878 ZAPTEL_VLDTMF_HEADER_FOUND="1"
46879 else # check for the header
46880 saved_cppflags="${CPPFLAGS}"
46881 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} "
46882 if test "${ac_cv_header_zaptel_h+set}" = set; then
46883 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
46884 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
46885 if test "${ac_cv_header_zaptel_h+set}" = set; then
46886 echo $ECHO_N "(cached) $ECHO_C" >&6
46888 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
46889 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
46890 else
46891 # Is the header compilable?
46892 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
46893 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
46894 cat >conftest.$ac_ext <<_ACEOF
46895 /* confdefs.h. */
46896 _ACEOF
46897 cat confdefs.h >>conftest.$ac_ext
46898 cat >>conftest.$ac_ext <<_ACEOF
46899 /* end confdefs.h. */
46900 $ac_includes_default
46901 #include <zaptel.h>
46902 _ACEOF
46903 rm -f conftest.$ac_objext
46904 if { (ac_try="$ac_compile"
46905 case "(($ac_try" in
46906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46907 *) ac_try_echo=$ac_try;;
46908 esac
46909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46910 (eval "$ac_compile") 2>conftest.er1
46911 ac_status=$?
46912 grep -v '^ *+' conftest.er1 >conftest.err
46913 rm -f conftest.er1
46914 cat conftest.err >&5
46915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46916 (exit $ac_status); } && {
46917 test -z "$ac_c_werror_flag" ||
46918 test ! -s conftest.err
46919 } && test -s conftest.$ac_objext; then
46920 ac_header_compiler=yes
46921 else
46922 echo "$as_me: failed program was:" >&5
46923 sed 's/^/| /' conftest.$ac_ext >&5
46925 ac_header_compiler=no
46928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46930 echo "${ECHO_T}$ac_header_compiler" >&6; }
46932 # Is the header present?
46933 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
46934 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
46935 cat >conftest.$ac_ext <<_ACEOF
46936 /* confdefs.h. */
46937 _ACEOF
46938 cat confdefs.h >>conftest.$ac_ext
46939 cat >>conftest.$ac_ext <<_ACEOF
46940 /* end confdefs.h. */
46941 #include <zaptel.h>
46942 _ACEOF
46943 if { (ac_try="$ac_cpp conftest.$ac_ext"
46944 case "(($ac_try" in
46945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46946 *) ac_try_echo=$ac_try;;
46947 esac
46948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46950 ac_status=$?
46951 grep -v '^ *+' conftest.er1 >conftest.err
46952 rm -f conftest.er1
46953 cat conftest.err >&5
46954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46955 (exit $ac_status); } >/dev/null && {
46956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46957 test ! -s conftest.err
46958 }; then
46959 ac_header_preproc=yes
46960 else
46961 echo "$as_me: failed program was:" >&5
46962 sed 's/^/| /' conftest.$ac_ext >&5
46964 ac_header_preproc=no
46967 rm -f conftest.err conftest.$ac_ext
46968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46969 echo "${ECHO_T}$ac_header_preproc" >&6; }
46971 # So? What about this header?
46972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46973 yes:no: )
46974 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
46975 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46976 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
46977 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
46978 ac_header_preproc=yes
46980 no:yes:* )
46981 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
46982 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
46983 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
46984 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
46985 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
46986 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
46987 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
46988 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
46989 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
46990 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
46991 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
46992 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
46993 ( cat <<\_ASBOX
46994 ## ------------------------------- ##
46995 ## Report this to www.asterisk.org ##
46996 ## ------------------------------- ##
46997 _ASBOX
46998 ) | sed "s/^/$as_me: WARNING: /" >&2
47000 esac
47001 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47002 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47003 if test "${ac_cv_header_zaptel_h+set}" = set; then
47004 echo $ECHO_N "(cached) $ECHO_C" >&6
47005 else
47006 ac_cv_header_zaptel_h=$ac_header_preproc
47008 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47009 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47012 if test $ac_cv_header_zaptel_h = yes; then
47013 ZAPTEL_VLDTMF_HEADER_FOUND=1
47014 else
47015 ZAPTEL_VLDTMF_HEADER_FOUND=0
47019 CPPFLAGS="${saved_cppflags}"
47021 if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then
47022 ZAPTEL_VLDTMF_LIB=""
47023 ZAPTEL_VLDTMF_INCLUDE=""
47024 else
47025 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47026 ZAPTEL_VLDTMF_LIB=""
47028 PBX_ZAPTEL_VLDTMF=1
47029 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47031 cat >>confdefs.h <<_ACEOF
47032 #define HAVE_ZAPTEL_VLDTMF 1
47033 _ACEOF
47036 cat >>confdefs.h <<_ACEOF
47037 #define HAVE_ZAPTEL_VLDTMF_VERSION 80
47038 _ACEOF
47045 # other case, old tonezone (0.80)
47047 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
47048 pbxlibdir=""
47049 # if --with-TONEZONE=DIR has been specified, use it.
47050 if test "x${TONEZONE_DIR}" != "x"; then
47051 if test -d ${TONEZONE_DIR}/lib; then
47052 pbxlibdir="-L${TONEZONE_DIR}/lib"
47053 else
47054 pbxlibdir="-L${TONEZONE_DIR}"
47057 pbxfuncname="tone_zone_find"
47058 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47059 AST_TONEZONE_FOUND=yes
47060 else
47061 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
47062 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
47063 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
47064 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47065 echo $ECHO_N "(cached) $ECHO_C" >&6
47066 else
47067 ac_check_lib_save_LIBS=$LIBS
47068 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
47069 cat >conftest.$ac_ext <<_ACEOF
47070 /* confdefs.h. */
47071 _ACEOF
47072 cat confdefs.h >>conftest.$ac_ext
47073 cat >>conftest.$ac_ext <<_ACEOF
47074 /* end confdefs.h. */
47076 /* Override any GCC internal prototype to avoid an error.
47077 Use char because int might match the return type of a GCC
47078 builtin and then its argument prototype would still apply. */
47079 #ifdef __cplusplus
47080 extern "C"
47081 #endif
47082 char ${pbxfuncname} ();
47084 main ()
47086 return ${pbxfuncname} ();
47088 return 0;
47090 _ACEOF
47091 rm -f conftest.$ac_objext conftest$ac_exeext
47092 if { (ac_try="$ac_link"
47093 case "(($ac_try" in
47094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47095 *) ac_try_echo=$ac_try;;
47096 esac
47097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47098 (eval "$ac_link") 2>conftest.er1
47099 ac_status=$?
47100 grep -v '^ *+' conftest.er1 >conftest.err
47101 rm -f conftest.er1
47102 cat conftest.err >&5
47103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47104 (exit $ac_status); } && {
47105 test -z "$ac_c_werror_flag" ||
47106 test ! -s conftest.err
47107 } && test -s conftest$ac_exeext &&
47108 $as_test_x conftest$ac_exeext; then
47109 eval "$as_ac_Lib=yes"
47110 else
47111 echo "$as_me: failed program was:" >&5
47112 sed 's/^/| /' conftest.$ac_ext >&5
47114 eval "$as_ac_Lib=no"
47117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47118 conftest$ac_exeext conftest.$ac_ext
47119 LIBS=$ac_check_lib_save_LIBS
47121 ac_res=`eval echo '${'$as_ac_Lib'}'`
47122 { echo "$as_me:$LINENO: result: $ac_res" >&5
47123 echo "${ECHO_T}$ac_res" >&6; }
47124 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47125 AST_TONEZONE_FOUND=yes
47126 else
47127 AST_TONEZONE_FOUND=no
47132 # now check for the header.
47133 if test "${AST_TONEZONE_FOUND}" = "yes"; then
47134 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
47135 # if --with-TONEZONE=DIR has been specified, use it.
47136 if test "x${TONEZONE_DIR}" != "x"; then
47137 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
47139 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
47140 if test "xzaptel.h" = "x" ; then # no header, assume found
47141 TONEZONE_HEADER_FOUND="1"
47142 else # check for the header
47143 saved_cppflags="${CPPFLAGS}"
47144 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
47145 if test "${ac_cv_header_zaptel_h+set}" = set; then
47146 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47147 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47148 if test "${ac_cv_header_zaptel_h+set}" = set; then
47149 echo $ECHO_N "(cached) $ECHO_C" >&6
47151 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47152 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47153 else
47154 # Is the header compilable?
47155 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
47156 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
47157 cat >conftest.$ac_ext <<_ACEOF
47158 /* confdefs.h. */
47159 _ACEOF
47160 cat confdefs.h >>conftest.$ac_ext
47161 cat >>conftest.$ac_ext <<_ACEOF
47162 /* end confdefs.h. */
47163 $ac_includes_default
47164 #include <zaptel.h>
47165 _ACEOF
47166 rm -f conftest.$ac_objext
47167 if { (ac_try="$ac_compile"
47168 case "(($ac_try" in
47169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47170 *) ac_try_echo=$ac_try;;
47171 esac
47172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47173 (eval "$ac_compile") 2>conftest.er1
47174 ac_status=$?
47175 grep -v '^ *+' conftest.er1 >conftest.err
47176 rm -f conftest.er1
47177 cat conftest.err >&5
47178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47179 (exit $ac_status); } && {
47180 test -z "$ac_c_werror_flag" ||
47181 test ! -s conftest.err
47182 } && test -s conftest.$ac_objext; then
47183 ac_header_compiler=yes
47184 else
47185 echo "$as_me: failed program was:" >&5
47186 sed 's/^/| /' conftest.$ac_ext >&5
47188 ac_header_compiler=no
47191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47193 echo "${ECHO_T}$ac_header_compiler" >&6; }
47195 # Is the header present?
47196 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
47197 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
47198 cat >conftest.$ac_ext <<_ACEOF
47199 /* confdefs.h. */
47200 _ACEOF
47201 cat confdefs.h >>conftest.$ac_ext
47202 cat >>conftest.$ac_ext <<_ACEOF
47203 /* end confdefs.h. */
47204 #include <zaptel.h>
47205 _ACEOF
47206 if { (ac_try="$ac_cpp conftest.$ac_ext"
47207 case "(($ac_try" in
47208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47209 *) ac_try_echo=$ac_try;;
47210 esac
47211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47213 ac_status=$?
47214 grep -v '^ *+' conftest.er1 >conftest.err
47215 rm -f conftest.er1
47216 cat conftest.err >&5
47217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47218 (exit $ac_status); } >/dev/null && {
47219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47220 test ! -s conftest.err
47221 }; then
47222 ac_header_preproc=yes
47223 else
47224 echo "$as_me: failed program was:" >&5
47225 sed 's/^/| /' conftest.$ac_ext >&5
47227 ac_header_preproc=no
47230 rm -f conftest.err conftest.$ac_ext
47231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47232 echo "${ECHO_T}$ac_header_preproc" >&6; }
47234 # So? What about this header?
47235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47236 yes:no: )
47237 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
47238 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47239 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
47240 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
47241 ac_header_preproc=yes
47243 no:yes:* )
47244 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
47245 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
47246 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
47247 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
47248 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
47249 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
47250 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
47251 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
47252 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
47253 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
47254 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
47255 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
47256 ( cat <<\_ASBOX
47257 ## ------------------------------- ##
47258 ## Report this to www.asterisk.org ##
47259 ## ------------------------------- ##
47260 _ASBOX
47261 ) | sed "s/^/$as_me: WARNING: /" >&2
47263 esac
47264 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47265 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47266 if test "${ac_cv_header_zaptel_h+set}" = set; then
47267 echo $ECHO_N "(cached) $ECHO_C" >&6
47268 else
47269 ac_cv_header_zaptel_h=$ac_header_preproc
47271 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47272 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47275 if test $ac_cv_header_zaptel_h = yes; then
47276 TONEZONE_HEADER_FOUND=1
47277 else
47278 TONEZONE_HEADER_FOUND=0
47282 CPPFLAGS="${saved_cppflags}"
47284 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
47285 TONEZONE_LIB=""
47286 TONEZONE_INCLUDE=""
47287 else
47288 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47289 TONEZONE_LIB=""
47291 PBX_TONEZONE=1
47292 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47294 cat >>confdefs.h <<_ACEOF
47295 #define HAVE_TONEZONE 1
47296 _ACEOF
47299 cat >>confdefs.h <<_ACEOF
47300 #define HAVE_TONEZONE_VERSION 80
47301 _ACEOF
47308 esac
47310 EDITLINE_LIB=""
47311 if test "x$TERMCAP_LIB" != "x" ; then
47312 EDITLINE_LIB="$TERMCAP_LIB"
47313 elif test "x$TINFO_LIB" != "x" ; then
47314 EDITLINE_LIB="$TINFO_LIB"
47315 elif test "x$CURSES_LIB" != "x" ; then
47316 EDITLINE_LIB="$CURSES_LIB"
47317 elif test "x$NCURSES_LIB" != "x" ; then
47318 EDITLINE_LIB="$NCURSES_LIB"
47319 else
47320 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
47321 echo "$as_me: error: *** termcap support not found" >&2;}
47322 { (exit 1); exit 1; }; }
47326 if test "${ac_cv_header_h323_h+set}" = set; then
47327 { echo "$as_me:$LINENO: checking for h323.h" >&5
47328 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47329 if test "${ac_cv_header_h323_h+set}" = set; then
47330 echo $ECHO_N "(cached) $ECHO_C" >&6
47332 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47333 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47334 else
47335 # Is the header compilable?
47336 { echo "$as_me:$LINENO: checking h323.h usability" >&5
47337 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
47338 cat >conftest.$ac_ext <<_ACEOF
47339 /* confdefs.h. */
47340 _ACEOF
47341 cat confdefs.h >>conftest.$ac_ext
47342 cat >>conftest.$ac_ext <<_ACEOF
47343 /* end confdefs.h. */
47344 $ac_includes_default
47345 #include <h323.h>
47346 _ACEOF
47347 rm -f conftest.$ac_objext
47348 if { (ac_try="$ac_compile"
47349 case "(($ac_try" in
47350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47351 *) ac_try_echo=$ac_try;;
47352 esac
47353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47354 (eval "$ac_compile") 2>conftest.er1
47355 ac_status=$?
47356 grep -v '^ *+' conftest.er1 >conftest.err
47357 rm -f conftest.er1
47358 cat conftest.err >&5
47359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47360 (exit $ac_status); } && {
47361 test -z "$ac_c_werror_flag" ||
47362 test ! -s conftest.err
47363 } && test -s conftest.$ac_objext; then
47364 ac_header_compiler=yes
47365 else
47366 echo "$as_me: failed program was:" >&5
47367 sed 's/^/| /' conftest.$ac_ext >&5
47369 ac_header_compiler=no
47372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47374 echo "${ECHO_T}$ac_header_compiler" >&6; }
47376 # Is the header present?
47377 { echo "$as_me:$LINENO: checking h323.h presence" >&5
47378 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
47379 cat >conftest.$ac_ext <<_ACEOF
47380 /* confdefs.h. */
47381 _ACEOF
47382 cat confdefs.h >>conftest.$ac_ext
47383 cat >>conftest.$ac_ext <<_ACEOF
47384 /* end confdefs.h. */
47385 #include <h323.h>
47386 _ACEOF
47387 if { (ac_try="$ac_cpp conftest.$ac_ext"
47388 case "(($ac_try" in
47389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47390 *) ac_try_echo=$ac_try;;
47391 esac
47392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47394 ac_status=$?
47395 grep -v '^ *+' conftest.er1 >conftest.err
47396 rm -f conftest.er1
47397 cat conftest.err >&5
47398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47399 (exit $ac_status); } >/dev/null && {
47400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47401 test ! -s conftest.err
47402 }; then
47403 ac_header_preproc=yes
47404 else
47405 echo "$as_me: failed program was:" >&5
47406 sed 's/^/| /' conftest.$ac_ext >&5
47408 ac_header_preproc=no
47411 rm -f conftest.err conftest.$ac_ext
47412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47413 echo "${ECHO_T}$ac_header_preproc" >&6; }
47415 # So? What about this header?
47416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47417 yes:no: )
47418 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
47419 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47420 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
47421 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
47422 ac_header_preproc=yes
47424 no:yes:* )
47425 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
47426 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
47427 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
47428 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
47429 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
47430 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
47431 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
47432 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
47433 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
47434 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
47435 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
47436 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
47437 ( cat <<\_ASBOX
47438 ## ------------------------------- ##
47439 ## Report this to www.asterisk.org ##
47440 ## ------------------------------- ##
47441 _ASBOX
47442 ) | sed "s/^/$as_me: WARNING: /" >&2
47444 esac
47445 { echo "$as_me:$LINENO: checking for h323.h" >&5
47446 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47447 if test "${ac_cv_header_h323_h+set}" = set; then
47448 echo $ECHO_N "(cached) $ECHO_C" >&6
47449 else
47450 ac_cv_header_h323_h=$ac_header_preproc
47452 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47453 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47456 if test $ac_cv_header_h323_h = yes; then
47457 PBX_H323=1
47458 else
47459 PBX_H323=0
47465 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47466 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47467 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47468 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47469 echo $ECHO_N "(cached) $ECHO_C" >&6
47471 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47472 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47473 else
47474 # Is the header compilable?
47475 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
47476 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
47477 cat >conftest.$ac_ext <<_ACEOF
47478 /* confdefs.h. */
47479 _ACEOF
47480 cat confdefs.h >>conftest.$ac_ext
47481 cat >>conftest.$ac_ext <<_ACEOF
47482 /* end confdefs.h. */
47483 $ac_includes_default
47484 #include <linux/compiler.h>
47485 _ACEOF
47486 rm -f conftest.$ac_objext
47487 if { (ac_try="$ac_compile"
47488 case "(($ac_try" in
47489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47490 *) ac_try_echo=$ac_try;;
47491 esac
47492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47493 (eval "$ac_compile") 2>conftest.er1
47494 ac_status=$?
47495 grep -v '^ *+' conftest.er1 >conftest.err
47496 rm -f conftest.er1
47497 cat conftest.err >&5
47498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47499 (exit $ac_status); } && {
47500 test -z "$ac_c_werror_flag" ||
47501 test ! -s conftest.err
47502 } && test -s conftest.$ac_objext; then
47503 ac_header_compiler=yes
47504 else
47505 echo "$as_me: failed program was:" >&5
47506 sed 's/^/| /' conftest.$ac_ext >&5
47508 ac_header_compiler=no
47511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47513 echo "${ECHO_T}$ac_header_compiler" >&6; }
47515 # Is the header present?
47516 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
47517 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
47518 cat >conftest.$ac_ext <<_ACEOF
47519 /* confdefs.h. */
47520 _ACEOF
47521 cat confdefs.h >>conftest.$ac_ext
47522 cat >>conftest.$ac_ext <<_ACEOF
47523 /* end confdefs.h. */
47524 #include <linux/compiler.h>
47525 _ACEOF
47526 if { (ac_try="$ac_cpp conftest.$ac_ext"
47527 case "(($ac_try" in
47528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47529 *) ac_try_echo=$ac_try;;
47530 esac
47531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47533 ac_status=$?
47534 grep -v '^ *+' conftest.er1 >conftest.err
47535 rm -f conftest.er1
47536 cat conftest.err >&5
47537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47538 (exit $ac_status); } >/dev/null && {
47539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47540 test ! -s conftest.err
47541 }; then
47542 ac_header_preproc=yes
47543 else
47544 echo "$as_me: failed program was:" >&5
47545 sed 's/^/| /' conftest.$ac_ext >&5
47547 ac_header_preproc=no
47550 rm -f conftest.err conftest.$ac_ext
47551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47552 echo "${ECHO_T}$ac_header_preproc" >&6; }
47554 # So? What about this header?
47555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47556 yes:no: )
47557 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
47558 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47559 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
47560 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
47561 ac_header_preproc=yes
47563 no:yes:* )
47564 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
47565 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
47566 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
47567 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
47568 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
47569 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
47570 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
47571 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
47572 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
47573 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
47574 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
47575 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
47576 ( cat <<\_ASBOX
47577 ## ------------------------------- ##
47578 ## Report this to www.asterisk.org ##
47579 ## ------------------------------- ##
47580 _ASBOX
47581 ) | sed "s/^/$as_me: WARNING: /" >&2
47583 esac
47584 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47585 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47586 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47587 echo $ECHO_N "(cached) $ECHO_C" >&6
47588 else
47589 ac_cv_header_linux_compiler_h=$ac_header_preproc
47591 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47592 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47595 if test $ac_cv_header_linux_compiler_h = yes; then
47597 cat >>confdefs.h <<_ACEOF
47598 #define HAVE_LINUX_COMPILER_H 1
47599 _ACEOF
47605 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
47606 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
47607 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
47608 echo $ECHO_N "(cached) $ECHO_C" >&6
47609 else
47610 cat >conftest.$ac_ext <<_ACEOF
47611 /* confdefs.h. */
47612 _ACEOF
47613 cat confdefs.h >>conftest.$ac_ext
47614 cat >>conftest.$ac_ext <<_ACEOF
47615 /* end confdefs.h. */
47617 #include <linux/version.h>
47618 #ifdef HAVE_LINUX_COMPILER_H
47619 #include <linux/compiler.h>
47620 #endif
47623 #include <linux/ixjuser.h>
47624 _ACEOF
47625 rm -f conftest.$ac_objext
47626 if { (ac_try="$ac_compile"
47627 case "(($ac_try" in
47628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47629 *) ac_try_echo=$ac_try;;
47630 esac
47631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47632 (eval "$ac_compile") 2>conftest.er1
47633 ac_status=$?
47634 grep -v '^ *+' conftest.er1 >conftest.err
47635 rm -f conftest.er1
47636 cat conftest.err >&5
47637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47638 (exit $ac_status); } && {
47639 test -z "$ac_c_werror_flag" ||
47640 test ! -s conftest.err
47641 } && test -s conftest.$ac_objext; then
47642 ac_cv_header_linux_ixjuser_h=yes
47643 else
47644 echo "$as_me: failed program was:" >&5
47645 sed 's/^/| /' conftest.$ac_ext >&5
47647 ac_cv_header_linux_ixjuser_h=no
47650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47652 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
47653 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
47654 if test $ac_cv_header_linux_ixjuser_h = yes; then
47655 PBX_IXJUSER=1
47656 else
47657 PBX_IXJUSER=0
47664 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
47665 PBX_SDL=0
47666 if test -n "$ac_tool_prefix"; then
47667 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
47668 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
47669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47671 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
47672 echo $ECHO_N "(cached) $ECHO_C" >&6
47673 else
47674 if test -n "$CONFIG_SDL"; then
47675 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
47676 else
47677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47678 for as_dir in $PATH
47680 IFS=$as_save_IFS
47681 test -z "$as_dir" && as_dir=.
47682 for ac_exec_ext in '' $ac_executable_extensions; do
47683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47684 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
47685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47686 break 2
47688 done
47689 done
47690 IFS=$as_save_IFS
47694 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
47695 if test -n "$CONFIG_SDL"; then
47696 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
47697 echo "${ECHO_T}$CONFIG_SDL" >&6; }
47698 else
47699 { echo "$as_me:$LINENO: result: no" >&5
47700 echo "${ECHO_T}no" >&6; }
47705 if test -z "$ac_cv_prog_CONFIG_SDL"; then
47706 ac_ct_CONFIG_SDL=$CONFIG_SDL
47707 # Extract the first word of "sdl-config", so it can be a program name with args.
47708 set dummy sdl-config; ac_word=$2
47709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47711 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
47712 echo $ECHO_N "(cached) $ECHO_C" >&6
47713 else
47714 if test -n "$ac_ct_CONFIG_SDL"; then
47715 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
47716 else
47717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47718 for as_dir in $PATH
47720 IFS=$as_save_IFS
47721 test -z "$as_dir" && as_dir=.
47722 for ac_exec_ext in '' $ac_executable_extensions; do
47723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47724 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
47725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47726 break 2
47728 done
47729 done
47730 IFS=$as_save_IFS
47734 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
47735 if test -n "$ac_ct_CONFIG_SDL"; then
47736 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
47737 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
47738 else
47739 { echo "$as_me:$LINENO: result: no" >&5
47740 echo "${ECHO_T}no" >&6; }
47743 if test "x$ac_ct_CONFIG_SDL" = x; then
47744 CONFIG_SDL="No"
47745 else
47746 case $cross_compiling:$ac_tool_warned in
47747 yes:)
47748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47749 whose name does not start with the host triplet. If you think this
47750 configuration is useful to you, please write to autoconf@gnu.org." >&5
47751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47752 whose name does not start with the host triplet. If you think this
47753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47754 ac_tool_warned=yes ;;
47755 esac
47756 CONFIG_SDL=$ac_ct_CONFIG_SDL
47758 else
47759 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
47762 if test ! "x${CONFIG_SDL}" = xNo; then
47763 if test x"" = x ; then A=--cflags ; else A="" ; fi
47764 SDL_INCLUDE=$(${CONFIG_SDL} $A)
47765 if test x"" = x ; then A=--libs ; else A="" ; fi
47766 SDL_LIB=$(${CONFIG_SDL} $A)
47767 if test x"" != x ; then
47768 saved_cppflags="${CPPFLAGS}"
47769 if test "x${SDL_DIR}" != "x"; then
47770 SDL_INCLUDE="-I${SDL_DIR}/include"
47772 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
47774 saved_ldflags="${LDFLAGS}"
47775 LDFLAGS="${SDL_LIB}"
47777 cat >conftest.$ac_ext <<_ACEOF
47778 /* confdefs.h. */
47779 _ACEOF
47780 cat confdefs.h >>conftest.$ac_ext
47781 cat >>conftest.$ac_ext <<_ACEOF
47782 /* end confdefs.h. */
47785 main ()
47790 return 0;
47792 _ACEOF
47793 rm -f conftest.$ac_objext conftest$ac_exeext
47794 if { (ac_try="$ac_link"
47795 case "(($ac_try" in
47796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47797 *) ac_try_echo=$ac_try;;
47798 esac
47799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47800 (eval "$ac_link") 2>conftest.er1
47801 ac_status=$?
47802 grep -v '^ *+' conftest.er1 >conftest.err
47803 rm -f conftest.er1
47804 cat conftest.err >&5
47805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47806 (exit $ac_status); } && {
47807 test -z "$ac_c_werror_flag" ||
47808 test ! -s conftest.err
47809 } && test -s conftest$ac_exeext &&
47810 $as_test_x conftest$ac_exeext; then
47811 PBX_SDL=1
47813 cat >>confdefs.h <<\_ACEOF
47814 #define HAVE_SDL 1
47815 _ACEOF
47818 else
47819 echo "$as_me: failed program was:" >&5
47820 sed 's/^/| /' conftest.$ac_ext >&5
47826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47827 conftest$ac_exeext conftest.$ac_ext
47828 CPPFLAGS="${saved_cppflags}"
47829 LDFLAGS="${saved_ldflags}"
47830 else
47831 PBX_SDL=1
47833 cat >>confdefs.h <<\_ACEOF
47834 #define HAVE_SDL 1
47835 _ACEOF
47842 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
47843 pbxlibdir=""
47844 # if --with-SDL_IMAGE=DIR has been specified, use it.
47845 if test "x${SDL_IMAGE_DIR}" != "x"; then
47846 if test -d ${SDL_IMAGE_DIR}/lib; then
47847 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
47848 else
47849 pbxlibdir="-L${SDL_IMAGE_DIR}"
47852 pbxfuncname="IMG_Load"
47853 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47854 AST_SDL_IMAGE_FOUND=yes
47855 else
47856 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
47857 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
47858 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
47859 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47860 echo $ECHO_N "(cached) $ECHO_C" >&6
47861 else
47862 ac_check_lib_save_LIBS=$LIBS
47863 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
47864 cat >conftest.$ac_ext <<_ACEOF
47865 /* confdefs.h. */
47866 _ACEOF
47867 cat confdefs.h >>conftest.$ac_ext
47868 cat >>conftest.$ac_ext <<_ACEOF
47869 /* end confdefs.h. */
47871 /* Override any GCC internal prototype to avoid an error.
47872 Use char because int might match the return type of a GCC
47873 builtin and then its argument prototype would still apply. */
47874 #ifdef __cplusplus
47875 extern "C"
47876 #endif
47877 char ${pbxfuncname} ();
47879 main ()
47881 return ${pbxfuncname} ();
47883 return 0;
47885 _ACEOF
47886 rm -f conftest.$ac_objext conftest$ac_exeext
47887 if { (ac_try="$ac_link"
47888 case "(($ac_try" in
47889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47890 *) ac_try_echo=$ac_try;;
47891 esac
47892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47893 (eval "$ac_link") 2>conftest.er1
47894 ac_status=$?
47895 grep -v '^ *+' conftest.er1 >conftest.err
47896 rm -f conftest.er1
47897 cat conftest.err >&5
47898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47899 (exit $ac_status); } && {
47900 test -z "$ac_c_werror_flag" ||
47901 test ! -s conftest.err
47902 } && test -s conftest$ac_exeext &&
47903 $as_test_x conftest$ac_exeext; then
47904 eval "$as_ac_Lib=yes"
47905 else
47906 echo "$as_me: failed program was:" >&5
47907 sed 's/^/| /' conftest.$ac_ext >&5
47909 eval "$as_ac_Lib=no"
47912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47913 conftest$ac_exeext conftest.$ac_ext
47914 LIBS=$ac_check_lib_save_LIBS
47916 ac_res=`eval echo '${'$as_ac_Lib'}'`
47917 { echo "$as_me:$LINENO: result: $ac_res" >&5
47918 echo "${ECHO_T}$ac_res" >&6; }
47919 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47920 AST_SDL_IMAGE_FOUND=yes
47921 else
47922 AST_SDL_IMAGE_FOUND=no
47927 # now check for the header.
47928 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
47929 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
47930 # if --with-SDL_IMAGE=DIR has been specified, use it.
47931 if test "x${SDL_IMAGE_DIR}" != "x"; then
47932 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
47934 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
47935 if test "xSDL_image.h" = "x" ; then # no header, assume found
47936 SDL_IMAGE_HEADER_FOUND="1"
47937 else # check for the header
47938 saved_cppflags="${CPPFLAGS}"
47939 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
47940 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47941 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
47942 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
47943 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47944 echo $ECHO_N "(cached) $ECHO_C" >&6
47946 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
47947 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
47948 else
47949 # Is the header compilable?
47950 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
47951 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
47952 cat >conftest.$ac_ext <<_ACEOF
47953 /* confdefs.h. */
47954 _ACEOF
47955 cat confdefs.h >>conftest.$ac_ext
47956 cat >>conftest.$ac_ext <<_ACEOF
47957 /* end confdefs.h. */
47958 $ac_includes_default
47959 #include <SDL_image.h>
47960 _ACEOF
47961 rm -f conftest.$ac_objext
47962 if { (ac_try="$ac_compile"
47963 case "(($ac_try" in
47964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47965 *) ac_try_echo=$ac_try;;
47966 esac
47967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47968 (eval "$ac_compile") 2>conftest.er1
47969 ac_status=$?
47970 grep -v '^ *+' conftest.er1 >conftest.err
47971 rm -f conftest.er1
47972 cat conftest.err >&5
47973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47974 (exit $ac_status); } && {
47975 test -z "$ac_c_werror_flag" ||
47976 test ! -s conftest.err
47977 } && test -s conftest.$ac_objext; then
47978 ac_header_compiler=yes
47979 else
47980 echo "$as_me: failed program was:" >&5
47981 sed 's/^/| /' conftest.$ac_ext >&5
47983 ac_header_compiler=no
47986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47988 echo "${ECHO_T}$ac_header_compiler" >&6; }
47990 # Is the header present?
47991 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
47992 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
47993 cat >conftest.$ac_ext <<_ACEOF
47994 /* confdefs.h. */
47995 _ACEOF
47996 cat confdefs.h >>conftest.$ac_ext
47997 cat >>conftest.$ac_ext <<_ACEOF
47998 /* end confdefs.h. */
47999 #include <SDL_image.h>
48000 _ACEOF
48001 if { (ac_try="$ac_cpp conftest.$ac_ext"
48002 case "(($ac_try" in
48003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48004 *) ac_try_echo=$ac_try;;
48005 esac
48006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48008 ac_status=$?
48009 grep -v '^ *+' conftest.er1 >conftest.err
48010 rm -f conftest.er1
48011 cat conftest.err >&5
48012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48013 (exit $ac_status); } >/dev/null && {
48014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48015 test ! -s conftest.err
48016 }; then
48017 ac_header_preproc=yes
48018 else
48019 echo "$as_me: failed program was:" >&5
48020 sed 's/^/| /' conftest.$ac_ext >&5
48022 ac_header_preproc=no
48025 rm -f conftest.err conftest.$ac_ext
48026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48027 echo "${ECHO_T}$ac_header_preproc" >&6; }
48029 # So? What about this header?
48030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48031 yes:no: )
48032 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
48033 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48034 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
48035 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
48036 ac_header_preproc=yes
48038 no:yes:* )
48039 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
48040 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
48041 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
48042 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
48043 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
48044 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
48045 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
48046 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
48047 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
48048 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
48049 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
48050 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
48051 ( cat <<\_ASBOX
48052 ## ------------------------------- ##
48053 ## Report this to www.asterisk.org ##
48054 ## ------------------------------- ##
48055 _ASBOX
48056 ) | sed "s/^/$as_me: WARNING: /" >&2
48058 esac
48059 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
48060 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
48061 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48062 echo $ECHO_N "(cached) $ECHO_C" >&6
48063 else
48064 ac_cv_header_SDL_image_h=$ac_header_preproc
48066 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
48067 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
48070 if test $ac_cv_header_SDL_image_h = yes; then
48071 SDL_IMAGE_HEADER_FOUND=1
48072 else
48073 SDL_IMAGE_HEADER_FOUND=0
48077 CPPFLAGS="${saved_cppflags}"
48079 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
48080 SDL_IMAGE_LIB=""
48081 SDL_IMAGE_INCLUDE=""
48082 else
48083 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48084 SDL_IMAGE_LIB=""
48086 PBX_SDL_IMAGE=1
48087 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48089 cat >>confdefs.h <<_ACEOF
48090 #define HAVE_SDL_IMAGE 1
48091 _ACEOF
48094 cat >>confdefs.h <<_ACEOF
48095 #define HAVE_SDL_IMAGE_VERSION
48096 _ACEOF
48103 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
48104 pbxlibdir=""
48105 # if --with-FFMPEG=DIR has been specified, use it.
48106 if test "x${FFMPEG_DIR}" != "x"; then
48107 if test -d ${FFMPEG_DIR}/lib; then
48108 pbxlibdir="-L${FFMPEG_DIR}/lib"
48109 else
48110 pbxlibdir="-L${FFMPEG_DIR}"
48113 pbxfuncname="sws_getContext"
48114 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48115 AST_FFMPEG_FOUND=yes
48116 else
48117 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
48118 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
48119 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
48120 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48121 echo $ECHO_N "(cached) $ECHO_C" >&6
48122 else
48123 ac_check_lib_save_LIBS=$LIBS
48124 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
48125 cat >conftest.$ac_ext <<_ACEOF
48126 /* confdefs.h. */
48127 _ACEOF
48128 cat confdefs.h >>conftest.$ac_ext
48129 cat >>conftest.$ac_ext <<_ACEOF
48130 /* end confdefs.h. */
48132 /* Override any GCC internal prototype to avoid an error.
48133 Use char because int might match the return type of a GCC
48134 builtin and then its argument prototype would still apply. */
48135 #ifdef __cplusplus
48136 extern "C"
48137 #endif
48138 char ${pbxfuncname} ();
48140 main ()
48142 return ${pbxfuncname} ();
48144 return 0;
48146 _ACEOF
48147 rm -f conftest.$ac_objext conftest$ac_exeext
48148 if { (ac_try="$ac_link"
48149 case "(($ac_try" in
48150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48151 *) ac_try_echo=$ac_try;;
48152 esac
48153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48154 (eval "$ac_link") 2>conftest.er1
48155 ac_status=$?
48156 grep -v '^ *+' conftest.er1 >conftest.err
48157 rm -f conftest.er1
48158 cat conftest.err >&5
48159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48160 (exit $ac_status); } && {
48161 test -z "$ac_c_werror_flag" ||
48162 test ! -s conftest.err
48163 } && test -s conftest$ac_exeext &&
48164 $as_test_x conftest$ac_exeext; then
48165 eval "$as_ac_Lib=yes"
48166 else
48167 echo "$as_me: failed program was:" >&5
48168 sed 's/^/| /' conftest.$ac_ext >&5
48170 eval "$as_ac_Lib=no"
48173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48174 conftest$ac_exeext conftest.$ac_ext
48175 LIBS=$ac_check_lib_save_LIBS
48177 ac_res=`eval echo '${'$as_ac_Lib'}'`
48178 { echo "$as_me:$LINENO: result: $ac_res" >&5
48179 echo "${ECHO_T}$ac_res" >&6; }
48180 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48181 AST_FFMPEG_FOUND=yes
48182 else
48183 AST_FFMPEG_FOUND=no
48188 # now check for the header.
48189 if test "${AST_FFMPEG_FOUND}" = "yes"; then
48190 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
48191 # if --with-FFMPEG=DIR has been specified, use it.
48192 if test "x${FFMPEG_DIR}" != "x"; then
48193 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
48195 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
48196 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
48197 FFMPEG_HEADER_FOUND="1"
48198 else # check for the header
48199 saved_cppflags="${CPPFLAGS}"
48200 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE} "
48201 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48202 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48203 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48204 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48205 echo $ECHO_N "(cached) $ECHO_C" >&6
48207 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48208 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48209 else
48210 # Is the header compilable?
48211 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
48212 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
48213 cat >conftest.$ac_ext <<_ACEOF
48214 /* confdefs.h. */
48215 _ACEOF
48216 cat confdefs.h >>conftest.$ac_ext
48217 cat >>conftest.$ac_ext <<_ACEOF
48218 /* end confdefs.h. */
48219 $ac_includes_default
48220 #include <ffmpeg/avcodec.h>
48221 _ACEOF
48222 rm -f conftest.$ac_objext
48223 if { (ac_try="$ac_compile"
48224 case "(($ac_try" in
48225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48226 *) ac_try_echo=$ac_try;;
48227 esac
48228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48229 (eval "$ac_compile") 2>conftest.er1
48230 ac_status=$?
48231 grep -v '^ *+' conftest.er1 >conftest.err
48232 rm -f conftest.er1
48233 cat conftest.err >&5
48234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48235 (exit $ac_status); } && {
48236 test -z "$ac_c_werror_flag" ||
48237 test ! -s conftest.err
48238 } && test -s conftest.$ac_objext; then
48239 ac_header_compiler=yes
48240 else
48241 echo "$as_me: failed program was:" >&5
48242 sed 's/^/| /' conftest.$ac_ext >&5
48244 ac_header_compiler=no
48247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48249 echo "${ECHO_T}$ac_header_compiler" >&6; }
48251 # Is the header present?
48252 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
48253 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
48254 cat >conftest.$ac_ext <<_ACEOF
48255 /* confdefs.h. */
48256 _ACEOF
48257 cat confdefs.h >>conftest.$ac_ext
48258 cat >>conftest.$ac_ext <<_ACEOF
48259 /* end confdefs.h. */
48260 #include <ffmpeg/avcodec.h>
48261 _ACEOF
48262 if { (ac_try="$ac_cpp conftest.$ac_ext"
48263 case "(($ac_try" in
48264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48265 *) ac_try_echo=$ac_try;;
48266 esac
48267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48269 ac_status=$?
48270 grep -v '^ *+' conftest.er1 >conftest.err
48271 rm -f conftest.er1
48272 cat conftest.err >&5
48273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48274 (exit $ac_status); } >/dev/null && {
48275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48276 test ! -s conftest.err
48277 }; then
48278 ac_header_preproc=yes
48279 else
48280 echo "$as_me: failed program was:" >&5
48281 sed 's/^/| /' conftest.$ac_ext >&5
48283 ac_header_preproc=no
48286 rm -f conftest.err conftest.$ac_ext
48287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48288 echo "${ECHO_T}$ac_header_preproc" >&6; }
48290 # So? What about this header?
48291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48292 yes:no: )
48293 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
48294 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48295 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
48296 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
48297 ac_header_preproc=yes
48299 no:yes:* )
48300 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
48301 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
48302 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
48303 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
48304 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
48305 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
48306 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
48307 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
48308 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
48309 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
48310 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
48311 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
48312 ( cat <<\_ASBOX
48313 ## ------------------------------- ##
48314 ## Report this to www.asterisk.org ##
48315 ## ------------------------------- ##
48316 _ASBOX
48317 ) | sed "s/^/$as_me: WARNING: /" >&2
48319 esac
48320 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48321 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48322 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48323 echo $ECHO_N "(cached) $ECHO_C" >&6
48324 else
48325 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
48327 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48328 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48331 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
48332 FFMPEG_HEADER_FOUND=1
48333 else
48334 FFMPEG_HEADER_FOUND=0
48338 CPPFLAGS="${saved_cppflags}"
48340 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
48341 FFMPEG_LIB=""
48342 FFMPEG_INCLUDE=""
48343 else
48344 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48345 FFMPEG_LIB=""
48347 PBX_FFMPEG=1
48348 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48350 cat >>confdefs.h <<_ACEOF
48351 #define HAVE_FFMPEG 1
48352 _ACEOF
48355 cat >>confdefs.h <<_ACEOF
48356 #define HAVE_FFMPEG_VERSION
48357 _ACEOF
48364 # possible places for video4linux version 1
48365 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48366 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48367 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48368 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48369 echo $ECHO_N "(cached) $ECHO_C" >&6
48371 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48372 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48373 else
48374 # Is the header compilable?
48375 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
48376 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
48377 cat >conftest.$ac_ext <<_ACEOF
48378 /* confdefs.h. */
48379 _ACEOF
48380 cat confdefs.h >>conftest.$ac_ext
48381 cat >>conftest.$ac_ext <<_ACEOF
48382 /* end confdefs.h. */
48383 $ac_includes_default
48384 #include <linux/videodev.h>
48385 _ACEOF
48386 rm -f conftest.$ac_objext
48387 if { (ac_try="$ac_compile"
48388 case "(($ac_try" in
48389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48390 *) ac_try_echo=$ac_try;;
48391 esac
48392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48393 (eval "$ac_compile") 2>conftest.er1
48394 ac_status=$?
48395 grep -v '^ *+' conftest.er1 >conftest.err
48396 rm -f conftest.er1
48397 cat conftest.err >&5
48398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48399 (exit $ac_status); } && {
48400 test -z "$ac_c_werror_flag" ||
48401 test ! -s conftest.err
48402 } && test -s conftest.$ac_objext; then
48403 ac_header_compiler=yes
48404 else
48405 echo "$as_me: failed program was:" >&5
48406 sed 's/^/| /' conftest.$ac_ext >&5
48408 ac_header_compiler=no
48411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48413 echo "${ECHO_T}$ac_header_compiler" >&6; }
48415 # Is the header present?
48416 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
48417 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
48418 cat >conftest.$ac_ext <<_ACEOF
48419 /* confdefs.h. */
48420 _ACEOF
48421 cat confdefs.h >>conftest.$ac_ext
48422 cat >>conftest.$ac_ext <<_ACEOF
48423 /* end confdefs.h. */
48424 #include <linux/videodev.h>
48425 _ACEOF
48426 if { (ac_try="$ac_cpp conftest.$ac_ext"
48427 case "(($ac_try" in
48428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48429 *) ac_try_echo=$ac_try;;
48430 esac
48431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48433 ac_status=$?
48434 grep -v '^ *+' conftest.er1 >conftest.err
48435 rm -f conftest.er1
48436 cat conftest.err >&5
48437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48438 (exit $ac_status); } >/dev/null && {
48439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48440 test ! -s conftest.err
48441 }; then
48442 ac_header_preproc=yes
48443 else
48444 echo "$as_me: failed program was:" >&5
48445 sed 's/^/| /' conftest.$ac_ext >&5
48447 ac_header_preproc=no
48450 rm -f conftest.err conftest.$ac_ext
48451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48452 echo "${ECHO_T}$ac_header_preproc" >&6; }
48454 # So? What about this header?
48455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48456 yes:no: )
48457 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
48458 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48459 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
48460 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
48461 ac_header_preproc=yes
48463 no:yes:* )
48464 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
48465 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
48466 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
48467 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
48468 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
48469 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
48470 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
48471 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
48472 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
48473 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
48474 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
48475 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
48476 ( cat <<\_ASBOX
48477 ## ------------------------------- ##
48478 ## Report this to www.asterisk.org ##
48479 ## ------------------------------- ##
48480 _ASBOX
48481 ) | sed "s/^/$as_me: WARNING: /" >&2
48483 esac
48484 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48485 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48486 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48487 echo $ECHO_N "(cached) $ECHO_C" >&6
48488 else
48489 ac_cv_header_linux_videodev_h=$ac_header_preproc
48491 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48492 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48495 if test $ac_cv_header_linux_videodev_h = yes; then
48497 cat >>confdefs.h <<_ACEOF
48498 #define HAVE_VIDEODEV_H 1
48499 _ACEOF
48505 # possible places for X11
48507 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48508 pbxlibdir=""
48509 # if --with-X11=DIR has been specified, use it.
48510 if test "x${X11_DIR}" != "x"; then
48511 if test -d ${X11_DIR}/lib; then
48512 pbxlibdir="-L${X11_DIR}/lib"
48513 else
48514 pbxlibdir="-L${X11_DIR}"
48517 pbxfuncname="XOpenDisplay"
48518 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48519 AST_X11_FOUND=yes
48520 else
48521 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48522 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48523 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48524 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48525 echo $ECHO_N "(cached) $ECHO_C" >&6
48526 else
48527 ac_check_lib_save_LIBS=$LIBS
48528 LIBS="-lX11 ${pbxlibdir} $LIBS"
48529 cat >conftest.$ac_ext <<_ACEOF
48530 /* confdefs.h. */
48531 _ACEOF
48532 cat confdefs.h >>conftest.$ac_ext
48533 cat >>conftest.$ac_ext <<_ACEOF
48534 /* end confdefs.h. */
48536 /* Override any GCC internal prototype to avoid an error.
48537 Use char because int might match the return type of a GCC
48538 builtin and then its argument prototype would still apply. */
48539 #ifdef __cplusplus
48540 extern "C"
48541 #endif
48542 char ${pbxfuncname} ();
48544 main ()
48546 return ${pbxfuncname} ();
48548 return 0;
48550 _ACEOF
48551 rm -f conftest.$ac_objext conftest$ac_exeext
48552 if { (ac_try="$ac_link"
48553 case "(($ac_try" in
48554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48555 *) ac_try_echo=$ac_try;;
48556 esac
48557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48558 (eval "$ac_link") 2>conftest.er1
48559 ac_status=$?
48560 grep -v '^ *+' conftest.er1 >conftest.err
48561 rm -f conftest.er1
48562 cat conftest.err >&5
48563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48564 (exit $ac_status); } && {
48565 test -z "$ac_c_werror_flag" ||
48566 test ! -s conftest.err
48567 } && test -s conftest$ac_exeext &&
48568 $as_test_x conftest$ac_exeext; then
48569 eval "$as_ac_Lib=yes"
48570 else
48571 echo "$as_me: failed program was:" >&5
48572 sed 's/^/| /' conftest.$ac_ext >&5
48574 eval "$as_ac_Lib=no"
48577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48578 conftest$ac_exeext conftest.$ac_ext
48579 LIBS=$ac_check_lib_save_LIBS
48581 ac_res=`eval echo '${'$as_ac_Lib'}'`
48582 { echo "$as_me:$LINENO: result: $ac_res" >&5
48583 echo "${ECHO_T}$ac_res" >&6; }
48584 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48585 AST_X11_FOUND=yes
48586 else
48587 AST_X11_FOUND=no
48592 # now check for the header.
48593 if test "${AST_X11_FOUND}" = "yes"; then
48594 X11_LIB="${pbxlibdir} -lX11 "
48595 # if --with-X11=DIR has been specified, use it.
48596 if test "x${X11_DIR}" != "x"; then
48597 X11_INCLUDE="-I${X11_DIR}/include"
48599 X11_INCLUDE="${X11_INCLUDE} "
48600 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48601 X11_HEADER_FOUND="1"
48602 else # check for the header
48603 saved_cppflags="${CPPFLAGS}"
48604 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} "
48605 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48606 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48607 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48608 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48609 echo $ECHO_N "(cached) $ECHO_C" >&6
48611 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48612 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48613 else
48614 # Is the header compilable?
48615 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48616 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48617 cat >conftest.$ac_ext <<_ACEOF
48618 /* confdefs.h. */
48619 _ACEOF
48620 cat confdefs.h >>conftest.$ac_ext
48621 cat >>conftest.$ac_ext <<_ACEOF
48622 /* end confdefs.h. */
48623 $ac_includes_default
48624 #include <X11/Xlib.h>
48625 _ACEOF
48626 rm -f conftest.$ac_objext
48627 if { (ac_try="$ac_compile"
48628 case "(($ac_try" in
48629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48630 *) ac_try_echo=$ac_try;;
48631 esac
48632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48633 (eval "$ac_compile") 2>conftest.er1
48634 ac_status=$?
48635 grep -v '^ *+' conftest.er1 >conftest.err
48636 rm -f conftest.er1
48637 cat conftest.err >&5
48638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48639 (exit $ac_status); } && {
48640 test -z "$ac_c_werror_flag" ||
48641 test ! -s conftest.err
48642 } && test -s conftest.$ac_objext; then
48643 ac_header_compiler=yes
48644 else
48645 echo "$as_me: failed program was:" >&5
48646 sed 's/^/| /' conftest.$ac_ext >&5
48648 ac_header_compiler=no
48651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48653 echo "${ECHO_T}$ac_header_compiler" >&6; }
48655 # Is the header present?
48656 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48657 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48658 cat >conftest.$ac_ext <<_ACEOF
48659 /* confdefs.h. */
48660 _ACEOF
48661 cat confdefs.h >>conftest.$ac_ext
48662 cat >>conftest.$ac_ext <<_ACEOF
48663 /* end confdefs.h. */
48664 #include <X11/Xlib.h>
48665 _ACEOF
48666 if { (ac_try="$ac_cpp conftest.$ac_ext"
48667 case "(($ac_try" in
48668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48669 *) ac_try_echo=$ac_try;;
48670 esac
48671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48673 ac_status=$?
48674 grep -v '^ *+' conftest.er1 >conftest.err
48675 rm -f conftest.er1
48676 cat conftest.err >&5
48677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48678 (exit $ac_status); } >/dev/null && {
48679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48680 test ! -s conftest.err
48681 }; then
48682 ac_header_preproc=yes
48683 else
48684 echo "$as_me: failed program was:" >&5
48685 sed 's/^/| /' conftest.$ac_ext >&5
48687 ac_header_preproc=no
48690 rm -f conftest.err conftest.$ac_ext
48691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48692 echo "${ECHO_T}$ac_header_preproc" >&6; }
48694 # So? What about this header?
48695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48696 yes:no: )
48697 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
48698 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48699 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
48700 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
48701 ac_header_preproc=yes
48703 no:yes:* )
48704 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
48705 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
48706 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
48707 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
48708 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
48709 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
48710 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
48711 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
48712 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
48713 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
48714 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
48715 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
48716 ( cat <<\_ASBOX
48717 ## ------------------------------- ##
48718 ## Report this to www.asterisk.org ##
48719 ## ------------------------------- ##
48720 _ASBOX
48721 ) | sed "s/^/$as_me: WARNING: /" >&2
48723 esac
48724 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48725 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48726 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48727 echo $ECHO_N "(cached) $ECHO_C" >&6
48728 else
48729 ac_cv_header_X11_Xlib_h=$ac_header_preproc
48731 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48732 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48735 if test $ac_cv_header_X11_Xlib_h = yes; then
48736 X11_HEADER_FOUND=1
48737 else
48738 X11_HEADER_FOUND=0
48742 CPPFLAGS="${saved_cppflags}"
48744 if test "x${X11_HEADER_FOUND}" = "x0" ; then
48745 X11_LIB=""
48746 X11_INCLUDE=""
48747 else
48748 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48749 X11_LIB=""
48751 PBX_X11=1
48752 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48754 cat >>confdefs.h <<_ACEOF
48755 #define HAVE_X11 1
48756 _ACEOF
48759 cat >>confdefs.h <<_ACEOF
48760 #define HAVE_X11_VERSION standard_path
48761 _ACEOF
48768 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48769 pbxlibdir=""
48770 # if --with-X11=DIR has been specified, use it.
48771 if test "x${X11_DIR}" != "x"; then
48772 if test -d ${X11_DIR}/lib; then
48773 pbxlibdir="-L${X11_DIR}/lib"
48774 else
48775 pbxlibdir="-L${X11_DIR}"
48778 pbxfuncname="XOpenDisplay"
48779 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48780 AST_X11_FOUND=yes
48781 else
48782 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48783 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48784 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48785 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48786 echo $ECHO_N "(cached) $ECHO_C" >&6
48787 else
48788 ac_check_lib_save_LIBS=$LIBS
48789 LIBS="-lX11 ${pbxlibdir} $LIBS"
48790 cat >conftest.$ac_ext <<_ACEOF
48791 /* confdefs.h. */
48792 _ACEOF
48793 cat confdefs.h >>conftest.$ac_ext
48794 cat >>conftest.$ac_ext <<_ACEOF
48795 /* end confdefs.h. */
48797 /* Override any GCC internal prototype to avoid an error.
48798 Use char because int might match the return type of a GCC
48799 builtin and then its argument prototype would still apply. */
48800 #ifdef __cplusplus
48801 extern "C"
48802 #endif
48803 char ${pbxfuncname} ();
48805 main ()
48807 return ${pbxfuncname} ();
48809 return 0;
48811 _ACEOF
48812 rm -f conftest.$ac_objext conftest$ac_exeext
48813 if { (ac_try="$ac_link"
48814 case "(($ac_try" in
48815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48816 *) ac_try_echo=$ac_try;;
48817 esac
48818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48819 (eval "$ac_link") 2>conftest.er1
48820 ac_status=$?
48821 grep -v '^ *+' conftest.er1 >conftest.err
48822 rm -f conftest.er1
48823 cat conftest.err >&5
48824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48825 (exit $ac_status); } && {
48826 test -z "$ac_c_werror_flag" ||
48827 test ! -s conftest.err
48828 } && test -s conftest$ac_exeext &&
48829 $as_test_x conftest$ac_exeext; then
48830 eval "$as_ac_Lib=yes"
48831 else
48832 echo "$as_me: failed program was:" >&5
48833 sed 's/^/| /' conftest.$ac_ext >&5
48835 eval "$as_ac_Lib=no"
48838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48839 conftest$ac_exeext conftest.$ac_ext
48840 LIBS=$ac_check_lib_save_LIBS
48842 ac_res=`eval echo '${'$as_ac_Lib'}'`
48843 { echo "$as_me:$LINENO: result: $ac_res" >&5
48844 echo "${ECHO_T}$ac_res" >&6; }
48845 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48846 AST_X11_FOUND=yes
48847 else
48848 AST_X11_FOUND=no
48853 # now check for the header.
48854 if test "${AST_X11_FOUND}" = "yes"; then
48855 X11_LIB="${pbxlibdir} -lX11 "
48856 # if --with-X11=DIR has been specified, use it.
48857 if test "x${X11_DIR}" != "x"; then
48858 X11_INCLUDE="-I${X11_DIR}/include"
48860 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
48861 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48862 X11_HEADER_FOUND="1"
48863 else # check for the header
48864 saved_cppflags="${CPPFLAGS}"
48865 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} -I/usr/X11R6/include"
48866 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48867 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48868 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48869 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48870 echo $ECHO_N "(cached) $ECHO_C" >&6
48872 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48873 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48874 else
48875 # Is the header compilable?
48876 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48877 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48878 cat >conftest.$ac_ext <<_ACEOF
48879 /* confdefs.h. */
48880 _ACEOF
48881 cat confdefs.h >>conftest.$ac_ext
48882 cat >>conftest.$ac_ext <<_ACEOF
48883 /* end confdefs.h. */
48884 $ac_includes_default
48885 #include <X11/Xlib.h>
48886 _ACEOF
48887 rm -f conftest.$ac_objext
48888 if { (ac_try="$ac_compile"
48889 case "(($ac_try" in
48890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48891 *) ac_try_echo=$ac_try;;
48892 esac
48893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48894 (eval "$ac_compile") 2>conftest.er1
48895 ac_status=$?
48896 grep -v '^ *+' conftest.er1 >conftest.err
48897 rm -f conftest.er1
48898 cat conftest.err >&5
48899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900 (exit $ac_status); } && {
48901 test -z "$ac_c_werror_flag" ||
48902 test ! -s conftest.err
48903 } && test -s conftest.$ac_objext; then
48904 ac_header_compiler=yes
48905 else
48906 echo "$as_me: failed program was:" >&5
48907 sed 's/^/| /' conftest.$ac_ext >&5
48909 ac_header_compiler=no
48912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48914 echo "${ECHO_T}$ac_header_compiler" >&6; }
48916 # Is the header present?
48917 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48918 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48919 cat >conftest.$ac_ext <<_ACEOF
48920 /* confdefs.h. */
48921 _ACEOF
48922 cat confdefs.h >>conftest.$ac_ext
48923 cat >>conftest.$ac_ext <<_ACEOF
48924 /* end confdefs.h. */
48925 #include <X11/Xlib.h>
48926 _ACEOF
48927 if { (ac_try="$ac_cpp conftest.$ac_ext"
48928 case "(($ac_try" in
48929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48930 *) ac_try_echo=$ac_try;;
48931 esac
48932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48934 ac_status=$?
48935 grep -v '^ *+' conftest.er1 >conftest.err
48936 rm -f conftest.er1
48937 cat conftest.err >&5
48938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48939 (exit $ac_status); } >/dev/null && {
48940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48941 test ! -s conftest.err
48942 }; then
48943 ac_header_preproc=yes
48944 else
48945 echo "$as_me: failed program was:" >&5
48946 sed 's/^/| /' conftest.$ac_ext >&5
48948 ac_header_preproc=no
48951 rm -f conftest.err conftest.$ac_ext
48952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48953 echo "${ECHO_T}$ac_header_preproc" >&6; }
48955 # So? What about this header?
48956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48957 yes:no: )
48958 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
48959 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48960 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
48961 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
48962 ac_header_preproc=yes
48964 no:yes:* )
48965 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
48966 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
48967 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
48968 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
48969 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
48970 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
48971 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
48972 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
48973 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
48974 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
48975 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
48976 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
48977 ( cat <<\_ASBOX
48978 ## ------------------------------- ##
48979 ## Report this to www.asterisk.org ##
48980 ## ------------------------------- ##
48981 _ASBOX
48982 ) | sed "s/^/$as_me: WARNING: /" >&2
48984 esac
48985 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48986 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48987 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48988 echo $ECHO_N "(cached) $ECHO_C" >&6
48989 else
48990 ac_cv_header_X11_Xlib_h=$ac_header_preproc
48992 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48993 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48996 if test $ac_cv_header_X11_Xlib_h = yes; then
48997 X11_HEADER_FOUND=1
48998 else
48999 X11_HEADER_FOUND=0
49003 CPPFLAGS="${saved_cppflags}"
49005 if test "x${X11_HEADER_FOUND}" = "x0" ; then
49006 X11_LIB=""
49007 X11_INCLUDE=""
49008 else
49009 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49010 X11_LIB=""
49012 PBX_X11=1
49013 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49015 cat >>confdefs.h <<_ACEOF
49016 #define HAVE_X11 1
49017 _ACEOF
49020 cat >>confdefs.h <<_ACEOF
49021 #define HAVE_X11_VERSION X11R6
49022 _ACEOF
49029 if test "${cross_compiling}" = "no";
49030 then
49031 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
49032 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
49033 if test "${ac_cv_file__sbin_launchd+set}" = set; then
49034 echo $ECHO_N "(cached) $ECHO_C" >&6
49035 else
49036 test "$cross_compiling" = yes &&
49037 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
49038 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
49039 { (exit 1); exit 1; }; }
49040 if test -r "/sbin/launchd"; then
49041 ac_cv_file__sbin_launchd=yes
49042 else
49043 ac_cv_file__sbin_launchd=no
49046 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
49047 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
49048 if test $ac_cv_file__sbin_launchd = yes; then
49050 cat >>confdefs.h <<\_ACEOF
49051 #define HAVE_SBIN_LAUNCHD 1
49052 _ACEOF
49058 PBX_GTK=0
49060 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
49061 PBX_GTK=0
49062 if test -n "$ac_tool_prefix"; then
49063 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
49064 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
49065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49067 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
49068 echo $ECHO_N "(cached) $ECHO_C" >&6
49069 else
49070 if test -n "$CONFIG_GTK"; then
49071 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
49072 else
49073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49074 for as_dir in $PATH
49076 IFS=$as_save_IFS
49077 test -z "$as_dir" && as_dir=.
49078 for ac_exec_ext in '' $ac_executable_extensions; do
49079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49080 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
49081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49082 break 2
49084 done
49085 done
49086 IFS=$as_save_IFS
49090 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
49091 if test -n "$CONFIG_GTK"; then
49092 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
49093 echo "${ECHO_T}$CONFIG_GTK" >&6; }
49094 else
49095 { echo "$as_me:$LINENO: result: no" >&5
49096 echo "${ECHO_T}no" >&6; }
49101 if test -z "$ac_cv_prog_CONFIG_GTK"; then
49102 ac_ct_CONFIG_GTK=$CONFIG_GTK
49103 # Extract the first word of "gtk-config", so it can be a program name with args.
49104 set dummy gtk-config; ac_word=$2
49105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49107 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
49108 echo $ECHO_N "(cached) $ECHO_C" >&6
49109 else
49110 if test -n "$ac_ct_CONFIG_GTK"; then
49111 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
49112 else
49113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49114 for as_dir in $PATH
49116 IFS=$as_save_IFS
49117 test -z "$as_dir" && as_dir=.
49118 for ac_exec_ext in '' $ac_executable_extensions; do
49119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49120 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
49121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49122 break 2
49124 done
49125 done
49126 IFS=$as_save_IFS
49130 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
49131 if test -n "$ac_ct_CONFIG_GTK"; then
49132 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
49133 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
49134 else
49135 { echo "$as_me:$LINENO: result: no" >&5
49136 echo "${ECHO_T}no" >&6; }
49139 if test "x$ac_ct_CONFIG_GTK" = x; then
49140 CONFIG_GTK="No"
49141 else
49142 case $cross_compiling:$ac_tool_warned in
49143 yes:)
49144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49145 whose name does not start with the host triplet. If you think this
49146 configuration is useful to you, please write to autoconf@gnu.org." >&5
49147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49148 whose name does not start with the host triplet. If you think this
49149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49150 ac_tool_warned=yes ;;
49151 esac
49152 CONFIG_GTK=$ac_ct_CONFIG_GTK
49154 else
49155 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
49158 if test ! "x${CONFIG_GTK}" = xNo; then
49159 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
49160 GTK_INCLUDE=$(${CONFIG_GTK} $A)
49161 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
49162 GTK_LIB=$(${CONFIG_GTK} $A)
49163 if test x"" != x ; then
49164 saved_cppflags="${CPPFLAGS}"
49165 if test "x${GTK_DIR}" != "x"; then
49166 GTK_INCLUDE="-I${GTK_DIR}/include"
49168 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
49170 saved_ldflags="${LDFLAGS}"
49171 LDFLAGS="${GTK_LIB}"
49173 cat >conftest.$ac_ext <<_ACEOF
49174 /* confdefs.h. */
49175 _ACEOF
49176 cat confdefs.h >>conftest.$ac_ext
49177 cat >>conftest.$ac_ext <<_ACEOF
49178 /* end confdefs.h. */
49181 main ()
49186 return 0;
49188 _ACEOF
49189 rm -f conftest.$ac_objext conftest$ac_exeext
49190 if { (ac_try="$ac_link"
49191 case "(($ac_try" in
49192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49193 *) ac_try_echo=$ac_try;;
49194 esac
49195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49196 (eval "$ac_link") 2>conftest.er1
49197 ac_status=$?
49198 grep -v '^ *+' conftest.er1 >conftest.err
49199 rm -f conftest.er1
49200 cat conftest.err >&5
49201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49202 (exit $ac_status); } && {
49203 test -z "$ac_c_werror_flag" ||
49204 test ! -s conftest.err
49205 } && test -s conftest$ac_exeext &&
49206 $as_test_x conftest$ac_exeext; then
49207 PBX_GTK=1
49209 cat >>confdefs.h <<\_ACEOF
49210 #define HAVE_GTK 1
49211 _ACEOF
49214 else
49215 echo "$as_me: failed program was:" >&5
49216 sed 's/^/| /' conftest.$ac_ext >&5
49222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49223 conftest$ac_exeext conftest.$ac_ext
49224 CPPFLAGS="${saved_cppflags}"
49225 LDFLAGS="${saved_ldflags}"
49226 else
49227 PBX_GTK=1
49229 cat >>confdefs.h <<\_ACEOF
49230 #define HAVE_GTK 1
49231 _ACEOF
49238 PBX_GTK2=0
49239 if test -n "$ac_tool_prefix"; then
49240 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
49241 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
49242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49244 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
49245 echo $ECHO_N "(cached) $ECHO_C" >&6
49246 else
49247 if test -n "$PKGCONFIG"; then
49248 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
49249 else
49250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49251 for as_dir in $PATH
49253 IFS=$as_save_IFS
49254 test -z "$as_dir" && as_dir=.
49255 for ac_exec_ext in '' $ac_executable_extensions; do
49256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49257 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
49258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49259 break 2
49261 done
49262 done
49263 IFS=$as_save_IFS
49267 PKGCONFIG=$ac_cv_prog_PKGCONFIG
49268 if test -n "$PKGCONFIG"; then
49269 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
49270 echo "${ECHO_T}$PKGCONFIG" >&6; }
49271 else
49272 { echo "$as_me:$LINENO: result: no" >&5
49273 echo "${ECHO_T}no" >&6; }
49278 if test -z "$ac_cv_prog_PKGCONFIG"; then
49279 ac_ct_PKGCONFIG=$PKGCONFIG
49280 # Extract the first word of "pkg-config", so it can be a program name with args.
49281 set dummy pkg-config; ac_word=$2
49282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49284 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
49285 echo $ECHO_N "(cached) $ECHO_C" >&6
49286 else
49287 if test -n "$ac_ct_PKGCONFIG"; then
49288 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
49289 else
49290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49291 for as_dir in $PATH
49293 IFS=$as_save_IFS
49294 test -z "$as_dir" && as_dir=.
49295 for ac_exec_ext in '' $ac_executable_extensions; do
49296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49297 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
49298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49299 break 2
49301 done
49302 done
49303 IFS=$as_save_IFS
49307 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
49308 if test -n "$ac_ct_PKGCONFIG"; then
49309 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
49310 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
49311 else
49312 { echo "$as_me:$LINENO: result: no" >&5
49313 echo "${ECHO_T}no" >&6; }
49316 if test "x$ac_ct_PKGCONFIG" = x; then
49317 PKGCONFIG="No"
49318 else
49319 case $cross_compiling:$ac_tool_warned in
49320 yes:)
49321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49322 whose name does not start with the host triplet. If you think this
49323 configuration is useful to you, please write to autoconf@gnu.org." >&5
49324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49325 whose name does not start with the host triplet. If you think this
49326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49327 ac_tool_warned=yes ;;
49328 esac
49329 PKGCONFIG=$ac_ct_PKGCONFIG
49331 else
49332 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
49335 if test ! "x${PKGCONFIG}" = xNo; then
49336 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
49337 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
49338 PBX_GTK2=1
49340 cat >>confdefs.h <<\_ACEOF
49341 #define HAVE_GTK2 1
49342 _ACEOF
49349 if test "${USE_CURL}" != "no"; then
49350 if test -n "$ac_tool_prefix"; then
49351 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
49352 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
49353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49355 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
49356 echo $ECHO_N "(cached) $ECHO_C" >&6
49357 else
49358 case $CURL_CONFIG in
49359 [\\/]* | ?:[\\/]*)
49360 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
49363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49364 for as_dir in $PATH
49366 IFS=$as_save_IFS
49367 test -z "$as_dir" && as_dir=.
49368 for ac_exec_ext in '' $ac_executable_extensions; do
49369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49370 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49372 break 2
49374 done
49375 done
49376 IFS=$as_save_IFS
49379 esac
49381 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
49382 if test -n "$CURL_CONFIG"; then
49383 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
49384 echo "${ECHO_T}$CURL_CONFIG" >&6; }
49385 else
49386 { echo "$as_me:$LINENO: result: no" >&5
49387 echo "${ECHO_T}no" >&6; }
49392 if test -z "$ac_cv_path_CURL_CONFIG"; then
49393 ac_pt_CURL_CONFIG=$CURL_CONFIG
49394 # Extract the first word of "curl-config", so it can be a program name with args.
49395 set dummy curl-config; ac_word=$2
49396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49398 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
49399 echo $ECHO_N "(cached) $ECHO_C" >&6
49400 else
49401 case $ac_pt_CURL_CONFIG in
49402 [\\/]* | ?:[\\/]*)
49403 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
49406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49407 for as_dir in $PATH
49409 IFS=$as_save_IFS
49410 test -z "$as_dir" && as_dir=.
49411 for ac_exec_ext in '' $ac_executable_extensions; do
49412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49413 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49415 break 2
49417 done
49418 done
49419 IFS=$as_save_IFS
49422 esac
49424 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
49425 if test -n "$ac_pt_CURL_CONFIG"; then
49426 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
49427 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
49428 else
49429 { echo "$as_me:$LINENO: result: no" >&5
49430 echo "${ECHO_T}no" >&6; }
49433 if test "x$ac_pt_CURL_CONFIG" = x; then
49434 CURL_CONFIG="No"
49435 else
49436 case $cross_compiling:$ac_tool_warned in
49437 yes:)
49438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49439 whose name does not start with the host triplet. If you think this
49440 configuration is useful to you, please write to autoconf@gnu.org." >&5
49441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49442 whose name does not start with the host triplet. If you think this
49443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49444 ac_tool_warned=yes ;;
49445 esac
49446 CURL_CONFIG=$ac_pt_CURL_CONFIG
49448 else
49449 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
49452 if test ! x"${CURL_CONFIG}" = xNo; then
49453 # check for version
49454 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
49455 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
49456 CURL_LIB=$(${CURL_CONFIG} --libs)
49458 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
49459 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
49460 saved_cppflags="${CPPFLAGS}"
49461 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
49462 cat >conftest.$ac_ext <<_ACEOF
49463 /* confdefs.h. */
49464 _ACEOF
49465 cat confdefs.h >>conftest.$ac_ext
49466 cat >>conftest.$ac_ext <<_ACEOF
49467 /* end confdefs.h. */
49468 #include <curl/curl.h>
49470 main ()
49472 curl_version();
49474 return 0;
49477 _ACEOF
49478 rm -f conftest.$ac_objext
49479 if { (ac_try="$ac_compile"
49480 case "(($ac_try" in
49481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49482 *) ac_try_echo=$ac_try;;
49483 esac
49484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49485 (eval "$ac_compile") 2>conftest.er1
49486 ac_status=$?
49487 grep -v '^ *+' conftest.er1 >conftest.err
49488 rm -f conftest.er1
49489 cat conftest.err >&5
49490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49491 (exit $ac_status); } && {
49492 test -z "$ac_c_werror_flag" ||
49493 test ! -s conftest.err
49494 } && test -s conftest.$ac_objext; then
49496 { echo "$as_me:$LINENO: result: yes" >&5
49497 echo "${ECHO_T}yes" >&6; }
49498 ac_cv_curl_h="yes"
49500 else
49501 echo "$as_me: failed program was:" >&5
49502 sed 's/^/| /' conftest.$ac_ext >&5
49505 { echo "$as_me:$LINENO: result: no" >&5
49506 echo "${ECHO_T}no" >&6; }
49507 ac_cv_curl_h="no"
49512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49513 CPPFLAGS="${saved_cppflags}"
49514 if test "${ac_cv_curl_h}" = "yes"; then
49515 PBX_CURL=1
49517 cat >>confdefs.h <<\_ACEOF
49518 #define HAVE_CURL 1
49519 _ACEOF
49526 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
49529 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
49530 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
49531 err=0;
49532 for i in ${ac_mandatory_list}; do
49533 eval "a=\${PBX_$i}"
49534 if test "x${a}" = "x1" ; then continue; fi
49535 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
49536 echo "${ECHO_T}fail" >&6; } ; fi
49537 { echo "$as_me:$LINENO: result: " >&5
49538 echo "${ECHO_T}" >&6; }
49539 eval "a=\${${i}_OPTION}"
49540 { echo "$as_me:$LINENO: ***" >&5
49541 echo "$as_me: ***" >&6;}
49542 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
49543 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
49544 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
49545 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
49546 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
49547 echo "$as_me: *** including --without-${a}." >&6;}
49548 err=1
49549 done
49550 if test $err = 1 ; then exit 1; fi
49551 { echo "$as_me:$LINENO: result: ok" >&5
49552 echo "${ECHO_T}ok" >&6; }
49555 cat >confcache <<\_ACEOF
49556 # This file is a shell script that caches the results of configure
49557 # tests run on this system so they can be shared between configure
49558 # scripts and configure runs, see configure's option --config-cache.
49559 # It is not useful on other systems. If it contains results you don't
49560 # want to keep, you may remove or edit it.
49562 # config.status only pays attention to the cache file if you give it
49563 # the --recheck option to rerun configure.
49565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49567 # following values.
49569 _ACEOF
49571 # The following way of writing the cache mishandles newlines in values,
49572 # but we know of no workaround that is simple, portable, and efficient.
49573 # So, we kill variables containing newlines.
49574 # Ultrix sh set writes to stderr and can't be redirected directly,
49575 # and sets the high bit in the cache file unless we assign to the vars.
49577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49578 eval ac_val=\$$ac_var
49579 case $ac_val in #(
49580 *${as_nl}*)
49581 case $ac_var in #(
49582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
49583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
49584 esac
49585 case $ac_var in #(
49586 _ | IFS | as_nl) ;; #(
49587 *) $as_unset $ac_var ;;
49588 esac ;;
49589 esac
49590 done
49592 (set) 2>&1 |
49593 case $as_nl`(ac_space=' '; set) 2>&1` in #(
49594 *${as_nl}ac_space=\ *)
49595 # `set' does not quote correctly, so add quotes (double-quote
49596 # substitution turns \\\\ into \\, and sed turns \\ into \).
49597 sed -n \
49598 "s/'/'\\\\''/g;
49599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49600 ;; #(
49602 # `set' quotes correctly as required by POSIX, so do not add quotes.
49603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49605 esac |
49606 sort
49608 sed '
49609 /^ac_cv_env_/b end
49610 t clear
49611 :clear
49612 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49613 t end
49614 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49615 :end' >>confcache
49616 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49617 if test -w "$cache_file"; then
49618 test "x$cache_file" != "x/dev/null" &&
49619 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
49620 echo "$as_me: updating cache $cache_file" >&6;}
49621 cat confcache >$cache_file
49622 else
49623 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
49624 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49627 rm -f confcache
49629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49630 # Let make expand exec_prefix.
49631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49633 DEFS=-DHAVE_CONFIG_H
49635 ac_libobjs=
49636 ac_ltlibobjs=
49637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49638 # 1. Remove the extension, and $U if already installed.
49639 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49640 ac_i=`echo "$ac_i" | sed "$ac_script"`
49641 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
49642 # will be set to the directory where LIBOBJS objects are built.
49643 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49644 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
49645 done
49646 LIBOBJS=$ac_libobjs
49648 LTLIBOBJS=$ac_ltlibobjs
49652 : ${CONFIG_STATUS=./config.status}
49653 ac_clean_files_save=$ac_clean_files
49654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49656 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49657 cat >$CONFIG_STATUS <<_ACEOF
49658 #! $SHELL
49659 # Generated by $as_me.
49660 # Run this file to recreate the current configuration.
49661 # Compiler output produced by configure, useful for debugging
49662 # configure, is in config.log if it exists.
49664 debug=false
49665 ac_cs_recheck=false
49666 ac_cs_silent=false
49667 SHELL=\${CONFIG_SHELL-$SHELL}
49668 _ACEOF
49670 cat >>$CONFIG_STATUS <<\_ACEOF
49671 ## --------------------- ##
49672 ## M4sh Initialization. ##
49673 ## --------------------- ##
49675 # Be more Bourne compatible
49676 DUALCASE=1; export DUALCASE # for MKS sh
49677 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49678 emulate sh
49679 NULLCMD=:
49680 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49681 # is contrary to our usage. Disable this feature.
49682 alias -g '${1+"$@"}'='"$@"'
49683 setopt NO_GLOB_SUBST
49684 else
49685 case `(set -o) 2>/dev/null` in
49686 *posix*) set -o posix ;;
49687 esac
49694 # PATH needs CR
49695 # Avoid depending upon Character Ranges.
49696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49699 as_cr_digits='0123456789'
49700 as_cr_alnum=$as_cr_Letters$as_cr_digits
49702 # The user is always right.
49703 if test "${PATH_SEPARATOR+set}" != set; then
49704 echo "#! /bin/sh" >conf$$.sh
49705 echo "exit 0" >>conf$$.sh
49706 chmod +x conf$$.sh
49707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49708 PATH_SEPARATOR=';'
49709 else
49710 PATH_SEPARATOR=:
49712 rm -f conf$$.sh
49715 # Support unset when possible.
49716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49717 as_unset=unset
49718 else
49719 as_unset=false
49723 # IFS
49724 # We need space, tab and new line, in precisely that order. Quoting is
49725 # there to prevent editors from complaining about space-tab.
49726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
49727 # splitting by setting IFS to empty value.)
49728 as_nl='
49730 IFS=" "" $as_nl"
49732 # Find who we are. Look in the path if we contain no directory separator.
49733 case $0 in
49734 *[\\/]* ) as_myself=$0 ;;
49735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49736 for as_dir in $PATH
49738 IFS=$as_save_IFS
49739 test -z "$as_dir" && as_dir=.
49740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49741 done
49742 IFS=$as_save_IFS
49745 esac
49746 # We did not find ourselves, most probably we were run as `sh COMMAND'
49747 # in which case we are not to be found in the path.
49748 if test "x$as_myself" = x; then
49749 as_myself=$0
49751 if test ! -f "$as_myself"; then
49752 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
49753 { (exit 1); exit 1; }
49756 # Work around bugs in pre-3.0 UWIN ksh.
49757 for as_var in ENV MAIL MAILPATH
49758 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49759 done
49760 PS1='$ '
49761 PS2='> '
49762 PS4='+ '
49764 # NLS nuisances.
49765 for as_var in \
49766 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49767 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49768 LC_TELEPHONE LC_TIME
49770 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49771 eval $as_var=C; export $as_var
49772 else
49773 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49775 done
49777 # Required to use basename.
49778 if expr a : '\(a\)' >/dev/null 2>&1 &&
49779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49780 as_expr=expr
49781 else
49782 as_expr=false
49785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49786 as_basename=basename
49787 else
49788 as_basename=false
49792 # Name of the executable.
49793 as_me=`$as_basename -- "$0" ||
49794 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49795 X"$0" : 'X\(//\)$' \| \
49796 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
49797 echo X/"$0" |
49798 sed '/^.*\/\([^/][^/]*\)\/*$/{
49799 s//\1/
49802 /^X\/\(\/\/\)$/{
49803 s//\1/
49806 /^X\/\(\/\).*/{
49807 s//\1/
49810 s/.*/./; q'`
49812 # CDPATH.
49813 $as_unset CDPATH
49817 as_lineno_1=$LINENO
49818 as_lineno_2=$LINENO
49819 test "x$as_lineno_1" != "x$as_lineno_2" &&
49820 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
49822 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49823 # uniformly replaced by the line number. The first 'sed' inserts a
49824 # line-number line after each line using $LINENO; the second 'sed'
49825 # does the real work. The second script uses 'N' to pair each
49826 # line-number line with the line containing $LINENO, and appends
49827 # trailing '-' during substitution so that $LINENO is not a special
49828 # case at line end.
49829 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49830 # scripts with optimization help from Paolo Bonzini. Blame Lee
49831 # E. McMahon (1931-1989) for sed's syntax. :-)
49832 sed -n '
49834 /[$]LINENO/=
49835 ' <$as_myself |
49836 sed '
49837 s/[$]LINENO.*/&-/
49838 t lineno
49840 :lineno
49842 :loop
49843 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
49844 t loop
49845 s/-\n.*//
49846 ' >$as_me.lineno &&
49847 chmod +x "$as_me.lineno" ||
49848 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
49849 { (exit 1); exit 1; }; }
49851 # Don't try to exec as it changes $[0], causing all sort of problems
49852 # (the dirname of $[0] is not the place where we might find the
49853 # original and so on. Autoconf is especially sensitive to this).
49854 . "./$as_me.lineno"
49855 # Exit status is that of the last command.
49856 exit
49860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
49861 as_dirname=dirname
49862 else
49863 as_dirname=false
49866 ECHO_C= ECHO_N= ECHO_T=
49867 case `echo -n x` in
49868 -n*)
49869 case `echo 'x\c'` in
49870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
49871 *) ECHO_C='\c';;
49872 esac;;
49874 ECHO_N='-n';;
49875 esac
49877 if expr a : '\(a\)' >/dev/null 2>&1 &&
49878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49879 as_expr=expr
49880 else
49881 as_expr=false
49884 rm -f conf$$ conf$$.exe conf$$.file
49885 if test -d conf$$.dir; then
49886 rm -f conf$$.dir/conf$$.file
49887 else
49888 rm -f conf$$.dir
49889 mkdir conf$$.dir
49891 echo >conf$$.file
49892 if ln -s conf$$.file conf$$ 2>/dev/null; then
49893 as_ln_s='ln -s'
49894 # ... but there are two gotchas:
49895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49897 # In both cases, we have to default to `cp -p'.
49898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49899 as_ln_s='cp -p'
49900 elif ln conf$$.file conf$$ 2>/dev/null; then
49901 as_ln_s=ln
49902 else
49903 as_ln_s='cp -p'
49905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
49906 rmdir conf$$.dir 2>/dev/null
49908 if mkdir -p . 2>/dev/null; then
49909 as_mkdir_p=:
49910 else
49911 test -d ./-p && rmdir ./-p
49912 as_mkdir_p=false
49915 if test -x / >/dev/null 2>&1; then
49916 as_test_x='test -x'
49917 else
49918 if ls -dL / >/dev/null 2>&1; then
49919 as_ls_L_option=L
49920 else
49921 as_ls_L_option=
49923 as_test_x='
49924 eval sh -c '\''
49925 if test -d "$1"; then
49926 test -d "$1/.";
49927 else
49928 case $1 in
49929 -*)set "./$1";;
49930 esac;
49931 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
49932 ???[sx]*):;;*)false;;esac;fi
49933 '\'' sh
49936 as_executable_p=$as_test_x
49938 # Sed expression to map a string onto a valid CPP name.
49939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49941 # Sed expression to map a string onto a valid variable name.
49942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49945 exec 6>&1
49947 # Save the log message, to keep $[0] and so on meaningful, and to
49948 # report actual input values of CONFIG_FILES etc. instead of their
49949 # values after options handling.
49950 ac_log="
49951 This file was extended by asterisk $as_me 1.6, which was
49952 generated by GNU Autoconf 2.61. Invocation command line was
49954 CONFIG_FILES = $CONFIG_FILES
49955 CONFIG_HEADERS = $CONFIG_HEADERS
49956 CONFIG_LINKS = $CONFIG_LINKS
49957 CONFIG_COMMANDS = $CONFIG_COMMANDS
49958 $ $0 $@
49960 on `(hostname || uname -n) 2>/dev/null | sed 1q`
49963 _ACEOF
49965 cat >>$CONFIG_STATUS <<_ACEOF
49966 # Files that config.status was made for.
49967 config_files="$ac_config_files"
49968 config_headers="$ac_config_headers"
49970 _ACEOF
49972 cat >>$CONFIG_STATUS <<\_ACEOF
49973 ac_cs_usage="\
49974 \`$as_me' instantiates files from templates according to the
49975 current configuration.
49977 Usage: $0 [OPTIONS] [FILE]...
49979 -h, --help print this help, then exit
49980 -V, --version print version number and configuration settings, then exit
49981 -q, --quiet do not print progress messages
49982 -d, --debug don't remove temporary files
49983 --recheck update $as_me by reconfiguring in the same conditions
49984 --file=FILE[:TEMPLATE]
49985 instantiate the configuration file FILE
49986 --header=FILE[:TEMPLATE]
49987 instantiate the configuration header FILE
49989 Configuration files:
49990 $config_files
49992 Configuration headers:
49993 $config_headers
49995 Report bugs to <bug-autoconf@gnu.org>."
49997 _ACEOF
49998 cat >>$CONFIG_STATUS <<_ACEOF
49999 ac_cs_version="\\
50000 asterisk config.status 1.6
50001 configured by $0, generated by GNU Autoconf 2.61,
50002 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50004 Copyright (C) 2006 Free Software Foundation, Inc.
50005 This config.status script is free software; the Free Software Foundation
50006 gives unlimited permission to copy, distribute and modify it."
50008 ac_pwd='$ac_pwd'
50009 srcdir='$srcdir'
50010 INSTALL='$INSTALL'
50011 _ACEOF
50013 cat >>$CONFIG_STATUS <<\_ACEOF
50014 # If no file are specified by the user, then we need to provide default
50015 # value. By we need to know if files were specified by the user.
50016 ac_need_defaults=:
50017 while test $# != 0
50019 case $1 in
50020 --*=*)
50021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
50022 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50023 ac_shift=:
50026 ac_option=$1
50027 ac_optarg=$2
50028 ac_shift=shift
50030 esac
50032 case $ac_option in
50033 # Handling of the options.
50034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50035 ac_cs_recheck=: ;;
50036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50037 echo "$ac_cs_version"; exit ;;
50038 --debug | --debu | --deb | --de | --d | -d )
50039 debug=: ;;
50040 --file | --fil | --fi | --f )
50041 $ac_shift
50042 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50043 ac_need_defaults=false;;
50044 --header | --heade | --head | --hea )
50045 $ac_shift
50046 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50047 ac_need_defaults=false;;
50048 --he | --h)
50049 # Conflict between --help and --header
50050 { echo "$as_me: error: ambiguous option: $1
50051 Try \`$0 --help' for more information." >&2
50052 { (exit 1); exit 1; }; };;
50053 --help | --hel | -h )
50054 echo "$ac_cs_usage"; exit ;;
50055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50056 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50057 ac_cs_silent=: ;;
50059 # This is an error.
50060 -*) { echo "$as_me: error: unrecognized option: $1
50061 Try \`$0 --help' for more information." >&2
50062 { (exit 1); exit 1; }; } ;;
50064 *) ac_config_targets="$ac_config_targets $1"
50065 ac_need_defaults=false ;;
50067 esac
50068 shift
50069 done
50071 ac_configure_extra_args=
50073 if $ac_cs_silent; then
50074 exec 6>/dev/null
50075 ac_configure_extra_args="$ac_configure_extra_args --silent"
50078 _ACEOF
50079 cat >>$CONFIG_STATUS <<_ACEOF
50080 if \$ac_cs_recheck; then
50081 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50082 CONFIG_SHELL=$SHELL
50083 export CONFIG_SHELL
50084 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50087 _ACEOF
50088 cat >>$CONFIG_STATUS <<\_ACEOF
50089 exec 5>>config.log
50091 echo
50092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50093 ## Running $as_me. ##
50094 _ASBOX
50095 echo "$ac_log"
50096 } >&5
50098 _ACEOF
50099 cat >>$CONFIG_STATUS <<_ACEOF
50100 _ACEOF
50102 cat >>$CONFIG_STATUS <<\_ACEOF
50104 # Handling of arguments.
50105 for ac_config_target in $ac_config_targets
50107 case $ac_config_target in
50108 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
50109 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
50110 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
50111 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
50113 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50114 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50115 { (exit 1); exit 1; }; };;
50116 esac
50117 done
50120 # If the user did not use the arguments to specify the items to instantiate,
50121 # then the envvar interface is used. Set only those that are not.
50122 # We use the long form for the default assignment because of an extremely
50123 # bizarre bug on SunOS 4.1.3.
50124 if $ac_need_defaults; then
50125 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50126 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50129 # Have a temporary directory for convenience. Make it in the build tree
50130 # simply because there is no reason against having it here, and in addition,
50131 # creating and moving files from /tmp can sometimes cause problems.
50132 # Hook for its removal unless debugging.
50133 # Note that there is a small window in which the directory will not be cleaned:
50134 # after its creation but before its name has been assigned to `$tmp'.
50135 $debug ||
50137 tmp=
50138 trap 'exit_status=$?
50139 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
50141 trap '{ (exit 1); exit 1; }' 1 2 13 15
50143 # Create a (secure) tmp directory for tmp files.
50146 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
50147 test -n "$tmp" && test -d "$tmp"
50148 } ||
50150 tmp=./conf$$-$RANDOM
50151 (umask 077 && mkdir "$tmp")
50152 } ||
50154 echo "$me: cannot create a temporary directory in ." >&2
50155 { (exit 1); exit 1; }
50159 # Set up the sed scripts for CONFIG_FILES section.
50162 # No need to generate the scripts if there are no CONFIG_FILES.
50163 # This happens for instance when ./config.status config.h
50164 if test -n "$CONFIG_FILES"; then
50166 _ACEOF
50170 ac_delim='%!_!# '
50171 for ac_last_try in false false false false false :; do
50172 cat >conf$$subs.sed <<_ACEOF
50173 SHELL!$SHELL$ac_delim
50174 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
50175 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
50176 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
50177 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
50178 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
50179 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
50180 exec_prefix!$exec_prefix$ac_delim
50181 prefix!$prefix$ac_delim
50182 program_transform_name!$program_transform_name$ac_delim
50183 bindir!$bindir$ac_delim
50184 sbindir!$sbindir$ac_delim
50185 libexecdir!$libexecdir$ac_delim
50186 datarootdir!$datarootdir$ac_delim
50187 datadir!$datadir$ac_delim
50188 sysconfdir!$sysconfdir$ac_delim
50189 sharedstatedir!$sharedstatedir$ac_delim
50190 localstatedir!$localstatedir$ac_delim
50191 includedir!$includedir$ac_delim
50192 oldincludedir!$oldincludedir$ac_delim
50193 docdir!$docdir$ac_delim
50194 infodir!$infodir$ac_delim
50195 htmldir!$htmldir$ac_delim
50196 dvidir!$dvidir$ac_delim
50197 pdfdir!$pdfdir$ac_delim
50198 psdir!$psdir$ac_delim
50199 libdir!$libdir$ac_delim
50200 localedir!$localedir$ac_delim
50201 mandir!$mandir$ac_delim
50202 DEFS!$DEFS$ac_delim
50203 ECHO_C!$ECHO_C$ac_delim
50204 ECHO_N!$ECHO_N$ac_delim
50205 ECHO_T!$ECHO_T$ac_delim
50206 LIBS!$LIBS$ac_delim
50207 build_alias!$build_alias$ac_delim
50208 host_alias!$host_alias$ac_delim
50209 target_alias!$target_alias$ac_delim
50210 build!$build$ac_delim
50211 build_cpu!$build_cpu$ac_delim
50212 build_vendor!$build_vendor$ac_delim
50213 build_os!$build_os$ac_delim
50214 host!$host$ac_delim
50215 host_cpu!$host_cpu$ac_delim
50216 host_vendor!$host_vendor$ac_delim
50217 host_os!$host_os$ac_delim
50218 CC!$CC$ac_delim
50219 CFLAGS!$CFLAGS$ac_delim
50220 LDFLAGS!$LDFLAGS$ac_delim
50221 CPPFLAGS!$CPPFLAGS$ac_delim
50222 ac_ct_CC!$ac_ct_CC$ac_delim
50223 EXEEXT!$EXEEXT$ac_delim
50224 OBJEXT!$OBJEXT$ac_delim
50225 CPP!$CPP$ac_delim
50226 GREP!$GREP$ac_delim
50227 EGREP!$EGREP$ac_delim
50228 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
50229 BUILD_CPU!$BUILD_CPU$ac_delim
50230 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
50231 BUILD_OS!$BUILD_OS$ac_delim
50232 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
50233 HOST_CPU!$HOST_CPU$ac_delim
50234 HOST_VENDOR!$HOST_VENDOR$ac_delim
50235 HOST_OS!$HOST_OS$ac_delim
50236 OSARCH!$OSARCH$ac_delim
50237 WINARCH!$WINARCH$ac_delim
50238 UNAME!$UNAME$ac_delim
50239 PBX_OSREV!$PBX_OSREV$ac_delim
50240 CXX!$CXX$ac_delim
50241 LD!$LD$ac_delim
50242 RANLIB!$RANLIB$ac_delim
50243 CXXFLAGS!$CXXFLAGS$ac_delim
50244 ac_ct_CXX!$ac_ct_CXX$ac_delim
50245 CXXCPP!$CXXCPP$ac_delim
50246 SED!$SED$ac_delim
50247 AWK!$AWK$ac_delim
50248 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
50249 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
50250 INSTALL_DATA!$INSTALL_DATA$ac_delim
50251 LN_S!$LN_S$ac_delim
50252 GNU_MAKE!$GNU_MAKE$ac_delim
50253 STRIP!$STRIP$ac_delim
50254 AR!$AR$ac_delim
50255 GNU_LD!$GNU_LD$ac_delim
50256 FIND!$FIND$ac_delim
50257 COMPRESS!$COMPRESS$ac_delim
50258 BASENAME!$BASENAME$ac_delim
50259 ID!$ID$ac_delim
50260 DIRNAME!$DIRNAME$ac_delim
50261 LN!$LN$ac_delim
50262 DOT!$DOT$ac_delim
50263 WGET!$WGET$ac_delim
50264 RUBBER!$RUBBER$ac_delim
50265 KPATHSEA!$KPATHSEA$ac_delim
50266 FETCH!$FETCH$ac_delim
50267 DOWNLOAD!$DOWNLOAD$ac_delim
50268 SOXMIX!$SOXMIX$ac_delim
50269 acx_pthread_config!$acx_pthread_config$ac_delim
50270 _ACEOF
50272 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50273 break
50274 elif $ac_last_try; then
50275 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50276 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50277 { (exit 1); exit 1; }; }
50278 else
50279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50281 done
50283 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50284 if test -n "$ac_eof"; then
50285 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50286 ac_eof=`expr $ac_eof + 1`
50289 cat >>$CONFIG_STATUS <<_ACEOF
50290 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50291 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50292 _ACEOF
50293 sed '
50294 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50295 s/^/s,@/; s/!/@,|#_!!_#|/
50298 s/'"$ac_delim"'$/,g/; t
50299 s/$/\\/; p
50300 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50301 ' >>$CONFIG_STATUS <conf$$subs.sed
50302 rm -f conf$$subs.sed
50303 cat >>$CONFIG_STATUS <<_ACEOF
50304 CEOF$ac_eof
50305 _ACEOF
50308 ac_delim='%!_!# '
50309 for ac_last_try in false false false false false :; do
50310 cat >conf$$subs.sed <<_ACEOF
50311 PTHREAD_CC!$PTHREAD_CC$ac_delim
50312 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
50313 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
50314 AST_DEVMODE!$AST_DEVMODE$ac_delim
50315 ALSA_LIB!$ALSA_LIB$ac_delim
50316 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
50317 ALSA_DIR!$ALSA_DIR$ac_delim
50318 PBX_ALSA!$PBX_ALSA$ac_delim
50319 BKTR_LIB!$BKTR_LIB$ac_delim
50320 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
50321 BKTR_DIR!$BKTR_DIR$ac_delim
50322 PBX_BKTR!$PBX_BKTR$ac_delim
50323 CAP_LIB!$CAP_LIB$ac_delim
50324 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
50325 CAP_DIR!$CAP_DIR$ac_delim
50326 PBX_CAP!$PBX_CAP$ac_delim
50327 CURL_LIB!$CURL_LIB$ac_delim
50328 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
50329 CURL_DIR!$CURL_DIR$ac_delim
50330 PBX_CURL!$PBX_CURL$ac_delim
50331 CURSES_LIB!$CURSES_LIB$ac_delim
50332 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
50333 CURSES_DIR!$CURSES_DIR$ac_delim
50334 PBX_CURSES!$PBX_CURSES$ac_delim
50335 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
50336 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
50337 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
50338 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
50339 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
50340 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
50341 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
50342 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
50343 GSM_LIB!$GSM_LIB$ac_delim
50344 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
50345 GSM_DIR!$GSM_DIR$ac_delim
50346 PBX_GSM!$PBX_GSM$ac_delim
50347 GTK_LIB!$GTK_LIB$ac_delim
50348 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
50349 GTK_DIR!$GTK_DIR$ac_delim
50350 PBX_GTK!$PBX_GTK$ac_delim
50351 GTK2_LIB!$GTK2_LIB$ac_delim
50352 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
50353 GTK2_DIR!$GTK2_DIR$ac_delim
50354 PBX_GTK2!$PBX_GTK2$ac_delim
50355 GMIME_LIB!$GMIME_LIB$ac_delim
50356 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
50357 GMIME_DIR!$GMIME_DIR$ac_delim
50358 PBX_GMIME!$PBX_GMIME$ac_delim
50359 ICONV_LIB!$ICONV_LIB$ac_delim
50360 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
50361 ICONV_DIR!$ICONV_DIR$ac_delim
50362 PBX_ICONV!$PBX_ICONV$ac_delim
50363 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
50364 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
50365 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
50366 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
50367 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
50368 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
50369 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
50370 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
50371 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
50372 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
50373 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
50374 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
50375 JACK_LIB!$JACK_LIB$ac_delim
50376 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
50377 JACK_DIR!$JACK_DIR$ac_delim
50378 PBX_JACK!$PBX_JACK$ac_delim
50379 LDAP_LIB!$LDAP_LIB$ac_delim
50380 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
50381 LDAP_DIR!$LDAP_DIR$ac_delim
50382 PBX_LDAP!$PBX_LDAP$ac_delim
50383 LTDL_LIB!$LTDL_LIB$ac_delim
50384 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
50385 LTDL_DIR!$LTDL_DIR$ac_delim
50386 PBX_LTDL!$PBX_LTDL$ac_delim
50387 LUA_LIB!$LUA_LIB$ac_delim
50388 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
50389 LUA_DIR!$LUA_DIR$ac_delim
50390 PBX_LUA!$PBX_LUA$ac_delim
50391 MISDN_LIB!$MISDN_LIB$ac_delim
50392 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
50393 MISDN_DIR!$MISDN_DIR$ac_delim
50394 PBX_MISDN!$PBX_MISDN$ac_delim
50395 NBS_LIB!$NBS_LIB$ac_delim
50396 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
50397 NBS_DIR!$NBS_DIR$ac_delim
50398 PBX_NBS!$PBX_NBS$ac_delim
50399 NCURSES_LIB!$NCURSES_LIB$ac_delim
50400 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
50401 NCURSES_DIR!$NCURSES_DIR$ac_delim
50402 PBX_NCURSES!$PBX_NCURSES$ac_delim
50403 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
50404 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
50405 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
50406 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
50407 NEWT_LIB!$NEWT_LIB$ac_delim
50408 _ACEOF
50410 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50411 break
50412 elif $ac_last_try; then
50413 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50414 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50415 { (exit 1); exit 1; }; }
50416 else
50417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50419 done
50421 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50422 if test -n "$ac_eof"; then
50423 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50424 ac_eof=`expr $ac_eof + 1`
50427 cat >>$CONFIG_STATUS <<_ACEOF
50428 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50430 _ACEOF
50431 sed '
50432 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50433 s/^/s,@/; s/!/@,|#_!!_#|/
50436 s/'"$ac_delim"'$/,g/; t
50437 s/$/\\/; p
50438 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50439 ' >>$CONFIG_STATUS <conf$$subs.sed
50440 rm -f conf$$subs.sed
50441 cat >>$CONFIG_STATUS <<_ACEOF
50442 CEOF$ac_eof
50443 _ACEOF
50446 ac_delim='%!_!# '
50447 for ac_last_try in false false false false false :; do
50448 cat >conf$$subs.sed <<_ACEOF
50449 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
50450 NEWT_DIR!$NEWT_DIR$ac_delim
50451 PBX_NEWT!$PBX_NEWT$ac_delim
50452 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
50453 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
50454 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
50455 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
50456 OGG_LIB!$OGG_LIB$ac_delim
50457 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
50458 OGG_DIR!$OGG_DIR$ac_delim
50459 PBX_OGG!$PBX_OGG$ac_delim
50460 OSPTK_LIB!$OSPTK_LIB$ac_delim
50461 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
50462 OSPTK_DIR!$OSPTK_DIR$ac_delim
50463 PBX_OSPTK!$PBX_OSPTK$ac_delim
50464 OSS_LIB!$OSS_LIB$ac_delim
50465 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
50466 OSS_DIR!$OSS_DIR$ac_delim
50467 PBX_OSS!$PBX_OSS$ac_delim
50468 PGSQL_LIB!$PGSQL_LIB$ac_delim
50469 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
50470 PGSQL_DIR!$PGSQL_DIR$ac_delim
50471 PBX_PGSQL!$PBX_PGSQL$ac_delim
50472 POPT_LIB!$POPT_LIB$ac_delim
50473 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
50474 POPT_DIR!$POPT_DIR$ac_delim
50475 PBX_POPT!$PBX_POPT$ac_delim
50476 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
50477 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
50478 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
50479 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
50480 PRI_LIB!$PRI_LIB$ac_delim
50481 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
50482 PRI_DIR!$PRI_DIR$ac_delim
50483 PBX_PRI!$PBX_PRI$ac_delim
50484 SS7_LIB!$SS7_LIB$ac_delim
50485 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
50486 SS7_DIR!$SS7_DIR$ac_delim
50487 PBX_SS7!$PBX_SS7$ac_delim
50488 PWLIB_LIB!$PWLIB_LIB$ac_delim
50489 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
50490 PWLIB_DIR!$PWLIB_DIR$ac_delim
50491 PBX_PWLIB!$PBX_PWLIB$ac_delim
50492 OPENH323_LIB!$OPENH323_LIB$ac_delim
50493 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
50494 OPENH323_DIR!$OPENH323_DIR$ac_delim
50495 PBX_OPENH323!$PBX_OPENH323$ac_delim
50496 RADIUS_LIB!$RADIUS_LIB$ac_delim
50497 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
50498 RADIUS_DIR!$RADIUS_DIR$ac_delim
50499 PBX_RADIUS!$PBX_RADIUS$ac_delim
50500 SDL_LIB!$SDL_LIB$ac_delim
50501 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
50502 SDL_DIR!$SDL_DIR$ac_delim
50503 PBX_SDL!$PBX_SDL$ac_delim
50504 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
50505 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
50506 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
50507 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
50508 SPEEX_LIB!$SPEEX_LIB$ac_delim
50509 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
50510 SPEEX_DIR!$SPEEX_DIR$ac_delim
50511 PBX_SPEEX!$PBX_SPEEX$ac_delim
50512 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
50513 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
50514 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
50515 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
50516 SQLITE_LIB!$SQLITE_LIB$ac_delim
50517 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
50518 SQLITE_DIR!$SQLITE_DIR$ac_delim
50519 PBX_SQLITE!$PBX_SQLITE$ac_delim
50520 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
50521 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
50522 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
50523 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
50524 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
50525 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
50526 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
50527 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
50528 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
50529 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
50530 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
50531 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
50532 FREETDS_LIB!$FREETDS_LIB$ac_delim
50533 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
50534 FREETDS_DIR!$FREETDS_DIR$ac_delim
50535 PBX_FREETDS!$PBX_FREETDS$ac_delim
50536 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
50537 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
50538 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
50539 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
50540 TINFO_LIB!$TINFO_LIB$ac_delim
50541 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
50542 TINFO_DIR!$TINFO_DIR$ac_delim
50543 PBX_TINFO!$PBX_TINFO$ac_delim
50544 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
50545 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
50546 _ACEOF
50548 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50549 break
50550 elif $ac_last_try; then
50551 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50552 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50553 { (exit 1); exit 1; }; }
50554 else
50555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50557 done
50559 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50560 if test -n "$ac_eof"; then
50561 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50562 ac_eof=`expr $ac_eof + 1`
50565 cat >>$CONFIG_STATUS <<_ACEOF
50566 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
50567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50568 _ACEOF
50569 sed '
50570 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50571 s/^/s,@/; s/!/@,|#_!!_#|/
50574 s/'"$ac_delim"'$/,g/; t
50575 s/$/\\/; p
50576 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50577 ' >>$CONFIG_STATUS <conf$$subs.sed
50578 rm -f conf$$subs.sed
50579 cat >>$CONFIG_STATUS <<_ACEOF
50580 CEOF$ac_eof
50581 _ACEOF
50584 ac_delim='%!_!# '
50585 for ac_last_try in false false false false false :; do
50586 cat >conf$$subs.sed <<_ACEOF
50587 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
50588 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
50589 USB_LIB!$USB_LIB$ac_delim
50590 USB_INCLUDE!$USB_INCLUDE$ac_delim
50591 USB_DIR!$USB_DIR$ac_delim
50592 PBX_USB!$PBX_USB$ac_delim
50593 VORBIS_LIB!$VORBIS_LIB$ac_delim
50594 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
50595 VORBIS_DIR!$VORBIS_DIR$ac_delim
50596 PBX_VORBIS!$PBX_VORBIS$ac_delim
50597 VPB_LIB!$VPB_LIB$ac_delim
50598 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
50599 VPB_DIR!$VPB_DIR$ac_delim
50600 PBX_VPB!$PBX_VPB$ac_delim
50601 X11_LIB!$X11_LIB$ac_delim
50602 X11_INCLUDE!$X11_INCLUDE$ac_delim
50603 X11_DIR!$X11_DIR$ac_delim
50604 PBX_X11!$PBX_X11$ac_delim
50605 ZLIB_LIB!$ZLIB_LIB$ac_delim
50606 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
50607 ZLIB_DIR!$ZLIB_DIR$ac_delim
50608 PBX_ZLIB!$PBX_ZLIB$ac_delim
50609 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
50610 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
50611 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
50612 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
50613 ALLOCA!$ALLOCA$ac_delim
50614 LIBOBJS!$LIBOBJS$ac_delim
50615 POW_LIB!$POW_LIB$ac_delim
50616 HAS_POLL!$HAS_POLL$ac_delim
50617 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
50618 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
50619 GC_CFLAGS!$GC_CFLAGS$ac_delim
50620 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
50621 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
50622 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
50623 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
50624 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
50625 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
50626 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
50627 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
50628 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
50629 PG_CONFIG!$PG_CONFIG$ac_delim
50630 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
50631 PWLIBDIR!$PWLIBDIR$ac_delim
50632 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
50633 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
50634 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
50635 OPENH323DIR!$OPENH323DIR$ac_delim
50636 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
50637 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
50638 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
50639 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
50640 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
50641 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
50642 PBX_ZAPTEL_ECHOCANPARAMS!$PBX_ZAPTEL_ECHOCANPARAMS$ac_delim
50643 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
50644 PBX_ZAPTEL_HWGAIN!$PBX_ZAPTEL_HWGAIN$ac_delim
50645 PBX_ZAPTEL_NEONMWI!$PBX_ZAPTEL_NEONMWI$ac_delim
50646 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
50647 PBX_H323!$PBX_H323$ac_delim
50648 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
50649 CONFIG_SDL!$CONFIG_SDL$ac_delim
50650 CONFIG_GTK!$CONFIG_GTK$ac_delim
50651 PKGCONFIG!$PKGCONFIG$ac_delim
50652 CURL_CONFIG!$CURL_CONFIG$ac_delim
50653 LTLIBOBJS!$LTLIBOBJS$ac_delim
50654 _ACEOF
50656 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
50657 break
50658 elif $ac_last_try; then
50659 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50660 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50661 { (exit 1); exit 1; }; }
50662 else
50663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50665 done
50667 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50668 if test -n "$ac_eof"; then
50669 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50670 ac_eof=`expr $ac_eof + 1`
50673 cat >>$CONFIG_STATUS <<_ACEOF
50674 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
50675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
50676 _ACEOF
50677 sed '
50678 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50679 s/^/s,@/; s/!/@,|#_!!_#|/
50682 s/'"$ac_delim"'$/,g/; t
50683 s/$/\\/; p
50684 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50685 ' >>$CONFIG_STATUS <conf$$subs.sed
50686 rm -f conf$$subs.sed
50687 cat >>$CONFIG_STATUS <<_ACEOF
50688 :end
50689 s/|#_!!_#|//g
50690 CEOF$ac_eof
50691 _ACEOF
50694 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50695 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50696 # trailing colons and then remove the whole line if VPATH becomes empty
50697 # (actually we leave an empty line to preserve line numbers).
50698 if test "x$srcdir" = x.; then
50699 ac_vpsub='/^[ ]*VPATH[ ]*=/{
50700 s/:*\$(srcdir):*/:/
50701 s/:*\${srcdir}:*/:/
50702 s/:*@srcdir@:*/:/
50703 s/^\([^=]*=[ ]*\):*/\1/
50704 s/:*$//
50705 s/^[^=]*=[ ]*$//
50709 cat >>$CONFIG_STATUS <<\_ACEOF
50710 fi # test -n "$CONFIG_FILES"
50713 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
50715 case $ac_tag in
50716 :[FHLC]) ac_mode=$ac_tag; continue;;
50717 esac
50718 case $ac_mode$ac_tag in
50719 :[FHL]*:*);;
50720 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
50721 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
50722 { (exit 1); exit 1; }; };;
50723 :[FH]-) ac_tag=-:-;;
50724 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
50725 esac
50726 ac_save_IFS=$IFS
50727 IFS=:
50728 set x $ac_tag
50729 IFS=$ac_save_IFS
50730 shift
50731 ac_file=$1
50732 shift
50734 case $ac_mode in
50735 :L) ac_source=$1;;
50736 :[FH])
50737 ac_file_inputs=
50738 for ac_f
50740 case $ac_f in
50741 -) ac_f="$tmp/stdin";;
50742 *) # Look for the file first in the build tree, then in the source tree
50743 # (if the path is not absolute). The absolute path cannot be DOS-style,
50744 # because $ac_f cannot contain `:'.
50745 test -f "$ac_f" ||
50746 case $ac_f in
50747 [\\/$]*) false;;
50748 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
50749 esac ||
50750 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
50751 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
50752 { (exit 1); exit 1; }; };;
50753 esac
50754 ac_file_inputs="$ac_file_inputs $ac_f"
50755 done
50757 # Let's still pretend it is `configure' which instantiates (i.e., don't
50758 # use $as_me), people would be surprised to read:
50759 # /* config.h. Generated by config.status. */
50760 configure_input="Generated from "`IFS=:
50761 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
50762 if test x"$ac_file" != x-; then
50763 configure_input="$ac_file. $configure_input"
50764 { echo "$as_me:$LINENO: creating $ac_file" >&5
50765 echo "$as_me: creating $ac_file" >&6;}
50768 case $ac_tag in
50769 *:-:* | *:-) cat >"$tmp/stdin";;
50770 esac
50772 esac
50774 ac_dir=`$as_dirname -- "$ac_file" ||
50775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50776 X"$ac_file" : 'X\(//\)[^/]' \| \
50777 X"$ac_file" : 'X\(//\)$' \| \
50778 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
50779 echo X"$ac_file" |
50780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50781 s//\1/
50784 /^X\(\/\/\)[^/].*/{
50785 s//\1/
50788 /^X\(\/\/\)$/{
50789 s//\1/
50792 /^X\(\/\).*/{
50793 s//\1/
50796 s/.*/./; q'`
50797 { as_dir="$ac_dir"
50798 case $as_dir in #(
50799 -*) as_dir=./$as_dir;;
50800 esac
50801 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50802 as_dirs=
50803 while :; do
50804 case $as_dir in #(
50805 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
50806 *) as_qdir=$as_dir;;
50807 esac
50808 as_dirs="'$as_qdir' $as_dirs"
50809 as_dir=`$as_dirname -- "$as_dir" ||
50810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50811 X"$as_dir" : 'X\(//\)[^/]' \| \
50812 X"$as_dir" : 'X\(//\)$' \| \
50813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50814 echo X"$as_dir" |
50815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50816 s//\1/
50819 /^X\(\/\/\)[^/].*/{
50820 s//\1/
50823 /^X\(\/\/\)$/{
50824 s//\1/
50827 /^X\(\/\).*/{
50828 s//\1/
50831 s/.*/./; q'`
50832 test -d "$as_dir" && break
50833 done
50834 test -z "$as_dirs" || eval "mkdir $as_dirs"
50835 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50836 echo "$as_me: error: cannot create directory $as_dir" >&2;}
50837 { (exit 1); exit 1; }; }; }
50838 ac_builddir=.
50840 case "$ac_dir" in
50841 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
50843 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50844 # A ".." for each directory in $ac_dir_suffix.
50845 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
50846 case $ac_top_builddir_sub in
50847 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
50848 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
50849 esac ;;
50850 esac
50851 ac_abs_top_builddir=$ac_pwd
50852 ac_abs_builddir=$ac_pwd$ac_dir_suffix
50853 # for backward compatibility:
50854 ac_top_builddir=$ac_top_build_prefix
50856 case $srcdir in
50857 .) # We are building in place.
50858 ac_srcdir=.
50859 ac_top_srcdir=$ac_top_builddir_sub
50860 ac_abs_top_srcdir=$ac_pwd ;;
50861 [\\/]* | ?:[\\/]* ) # Absolute name.
50862 ac_srcdir=$srcdir$ac_dir_suffix;
50863 ac_top_srcdir=$srcdir
50864 ac_abs_top_srcdir=$srcdir ;;
50865 *) # Relative name.
50866 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
50867 ac_top_srcdir=$ac_top_build_prefix$srcdir
50868 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
50869 esac
50870 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
50873 case $ac_mode in
50876 # CONFIG_FILE
50879 case $INSTALL in
50880 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50881 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50882 esac
50883 _ACEOF
50885 cat >>$CONFIG_STATUS <<\_ACEOF
50886 # If the template does not know about datarootdir, expand it.
50887 # FIXME: This hack should be removed a few years after 2.60.
50888 ac_datarootdir_hack=; ac_datarootdir_seen=
50890 case `sed -n '/datarootdir/ {
50894 /@datadir@/p
50895 /@docdir@/p
50896 /@infodir@/p
50897 /@localedir@/p
50898 /@mandir@/p
50899 ' $ac_file_inputs` in
50900 *datarootdir*) ac_datarootdir_seen=yes;;
50901 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
50902 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
50903 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50904 _ACEOF
50905 cat >>$CONFIG_STATUS <<_ACEOF
50906 ac_datarootdir_hack='
50907 s&@datadir@&$datadir&g
50908 s&@docdir@&$docdir&g
50909 s&@infodir@&$infodir&g
50910 s&@localedir@&$localedir&g
50911 s&@mandir@&$mandir&g
50912 s&\\\${datarootdir}&$datarootdir&g' ;;
50913 esac
50914 _ACEOF
50916 # Neutralize VPATH when `$srcdir' = `.'.
50917 # Shell code in configure.ac might set extrasub.
50918 # FIXME: do we really want to maintain this feature?
50919 cat >>$CONFIG_STATUS <<_ACEOF
50920 sed "$ac_vpsub
50921 $extrasub
50922 _ACEOF
50923 cat >>$CONFIG_STATUS <<\_ACEOF
50925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50926 s&@configure_input@&$configure_input&;t t
50927 s&@top_builddir@&$ac_top_builddir_sub&;t t
50928 s&@srcdir@&$ac_srcdir&;t t
50929 s&@abs_srcdir@&$ac_abs_srcdir&;t t
50930 s&@top_srcdir@&$ac_top_srcdir&;t t
50931 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50932 s&@builddir@&$ac_builddir&;t t
50933 s&@abs_builddir@&$ac_abs_builddir&;t t
50934 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50935 s&@INSTALL@&$ac_INSTALL&;t t
50936 $ac_datarootdir_hack
50937 " $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
50939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
50940 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
50941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
50942 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50943 which seems to be undefined. Please make sure it is defined." >&5
50944 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50945 which seems to be undefined. Please make sure it is defined." >&2;}
50947 rm -f "$tmp/stdin"
50948 case $ac_file in
50949 -) cat "$tmp/out"; rm -f "$tmp/out";;
50950 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
50951 esac
50955 # CONFIG_HEADER
50957 _ACEOF
50959 # Transform confdefs.h into a sed script `conftest.defines', that
50960 # substitutes the proper values into config.h.in to produce config.h.
50961 rm -f conftest.defines conftest.tail
50962 # First, append a space to every undef/define line, to ease matching.
50963 echo 's/$/ /' >conftest.defines
50964 # Then, protect against being on the right side of a sed subst, or in
50965 # an unquoted here document, in config.status. If some macros were
50966 # called several times there might be several #defines for the same
50967 # symbol, which is useless. But do not sort them, since the last
50968 # AC_DEFINE must be honored.
50969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
50970 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
50971 # NAME is the cpp macro being defined, VALUE is the value it is being given.
50972 # PARAMS is the parameter list in the macro definition--in most cases, it's
50973 # just an empty string.
50974 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
50975 ac_dB='\\)[ (].*,\\1define\\2'
50976 ac_dC=' '
50977 ac_dD=' ,'
50979 uniq confdefs.h |
50980 sed -n '
50981 t rset
50982 :rset
50983 s/^[ ]*#[ ]*define[ ][ ]*//
50984 t ok
50987 s/[\\&,]/\\&/g
50988 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
50989 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
50990 ' >>conftest.defines
50992 # Remove the space that was appended to ease matching.
50993 # Then replace #undef with comments. This is necessary, for
50994 # example, in the case of _POSIX_SOURCE, which is predefined and required
50995 # on some systems where configure will not decide to define it.
50996 # (The regexp can be short, since the line contains either #define or #undef.)
50997 echo 's/ $//
50998 s,^[ #]*u.*,/* & */,' >>conftest.defines
51000 # Break up conftest.defines:
51001 ac_max_sed_lines=50
51003 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
51004 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
51005 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
51006 # et cetera.
51007 ac_in='$ac_file_inputs'
51008 ac_out='"$tmp/out1"'
51009 ac_nxt='"$tmp/out2"'
51011 while :
51013 # Write a here document:
51014 cat >>$CONFIG_STATUS <<_ACEOF
51015 # First, check the format of the line:
51016 cat >"\$tmp/defines.sed" <<\\CEOF
51017 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
51018 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
51020 :def
51021 _ACEOF
51022 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
51023 echo 'CEOF
51024 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
51025 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
51026 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
51027 grep . conftest.tail >/dev/null || break
51028 rm -f conftest.defines
51029 mv conftest.tail conftest.defines
51030 done
51031 rm -f conftest.defines conftest.tail
51033 echo "ac_result=$ac_in" >>$CONFIG_STATUS
51034 cat >>$CONFIG_STATUS <<\_ACEOF
51035 if test x"$ac_file" != x-; then
51036 echo "/* $configure_input */" >"$tmp/config.h"
51037 cat "$ac_result" >>"$tmp/config.h"
51038 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
51039 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51040 echo "$as_me: $ac_file is unchanged" >&6;}
51041 else
51042 rm -f $ac_file
51043 mv "$tmp/config.h" $ac_file
51045 else
51046 echo "/* $configure_input */"
51047 cat "$ac_result"
51049 rm -f "$tmp/out12"
51053 esac
51055 done # for ac_tag
51058 { (exit 0); exit 0; }
51059 _ACEOF
51060 chmod +x $CONFIG_STATUS
51061 ac_clean_files=$ac_clean_files_save
51064 # configure is writing to config.log, and then calls config.status.
51065 # config.status does its own redirection, appending to config.log.
51066 # Unfortunately, on DOS this fails, as config.log is still kept open
51067 # by configure, so config.status won't be able to write to it; its
51068 # output is simply discarded. So we exec the FD to /dev/null,
51069 # effectively closing config.log, so it can be properly (re)opened and
51070 # appended to by config.status. When coming back to configure, we
51071 # need to make the FD available again.
51072 if test "$no_create" != yes; then
51073 ac_cs_success=:
51074 ac_config_status_args=
51075 test "$silent" = yes &&
51076 ac_config_status_args="$ac_config_status_args --quiet"
51077 exec 5>/dev/null
51078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51079 exec 5>>config.log
51080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51081 # would make configure fail if this is the last instruction.
51082 $ac_cs_success || { (exit 1); exit 1; }
51086 if test "x${silent}" != "xyes" ; then
51087 echo
51088 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
51089 echo " .\$7\$7.. .7\$\$7:. "
51090 echo " .\$\$:. ,\$7.7 "
51091 echo " .\$7. 7\$\$\$\$ .\$\$77 "
51092 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
51093 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
51094 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
51095 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
51096 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
51097 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
51098 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
51099 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
51100 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
51101 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
51102 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
51103 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
51104 echo " \$\$\$\$\$ \$\$\$ "
51105 echo " \$\$\$\$7. \$\$ (TM) "
51106 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
51107 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
51108 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
51109 echo
51112 { echo "$as_me:$LINENO: Package configured for: " >&5
51113 echo "$as_me: Package configured for: " >&6;}
51114 { echo "$as_me:$LINENO: OS type : $host_os" >&5
51115 echo "$as_me: OS type : $host_os" >&6;}
51116 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
51117 echo "$as_me: Host CPU : $host_cpu" >&6;}
51118 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
51119 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
51120 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
51121 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
51122 if test "${cross_compiling}" = "yes"; then
51123 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
51124 echo "$as_me: Cross Compilation = YES" >&6;}