Update typos in description fields
[asterisk-bristuff.git] / configure
blobbb34932c5b9b5a7feaff9710b96e729b1162e6ba
1 #! /bin/sh
2 # From configure.ac Revision: 115328 .
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 PBX_SPEEX_PREPROCESS
967 CONFIG_GMIME
968 PBX_ZAPTEL_VLDTMF
969 PBX_ZAPTEL_ECHOCANPARAMS
970 PBX_ZAPTEL_TRANSCODE
971 PBX_ZAPTEL_HWGAIN
972 PBX_ZAPTEL_NEONMWI
973 EDITLINE_LIB
974 PBX_H323
975 PBX_IXJUSER
976 CONFIG_SDL
977 CONFIG_GTK
978 PKGCONFIG
979 CURL_CONFIG
980 LTLIBOBJS'
981 ac_subst_files=''
982 ac_precious_vars='build_alias
983 host_alias
984 target_alias
986 CFLAGS
987 LDFLAGS
988 LIBS
989 CPPFLAGS
992 CXXFLAGS
994 CXXCPP'
997 # Initialize some variables set by options.
998 ac_init_help=
999 ac_init_version=false
1000 # The variables have the same names as the options, with
1001 # dashes changed to underlines.
1002 cache_file=/dev/null
1003 exec_prefix=NONE
1004 no_create=
1005 no_recursion=
1006 prefix=NONE
1007 program_prefix=NONE
1008 program_suffix=NONE
1009 program_transform_name=s,x,x,
1010 silent=
1011 site=
1012 srcdir=
1013 verbose=
1014 x_includes=NONE
1015 x_libraries=NONE
1017 # Installation directory options.
1018 # These are left unexpanded so users can "make install exec_prefix=/foo"
1019 # and all the variables that are supposed to be based on exec_prefix
1020 # by default will actually change.
1021 # Use braces instead of parens because sh, perl, etc. also accept them.
1022 # (The list follows the same order as the GNU Coding Standards.)
1023 bindir='${exec_prefix}/bin'
1024 sbindir='${exec_prefix}/sbin'
1025 libexecdir='${exec_prefix}/libexec'
1026 datarootdir='${prefix}/share'
1027 datadir='${datarootdir}'
1028 sysconfdir='${prefix}/etc'
1029 sharedstatedir='${prefix}/com'
1030 localstatedir='${prefix}/var'
1031 includedir='${prefix}/include'
1032 oldincludedir='/usr/include'
1033 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1034 infodir='${datarootdir}/info'
1035 htmldir='${docdir}'
1036 dvidir='${docdir}'
1037 pdfdir='${docdir}'
1038 psdir='${docdir}'
1039 libdir='${exec_prefix}/lib'
1040 localedir='${datarootdir}/locale'
1041 mandir='${datarootdir}/man'
1043 ac_prev=
1044 ac_dashdash=
1045 for ac_option
1047 # If the previous option needs an argument, assign it.
1048 if test -n "$ac_prev"; then
1049 eval $ac_prev=\$ac_option
1050 ac_prev=
1051 continue
1054 case $ac_option in
1055 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1056 *) ac_optarg=yes ;;
1057 esac
1059 # Accept the important Cygnus configure options, so we can diagnose typos.
1061 case $ac_dashdash$ac_option in
1063 ac_dashdash=yes ;;
1065 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066 ac_prev=bindir ;;
1067 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068 bindir=$ac_optarg ;;
1070 -build | --build | --buil | --bui | --bu)
1071 ac_prev=build_alias ;;
1072 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073 build_alias=$ac_optarg ;;
1075 -cache-file | --cache-file | --cache-fil | --cache-fi \
1076 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077 ac_prev=cache_file ;;
1078 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080 cache_file=$ac_optarg ;;
1082 --config-cache | -C)
1083 cache_file=config.cache ;;
1085 -datadir | --datadir | --datadi | --datad)
1086 ac_prev=datadir ;;
1087 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088 datadir=$ac_optarg ;;
1090 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091 | --dataroo | --dataro | --datar)
1092 ac_prev=datarootdir ;;
1093 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095 datarootdir=$ac_optarg ;;
1097 -disable-* | --disable-*)
1098 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1104 eval enable_$ac_feature=no ;;
1106 -docdir | --docdir | --docdi | --doc | --do)
1107 ac_prev=docdir ;;
1108 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1109 docdir=$ac_optarg ;;
1111 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112 ac_prev=dvidir ;;
1113 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1114 dvidir=$ac_optarg ;;
1116 -enable-* | --enable-*)
1117 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1121 { (exit 1); exit 1; }; }
1122 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1123 eval enable_$ac_feature=\$ac_optarg ;;
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1136 with_gas=yes ;;
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151 ac_prev=htmldir ;;
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153 | --ht=*)
1154 htmldir=$ac_optarg ;;
1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1164 ac_prev=infodir ;;
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1168 -libdir | --libdir | --libdi | --libd)
1169 ac_prev=libdir ;;
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
1186 | --localstate | --localstat | --localsta | --localst | --locals)
1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190 localstatedir=$ac_optarg ;;
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193 ac_prev=mandir ;;
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1199 with_fp=no ;;
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1203 no_create=yes ;;
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207 no_recursion=yes ;;
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219 ac_prev=prefix ;;
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255 ac_prev=pdfdir ;;
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1259 -psdir | --psdir | --psdi | --psd | --ps)
1260 ac_prev=psdir ;;
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262 psdir=$ac_optarg ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 silent=yes ;;
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 ac_prev=sbindir ;;
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 | --sbi=* | --sb=*)
1272 sbindir=$ac_optarg ;;
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1277 | --sha | --sh)
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 | --sha=* | --sh=*)
1283 sharedstatedir=$ac_optarg ;;
1285 -site | --site | --sit)
1286 ac_prev=site ;;
1287 -site=* | --site=* | --sit=*)
1288 site=$ac_optarg ;;
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 ac_prev=srcdir ;;
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308 verbose=yes ;;
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1313 -with-* | --with-*)
1314 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 { echo "$as_me: error: invalid package name: $ac_package" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1320 eval with_$ac_package=\$ac_optarg ;;
1322 -without-* | --without-*)
1323 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid package name: $ac_package" >&2
1327 { (exit 1); exit 1; }; }
1328 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1329 eval with_$ac_package=no ;;
1331 --x)
1332 # Obsolete; use --with-x.
1333 with_x=yes ;;
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336 | --x-incl | --x-inc | --x-in | --x-i)
1337 ac_prev=x_includes ;;
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340 x_includes=$ac_optarg ;;
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344 ac_prev=x_libraries ;;
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347 x_libraries=$ac_optarg ;;
1349 -*) { echo "$as_me: error: unrecognized option: $ac_option
1350 Try \`$0 --help' for more information." >&2
1351 { (exit 1); exit 1; }; }
1354 *=*)
1355 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1358 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1359 { (exit 1); exit 1; }; }
1360 eval $ac_envvar=\$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371 esac
1372 done
1374 if test -n "$ac_prev"; then
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376 { echo "$as_me: error: missing argument to $ac_option" >&2
1377 { (exit 1); exit 1; }; }
1380 # Be sure to have absolute directory names.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val=\$$ac_var
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1392 { (exit 1); exit 1; }; }
1393 done
1395 # There might be people who depend on the old broken behavior: `$host'
1396 # used to hold the argument of --host etc.
1397 # FIXME: To remove some day.
1398 build=$build_alias
1399 host=$host_alias
1400 target=$target_alias
1402 # FIXME: To remove some day.
1403 if test "x$host_alias" != x; then
1404 if test "x$build_alias" = x; then
1405 cross_compiling=maybe
1406 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1407 If a cross compiler is detected then cross compile mode will be used." >&2
1408 elif test "x$build_alias" != "x$host_alias"; then
1409 cross_compiling=yes
1413 ac_tool_prefix=
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416 test "$silent" = yes && exec 6>/dev/null
1419 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420 ac_ls_di=`ls -di .` &&
1421 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422 { echo "$as_me: error: Working directory cannot be determined" >&2
1423 { (exit 1); exit 1; }; }
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 { echo "$as_me: error: pwd does not report name of working directory" >&2
1426 { (exit 1); exit 1; }; }
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431 ac_srcdir_defaulted=yes
1432 # Try the directory containing this script, then the parent directory.
1433 ac_confdir=`$as_dirname -- "$0" ||
1434 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435 X"$0" : 'X\(//\)[^/]' \| \
1436 X"$0" : 'X\(//\)$' \| \
1437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1438 echo X"$0" |
1439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 s//\1/
1443 /^X\(\/\/\)[^/].*/{
1444 s//\1/
1447 /^X\(\/\/\)$/{
1448 s//\1/
1451 /^X\(\/\).*/{
1452 s//\1/
1455 s/.*/./; q'`
1456 srcdir=$ac_confdir
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 srcdir=..
1460 else
1461 ac_srcdir_defaulted=no
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1465 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1466 { (exit 1); exit 1; }; }
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1471 { (exit 1); exit 1; }; }
1472 pwd)`
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1480 case $srcdir in
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 esac
1483 for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 done
1491 # Report the --help message.
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
1497 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1504 Defaults for the options are specified in brackets.
1506 Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1528 For better control, use the options below.
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550 _ACEOF
1552 cat <<\_ACEOF
1554 System types:
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1560 if test -n "$ac_init_help"; then
1561 case $ac_init_help in
1562 short | recursive ) echo "Configuration of asterisk 1.6:";;
1563 esac
1564 cat <<\_ACEOF
1566 Optional Features:
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --enable-dev-mode Turn on developer mode
1570 --disable-largefile omit support for large files
1572 Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1577 --with-execinfo=PATH use Stack Backtrace support files in PATH
1578 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1579 --with-curl=PATH use cURL files in PATH
1580 --with-curses=PATH use curses files in PATH
1581 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1582 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1583 --with-gsm=PATH use External GSM library files in PATH , use
1584 'internal' GSM otherwise
1585 --with-gtk=PATH use gtk libraries files in PATH
1586 --with-gtk2=PATH use gtk2 libraries files in PATH
1587 --with-gmime=PATH use GMime library files in PATH
1588 --with-iconv=PATH use Iconv Library files in PATH
1589 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1590 --with-imap=PATH use UW IMAP Toolkit files in PATH
1591 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1592 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1593 --with-ldap=PATH use OpenLDAP files in PATH
1594 --with-ltdl=PATH use libtool files in PATH
1595 --with-lua=PATH use Lua files in PATH
1596 --with-misdn=PATH use mISDN User Library files in PATH
1597 --with-nbs=PATH use Network Broadcast Sound files in PATH
1598 --with-ncurses=PATH use ncurses files in PATH
1599 --with-netsnmp=PATH use Net-SNMP files in PATH
1600 --with-newt=PATH use newt files in PATH
1601 --with-odbc=PATH use unixODBC files in PATH
1602 --with-ogg=PATH use OGG files in PATH
1603 --with-osptk=PATH use OSP Toolkit files in PATH
1604 --with-oss=PATH use Open Sound System files in PATH
1605 --with-postgres=PATH use PostgreSQL files in PATH
1606 --with-popt=PATH use popt files in PATH
1607 --with-portaudio=PATH use PortAudio files in PATH
1608 --with-pri=PATH use ISDN PRI files in PATH
1609 --with-ss7=PATH use ISDN SS7 files in PATH
1610 --with-pwlib=PATH use PWlib files in PATH
1611 --with-h323=PATH use OpenH323 files in PATH
1612 --with-radius=PATH use Radius Client files in PATH
1613 --with-sdl=PATH use Sdl files in PATH
1614 --with-SDL_image=PATH use Sdl Image library files in PATH
1615 --with-speex=PATH use Speex files in PATH
1616 --with-speexdsp=PATH use Speexdsp files in PATH
1617 --with-sqlite=PATH use SQLite files in PATH
1618 --with-sqlite3=PATH use SQLite files in PATH
1619 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1620 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1621 PATH
1622 --with-tds=PATH use FreeTDS files in PATH
1623 --with-termcap=PATH use Termcap files in PATH
1624 --with-tinfo=PATH use Term Info files in PATH
1625 --with-tonezone=PATH use tonezone files in PATH
1626 --with-usb=PATH use usb files in PATH
1627 --with-vorbis=PATH use Vorbis files in PATH
1628 --with-vpb=PATH use Voicetronix API files in PATH
1629 --with-x11=PATH use X11 support files in PATH
1630 --with-z=PATH use zlib files in PATH
1631 --with-zaptel=PATH use Zaptel files in PATH
1633 Some influential environment variables:
1634 CC C compiler command
1635 CFLAGS C compiler flags
1636 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1637 nonstandard directory <lib dir>
1638 LIBS libraries to pass to the linker, e.g. -l<library>
1639 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1640 you have headers in a nonstandard directory <include dir>
1641 CPP C preprocessor
1642 CXX C++ compiler command
1643 CXXFLAGS C++ compiler flags
1644 CXXCPP C++ preprocessor
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1649 Report bugs to <www.asterisk.org>.
1650 _ACEOF
1651 ac_status=$?
1654 if test "$ac_init_help" = "recursive"; then
1655 # If there are subdirs, report their specific --help.
1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 test -d "$ac_dir" || continue
1658 ac_builddir=.
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1676 case $srcdir in
1677 .) # We are building in place.
1678 ac_srcdir=.
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1682 ac_srcdir=$srcdir$ac_dir_suffix;
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1700 else
1701 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1704 done
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709 cat <<\_ACEOF
1710 asterisk configure 1.6
1711 generated by GNU Autoconf 2.61
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1718 "Asterisk"
1719 _ACEOF
1720 exit
1722 cat >config.log <<_ACEOF
1723 This file contains any messages produced by compilers while
1724 running configure, to aid debugging if configure makes a mistake.
1726 It was created by asterisk $as_me 1.6, which was
1727 generated by GNU Autoconf 2.61. Invocation command line was
1729 $ $0 $@
1731 _ACEOF
1732 exec 5>>config.log
1734 cat <<_ASUNAME
1735 ## --------- ##
1736 ## Platform. ##
1737 ## --------- ##
1739 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1740 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1741 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1742 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1743 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1746 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1748 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1749 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1750 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1751 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1752 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1753 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1754 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1756 _ASUNAME
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 echo "PATH: $as_dir"
1764 done
1765 IFS=$as_save_IFS
1767 } >&5
1769 cat >&5 <<_ACEOF
1772 ## ----------- ##
1773 ## Core tests. ##
1774 ## ----------- ##
1776 _ACEOF
1779 # Keep a trace of the command line.
1780 # Strip out --no-create and --no-recursion so they do not pile up.
1781 # Strip out --silent because we don't want to record it for future runs.
1782 # Also quote any args containing shell meta-characters.
1783 # Make two passes to allow for proper duplicate-argument suppression.
1784 ac_configure_args=
1785 ac_configure_args0=
1786 ac_configure_args1=
1787 ac_must_keep_next=false
1788 for ac_pass in 1 2
1790 for ac_arg
1792 case $ac_arg in
1793 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1795 | -silent | --silent | --silen | --sile | --sil)
1796 continue ;;
1797 *\'*)
1798 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1799 esac
1800 case $ac_pass in
1801 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1804 if test $ac_must_keep_next = true; then
1805 ac_must_keep_next=false # Got value, back to normal.
1806 else
1807 case $ac_arg in
1808 *=* | --config-cache | -C | -disable-* | --disable-* \
1809 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1810 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1811 | -with-* | --with-* | -without-* | --without-* | --x)
1812 case "$ac_configure_args0 " in
1813 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1814 esac
1816 -* ) ac_must_keep_next=true ;;
1817 esac
1819 ac_configure_args="$ac_configure_args '$ac_arg'"
1821 esac
1822 done
1823 done
1824 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1825 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827 # When interrupted or exit'd, cleanup temporary files, and complete
1828 # config.log. We remove comments because anyway the quotes in there
1829 # would cause problems or look ugly.
1830 # WARNING: Use '\'' to represent an apostrophe within the trap.
1831 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1832 trap 'exit_status=$?
1833 # Save into config.log some information that might help in debugging.
1835 echo
1837 cat <<\_ASBOX
1838 ## ---------------- ##
1839 ## Cache variables. ##
1840 ## ---------------- ##
1841 _ASBOX
1842 echo
1843 # The following way of writing the cache mishandles newlines in values,
1845 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1846 eval ac_val=\$$ac_var
1847 case $ac_val in #(
1848 *${as_nl}*)
1849 case $ac_var in #(
1850 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1851 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1852 esac
1853 case $ac_var in #(
1854 _ | IFS | as_nl) ;; #(
1855 *) $as_unset $ac_var ;;
1856 esac ;;
1857 esac
1858 done
1859 (set) 2>&1 |
1860 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861 *${as_nl}ac_space=\ *)
1862 sed -n \
1863 "s/'\''/'\''\\\\'\'''\''/g;
1864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1865 ;; #(
1867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869 esac |
1870 sort
1872 echo
1874 cat <<\_ASBOX
1875 ## ----------------- ##
1876 ## Output variables. ##
1877 ## ----------------- ##
1878 _ASBOX
1879 echo
1880 for ac_var in $ac_subst_vars
1882 eval ac_val=\$$ac_var
1883 case $ac_val in
1884 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885 esac
1886 echo "$ac_var='\''$ac_val'\''"
1887 done | sort
1888 echo
1890 if test -n "$ac_subst_files"; then
1891 cat <<\_ASBOX
1892 ## ------------------- ##
1893 ## File substitutions. ##
1894 ## ------------------- ##
1895 _ASBOX
1896 echo
1897 for ac_var in $ac_subst_files
1899 eval ac_val=\$$ac_var
1900 case $ac_val in
1901 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 esac
1903 echo "$ac_var='\''$ac_val'\''"
1904 done | sort
1905 echo
1908 if test -s confdefs.h; then
1909 cat <<\_ASBOX
1910 ## ----------- ##
1911 ## confdefs.h. ##
1912 ## ----------- ##
1913 _ASBOX
1914 echo
1915 cat confdefs.h
1916 echo
1918 test "$ac_signal" != 0 &&
1919 echo "$as_me: caught signal $ac_signal"
1920 echo "$as_me: exit $exit_status"
1921 } >&5
1922 rm -f core *.core core.conftest.* &&
1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1924 exit $exit_status
1926 for ac_signal in 1 2 13 15; do
1927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1928 done
1929 ac_signal=0
1931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1932 rm -f -r conftest* confdefs.h
1934 # Predefined preprocessor variables.
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_NAME "$PACKAGE_NAME"
1938 _ACEOF
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1943 _ACEOF
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1948 _ACEOF
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_STRING "$PACKAGE_STRING"
1953 _ACEOF
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958 _ACEOF
1961 # Let the site file select an alternate cache file if it wants to.
1962 # Prefer explicitly selected file to automatically selected ones.
1963 if test -n "$CONFIG_SITE"; then
1964 set x "$CONFIG_SITE"
1965 elif test "x$prefix" != xNONE; then
1966 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1967 else
1968 set x "$ac_default_prefix/share/config.site" \
1969 "$ac_default_prefix/etc/config.site"
1971 shift
1972 for ac_site_file
1974 if test -r "$ac_site_file"; then
1975 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1976 echo "$as_me: loading site script $ac_site_file" >&6;}
1977 sed 's/^/| /' "$ac_site_file" >&5
1978 . "$ac_site_file"
1980 done
1982 if test -r "$cache_file"; then
1983 # Some versions of bash will fail to source /dev/null (special
1984 # files actually), so we avoid doing that.
1985 if test -f "$cache_file"; then
1986 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1987 echo "$as_me: loading cache $cache_file" >&6;}
1988 case $cache_file in
1989 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1990 *) . "./$cache_file";;
1991 esac
1993 else
1994 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1995 echo "$as_me: creating cache $cache_file" >&6;}
1996 >$cache_file
1999 ac_header_list="$ac_header_list utime.h"
2000 # Check that the precious variables saved in the cache have kept the same
2001 # value.
2002 ac_cache_corrupted=false
2003 for ac_var in $ac_precious_vars; do
2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
2008 case $ac_old_set,$ac_new_set in
2009 set,)
2010 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2013 ,set)
2014 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2015 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2017 ,);;
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
2020 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2021 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2022 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2023 echo "$as_me: former value: $ac_old_val" >&2;}
2024 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2025 echo "$as_me: current value: $ac_new_val" >&2;}
2026 ac_cache_corrupted=:
2027 fi;;
2028 esac
2029 # Pass precious variables to config.status.
2030 if test "$ac_new_set" = set; then
2031 case $ac_new_val in
2032 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 *) ac_arg=$ac_var=$ac_new_val ;;
2034 esac
2035 case " $ac_configure_args " in
2036 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2037 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2038 esac
2040 done
2041 if $ac_cache_corrupted; then
2042 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2043 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2044 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2045 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2046 { (exit 1); exit 1; }; }
2073 ac_ext=c
2074 ac_cpp='$CPP $CPPFLAGS'
2075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 # cross-compile macros
2082 ac_aux_dir=
2083 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2084 if test -f "$ac_dir/install-sh"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2087 break
2088 elif test -f "$ac_dir/install.sh"; then
2089 ac_aux_dir=$ac_dir
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2091 break
2092 elif test -f "$ac_dir/shtool"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2095 break
2097 done
2098 if test -z "$ac_aux_dir"; then
2099 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2101 { (exit 1); exit 1; }; }
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113 # Make sure we can run config.sub.
2114 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2115 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2116 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2117 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: checking build system type" >&5
2120 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2121 if test "${ac_cv_build+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 ac_build_alias=$build_alias
2125 test "x$ac_build_alias" = x &&
2126 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2127 test "x$ac_build_alias" = x &&
2128 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2129 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2130 { (exit 1); exit 1; }; }
2131 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2132 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2133 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2134 { (exit 1); exit 1; }; }
2137 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2138 echo "${ECHO_T}$ac_cv_build" >&6; }
2139 case $ac_cv_build in
2140 *-*-*) ;;
2141 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2142 echo "$as_me: error: invalid value of canonical build" >&2;}
2143 { (exit 1); exit 1; }; };;
2144 esac
2145 build=$ac_cv_build
2146 ac_save_IFS=$IFS; IFS='-'
2147 set x $ac_cv_build
2148 shift
2149 build_cpu=$1
2150 build_vendor=$2
2151 shift; shift
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2154 build_os=$*
2155 IFS=$ac_save_IFS
2156 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159 { echo "$as_me:$LINENO: checking host system type" >&5
2160 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2161 if test "${ac_cv_host+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test "x$host_alias" = x; then
2165 ac_cv_host=$ac_cv_build
2166 else
2167 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2168 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2169 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2170 { (exit 1); exit 1; }; }
2174 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2175 echo "${ECHO_T}$ac_cv_host" >&6; }
2176 case $ac_cv_host in
2177 *-*-*) ;;
2178 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2179 echo "$as_me: error: invalid value of canonical host" >&2;}
2180 { (exit 1); exit 1; }; };;
2181 esac
2182 host=$ac_cv_host
2183 ac_save_IFS=$IFS; IFS='-'
2184 set x $ac_cv_host
2185 shift
2186 host_cpu=$1
2187 host_vendor=$2
2188 shift; shift
2189 # Remember, the first character of IFS is used to create $*,
2190 # except with old shells:
2191 host_os=$*
2192 IFS=$ac_save_IFS
2193 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197 # check existence of the package
2200 # specify output header file
2201 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2208 cat >>confdefs.h <<\_ACEOF
2209 #define _GNU_SOURCE 1
2210 _ACEOF
2213 ac_ext=c
2214 ac_cpp='$CPP $CPPFLAGS'
2215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2218 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 break 2
2240 done
2241 done
2242 IFS=$as_save_IFS
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248 { echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6; }
2250 else
2251 { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2257 if test -z "$ac_cv_prog_CC"; then
2258 ac_ct_CC=$CC
2259 # Extract the first word of "gcc", so it can be a program name with args.
2260 set dummy gcc; ac_word=$2
2261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 if test -n "$ac_ct_CC"; then
2267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2272 IFS=$as_save_IFS
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 ac_cv_prog_ac_ct_CC="gcc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 break 2
2280 done
2281 done
2282 IFS=$as_save_IFS
2286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2287 if test -n "$ac_ct_CC"; then
2288 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2289 echo "${ECHO_T}$ac_ct_CC" >&6; }
2290 else
2291 { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2295 if test "x$ac_ct_CC" = x; then
2296 CC=""
2297 else
2298 case $cross_compiling:$ac_tool_warned in
2299 yes:)
2300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2301 whose name does not start with the host triplet. If you think this
2302 configuration is useful to you, please write to autoconf@gnu.org." >&5
2303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2304 whose name does not start with the host triplet. If you think this
2305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2306 ac_tool_warned=yes ;;
2307 esac
2308 CC=$ac_ct_CC
2310 else
2311 CC="$ac_cv_prog_CC"
2314 if test -z "$CC"; then
2315 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}cc; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="${ac_tool_prefix}cc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2337 done
2338 done
2339 IFS=$as_save_IFS
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2347 else
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2355 if test -z "$CC"; then
2356 # Extract the first word of "cc", so it can be a program name with args.
2357 set dummy cc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2365 else
2366 ac_prog_rejected=no
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2375 ac_prog_rejected=yes
2376 continue
2378 ac_cv_prog_CC="cc"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2382 done
2383 done
2384 IFS=$as_save_IFS
2386 if test $ac_prog_rejected = yes; then
2387 # We found a bogon in the path, so make sure we never use it.
2388 set dummy $ac_cv_prog_CC
2389 shift
2390 if test $# != 0; then
2391 # We chose a different compiler from the bogus one.
2392 # However, it has the same basename, so the bogon will be chosen
2393 # first if we set CC to just the basename; use the full file name.
2394 shift
2395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402 { echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6; }
2404 else
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2413 for ac_prog in cl.exe
2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2436 done
2437 done
2438 IFS=$as_save_IFS
2442 CC=$ac_cv_prog_CC
2443 if test -n "$CC"; then
2444 { echo "$as_me:$LINENO: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6; }
2446 else
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2452 test -n "$CC" && break
2453 done
2455 if test -z "$CC"; then
2456 ac_ct_CC=$CC
2457 for ac_prog in cl.exe
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 if test -n "$ac_ct_CC"; then
2467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_ac_ct_CC="$ac_prog"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2482 IFS=$as_save_IFS
2486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487 if test -n "$ac_ct_CC"; then
2488 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489 echo "${ECHO_T}$ac_ct_CC" >&6; }
2490 else
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2496 test -n "$ac_ct_CC" && break
2497 done
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet. If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512 CC=$ac_ct_CC
2519 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }
2525 # Provide some information about the compiler.
2526 echo "$as_me:$LINENO: checking for C compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (ac_try="$ac_compiler --version >&5"
2529 case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_compiler --version >&5") 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538 { (ac_try="$ac_compiler -v >&5"
2539 case "(($ac_try" in
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compiler -v >&5") 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548 { (ac_try="$ac_compiler -V >&5"
2549 case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552 esac
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compiler -V >&5") 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2559 cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h. */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2567 main ()
2571 return 0;
2573 _ACEOF
2574 ac_clean_files_save=$ac_clean_files
2575 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2576 # Try to create an executable without -o first, disregard a.out.
2577 # It will help us diagnose broken compilers, and finding out an intuition
2578 # of exeext.
2579 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2580 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2581 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2583 # List of possible output files, starting from the most likely.
2584 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2585 # only as a last resort. b.out is created by i960 compilers.
2586 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2588 # The IRIX 6 linker writes into existing files which may not be
2589 # executable, retaining their permissions. Remove them first so a
2590 # subsequent execution test works.
2591 ac_rmfiles=
2592 for ac_file in $ac_files
2594 case $ac_file in
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2597 esac
2598 done
2599 rm -f $ac_rmfiles
2601 if { (ac_try="$ac_link_default"
2602 case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2605 esac
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_link_default") 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; then
2611 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2612 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2613 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2614 # so that the user can short-circuit this test for compilers unknown to
2615 # Autoconf.
2616 for ac_file in $ac_files ''
2618 test -f "$ac_file" || continue
2619 case $ac_file in
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2622 [ab].out )
2623 # We found the default executable, but exeext='' is most
2624 # certainly right.
2625 break;;
2626 *.* )
2627 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2628 then :; else
2629 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631 # We set ac_cv_exeext here because the later test for it is not
2632 # safe: cross compilers may not add the suffix if given an `-o'
2633 # argument, so we may need to know it at that point already.
2634 # Even if this section looks crufty: it has the advantage of
2635 # actually working.
2636 break;;
2638 break;;
2639 esac
2640 done
2641 test "$ac_cv_exeext" = no && ac_cv_exeext=
2643 else
2644 ac_file=''
2647 { echo "$as_me:$LINENO: result: $ac_file" >&5
2648 echo "${ECHO_T}$ac_file" >&6; }
2649 if test -z "$ac_file"; then
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2653 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: C compiler cannot create executables
2656 See \`config.log' for more details." >&2;}
2657 { (exit 77); exit 77; }; }
2660 ac_exeext=$ac_cv_exeext
2662 # Check that the compiler produces executables we can run. If not, either
2663 # the compiler is broken, or we cross compile.
2664 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2665 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2667 # If not cross compiling, check that we can run a simple program.
2668 if test "$cross_compiling" != yes; then
2669 if { ac_try='./$ac_file'
2670 { (case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_try") 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 cross_compiling=no
2680 else
2681 if test "$cross_compiling" = maybe; then
2682 cross_compiling=yes
2683 else
2684 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2685 If you meant to cross compile, use \`--host'.
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: cannot run C compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2694 { echo "$as_me:$LINENO: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6; }
2697 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2698 ac_clean_files=$ac_clean_files_save
2699 # Check that the compiler produces executables we can run. If not, either
2700 # the compiler is broken, or we cross compile.
2701 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2702 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2703 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2704 echo "${ECHO_T}$cross_compiling" >&6; }
2706 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2707 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2708 if { (ac_try="$ac_link"
2709 case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_link") 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; then
2718 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2719 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2720 # work properly (i.e., refer to `conftest.exe'), while it won't with
2721 # `rm'.
2722 for ac_file in conftest.exe conftest conftest.*; do
2723 test -f "$ac_file" || continue
2724 case $ac_file in
2725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2726 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2727 break;;
2728 * ) break;;
2729 esac
2730 done
2731 else
2732 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&2;}
2736 { (exit 1); exit 1; }; }
2739 rm -f conftest$ac_cv_exeext
2740 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2743 rm -f conftest.$ac_ext
2744 EXEEXT=$ac_cv_exeext
2745 ac_exeext=$EXEEXT
2746 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2748 if test "${ac_cv_objext+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h. */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2759 main ()
2763 return 0;
2765 _ACEOF
2766 rm -f conftest.o conftest.obj
2767 if { (ac_try="$ac_compile"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compile") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
2777 for ac_file in conftest.o conftest.obj conftest.*; do
2778 test -f "$ac_file" || continue;
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2782 break;;
2783 esac
2784 done
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2796 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2798 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2799 echo "${ECHO_T}$ac_cv_objext" >&6; }
2800 OBJEXT=$ac_cv_objext
2801 ac_objext=$OBJEXT
2802 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2803 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2804 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2815 main ()
2817 #ifndef __GNUC__
2818 choke me
2819 #endif
2822 return 0;
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2827 case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && {
2839 test -z "$ac_c_werror_flag" ||
2840 test ! -s conftest.err
2841 } && test -s conftest.$ac_objext; then
2842 ac_compiler_gnu=yes
2843 else
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 ac_compiler_gnu=no
2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2854 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2856 GCC=`test $ac_compiler_gnu = yes && echo yes`
2857 ac_test_CFLAGS=${CFLAGS+set}
2858 ac_save_CFLAGS=$CFLAGS
2859 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2860 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_cc_g+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 ac_save_c_werror_flag=$ac_c_werror_flag
2865 ac_c_werror_flag=yes
2866 ac_cv_prog_cc_g=no
2867 CFLAGS="-g"
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2876 main ()
2880 return 0;
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compile") 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } && {
2897 test -z "$ac_c_werror_flag" ||
2898 test ! -s conftest.err
2899 } && test -s conftest.$ac_objext; then
2900 ac_cv_prog_cc_g=yes
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 CFLAGS=""
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2914 main ()
2918 return 0;
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 ac_c_werror_flag=$ac_save_c_werror_flag
2944 CFLAGS="-g"
2945 cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h. */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2953 main ()
2957 return 0;
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest.$ac_objext; then
2977 ac_cv_prog_cc_g=yes
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_c_werror_flag=$ac_save_c_werror_flag
2994 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2996 if test "$ac_test_CFLAGS" = set; then
2997 CFLAGS=$ac_save_CFLAGS
2998 elif test $ac_cv_prog_cc_g = yes; then
2999 if test "$GCC" = yes; then
3000 CFLAGS="-g -O2"
3001 else
3002 CFLAGS="-g"
3004 else
3005 if test "$GCC" = yes; then
3006 CFLAGS="-O2"
3007 else
3008 CFLAGS=
3011 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3012 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cc_c89+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 ac_cv_prog_cc_c89=no
3017 ac_save_CC=$CC
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h. */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 #include <stdarg.h>
3025 #include <stdio.h>
3026 #include <sys/types.h>
3027 #include <sys/stat.h>
3028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3029 struct buf { int x; };
3030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3031 static char *e (p, i)
3032 char **p;
3033 int i;
3035 return p[i];
3037 static char *f (char * (*g) (char **, int), char **p, ...)
3039 char *s;
3040 va_list v;
3041 va_start (v,p);
3042 s = g (p, va_arg (v,int));
3043 va_end (v);
3044 return s;
3047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3048 function prototypes and stuff, but not '\xHH' hex character constants.
3049 These don't provoke an error unfortunately, instead are silently treated
3050 as 'x'. The following induces an error, until -std is added to get
3051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3052 array size at least. It's necessary to write '\x00'==0 to get something
3053 that's true only with -std. */
3054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3057 inside strings and character constants. */
3058 #define FOO(x) 'x'
3059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3061 int test (int i, double x);
3062 struct s1 {int (*f) (int a);};
3063 struct s2 {int (*f) (double a);};
3064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3065 int argc;
3066 char **argv;
3068 main ()
3070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3072 return 0;
3074 _ACEOF
3075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3078 CC="$ac_save_CC $ac_arg"
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && {
3093 test -z "$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3096 ac_cv_prog_cc_c89=$ac_arg
3097 else
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f core conftest.err conftest.$ac_objext
3105 test "x$ac_cv_prog_cc_c89" != "xno" && break
3106 done
3107 rm -f conftest.$ac_ext
3108 CC=$ac_save_CC
3111 # AC_CACHE_VAL
3112 case "x$ac_cv_prog_cc_c89" in
3114 { echo "$as_me:$LINENO: result: none needed" >&5
3115 echo "${ECHO_T}none needed" >&6; } ;;
3116 xno)
3117 { echo "$as_me:$LINENO: result: unsupported" >&5
3118 echo "${ECHO_T}unsupported" >&6; } ;;
3120 CC="$CC $ac_cv_prog_cc_c89"
3121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3122 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3123 esac
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3140 # On Suns, sometimes $CPP names a directory.
3141 if test -n "$CPP" && test -d "$CPP"; then
3142 CPP=
3144 if test -z "$CPP"; then
3145 if test "${ac_cv_prog_CPP+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148 # Double quotes because CPP needs to be expanded
3149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3151 ac_preproc_ok=false
3152 for ac_c_preproc_warn_flag in '' yes
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166 #ifdef __STDC__
3167 # include <limits.h>
3168 #else
3169 # include <assert.h>
3170 #endif
3171 Syntax error
3172 _ACEOF
3173 if { (ac_try="$ac_cpp conftest.$ac_ext"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } >/dev/null && {
3186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 }; then
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 # Broken: fails on valid input.
3195 continue
3198 rm -f conftest.err conftest.$ac_ext
3200 # OK, works on sane cases. Now check whether nonexistent headers
3201 # can be detected and how.
3202 cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h. */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208 #include <ac_nonexistent.h>
3209 _ACEOF
3210 if { (ac_try="$ac_cpp conftest.$ac_ext"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3217 ac_status=$?
3218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } >/dev/null && {
3223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3224 test ! -s conftest.err
3225 }; then
3226 # Broken: success on invalid input.
3227 continue
3228 else
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3232 # Passes both tests.
3233 ac_preproc_ok=:
3234 break
3237 rm -f conftest.err conftest.$ac_ext
3239 done
3240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3241 rm -f conftest.err conftest.$ac_ext
3242 if $ac_preproc_ok; then
3243 break
3246 done
3247 ac_cv_prog_CPP=$CPP
3250 CPP=$ac_cv_prog_CPP
3251 else
3252 ac_cv_prog_CPP=$CPP
3254 { echo "$as_me:$LINENO: result: $CPP" >&5
3255 echo "${ECHO_T}$CPP" >&6; }
3256 ac_preproc_ok=false
3257 for ac_c_preproc_warn_flag in '' yes
3259 # Use a header file that comes with gcc, so configuring glibc
3260 # with a fresh cross-compiler works.
3261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 # <limits.h> exists even on freestanding compilers.
3263 # On the NeXT, cc -E runs the code through the compiler's parser,
3264 # not just through cpp. "Syntax error" is here to catch this case.
3265 cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h. */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271 #ifdef __STDC__
3272 # include <limits.h>
3273 #else
3274 # include <assert.h>
3275 #endif
3276 Syntax error
3277 _ACEOF
3278 if { (ac_try="$ac_cpp conftest.$ac_ext"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } >/dev/null && {
3291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3292 test ! -s conftest.err
3293 }; then
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Broken: fails on valid input.
3300 continue
3303 rm -f conftest.err conftest.$ac_ext
3305 # OK, works on sane cases. Now check whether nonexistent headers
3306 # can be detected and how.
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <ac_nonexistent.h>
3314 _ACEOF
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null && {
3328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3329 test ! -s conftest.err
3330 }; then
3331 # Broken: success on invalid input.
3332 continue
3333 else
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 # Passes both tests.
3338 ac_preproc_ok=:
3339 break
3342 rm -f conftest.err conftest.$ac_ext
3344 done
3345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3346 rm -f conftest.err conftest.$ac_ext
3347 if $ac_preproc_ok; then
3349 else
3350 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3351 See \`config.log' for more details." >&5
3352 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3353 See \`config.log' for more details." >&2;}
3354 { (exit 1); exit 1; }; }
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3365 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3366 if test "${ac_cv_path_GREP+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 # Extract the first word of "grep ggrep" to use in msg output
3370 if test -z "$GREP"; then
3371 set dummy grep ggrep; ac_prog_name=$2
3372 if test "${ac_cv_path_GREP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 ac_path_GREP_found=false
3376 # Loop through the user's path and test for each of PROGNAME-LIST
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_prog in grep ggrep; do
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3385 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3386 # Check for GNU ac_path_GREP and select it if it is found.
3387 # Check for GNU $ac_path_GREP
3388 case `"$ac_path_GREP" --version 2>&1` in
3389 *GNU*)
3390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3392 ac_count=0
3393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3394 while :
3396 cat "conftest.in" "conftest.in" >"conftest.tmp"
3397 mv "conftest.tmp" "conftest.in"
3398 cp "conftest.in" "conftest.nl"
3399 echo 'GREP' >> "conftest.nl"
3400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3402 ac_count=`expr $ac_count + 1`
3403 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3404 # Best one so far, save it but keep looking for a better one
3405 ac_cv_path_GREP="$ac_path_GREP"
3406 ac_path_GREP_max=$ac_count
3408 # 10*(2^10) chars as input seems more than enough
3409 test $ac_count -gt 10 && break
3410 done
3411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3412 esac
3415 $ac_path_GREP_found && break 3
3416 done
3417 done
3419 done
3420 IFS=$as_save_IFS
3425 GREP="$ac_cv_path_GREP"
3426 if test -z "$GREP"; then
3427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3428 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3429 { (exit 1); exit 1; }; }
3432 else
3433 ac_cv_path_GREP=$GREP
3438 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3439 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3440 GREP="$ac_cv_path_GREP"
3443 { echo "$as_me:$LINENO: checking for egrep" >&5
3444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3445 if test "${ac_cv_path_EGREP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3449 then ac_cv_path_EGREP="$GREP -E"
3450 else
3451 # Extract the first word of "egrep" to use in msg output
3452 if test -z "$EGREP"; then
3453 set dummy egrep; ac_prog_name=$2
3454 if test "${ac_cv_path_EGREP+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457 ac_path_EGREP_found=false
3458 # Loop through the user's path and test for each of PROGNAME-LIST
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_prog in egrep; do
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3467 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3468 # Check for GNU ac_path_EGREP and select it if it is found.
3469 # Check for GNU $ac_path_EGREP
3470 case `"$ac_path_EGREP" --version 2>&1` in
3471 *GNU*)
3472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3474 ac_count=0
3475 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3476 while :
3478 cat "conftest.in" "conftest.in" >"conftest.tmp"
3479 mv "conftest.tmp" "conftest.in"
3480 cp "conftest.in" "conftest.nl"
3481 echo 'EGREP' >> "conftest.nl"
3482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3484 ac_count=`expr $ac_count + 1`
3485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3486 # Best one so far, save it but keep looking for a better one
3487 ac_cv_path_EGREP="$ac_path_EGREP"
3488 ac_path_EGREP_max=$ac_count
3490 # 10*(2^10) chars as input seems more than enough
3491 test $ac_count -gt 10 && break
3492 done
3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3494 esac
3497 $ac_path_EGREP_found && break 3
3498 done
3499 done
3501 done
3502 IFS=$as_save_IFS
3507 EGREP="$ac_cv_path_EGREP"
3508 if test -z "$EGREP"; then
3509 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3510 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3511 { (exit 1); exit 1; }; }
3514 else
3515 ac_cv_path_EGREP=$EGREP
3521 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3522 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3523 EGREP="$ac_cv_path_EGREP"
3527 { echo "$as_me:$LINENO: checking for AIX" >&5
3528 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 #ifdef _AIX
3537 #endif
3539 _ACEOF
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 $EGREP "yes" >/dev/null 2>&1; then
3542 { echo "$as_me:$LINENO: result: yes" >&5
3543 echo "${ECHO_T}yes" >&6; }
3544 cat >>confdefs.h <<\_ACEOF
3545 #define _ALL_SOURCE 1
3546 _ACEOF
3548 else
3549 { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3552 rm -f conftest*
3555 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3556 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3557 if test "${ac_cv_header_stdc+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <stdlib.h>
3567 #include <stdarg.h>
3568 #include <string.h>
3569 #include <float.h>
3572 main ()
3576 return 0;
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compile") 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && {
3593 test -z "$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest.$ac_objext; then
3596 ac_cv_header_stdc=yes
3597 else
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 ac_cv_header_stdc=no
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 if test $ac_cv_header_stdc = yes; then
3607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 #include <string.h>
3616 _ACEOF
3617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3618 $EGREP "memchr" >/dev/null 2>&1; then
3620 else
3621 ac_cv_header_stdc=no
3623 rm -f conftest*
3627 if test $ac_cv_header_stdc = yes; then
3628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h. */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 #include <stdlib.h>
3637 _ACEOF
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 $EGREP "free" >/dev/null 2>&1; then
3641 else
3642 ac_cv_header_stdc=no
3644 rm -f conftest*
3648 if test $ac_cv_header_stdc = yes; then
3649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3650 if test "$cross_compiling" = yes; then
3652 else
3653 cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h. */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 #include <ctype.h>
3660 #include <stdlib.h>
3661 #if ((' ' & 0x0FF) == 0x020)
3662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3664 #else
3665 # define ISLOWER(c) \
3666 (('a' <= (c) && (c) <= 'i') \
3667 || ('j' <= (c) && (c) <= 'r') \
3668 || ('s' <= (c) && (c) <= 'z'))
3669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3670 #endif
3672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3674 main ()
3676 int i;
3677 for (i = 0; i < 256; i++)
3678 if (XOR (islower (i), ISLOWER (i))
3679 || toupper (i) != TOUPPER (i))
3680 return 2;
3681 return 0;
3683 _ACEOF
3684 rm -f conftest$ac_exeext
3685 if { (ac_try="$ac_link"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_link") 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3695 { (case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3705 else
3706 echo "$as_me: program exited with status $ac_status" >&5
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 ( exit $ac_status )
3711 ac_cv_header_stdc=no
3713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3719 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3720 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3721 if test $ac_cv_header_stdc = yes; then
3723 cat >>confdefs.h <<\_ACEOF
3724 #define STDC_HEADERS 1
3725 _ACEOF
3729 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3739 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3740 inttypes.h stdint.h unistd.h
3742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 $ac_includes_default
3756 #include <$ac_header>
3757 _ACEOF
3758 rm -f conftest.$ac_objext
3759 if { (ac_try="$ac_compile"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_compile") 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } && {
3772 test -z "$ac_c_werror_flag" ||
3773 test ! -s conftest.err
3774 } && test -s conftest.$ac_objext; then
3775 eval "$as_ac_Header=yes"
3776 else
3777 echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3780 eval "$as_ac_Header=no"
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 ac_res=`eval echo '${'$as_ac_Header'}'`
3786 { echo "$as_me:$LINENO: result: $ac_res" >&5
3787 echo "${ECHO_T}$ac_res" >&6; }
3788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3789 cat >>confdefs.h <<_ACEOF
3790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3791 _ACEOF
3795 done
3798 if test "${ac_cv_header_minix_config_h+set}" = set; then
3799 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3800 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3801 if test "${ac_cv_header_minix_config_h+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3805 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3806 else
3807 # Is the header compilable?
3808 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3809 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 $ac_includes_default
3817 #include <minix/config.h>
3818 _ACEOF
3819 rm -f conftest.$ac_objext
3820 if { (ac_try="$ac_compile"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_compile") 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest.$ac_objext; then
3836 ac_header_compiler=yes
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_header_compiler=no
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3846 echo "${ECHO_T}$ac_header_compiler" >&6; }
3848 # Is the header present?
3849 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3850 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <minix/config.h>
3858 _ACEOF
3859 if { (ac_try="$ac_cpp conftest.$ac_ext"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3866 ac_status=$?
3867 grep -v '^ *+' conftest.er1 >conftest.err
3868 rm -f conftest.er1
3869 cat conftest.err >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } >/dev/null && {
3872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3873 test ! -s conftest.err
3874 }; then
3875 ac_header_preproc=yes
3876 else
3877 echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 ac_header_preproc=no
3883 rm -f conftest.err conftest.$ac_ext
3884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885 echo "${ECHO_T}$ac_header_preproc" >&6; }
3887 # So? What about this header?
3888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3889 yes:no: )
3890 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3891 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3893 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3894 ac_header_preproc=yes
3896 no:yes:* )
3897 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3898 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3900 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3902 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3904 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3906 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3908 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3909 ( cat <<\_ASBOX
3910 ## ------------------------------- ##
3911 ## Report this to www.asterisk.org ##
3912 ## ------------------------------- ##
3913 _ASBOX
3914 ) | sed "s/^/$as_me: WARNING: /" >&2
3916 esac
3917 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3918 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3919 if test "${ac_cv_header_minix_config_h+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 ac_cv_header_minix_config_h=$ac_header_preproc
3924 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3925 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3928 if test $ac_cv_header_minix_config_h = yes; then
3929 MINIX=yes
3930 else
3931 MINIX=
3935 if test "$MINIX" = yes; then
3937 cat >>confdefs.h <<\_ACEOF
3938 #define _POSIX_SOURCE 1
3939 _ACEOF
3942 cat >>confdefs.h <<\_ACEOF
3943 #define _POSIX_1_SOURCE 2
3944 _ACEOF
3947 cat >>confdefs.h <<\_ACEOF
3948 #define _MINIX 1
3949 _ACEOF
3963 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3964 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3965 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h. */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3975 # define __EXTENSIONS__ 1
3976 $ac_includes_default
3978 main ()
3982 return 0;
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4002 ac_cv_safe_to_define___extensions__=yes
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 ac_cv_safe_to_define___extensions__=no
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4013 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4014 test $ac_cv_safe_to_define___extensions__ = yes &&
4015 cat >>confdefs.h <<\_ACEOF
4016 #define __EXTENSIONS__ 1
4017 _ACEOF
4019 cat >>confdefs.h <<\_ACEOF
4020 #define _POSIX_PTHREAD_SEMANTICS 1
4021 _ACEOF
4023 cat >>confdefs.h <<\_ACEOF
4024 #define _TANDEM_SOURCE 1
4025 _ACEOF
4027 # note- does not work on FreeBSD
4029 case "${host_os}" in
4030 freebsd*)
4031 ac_default_prefix=/usr/local
4032 CPPFLAGS=-I/usr/local/include
4033 LDFLAGS=-L/usr/local/lib
4037 ac_default_prefix=/usr
4038 if test ${sysconfdir} = '${prefix}/etc'; then
4039 sysconfdir=/etc
4041 if test ${mandir} = '${prefix}/man'; then
4042 mandir=/usr/share/man
4045 esac
4047 if test ${localstatedir} = '${prefix}/var'; then
4048 localstatedir=/var
4051 BUILD_PLATFORM=${build}
4052 BUILD_CPU=${build_cpu}
4053 BUILD_VENDOR=${build_vendor}
4054 BUILD_OS=${build_os}
4061 HOST_PLATFORM=${host}
4062 HOST_CPU=${host_cpu}
4063 HOST_VENDOR=${host_vendor}
4064 HOST_OS=${host_os}
4071 WINARCH=0
4073 case "${host_os}" in
4074 freebsd*)
4075 OSARCH=FreeBSD
4077 netbsd*)
4078 OSARCH=NetBSD
4080 openbsd*)
4081 OSARCH=OpenBSD
4083 solaris*)
4084 OSARCH=SunOS
4086 mingw32)
4087 OSARCH=mingw32
4088 WINARCH=1
4090 cygwin)
4091 OSARCH=cygwin
4092 WINARCH=1
4095 OSARCH=${host_os}
4097 esac
4102 # check for uname
4103 if test -n "$ac_tool_prefix"; then
4104 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}uname; ac_word=$2
4106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4108 if test "${ac_cv_path_UNAME+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 case $UNAME in
4112 [\\/]* | ?:[\\/]*)
4113 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4127 done
4128 done
4129 IFS=$as_save_IFS
4132 esac
4134 UNAME=$ac_cv_path_UNAME
4135 if test -n "$UNAME"; then
4136 { echo "$as_me:$LINENO: result: $UNAME" >&5
4137 echo "${ECHO_T}$UNAME" >&6; }
4138 else
4139 { echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6; }
4145 if test -z "$ac_cv_path_UNAME"; then
4146 ac_pt_UNAME=$UNAME
4147 # Extract the first word of "uname", so it can be a program name with args.
4148 set dummy uname; ac_word=$2
4149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4151 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 case $ac_pt_UNAME in
4155 [\\/]* | ?:[\\/]*)
4156 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4170 done
4171 done
4172 IFS=$as_save_IFS
4175 esac
4177 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4178 if test -n "$ac_pt_UNAME"; then
4179 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4180 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4181 else
4182 { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4186 if test "x$ac_pt_UNAME" = x; then
4187 UNAME="No"
4188 else
4189 case $cross_compiling:$ac_tool_warned in
4190 yes:)
4191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4192 whose name does not start with the host triplet. If you think this
4193 configuration is useful to you, please write to autoconf@gnu.org." >&5
4194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4195 whose name does not start with the host triplet. If you think this
4196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4197 ac_tool_warned=yes ;;
4198 esac
4199 UNAME=$ac_pt_UNAME
4201 else
4202 UNAME="$ac_cv_path_UNAME"
4205 if test ! x"${UNAME}" = xNo; then
4206 PBX_OSREV=$(${UNAME} -r)
4216 # cross-compile checks
4217 if test "${cross_compiling}" = "yes";
4218 then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4224 if test "${ac_cv_prog_CC+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4241 done
4242 done
4243 IFS=$as_save_IFS
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249 { echo "$as_me:$LINENO: result: $CC" >&5
4250 echo "${ECHO_T}$CC" >&6; }
4251 else
4252 { echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6; }
4258 if test -z "$ac_cv_prog_CC"; then
4259 ac_ct_CC=$CC
4260 # Extract the first word of "gcc", so it can be a program name with args.
4261 set dummy gcc; ac_word=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 if test -n "$ac_ct_CC"; then
4268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_ac_ct_CC="gcc"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4288 if test -n "$ac_ct_CC"; then
4289 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4290 echo "${ECHO_T}$ac_ct_CC" >&6; }
4291 else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4296 if test "x$ac_ct_CC" = x; then
4297 CC=":"
4298 else
4299 case $cross_compiling:$ac_tool_warned in
4300 yes:)
4301 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4302 whose name does not start with the host triplet. If you think this
4303 configuration is useful to you, please write to autoconf@gnu.org." >&5
4304 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4305 whose name does not start with the host triplet. If you think this
4306 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4307 ac_tool_warned=yes ;;
4308 esac
4309 CC=$ac_ct_CC
4311 else
4312 CC="$ac_cv_prog_CC"
4315 if test -n "$ac_tool_prefix"; then
4316 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4317 set dummy ${ac_tool_prefix}g++; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_CXX+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if test -n "$CXX"; then
4324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4343 CXX=$ac_cv_prog_CXX
4344 if test -n "$CXX"; then
4345 { echo "$as_me:$LINENO: result: $CXX" >&5
4346 echo "${ECHO_T}$CXX" >&6; }
4347 else
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4354 if test -z "$ac_cv_prog_CXX"; then
4355 ac_ct_CXX=$CXX
4356 # Extract the first word of "g++", so it can be a program name with args.
4357 set dummy g++; ac_word=$2
4358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4360 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 if test -n "$ac_ct_CXX"; then
4364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_ac_ct_CXX="g++"
4374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4377 done
4378 done
4379 IFS=$as_save_IFS
4383 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4384 if test -n "$ac_ct_CXX"; then
4385 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4386 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4387 else
4388 { echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6; }
4392 if test "x$ac_ct_CXX" = x; then
4393 CXX=":"
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4398 whose name does not start with the host triplet. If you think this
4399 configuration is useful to you, please write to autoconf@gnu.org." >&5
4400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4401 whose name does not start with the host triplet. If you think this
4402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4403 ac_tool_warned=yes ;;
4404 esac
4405 CXX=$ac_ct_CXX
4407 else
4408 CXX="$ac_cv_prog_CXX"
4411 if test -n "$ac_tool_prefix"; then
4412 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}ld; ac_word=$2
4414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4416 if test "${ac_cv_prog_LD+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 if test -n "$LD"; then
4420 ac_cv_prog_LD="$LD" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_LD="${ac_tool_prefix}ld"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4433 done
4434 done
4435 IFS=$as_save_IFS
4439 LD=$ac_cv_prog_LD
4440 if test -n "$LD"; then
4441 { echo "$as_me:$LINENO: result: $LD" >&5
4442 echo "${ECHO_T}$LD" >&6; }
4443 else
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4450 if test -z "$ac_cv_prog_LD"; then
4451 ac_ct_LD=$LD
4452 # Extract the first word of "ld", so it can be a program name with args.
4453 set dummy ld; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 if test -n "$ac_ct_LD"; then
4460 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_ac_ct_LD="ld"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4473 done
4474 done
4475 IFS=$as_save_IFS
4479 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4480 if test -n "$ac_ct_LD"; then
4481 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4482 echo "${ECHO_T}$ac_ct_LD" >&6; }
4483 else
4484 { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4488 if test "x$ac_ct_LD" = x; then
4489 LD=":"
4490 else
4491 case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4494 whose name does not start with the host triplet. If you think this
4495 configuration is useful to you, please write to autoconf@gnu.org." >&5
4496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4497 whose name does not start with the host triplet. If you think this
4498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4499 ac_tool_warned=yes ;;
4500 esac
4501 LD=$ac_ct_LD
4503 else
4504 LD="$ac_cv_prog_LD"
4507 if test -n "$ac_tool_prefix"; then
4508 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4509 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_RANLIB+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 if test -n "$RANLIB"; then
4516 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4529 done
4530 done
4531 IFS=$as_save_IFS
4535 RANLIB=$ac_cv_prog_RANLIB
4536 if test -n "$RANLIB"; then
4537 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4538 echo "${ECHO_T}$RANLIB" >&6; }
4539 else
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4546 if test -z "$ac_cv_prog_RANLIB"; then
4547 ac_ct_RANLIB=$RANLIB
4548 # Extract the first word of "ranlib", so it can be a program name with args.
4549 set dummy ranlib; ac_word=$2
4550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 if test -n "$ac_ct_RANLIB"; then
4556 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_ac_ct_RANLIB="ranlib"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4571 IFS=$as_save_IFS
4575 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4576 if test -n "$ac_ct_RANLIB"; then
4577 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4578 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4579 else
4580 { echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6; }
4584 if test "x$ac_ct_RANLIB" = x; then
4585 RANLIB=":"
4586 else
4587 case $cross_compiling:$ac_tool_warned in
4588 yes:)
4589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4590 whose name does not start with the host triplet. If you think this
4591 configuration is useful to you, please write to autoconf@gnu.org." >&5
4592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4593 whose name does not start with the host triplet. If you think this
4594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4595 ac_tool_warned=yes ;;
4596 esac
4597 RANLIB=$ac_ct_RANLIB
4599 else
4600 RANLIB="$ac_cv_prog_RANLIB"
4605 # Checks for programs.
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_CC+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 if test -n "$CC"; then
4620 ac_cv_prog_CC="$CC" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4633 done
4634 done
4635 IFS=$as_save_IFS
4639 CC=$ac_cv_prog_CC
4640 if test -n "$CC"; then
4641 { echo "$as_me:$LINENO: result: $CC" >&5
4642 echo "${ECHO_T}$CC" >&6; }
4643 else
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4650 if test -z "$ac_cv_prog_CC"; then
4651 ac_ct_CC=$CC
4652 # Extract the first word of "gcc", so it can be a program name with args.
4653 set dummy gcc; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC="gcc"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4682 echo "${ECHO_T}$ac_ct_CC" >&6; }
4683 else
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4688 if test "x$ac_ct_CC" = x; then
4689 CC=""
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4694 whose name does not start with the host triplet. If you think this
4695 configuration is useful to you, please write to autoconf@gnu.org." >&5
4696 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4697 whose name does not start with the host triplet. If you think this
4698 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701 CC=$ac_ct_CC
4703 else
4704 CC="$ac_cv_prog_CC"
4707 if test -z "$CC"; then
4708 if test -n "$ac_tool_prefix"; then
4709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4710 set dummy ${ac_tool_prefix}cc; ac_word=$2
4711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4713 if test "${ac_cv_prog_CC+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716 if test -n "$CC"; then
4717 ac_cv_prog_CC="$CC" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4726 ac_cv_prog_CC="${ac_tool_prefix}cc"
4727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
4730 done
4731 done
4732 IFS=$as_save_IFS
4736 CC=$ac_cv_prog_CC
4737 if test -n "$CC"; then
4738 { echo "$as_me:$LINENO: result: $CC" >&5
4739 echo "${ECHO_T}$CC" >&6; }
4740 else
4741 { echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6; }
4748 if test -z "$CC"; then
4749 # Extract the first word of "cc", so it can be a program name with args.
4750 set dummy cc; ac_word=$2
4751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4753 if test "${ac_cv_prog_CC+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4758 else
4759 ac_prog_rejected=no
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4768 ac_prog_rejected=yes
4769 continue
4771 ac_cv_prog_CC="cc"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4779 if test $ac_prog_rejected = yes; then
4780 # We found a bogon in the path, so make sure we never use it.
4781 set dummy $ac_cv_prog_CC
4782 shift
4783 if test $# != 0; then
4784 # We chose a different compiler from the bogus one.
4785 # However, it has the same basename, so the bogon will be chosen
4786 # first if we set CC to just the basename; use the full file name.
4787 shift
4788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4793 CC=$ac_cv_prog_CC
4794 if test -n "$CC"; then
4795 { echo "$as_me:$LINENO: result: $CC" >&5
4796 echo "${ECHO_T}$CC" >&6; }
4797 else
4798 { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4804 if test -z "$CC"; then
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in cl.exe
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_prog_CC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 if test -n "$CC"; then
4816 ac_cv_prog_CC="$CC" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 CC=$ac_cv_prog_CC
4836 if test -n "$CC"; then
4837 { echo "$as_me:$LINENO: result: $CC" >&5
4838 echo "${ECHO_T}$CC" >&6; }
4839 else
4840 { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4845 test -n "$CC" && break
4846 done
4848 if test -z "$CC"; then
4849 ac_ct_CC=$CC
4850 for ac_prog in cl.exe
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 if test -n "$ac_ct_CC"; then
4860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_ac_ct_CC="$ac_prog"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4880 if test -n "$ac_ct_CC"; then
4881 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4882 echo "${ECHO_T}$ac_ct_CC" >&6; }
4883 else
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 test -n "$ac_ct_CC" && break
4890 done
4892 if test "x$ac_ct_CC" = x; then
4893 CC=""
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4898 whose name does not start with the host triplet. If you think this
4899 configuration is useful to you, please write to autoconf@gnu.org." >&5
4900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4901 whose name does not start with the host triplet. If you think this
4902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 CC=$ac_ct_CC
4912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4913 See \`config.log' for more details." >&5
4914 echo "$as_me: error: no acceptable C compiler found in \$PATH
4915 See \`config.log' for more details." >&2;}
4916 { (exit 1); exit 1; }; }
4918 # Provide some information about the compiler.
4919 echo "$as_me:$LINENO: checking for C compiler version" >&5
4920 ac_compiler=`set X $ac_compile; echo $2`
4921 { (ac_try="$ac_compiler --version >&5"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927 (eval "$ac_compiler --version >&5") 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }
4931 { (ac_try="$ac_compiler -v >&5"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_compiler -v >&5") 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }
4941 { (ac_try="$ac_compiler -V >&5"
4942 case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_compiler -V >&5") 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }
4952 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4953 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4954 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4965 main ()
4967 #ifndef __GNUC__
4968 choke me
4969 #endif
4972 return 0;
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (ac_try="$ac_compile"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_compile") 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } && {
4989 test -z "$ac_c_werror_flag" ||
4990 test ! -s conftest.err
4991 } && test -s conftest.$ac_objext; then
4992 ac_compiler_gnu=yes
4993 else
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 ac_compiler_gnu=no
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5004 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5005 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5006 GCC=`test $ac_compiler_gnu = yes && echo yes`
5007 ac_test_CFLAGS=${CFLAGS+set}
5008 ac_save_CFLAGS=$CFLAGS
5009 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5010 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5011 if test "${ac_cv_prog_cc_g+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 ac_save_c_werror_flag=$ac_c_werror_flag
5015 ac_c_werror_flag=yes
5016 ac_cv_prog_cc_g=no
5017 CFLAGS="-g"
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5026 main ()
5030 return 0;
5032 _ACEOF
5033 rm -f conftest.$ac_objext
5034 if { (ac_try="$ac_compile"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_compile") 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } && {
5047 test -z "$ac_c_werror_flag" ||
5048 test ! -s conftest.err
5049 } && test -s conftest.$ac_objext; then
5050 ac_cv_prog_cc_g=yes
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 CFLAGS=""
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h. */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5064 main ()
5068 return 0;
5070 _ACEOF
5071 rm -f conftest.$ac_objext
5072 if { (ac_try="$ac_compile"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_compile") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } && {
5085 test -z "$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 } && test -s conftest.$ac_objext; then
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_c_werror_flag=$ac_save_c_werror_flag
5094 CFLAGS="-g"
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5103 main ()
5107 return 0;
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (ac_try="$ac_compile"
5112 case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_compile") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && {
5124 test -z "$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 } && test -s conftest.$ac_objext; then
5127 ac_cv_prog_cc_g=yes
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 ac_c_werror_flag=$ac_save_c_werror_flag
5144 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5145 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5146 if test "$ac_test_CFLAGS" = set; then
5147 CFLAGS=$ac_save_CFLAGS
5148 elif test $ac_cv_prog_cc_g = yes; then
5149 if test "$GCC" = yes; then
5150 CFLAGS="-g -O2"
5151 else
5152 CFLAGS="-g"
5154 else
5155 if test "$GCC" = yes; then
5156 CFLAGS="-O2"
5157 else
5158 CFLAGS=
5161 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5162 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5163 if test "${ac_cv_prog_cc_c89+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 ac_cv_prog_cc_c89=no
5167 ac_save_CC=$CC
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 #include <stdarg.h>
5175 #include <stdio.h>
5176 #include <sys/types.h>
5177 #include <sys/stat.h>
5178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5179 struct buf { int x; };
5180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5181 static char *e (p, i)
5182 char **p;
5183 int i;
5185 return p[i];
5187 static char *f (char * (*g) (char **, int), char **p, ...)
5189 char *s;
5190 va_list v;
5191 va_start (v,p);
5192 s = g (p, va_arg (v,int));
5193 va_end (v);
5194 return s;
5197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5198 function prototypes and stuff, but not '\xHH' hex character constants.
5199 These don't provoke an error unfortunately, instead are silently treated
5200 as 'x'. The following induces an error, until -std is added to get
5201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5202 array size at least. It's necessary to write '\x00'==0 to get something
5203 that's true only with -std. */
5204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5207 inside strings and character constants. */
5208 #define FOO(x) 'x'
5209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5211 int test (int i, double x);
5212 struct s1 {int (*f) (int a);};
5213 struct s2 {int (*f) (double a);};
5214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5215 int argc;
5216 char **argv;
5218 main ()
5220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5222 return 0;
5224 _ACEOF
5225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5228 CC="$ac_save_CC $ac_arg"
5229 rm -f conftest.$ac_objext
5230 if { (ac_try="$ac_compile"
5231 case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234 esac
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_compile") 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && {
5243 test -z "$ac_c_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest.$ac_objext; then
5246 ac_cv_prog_cc_c89=$ac_arg
5247 else
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5254 rm -f core conftest.err conftest.$ac_objext
5255 test "x$ac_cv_prog_cc_c89" != "xno" && break
5256 done
5257 rm -f conftest.$ac_ext
5258 CC=$ac_save_CC
5261 # AC_CACHE_VAL
5262 case "x$ac_cv_prog_cc_c89" in
5264 { echo "$as_me:$LINENO: result: none needed" >&5
5265 echo "${ECHO_T}none needed" >&6; } ;;
5266 xno)
5267 { echo "$as_me:$LINENO: result: unsupported" >&5
5268 echo "${ECHO_T}unsupported" >&6; } ;;
5270 CC="$CC $ac_cv_prog_cc_c89"
5271 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5272 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5273 esac
5276 ac_ext=c
5277 ac_cpp='$CPP $CPPFLAGS'
5278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5282 ac_ext=cpp
5283 ac_cpp='$CXXCPP $CPPFLAGS'
5284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5287 if test -z "$CXX"; then
5288 if test -n "$CCC"; then
5289 CXX=$CCC
5290 else
5291 if test -n "$ac_tool_prefix"; then
5292 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5298 if test "${ac_cv_prog_CXX+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 if test -n "$CXX"; then
5302 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5315 done
5316 done
5317 IFS=$as_save_IFS
5321 CXX=$ac_cv_prog_CXX
5322 if test -n "$CXX"; then
5323 { echo "$as_me:$LINENO: result: $CXX" >&5
5324 echo "${ECHO_T}$CXX" >&6; }
5325 else
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5331 test -n "$CXX" && break
5332 done
5334 if test -z "$CXX"; then
5335 ac_ct_CXX=$CXX
5336 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5338 # Extract the first word of "$ac_prog", so it can be a program name with args.
5339 set dummy $ac_prog; ac_word=$2
5340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5342 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 if test -n "$ac_ct_CXX"; then
5346 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_prog_ac_ct_CXX="$ac_prog"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5361 IFS=$as_save_IFS
5365 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5366 if test -n "$ac_ct_CXX"; then
5367 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5368 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5369 else
5370 { echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6; }
5375 test -n "$ac_ct_CXX" && break
5376 done
5378 if test "x$ac_ct_CXX" = x; then
5379 CXX="g++"
5380 else
5381 case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5384 whose name does not start with the host triplet. If you think this
5385 configuration is useful to you, please write to autoconf@gnu.org." >&5
5386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5387 whose name does not start with the host triplet. If you think this
5388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5389 ac_tool_warned=yes ;;
5390 esac
5391 CXX=$ac_ct_CXX
5397 # Provide some information about the compiler.
5398 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5399 ac_compiler=`set X $ac_compile; echo $2`
5400 { (ac_try="$ac_compiler --version >&5"
5401 case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404 esac
5405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_compiler --version >&5") 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }
5410 { (ac_try="$ac_compiler -v >&5"
5411 case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_compiler -v >&5") 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }
5420 { (ac_try="$ac_compiler -V >&5"
5421 case "(($ac_try" in
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5424 esac
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_compiler -V >&5") 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }
5431 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5432 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5433 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5444 main ()
5446 #ifndef __GNUC__
5447 choke me
5448 #endif
5451 return 0;
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_cxx_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5471 ac_compiler_gnu=yes
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 ac_compiler_gnu=no
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5483 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5484 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5485 GXX=`test $ac_compiler_gnu = yes && echo yes`
5486 ac_test_CXXFLAGS=${CXXFLAGS+set}
5487 ac_save_CXXFLAGS=$CXXFLAGS
5488 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5489 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5490 if test "${ac_cv_prog_cxx_g+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5494 ac_cxx_werror_flag=yes
5495 ac_cv_prog_cxx_g=no
5496 CXXFLAGS="-g"
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5505 main ()
5509 return 0;
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_cxx_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.$ac_objext; then
5529 ac_cv_prog_cxx_g=yes
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 CXXFLAGS=""
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5543 main ()
5547 return 0;
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && {
5564 test -z "$ac_cxx_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5573 CXXFLAGS="-g"
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5582 main ()
5586 return 0;
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (ac_try="$ac_compile"
5591 case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_compile") 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && {
5603 test -z "$ac_cxx_werror_flag" ||
5604 test ! -s conftest.err
5605 } && test -s conftest.$ac_objext; then
5606 ac_cv_prog_cxx_g=yes
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5624 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5625 if test "$ac_test_CXXFLAGS" = set; then
5626 CXXFLAGS=$ac_save_CXXFLAGS
5627 elif test $ac_cv_prog_cxx_g = yes; then
5628 if test "$GXX" = yes; then
5629 CXXFLAGS="-g -O2"
5630 else
5631 CXXFLAGS="-g"
5633 else
5634 if test "$GXX" = yes; then
5635 CXXFLAGS="-O2"
5636 else
5637 CXXFLAGS=
5640 ac_ext=c
5641 ac_cpp='$CPP $CPPFLAGS'
5642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 ac_ext=c
5647 ac_cpp='$CPP $CPPFLAGS'
5648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5653 # On Suns, sometimes $CPP names a directory.
5654 if test -n "$CPP" && test -d "$CPP"; then
5655 CPP=
5657 if test -z "$CPP"; then
5658 if test "${ac_cv_prog_CPP+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 # Double quotes because CPP needs to be expanded
5662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5664 ac_preproc_ok=false
5665 for ac_c_preproc_warn_flag in '' yes
5667 # Use a header file that comes with gcc, so configuring glibc
5668 # with a fresh cross-compiler works.
5669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 # <limits.h> exists even on freestanding compilers.
5671 # On the NeXT, cc -E runs the code through the compiler's parser,
5672 # not just through cpp. "Syntax error" is here to catch this case.
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #ifdef __STDC__
5680 # include <limits.h>
5681 #else
5682 # include <assert.h>
5683 #endif
5684 Syntax error
5685 _ACEOF
5686 if { (ac_try="$ac_cpp conftest.$ac_ext"
5687 case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev/null && {
5699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 }; then
5703 else
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 # Broken: fails on valid input.
5708 continue
5711 rm -f conftest.err conftest.$ac_ext
5713 # OK, works on sane cases. Now check whether nonexistent headers
5714 # can be detected and how.
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <ac_nonexistent.h>
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5737 test ! -s conftest.err
5738 }; then
5739 # Broken: success on invalid input.
5740 continue
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 # Passes both tests.
5746 ac_preproc_ok=:
5747 break
5750 rm -f conftest.err conftest.$ac_ext
5752 done
5753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5754 rm -f conftest.err conftest.$ac_ext
5755 if $ac_preproc_ok; then
5756 break
5759 done
5760 ac_cv_prog_CPP=$CPP
5763 CPP=$ac_cv_prog_CPP
5764 else
5765 ac_cv_prog_CPP=$CPP
5767 { echo "$as_me:$LINENO: result: $CPP" >&5
5768 echo "${ECHO_T}$CPP" >&6; }
5769 ac_preproc_ok=false
5770 for ac_c_preproc_warn_flag in '' yes
5772 # Use a header file that comes with gcc, so configuring glibc
5773 # with a fresh cross-compiler works.
5774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5775 # <limits.h> exists even on freestanding compilers.
5776 # On the NeXT, cc -E runs the code through the compiler's parser,
5777 # not just through cpp. "Syntax error" is here to catch this case.
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #ifdef __STDC__
5785 # include <limits.h>
5786 #else
5787 # include <assert.h>
5788 #endif
5789 Syntax error
5790 _ACEOF
5791 if { (ac_try="$ac_cpp conftest.$ac_ext"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } >/dev/null && {
5804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 }; then
5808 else
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5812 # Broken: fails on valid input.
5813 continue
5816 rm -f conftest.err conftest.$ac_ext
5818 # OK, works on sane cases. Now check whether nonexistent headers
5819 # can be detected and how.
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #include <ac_nonexistent.h>
5827 _ACEOF
5828 if { (ac_try="$ac_cpp conftest.$ac_ext"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } >/dev/null && {
5841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 }; then
5844 # Broken: success on invalid input.
5845 continue
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 # Passes both tests.
5851 ac_preproc_ok=:
5852 break
5855 rm -f conftest.err conftest.$ac_ext
5857 done
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.err conftest.$ac_ext
5860 if $ac_preproc_ok; then
5862 else
5863 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5864 See \`config.log' for more details." >&5
5865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5866 See \`config.log' for more details." >&2;}
5867 { (exit 1); exit 1; }; }
5870 ac_ext=c
5871 ac_cpp='$CPP $CPPFLAGS'
5872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5876 ac_ext=cpp
5877 ac_cpp='$CXXCPP $CPPFLAGS'
5878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5881 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5882 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5883 if test -z "$CXXCPP"; then
5884 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887 # Double quotes because CXXCPP needs to be expanded
5888 for CXXCPP in "$CXX -E" "/lib/cpp"
5890 ac_preproc_ok=false
5891 for ac_cxx_preproc_warn_flag in '' yes
5893 # Use a header file that comes with gcc, so configuring glibc
5894 # with a fresh cross-compiler works.
5895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5896 # <limits.h> exists even on freestanding compilers.
5897 # On the NeXT, cc -E runs the code through the compiler's parser,
5898 # not just through cpp. "Syntax error" is here to catch this case.
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h. */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 #ifdef __STDC__
5906 # include <limits.h>
5907 #else
5908 # include <assert.h>
5909 #endif
5910 Syntax error
5911 _ACEOF
5912 if { (ac_try="$ac_cpp conftest.$ac_ext"
5913 case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null && {
5925 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5926 test ! -s conftest.err
5927 }; then
5929 else
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 # Broken: fails on valid input.
5934 continue
5937 rm -f conftest.err conftest.$ac_ext
5939 # OK, works on sane cases. Now check whether nonexistent headers
5940 # can be detected and how.
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h. */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 #include <ac_nonexistent.h>
5948 _ACEOF
5949 if { (ac_try="$ac_cpp conftest.$ac_ext"
5950 case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953 esac
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null && {
5962 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5963 test ! -s conftest.err
5964 }; then
5965 # Broken: success on invalid input.
5966 continue
5967 else
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 # Passes both tests.
5972 ac_preproc_ok=:
5973 break
5976 rm -f conftest.err conftest.$ac_ext
5978 done
5979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5980 rm -f conftest.err conftest.$ac_ext
5981 if $ac_preproc_ok; then
5982 break
5985 done
5986 ac_cv_prog_CXXCPP=$CXXCPP
5989 CXXCPP=$ac_cv_prog_CXXCPP
5990 else
5991 ac_cv_prog_CXXCPP=$CXXCPP
5993 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5994 echo "${ECHO_T}$CXXCPP" >&6; }
5995 ac_preproc_ok=false
5996 for ac_cxx_preproc_warn_flag in '' yes
5998 # Use a header file that comes with gcc, so configuring glibc
5999 # with a fresh cross-compiler works.
6000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6001 # <limits.h> exists even on freestanding compilers.
6002 # On the NeXT, cc -E runs the code through the compiler's parser,
6003 # not just through cpp. "Syntax error" is here to catch this case.
6004 cat >conftest.$ac_ext <<_ACEOF
6005 /* confdefs.h. */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 #ifdef __STDC__
6011 # include <limits.h>
6012 #else
6013 # include <assert.h>
6014 #endif
6015 Syntax error
6016 _ACEOF
6017 if { (ac_try="$ac_cpp conftest.$ac_ext"
6018 case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021 esac
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } >/dev/null && {
6030 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6031 test ! -s conftest.err
6032 }; then
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 # Broken: fails on valid input.
6039 continue
6042 rm -f conftest.err conftest.$ac_ext
6044 # OK, works on sane cases. Now check whether nonexistent headers
6045 # can be detected and how.
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <ac_nonexistent.h>
6053 _ACEOF
6054 if { (ac_try="$ac_cpp conftest.$ac_ext"
6055 case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058 esac
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } >/dev/null && {
6067 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6068 test ! -s conftest.err
6069 }; then
6070 # Broken: success on invalid input.
6071 continue
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 # Passes both tests.
6077 ac_preproc_ok=:
6078 break
6081 rm -f conftest.err conftest.$ac_ext
6083 done
6084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6085 rm -f conftest.err conftest.$ac_ext
6086 if $ac_preproc_ok; then
6088 else
6089 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6090 See \`config.log' for more details." >&5
6091 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6092 See \`config.log' for more details." >&2;}
6093 { (exit 1); exit 1; }; }
6096 ac_ext=c
6097 ac_cpp='$CPP $CPPFLAGS'
6098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6103 # the developers regenerating the configure script don't have to install libtool.
6104 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6105 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6106 if test "${ac_cv_path_SED+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6110 for ac_i in 1 2 3 4 5 6 7; do
6111 ac_script="$ac_script$as_nl$ac_script"
6112 done
6113 echo "$ac_script" | sed 99q >conftest.sed
6114 $as_unset ac_script || ac_script=
6115 # Extract the first word of "sed gsed" to use in msg output
6116 if test -z "$SED"; then
6117 set dummy sed gsed; ac_prog_name=$2
6118 if test "${ac_cv_path_SED+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 ac_path_SED_found=false
6122 # Loop through the user's path and test for each of PROGNAME-LIST
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_prog in sed gsed; do
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6131 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6132 # Check for GNU ac_path_SED and select it if it is found.
6133 # Check for GNU $ac_path_SED
6134 case `"$ac_path_SED" --version 2>&1` in
6135 *GNU*)
6136 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6138 ac_count=0
6139 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6140 while :
6142 cat "conftest.in" "conftest.in" >"conftest.tmp"
6143 mv "conftest.tmp" "conftest.in"
6144 cp "conftest.in" "conftest.nl"
6145 echo '' >> "conftest.nl"
6146 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6148 ac_count=`expr $ac_count + 1`
6149 if test $ac_count -gt ${ac_path_SED_max-0}; then
6150 # Best one so far, save it but keep looking for a better one
6151 ac_cv_path_SED="$ac_path_SED"
6152 ac_path_SED_max=$ac_count
6154 # 10*(2^10) chars as input seems more than enough
6155 test $ac_count -gt 10 && break
6156 done
6157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6158 esac
6161 $ac_path_SED_found && break 3
6162 done
6163 done
6165 done
6166 IFS=$as_save_IFS
6171 SED="$ac_cv_path_SED"
6172 if test -z "$SED"; then
6173 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6174 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6175 { (exit 1); exit 1; }; }
6178 else
6179 ac_cv_path_SED=$SED
6183 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6184 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6185 SED="$ac_cv_path_SED"
6186 rm -f conftest.sed
6188 { echo "$as_me:$LINENO: checking for egrep" >&5
6189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_egrep+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6194 then ac_cv_prog_egrep='grep -E'
6195 else ac_cv_prog_egrep='egrep'
6198 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6200 EGREP=$ac_cv_prog_egrep
6204 # Check whether --with-gnu-ld was given.
6205 if test "${with_gnu_ld+set}" = set; then
6206 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6207 else
6208 with_gnu_ld=no
6211 ac_prog=ld
6212 if test "$GCC" = yes; then
6213 # Check if gcc -print-prog-name=ld gives a path.
6214 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6215 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6216 case $host in
6217 *-*-mingw*)
6218 # gcc leaves a trailing carriage return which upsets mingw
6219 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6221 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6222 esac
6223 case $ac_prog in
6224 # Accept absolute paths.
6225 [\\/]* | ?:[\\/]*)
6226 re_direlt='/[^/][^/]*/\.\./'
6227 # Canonicalize the pathname of ld
6228 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6229 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6230 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6231 done
6232 test -z "$LD" && LD="$ac_prog"
6235 # If it fails, then pretend we aren't using GCC.
6236 ac_prog=ld
6239 # If it is relative, then search for the first ld in PATH.
6240 with_gnu_ld=unknown
6242 esac
6243 elif test "$with_gnu_ld" = yes; then
6244 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6245 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6246 else
6247 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6248 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6250 if test "${lt_cv_path_LD+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 if test -z "$LD"; then
6254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6255 for ac_dir in $PATH; do
6256 IFS="$lt_save_ifs"
6257 test -z "$ac_dir" && ac_dir=.
6258 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6259 lt_cv_path_LD="$ac_dir/$ac_prog"
6260 # Check to see if the program is GNU ld. I'd rather use --version,
6261 # but apparently some variants of GNU ld only accept -v.
6262 # Break only if it was the GNU/non-GNU ld that we prefer.
6263 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6264 *GNU* | *'with BFD'*)
6265 test "$with_gnu_ld" != no && break
6268 test "$with_gnu_ld" != yes && break
6270 esac
6272 done
6273 IFS="$lt_save_ifs"
6274 else
6275 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6279 LD="$lt_cv_path_LD"
6280 if test -n "$LD"; then
6281 { echo "$as_me:$LINENO: result: $LD" >&5
6282 echo "${ECHO_T}$LD" >&6; }
6283 else
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6287 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6288 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6289 { (exit 1); exit 1; }; }
6290 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6291 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6292 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6296 case `$LD -v 2>&1 </dev/null` in
6297 *GNU* | *'with BFD'*)
6298 lt_cv_prog_gnu_ld=yes
6301 lt_cv_prog_gnu_ld=no
6303 esac
6305 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6306 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6307 with_gnu_ld=$lt_cv_prog_gnu_ld
6309 # note, does not work on FreeBSD
6310 for ac_prog in gawk mawk nawk awk
6312 # Extract the first word of "$ac_prog", so it can be a program name with args.
6313 set dummy $ac_prog; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_prog_AWK+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319 if test -n "$AWK"; then
6320 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_AWK="$ac_prog"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6339 AWK=$ac_cv_prog_AWK
6340 if test -n "$AWK"; then
6341 { echo "$as_me:$LINENO: result: $AWK" >&5
6342 echo "${ECHO_T}$AWK" >&6; }
6343 else
6344 { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6349 test -n "$AWK" && break
6350 done
6352 # Find a good install program. We prefer a C program (faster),
6353 # so one script is as good as another. But avoid the broken or
6354 # incompatible versions:
6355 # SysV /etc/install, /usr/sbin/install
6356 # SunOS /usr/etc/install
6357 # IRIX /sbin/install
6358 # AIX /bin/install
6359 # AmigaOS /C/install, which installs bootblocks on floppy discs
6360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6363 # OS/2's system install, which has a completely different semantic
6364 # ./install, which can be erroneously created by make from ./install.sh.
6365 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6366 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6367 if test -z "$INSTALL"; then
6368 if test "${ac_cv_path_install+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 # Account for people who put trailing slashes in PATH elements.
6377 case $as_dir/ in
6378 ./ | .// | /cC/* | \
6379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6380 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6381 /usr/ucb/* ) ;;
6383 # OSF1 and SCO ODT 3.0 have their own names for install.
6384 # Don't use installbsd from OSF since it installs stuff as root
6385 # by default.
6386 for ac_prog in ginstall scoinst install; do
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6389 if test $ac_prog = install &&
6390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6391 # AIX install. It has an incompatible calling convention.
6393 elif test $ac_prog = install &&
6394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6395 # program-specific install script used by HP pwplus--don't use.
6397 else
6398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6399 break 3
6402 done
6403 done
6405 esac
6406 done
6407 IFS=$as_save_IFS
6411 if test "${ac_cv_path_install+set}" = set; then
6412 INSTALL=$ac_cv_path_install
6413 else
6414 # As a last resort, use the slow shell script. Don't cache a
6415 # value for INSTALL within a source directory, because that will
6416 # break other packages using the cache if that directory is
6417 # removed, or if the value is a relative name.
6418 INSTALL=$ac_install_sh
6421 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6422 echo "${ECHO_T}$INSTALL" >&6; }
6424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6425 # It thinks the first close brace ends the variable substitution.
6426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6432 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6433 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6434 LN_S=$as_ln_s
6435 if test "$LN_S" = "ln -s"; then
6436 { echo "$as_me:$LINENO: result: yes" >&5
6437 echo "${ECHO_T}yes" >&6; }
6438 else
6439 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6440 echo "${ECHO_T}no, using $LN_S" >&6; }
6443 if test -n "$ac_tool_prefix"; then
6444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448 if test "${ac_cv_prog_RANLIB+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 if test -n "$RANLIB"; then
6452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6465 done
6466 done
6467 IFS=$as_save_IFS
6471 RANLIB=$ac_cv_prog_RANLIB
6472 if test -n "$RANLIB"; then
6473 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6474 echo "${ECHO_T}$RANLIB" >&6; }
6475 else
6476 { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6482 if test -z "$ac_cv_prog_RANLIB"; then
6483 ac_ct_RANLIB=$RANLIB
6484 # Extract the first word of "ranlib", so it can be a program name with args.
6485 set dummy ranlib; ac_word=$2
6486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491 if test -n "$ac_ct_RANLIB"; then
6492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_prog_ac_ct_RANLIB="ranlib"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6505 done
6506 done
6507 IFS=$as_save_IFS
6511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6512 if test -n "$ac_ct_RANLIB"; then
6513 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6514 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6515 else
6516 { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6520 if test "x$ac_ct_RANLIB" = x; then
6521 RANLIB=":"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6526 whose name does not start with the host triplet. If you think this
6527 configuration is useful to you, please write to autoconf@gnu.org." >&5
6528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet. If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533 RANLIB=$ac_ct_RANLIB
6535 else
6536 RANLIB="$ac_cv_prog_RANLIB"
6539 { echo "$as_me:$LINENO: checking for GNU make" >&5
6540 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6541 if test "${GNU_MAKE+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544 GNU_MAKE='Not Found' ;
6545 GNU_MAKE_VERSION_MAJOR=0 ;
6546 GNU_MAKE_VERSION_MINOR=0 ;
6547 for a in make gmake gnumake ; do
6548 if test -z "$a" ; then continue ; fi ;
6549 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6550 GNU_MAKE=$a ;
6551 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6552 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6553 break;
6555 done ;
6558 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6559 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6560 if test "x$GNU_MAKE" = "xNot Found" ; then
6561 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6562 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6563 { (exit 1); exit 1; }; }
6564 exit 1
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}strip; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_path_STRIP+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 case $STRIP in
6578 [\\/]* | ?:[\\/]*)
6579 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6593 done
6594 done
6595 IFS=$as_save_IFS
6598 esac
6600 STRIP=$ac_cv_path_STRIP
6601 if test -n "$STRIP"; then
6602 { echo "$as_me:$LINENO: result: $STRIP" >&5
6603 echo "${ECHO_T}$STRIP" >&6; }
6604 else
6605 { echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6; }
6611 if test -z "$ac_cv_path_STRIP"; then
6612 ac_pt_STRIP=$STRIP
6613 # Extract the first word of "strip", so it can be a program name with args.
6614 set dummy strip; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 case $ac_pt_STRIP in
6621 [\\/]* | ?:[\\/]*)
6622 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6636 done
6637 done
6638 IFS=$as_save_IFS
6641 esac
6643 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6644 if test -n "$ac_pt_STRIP"; then
6645 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6646 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6647 else
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6652 if test "x$ac_pt_STRIP" = x; then
6653 STRIP=":"
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656 yes:)
6657 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6658 whose name does not start with the host triplet. If you think this
6659 configuration is useful to you, please write to autoconf@gnu.org." >&5
6660 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6661 whose name does not start with the host triplet. If you think this
6662 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6663 ac_tool_warned=yes ;;
6664 esac
6665 STRIP=$ac_pt_STRIP
6667 else
6668 STRIP="$ac_cv_path_STRIP"
6671 if test -n "$ac_tool_prefix"; then
6672 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6673 set dummy ${ac_tool_prefix}ar; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_AR+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 case $AR in
6680 [\\/]* | ?:[\\/]*)
6681 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6695 done
6696 done
6697 IFS=$as_save_IFS
6700 esac
6702 AR=$ac_cv_path_AR
6703 if test -n "$AR"; then
6704 { echo "$as_me:$LINENO: result: $AR" >&5
6705 echo "${ECHO_T}$AR" >&6; }
6706 else
6707 { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6713 if test -z "$ac_cv_path_AR"; then
6714 ac_pt_AR=$AR
6715 # Extract the first word of "ar", so it can be a program name with args.
6716 set dummy ar; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 case $ac_pt_AR in
6723 [\\/]* | ?:[\\/]*)
6724 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6743 esac
6745 ac_pt_AR=$ac_cv_path_ac_pt_AR
6746 if test -n "$ac_pt_AR"; then
6747 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6748 echo "${ECHO_T}$ac_pt_AR" >&6; }
6749 else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6754 if test "x$ac_pt_AR" = x; then
6755 AR=":"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet. If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&5
6762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767 AR=$ac_pt_AR
6769 else
6770 AR="$ac_cv_path_AR"
6774 GNU_LD=0
6775 if test "x$with_gnu_ld" = "xyes" ; then
6776 GNU_LD=1
6780 # Extract the first word of "grep", so it can be a program name with args.
6781 set dummy grep; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_path_GREP+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787 case $GREP in
6788 [\\/]* | ?:[\\/]*)
6789 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6803 done
6804 done
6805 IFS=$as_save_IFS
6807 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6809 esac
6811 GREP=$ac_cv_path_GREP
6812 if test -n "$GREP"; then
6813 { echo "$as_me:$LINENO: result: $GREP" >&5
6814 echo "${ECHO_T}$GREP" >&6; }
6815 else
6816 { echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6; }
6821 # Extract the first word of "find", so it can be a program name with args.
6822 set dummy find; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_FIND+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 case $FIND in
6829 [\\/]* | ?:[\\/]*)
6830 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 break 2
6844 done
6845 done
6846 IFS=$as_save_IFS
6848 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6850 esac
6852 FIND=$ac_cv_path_FIND
6853 if test -n "$FIND"; then
6854 { echo "$as_me:$LINENO: result: $FIND" >&5
6855 echo "${ECHO_T}$FIND" >&6; }
6856 else
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6862 # Extract the first word of "compress", so it can be a program name with args.
6863 set dummy compress; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_path_COMPRESS+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 case $COMPRESS in
6870 [\\/]* | ?:[\\/]*)
6871 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6885 done
6886 done
6887 IFS=$as_save_IFS
6889 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6891 esac
6893 COMPRESS=$ac_cv_path_COMPRESS
6894 if test -n "$COMPRESS"; then
6895 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6896 echo "${ECHO_T}$COMPRESS" >&6; }
6897 else
6898 { echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6; }
6903 # Extract the first word of "basename", so it can be a program name with args.
6904 set dummy basename; ac_word=$2
6905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6907 if test "${ac_cv_path_BASENAME+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 case $BASENAME in
6911 [\\/]* | ?:[\\/]*)
6912 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6926 done
6927 done
6928 IFS=$as_save_IFS
6930 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6932 esac
6934 BASENAME=$ac_cv_path_BASENAME
6935 if test -n "$BASENAME"; then
6936 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6937 echo "${ECHO_T}$BASENAME" >&6; }
6938 else
6939 { echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6; }
6944 # Extract the first word of "id", so it can be a program name with args.
6945 set dummy id; ac_word=$2
6946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948 if test "${ac_cv_path_ID+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951 case $ID in
6952 [\\/]* | ?:[\\/]*)
6953 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6967 done
6968 done
6969 IFS=$as_save_IFS
6971 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6973 esac
6975 ID=$ac_cv_path_ID
6976 if test -n "$ID"; then
6977 { echo "$as_me:$LINENO: result: $ID" >&5
6978 echo "${ECHO_T}$ID" >&6; }
6979 else
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6985 # Extract the first word of "dirname", so it can be a program name with args.
6986 set dummy dirname; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_path_DIRNAME+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 case $DIRNAME in
6993 [\\/]* | ?:[\\/]*)
6994 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7008 done
7009 done
7010 IFS=$as_save_IFS
7012 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7014 esac
7016 DIRNAME=$ac_cv_path_DIRNAME
7017 if test -n "$DIRNAME"; then
7018 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7019 echo "${ECHO_T}$DIRNAME" >&6; }
7020 else
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7026 # Extract the first word of "sh", so it can be a program name with args.
7027 set dummy sh; ac_word=$2
7028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7030 if test "${ac_cv_path_SHELL+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 case $SHELL in
7034 [\\/]* | ?:[\\/]*)
7035 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7053 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7055 esac
7057 SHELL=$ac_cv_path_SHELL
7058 if test -n "$SHELL"; then
7059 { echo "$as_me:$LINENO: result: $SHELL" >&5
7060 echo "${ECHO_T}$SHELL" >&6; }
7061 else
7062 { echo "$as_me:$LINENO: result: no" >&5
7063 echo "${ECHO_T}no" >&6; }
7067 # Extract the first word of "ln", so it can be a program name with args.
7068 set dummy ln; ac_word=$2
7069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7071 if test "${ac_cv_path_LN+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 case $LN in
7075 [\\/]* | ?:[\\/]*)
7076 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7094 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7096 esac
7098 LN=$ac_cv_path_LN
7099 if test -n "$LN"; then
7100 { echo "$as_me:$LINENO: result: $LN" >&5
7101 echo "${ECHO_T}$LN" >&6; }
7102 else
7103 { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7108 # Extract the first word of "dot", so it can be a program name with args.
7109 set dummy dot; ac_word=$2
7110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7112 if test "${ac_cv_path_DOT+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115 case $DOT in
7116 [\\/]* | ?:[\\/]*)
7117 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7131 done
7132 done
7133 IFS=$as_save_IFS
7135 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7137 esac
7139 DOT=$ac_cv_path_DOT
7140 if test -n "$DOT"; then
7141 { echo "$as_me:$LINENO: result: $DOT" >&5
7142 echo "${ECHO_T}$DOT" >&6; }
7143 else
7144 { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7149 # Extract the first word of "wget", so it can be a program name with args.
7150 set dummy wget; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_WGET+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 case $WGET in
7157 [\\/]* | ?:[\\/]*)
7158 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7172 done
7173 done
7174 IFS=$as_save_IFS
7176 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7178 esac
7180 WGET=$ac_cv_path_WGET
7181 if test -n "$WGET"; then
7182 { echo "$as_me:$LINENO: result: $WGET" >&5
7183 echo "${ECHO_T}$WGET" >&6; }
7184 else
7185 { echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6; }
7190 # Extract the first word of "rubber", so it can be a program name with args.
7191 set dummy rubber; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_RUBBER+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 case $RUBBER in
7198 [\\/]* | ?:[\\/]*)
7199 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7213 done
7214 done
7215 IFS=$as_save_IFS
7217 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7219 esac
7221 RUBBER=$ac_cv_path_RUBBER
7222 if test -n "$RUBBER"; then
7223 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7224 echo "${ECHO_T}$RUBBER" >&6; }
7225 else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7231 # Extract the first word of "kpsewhich", so it can be a program name with args.
7232 set dummy kpsewhich; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 case $KPATHSEA in
7239 [\\/]* | ?:[\\/]*)
7240 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7254 done
7255 done
7256 IFS=$as_save_IFS
7258 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7260 esac
7262 KPATHSEA=$ac_cv_path_KPATHSEA
7263 if test -n "$KPATHSEA"; then
7264 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7265 echo "${ECHO_T}$KPATHSEA" >&6; }
7266 else
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 if test "${WGET}" != ":" ; then
7273 DOWNLOAD=${WGET}
7274 else
7275 # Extract the first word of "fetch", so it can be a program name with args.
7276 set dummy fetch; ac_word=$2
7277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279 if test "${ac_cv_path_FETCH+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282 case $FETCH in
7283 [\\/]* | ?:[\\/]*)
7284 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7298 done
7299 done
7300 IFS=$as_save_IFS
7302 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7304 esac
7306 FETCH=$ac_cv_path_FETCH
7307 if test -n "$FETCH"; then
7308 { echo "$as_me:$LINENO: result: $FETCH" >&5
7309 echo "${ECHO_T}$FETCH" >&6; }
7310 else
7311 { echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6; }
7316 DOWNLOAD=${FETCH}
7320 if test -n "$ac_tool_prefix"; then
7321 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7322 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 if test -n "$SOXMIX"; then
7329 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7342 done
7343 done
7344 IFS=$as_save_IFS
7348 SOXMIX=$ac_cv_prog_SOXMIX
7349 if test -n "$SOXMIX"; then
7350 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7351 echo "${ECHO_T}$SOXMIX" >&6; }
7352 else
7353 { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7359 if test -z "$ac_cv_prog_SOXMIX"; then
7360 ac_ct_SOXMIX=$SOXMIX
7361 # Extract the first word of "soxmix", so it can be a program name with args.
7362 set dummy soxmix; ac_word=$2
7363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368 if test -n "$ac_ct_SOXMIX"; then
7369 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7382 done
7383 done
7384 IFS=$as_save_IFS
7388 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7389 if test -n "$ac_ct_SOXMIX"; then
7390 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7391 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7392 else
7393 { echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6; }
7397 if test "x$ac_ct_SOXMIX" = x; then
7398 SOXMIX=":"
7399 else
7400 case $cross_compiling:$ac_tool_warned in
7401 yes:)
7402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7403 whose name does not start with the host triplet. If you think this
7404 configuration is useful to you, please write to autoconf@gnu.org." >&5
7405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7406 whose name does not start with the host triplet. If you think this
7407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410 SOXMIX=$ac_ct_SOXMIX
7412 else
7413 SOXMIX="$ac_cv_prog_SOXMIX"
7416 if test "${SOXMIX}" != ":" ; then
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_SOXMIX 1
7420 _ACEOF
7427 ac_ext=c
7428 ac_cpp='$CPP $CPPFLAGS'
7429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433 acx_pthread_ok=no
7435 # We used to check for pthread.h first, but this fails if pthread.h
7436 # requires special compiler flags (e.g. on True64 or Sequent).
7437 # It gets checked for in the link test anyway.
7439 # First of all, check if the user has set any of the PTHREAD_LIBS,
7440 # etcetera environment variables, and if threads linking works using
7441 # them:
7442 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7443 save_CFLAGS="$CFLAGS"
7444 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7445 save_LIBS="$LIBS"
7446 LIBS="$PTHREAD_LIBS $LIBS"
7447 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7448 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7449 cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h. */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7456 /* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
7459 #ifdef __cplusplus
7460 extern "C"
7461 #endif
7462 char pthread_join ();
7464 main ()
7466 return pthread_join ();
7468 return 0;
7470 _ACEOF
7471 rm -f conftest.$ac_objext conftest$ac_exeext
7472 if { (ac_try="$ac_link"
7473 case "(($ac_try" in
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7476 esac
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_link") 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest$ac_exeext &&
7488 $as_test_x conftest$ac_exeext; then
7489 acx_pthread_ok=yes
7490 else
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7498 conftest$ac_exeext conftest.$ac_ext
7499 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7500 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7501 if test x"$acx_pthread_ok" = xno; then
7502 PTHREAD_LIBS=""
7503 PTHREAD_CFLAGS=""
7505 LIBS="$save_LIBS"
7506 CFLAGS="$save_CFLAGS"
7509 # We must check for the threads library under a number of different
7510 # names; the ordering is very important because some systems
7511 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7512 # libraries is broken (non-POSIX).
7514 # Create a list of thread flags to try. Items starting with a "-" are
7515 # C compiler flags, and other items are library names, except for "none"
7516 # which indicates that we try without any flags at all, and "pthread-config"
7517 # which is a program returning the flags for the Pth emulation library.
7519 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7521 # The ordering *is* (sometimes) important. Some notes on the
7522 # individual items follow:
7524 # pthreads: AIX (must check this before -lpthread)
7525 # none: in case threads are in libc; should be tried before -Kthread and
7526 # other compiler flags to prevent continual compiler warnings
7527 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7528 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7529 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7530 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7531 # -pthreads: Solaris/gcc
7532 # -mthreads: Mingw32/gcc, Lynx/gcc
7533 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7534 # doesn't hurt to check since this sometimes defines pthreads too;
7535 # also defines -D_REENTRANT)
7536 # ... -mt is also the pthreads flag for HP/aCC
7537 # pthread: Linux, etcetera
7538 # --thread-safe: KAI C++
7539 # pthread-config: use pthread-config program (for GNU Pth library)
7541 case "${host_cpu}-${host_os}" in
7542 *solaris*)
7544 # On Solaris (at least, for some versions), libc contains stubbed
7545 # (non-functional) versions of the pthreads routines, so link-based
7546 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7547 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7548 # a function called by this macro, so we could check for that, but
7549 # who knows whether they'll stub that too in a future libc.) So,
7550 # we'll just look for -pthreads and -lpthread first:
7552 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7554 esac
7556 if test x"$acx_pthread_ok" = xno; then
7557 for flag in $acx_pthread_flags; do
7559 case $flag in
7560 none)
7561 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7562 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7566 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7567 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7568 PTHREAD_CFLAGS="$flag"
7571 pthread-config)
7572 # Extract the first word of "pthread-config", so it can be a program name with args.
7573 set dummy pthread-config; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 if test -n "$acx_pthread_config"; then
7580 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7589 ac_cv_prog_acx_pthread_config="yes"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7593 done
7594 done
7595 IFS=$as_save_IFS
7597 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7600 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7601 if test -n "$acx_pthread_config"; then
7602 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7603 echo "${ECHO_T}$acx_pthread_config" >&6; }
7604 else
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7610 if test x"$acx_pthread_config" = xno; then continue; fi
7611 PTHREAD_CFLAGS="`pthread-config --cflags`"
7612 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7616 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7617 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7618 PTHREAD_LIBS="-l$flag"
7620 esac
7622 save_LIBS="$LIBS"
7623 save_CFLAGS="$CFLAGS"
7624 LIBS="$PTHREAD_LIBS $LIBS"
7625 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7627 # Check for various functions. We must include pthread.h,
7628 # since some functions may be macros. (On the Sequent, we
7629 # need a special flag -Kthread to make this header compile.)
7630 # We check for pthread_join because it is in -lpthread on IRIX
7631 # while pthread_create is in libc. We check for pthread_attr_init
7632 # due to DEC craziness with -lpthreads. We check for
7633 # pthread_cleanup_push because it is one of the few pthread
7634 # functions on Solaris that doesn't have a non-functional libc stub.
7635 # We try pthread_create on general principles.
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7642 #include <pthread.h>
7644 main ()
7646 pthread_t th; pthread_join(th, 0);
7647 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7648 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7650 return 0;
7652 _ACEOF
7653 rm -f conftest.$ac_objext conftest$ac_exeext
7654 if { (ac_try="$ac_link"
7655 case "(($ac_try" in
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7658 esac
7659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660 (eval "$ac_link") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest$ac_exeext &&
7670 $as_test_x conftest$ac_exeext; then
7671 acx_pthread_ok=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7680 conftest$ac_exeext conftest.$ac_ext
7682 LIBS="$save_LIBS"
7683 CFLAGS="$save_CFLAGS"
7685 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7686 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7687 if test "x$acx_pthread_ok" = xyes; then
7688 break;
7691 PTHREAD_LIBS=""
7692 PTHREAD_CFLAGS=""
7693 done
7696 # Various other checks:
7697 if test "x$acx_pthread_ok" = xyes; then
7698 save_LIBS="$LIBS"
7699 LIBS="$PTHREAD_LIBS $LIBS"
7700 save_CFLAGS="$CFLAGS"
7701 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7703 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7704 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7705 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7706 attr_name=unknown
7707 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h. */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 #include <pthread.h>
7716 main ()
7718 int attr=$attr; return attr;
7720 return 0;
7722 _ACEOF
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (ac_try="$ac_link"
7725 case "(($ac_try" in
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7728 esac
7729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7730 (eval "$ac_link") 2>conftest.er1
7731 ac_status=$?
7732 grep -v '^ *+' conftest.er1 >conftest.err
7733 rm -f conftest.er1
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } && {
7737 test -z "$ac_c_werror_flag" ||
7738 test ! -s conftest.err
7739 } && test -s conftest$ac_exeext &&
7740 $as_test_x conftest$ac_exeext; then
7741 attr_name=$attr; break
7742 else
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7750 conftest$ac_exeext conftest.$ac_ext
7751 done
7752 { echo "$as_me:$LINENO: result: $attr_name" >&5
7753 echo "${ECHO_T}$attr_name" >&6; }
7754 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7756 cat >>confdefs.h <<_ACEOF
7757 #define PTHREAD_CREATE_JOINABLE $attr_name
7758 _ACEOF
7762 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7763 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7764 flag=no
7765 case "${host_cpu}-${host_os}" in
7766 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7767 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7768 esac
7769 { echo "$as_me:$LINENO: result: ${flag}" >&5
7770 echo "${ECHO_T}${flag}" >&6; }
7771 if test "x$flag" != xno; then
7772 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7775 LIBS="$save_LIBS"
7776 CFLAGS="$save_CFLAGS"
7778 # More AIX lossage: must compile with xlc_r or cc_r
7779 if test x"$GCC" != xyes; then
7780 for ac_prog in xlc_r cc_r
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 if test -n "$PTHREAD_CC"; then
7790 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_prog_PTHREAD_CC="$ac_prog"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7803 done
7804 done
7805 IFS=$as_save_IFS
7809 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7810 if test -n "$PTHREAD_CC"; then
7811 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7812 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7813 else
7814 { echo "$as_me:$LINENO: result: no" >&5
7815 echo "${ECHO_T}no" >&6; }
7819 test -n "$PTHREAD_CC" && break
7820 done
7821 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7823 else
7824 PTHREAD_CC=$CC
7826 else
7827 PTHREAD_CC="$CC"
7834 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7835 if test x"$acx_pthread_ok" = xyes; then
7837 cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_PTHREAD 1
7839 _ACEOF
7842 else
7843 acx_pthread_ok=no
7846 ac_ext=c
7847 ac_cpp='$CPP $CPPFLAGS'
7848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854 ac_ext=c
7855 ac_cpp='$CPP $CPPFLAGS'
7856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861 # Check whether --enable-dev-mode was given.
7862 if test "${enable_dev_mode+set}" = set; then
7863 enableval=$enable_dev_mode; case "${enableval}" in
7864 y|ye|yes) AST_DEVMODE=yes ;;
7865 n|no) AST_DEVMODE=no ;;
7866 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7867 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7868 { (exit 1); exit 1; }; } ;;
7869 esac
7874 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7875 # various packages.
7876 # $1 is the prefix for the variables in makeopts and autoconfig.h
7877 # $2 is the short comment, $4 is the long comment
7878 # $3 is the name used in --with- or --without- flags for configure.
7880 # Package option names should be in alphabetical order
7881 # by the --with option name (the third field),
7882 # to make things easier for the users.
7885 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7886 ALSA_OPTION="asound"
7888 # Check whether --with-asound was given.
7889 if test "${with_asound+set}" = set; then
7890 withval=$with_asound;
7891 case ${withval} in
7892 n|no)
7893 USE_ALSA=no
7895 y|ye|yes)
7896 ac_mandatory_list="${ac_mandatory_list} ALSA"
7899 ALSA_DIR="${withval}"
7900 ac_mandatory_list="${ac_mandatory_list} ALSA"
7902 esac
7906 PBX_ALSA=0
7913 # BKTR is used for backtrace support on platforms that do not
7914 # have it natively.
7916 BKTR_DESCRIP="Stack Backtrace support"
7917 BKTR_OPTION="execinfo"
7919 # Check whether --with-execinfo was given.
7920 if test "${with_execinfo+set}" = set; then
7921 withval=$with_execinfo;
7922 case ${withval} in
7923 n|no)
7924 USE_BKTR=no
7926 y|ye|yes)
7927 ac_mandatory_list="${ac_mandatory_list} BKTR"
7930 BKTR_DIR="${withval}"
7931 ac_mandatory_list="${ac_mandatory_list} BKTR"
7933 esac
7937 PBX_BKTR=0
7944 CAP_DESCRIP="POSIX 1.e capabilities"
7945 CAP_OPTION="cap"
7947 # Check whether --with-cap was given.
7948 if test "${with_cap+set}" = set; then
7949 withval=$with_cap;
7950 case ${withval} in
7951 n|no)
7952 USE_CAP=no
7954 y|ye|yes)
7955 ac_mandatory_list="${ac_mandatory_list} CAP"
7958 CAP_DIR="${withval}"
7959 ac_mandatory_list="${ac_mandatory_list} CAP"
7961 esac
7965 PBX_CAP=0
7972 CURL_DESCRIP="cURL"
7973 CURL_OPTION="curl"
7975 # Check whether --with-curl was given.
7976 if test "${with_curl+set}" = set; then
7977 withval=$with_curl;
7978 case ${withval} in
7979 n|no)
7980 USE_CURL=no
7982 y|ye|yes)
7983 ac_mandatory_list="${ac_mandatory_list} CURL"
7986 CURL_DIR="${withval}"
7987 ac_mandatory_list="${ac_mandatory_list} CURL"
7989 esac
7993 PBX_CURL=0
8000 CURSES_DESCRIP="curses"
8001 CURSES_OPTION="curses"
8003 # Check whether --with-curses was given.
8004 if test "${with_curses+set}" = set; then
8005 withval=$with_curses;
8006 case ${withval} in
8007 n|no)
8008 USE_CURSES=no
8010 y|ye|yes)
8011 ac_mandatory_list="${ac_mandatory_list} CURSES"
8014 CURSES_DIR="${withval}"
8015 ac_mandatory_list="${ac_mandatory_list} CURSES"
8017 esac
8021 PBX_CURSES=0
8028 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8029 CRYPTO_OPTION="crypto"
8031 # Check whether --with-crypto was given.
8032 if test "${with_crypto+set}" = set; then
8033 withval=$with_crypto;
8034 case ${withval} in
8035 n|no)
8036 USE_CRYPTO=no
8038 y|ye|yes)
8039 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8042 CRYPTO_DIR="${withval}"
8043 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8045 esac
8049 PBX_CRYPTO=0
8056 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8057 FFMPEG_OPTION="avcodec"
8059 # Check whether --with-avcodec was given.
8060 if test "${with_avcodec+set}" = set; then
8061 withval=$with_avcodec;
8062 case ${withval} in
8063 n|no)
8064 USE_FFMPEG=no
8066 y|ye|yes)
8067 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8070 FFMPEG_DIR="${withval}"
8071 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8073 esac
8077 PBX_FFMPEG=0
8084 GSM_DESCRIP="External GSM library"
8085 GSM_OPTION="gsm"
8087 # Check whether --with-gsm was given.
8088 if test "${with_gsm+set}" = set; then
8089 withval=$with_gsm;
8090 case ${withval} in
8091 n|no)
8092 USE_GSM=no
8094 y|ye|yes)
8095 ac_mandatory_list="${ac_mandatory_list} GSM"
8098 GSM_DIR="${withval}"
8099 ac_mandatory_list="${ac_mandatory_list} GSM"
8101 esac
8105 PBX_GSM=0
8112 GTK_DESCRIP="gtk libraries"
8113 GTK_OPTION="gtk"
8115 # Check whether --with-gtk was given.
8116 if test "${with_gtk+set}" = set; then
8117 withval=$with_gtk;
8118 case ${withval} in
8119 n|no)
8120 USE_GTK=no
8122 y|ye|yes)
8123 ac_mandatory_list="${ac_mandatory_list} GTK"
8126 GTK_DIR="${withval}"
8127 ac_mandatory_list="${ac_mandatory_list} GTK"
8129 esac
8133 PBX_GTK=0
8140 GTK2_DESCRIP="gtk2 libraries"
8141 GTK2_OPTION="gtk2"
8143 # Check whether --with-gtk2 was given.
8144 if test "${with_gtk2+set}" = set; then
8145 withval=$with_gtk2;
8146 case ${withval} in
8147 n|no)
8148 USE_GTK2=no
8150 y|ye|yes)
8151 ac_mandatory_list="${ac_mandatory_list} GTK2"
8154 GTK2_DIR="${withval}"
8155 ac_mandatory_list="${ac_mandatory_list} GTK2"
8157 esac
8161 PBX_GTK2=0
8168 GMIME_DESCRIP="GMime library"
8169 GMIME_OPTION="gmime"
8171 # Check whether --with-gmime was given.
8172 if test "${with_gmime+set}" = set; then
8173 withval=$with_gmime;
8174 case ${withval} in
8175 n|no)
8176 USE_GMIME=no
8178 y|ye|yes)
8179 ac_mandatory_list="${ac_mandatory_list} GMIME"
8182 GMIME_DIR="${withval}"
8183 ac_mandatory_list="${ac_mandatory_list} GMIME"
8185 esac
8189 PBX_GMIME=0
8196 ICONV_DESCRIP="Iconv Library"
8197 ICONV_OPTION="iconv"
8199 # Check whether --with-iconv was given.
8200 if test "${with_iconv+set}" = set; then
8201 withval=$with_iconv;
8202 case ${withval} in
8203 n|no)
8204 USE_ICONV=no
8206 y|ye|yes)
8207 ac_mandatory_list="${ac_mandatory_list} ICONV"
8210 ICONV_DIR="${withval}"
8211 ac_mandatory_list="${ac_mandatory_list} ICONV"
8213 esac
8217 PBX_ICONV=0
8224 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8225 IKSEMEL_OPTION="iksemel"
8227 # Check whether --with-iksemel was given.
8228 if test "${with_iksemel+set}" = set; then
8229 withval=$with_iksemel;
8230 case ${withval} in
8231 n|no)
8232 USE_IKSEMEL=no
8234 y|ye|yes)
8235 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8238 IKSEMEL_DIR="${withval}"
8239 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8241 esac
8245 PBX_IKSEMEL=0
8252 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8253 IMAP_TK_OPTION="imap"
8255 # Check whether --with-imap was given.
8256 if test "${with_imap+set}" = set; then
8257 withval=$with_imap;
8258 case ${withval} in
8259 n|no)
8260 USE_IMAP_TK=no
8262 y|ye|yes)
8263 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8266 IMAP_TK_DIR="${withval}"
8267 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8269 esac
8273 PBX_IMAP_TK=0
8280 ISDNNET_DESCRIP="ISDN4Linux Library"
8281 ISDNNET_OPTION="isdnnet"
8283 # Check whether --with-isdnnet was given.
8284 if test "${with_isdnnet+set}" = set; then
8285 withval=$with_isdnnet;
8286 case ${withval} in
8287 n|no)
8288 USE_ISDNNET=no
8290 y|ye|yes)
8291 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8294 ISDNNET_DIR="${withval}"
8295 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8297 esac
8301 PBX_ISDNNET=0
8308 JACK_DESCRIP="Jack Audio Connection Kit"
8309 JACK_OPTION="jack"
8311 # Check whether --with-jack was given.
8312 if test "${with_jack+set}" = set; then
8313 withval=$with_jack;
8314 case ${withval} in
8315 n|no)
8316 USE_JACK=no
8318 y|ye|yes)
8319 ac_mandatory_list="${ac_mandatory_list} JACK"
8322 JACK_DIR="${withval}"
8323 ac_mandatory_list="${ac_mandatory_list} JACK"
8325 esac
8329 PBX_JACK=0
8336 LDAP_DESCRIP="OpenLDAP"
8337 LDAP_OPTION="ldap"
8339 # Check whether --with-ldap was given.
8340 if test "${with_ldap+set}" = set; then
8341 withval=$with_ldap;
8342 case ${withval} in
8343 n|no)
8344 USE_LDAP=no
8346 y|ye|yes)
8347 ac_mandatory_list="${ac_mandatory_list} LDAP"
8350 LDAP_DIR="${withval}"
8351 ac_mandatory_list="${ac_mandatory_list} LDAP"
8353 esac
8357 PBX_LDAP=0
8364 LTDL_DESCRIP="libtool"
8365 LTDL_OPTION="ltdl"
8367 # Check whether --with-ltdl was given.
8368 if test "${with_ltdl+set}" = set; then
8369 withval=$with_ltdl;
8370 case ${withval} in
8371 n|no)
8372 USE_LTDL=no
8374 y|ye|yes)
8375 ac_mandatory_list="${ac_mandatory_list} LTDL"
8378 LTDL_DIR="${withval}"
8379 ac_mandatory_list="${ac_mandatory_list} LTDL"
8381 esac
8385 PBX_LTDL=0
8392 LUA_DESCRIP="Lua"
8393 LUA_OPTION="lua"
8395 # Check whether --with-lua was given.
8396 if test "${with_lua+set}" = set; then
8397 withval=$with_lua;
8398 case ${withval} in
8399 n|no)
8400 USE_LUA=no
8402 y|ye|yes)
8403 ac_mandatory_list="${ac_mandatory_list} LUA"
8406 LUA_DIR="${withval}"
8407 ac_mandatory_list="${ac_mandatory_list} LUA"
8409 esac
8413 PBX_LUA=0
8420 MISDN_DESCRIP="mISDN User Library"
8421 MISDN_OPTION="misdn"
8423 # Check whether --with-misdn was given.
8424 if test "${with_misdn+set}" = set; then
8425 withval=$with_misdn;
8426 case ${withval} in
8427 n|no)
8428 USE_MISDN=no
8430 y|ye|yes)
8431 ac_mandatory_list="${ac_mandatory_list} MISDN"
8434 MISDN_DIR="${withval}"
8435 ac_mandatory_list="${ac_mandatory_list} MISDN"
8437 esac
8441 PBX_MISDN=0
8448 NBS_DESCRIP="Network Broadcast Sound"
8449 NBS_OPTION="nbs"
8451 # Check whether --with-nbs was given.
8452 if test "${with_nbs+set}" = set; then
8453 withval=$with_nbs;
8454 case ${withval} in
8455 n|no)
8456 USE_NBS=no
8458 y|ye|yes)
8459 ac_mandatory_list="${ac_mandatory_list} NBS"
8462 NBS_DIR="${withval}"
8463 ac_mandatory_list="${ac_mandatory_list} NBS"
8465 esac
8469 PBX_NBS=0
8476 NCURSES_DESCRIP="ncurses"
8477 NCURSES_OPTION="ncurses"
8479 # Check whether --with-ncurses was given.
8480 if test "${with_ncurses+set}" = set; then
8481 withval=$with_ncurses;
8482 case ${withval} in
8483 n|no)
8484 USE_NCURSES=no
8486 y|ye|yes)
8487 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8490 NCURSES_DIR="${withval}"
8491 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8493 esac
8497 PBX_NCURSES=0
8504 NETSNMP_DESCRIP="Net-SNMP"
8505 NETSNMP_OPTION="netsnmp"
8507 # Check whether --with-netsnmp was given.
8508 if test "${with_netsnmp+set}" = set; then
8509 withval=$with_netsnmp;
8510 case ${withval} in
8511 n|no)
8512 USE_NETSNMP=no
8514 y|ye|yes)
8515 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8518 NETSNMP_DIR="${withval}"
8519 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8521 esac
8525 PBX_NETSNMP=0
8532 NEWT_DESCRIP="newt"
8533 NEWT_OPTION="newt"
8535 # Check whether --with-newt was given.
8536 if test "${with_newt+set}" = set; then
8537 withval=$with_newt;
8538 case ${withval} in
8539 n|no)
8540 USE_NEWT=no
8542 y|ye|yes)
8543 ac_mandatory_list="${ac_mandatory_list} NEWT"
8546 NEWT_DIR="${withval}"
8547 ac_mandatory_list="${ac_mandatory_list} NEWT"
8549 esac
8553 PBX_NEWT=0
8560 UNIXODBC_DESCRIP="unixODBC"
8561 UNIXODBC_OPTION="odbc"
8563 # Check whether --with-odbc was given.
8564 if test "${with_odbc+set}" = set; then
8565 withval=$with_odbc;
8566 case ${withval} in
8567 n|no)
8568 USE_UNIXODBC=no
8570 y|ye|yes)
8571 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8574 UNIXODBC_DIR="${withval}"
8575 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8577 esac
8581 PBX_UNIXODBC=0
8588 OGG_DESCRIP="OGG"
8589 OGG_OPTION="ogg"
8591 # Check whether --with-ogg was given.
8592 if test "${with_ogg+set}" = set; then
8593 withval=$with_ogg;
8594 case ${withval} in
8595 n|no)
8596 USE_OGG=no
8598 y|ye|yes)
8599 ac_mandatory_list="${ac_mandatory_list} OGG"
8602 OGG_DIR="${withval}"
8603 ac_mandatory_list="${ac_mandatory_list} OGG"
8605 esac
8609 PBX_OGG=0
8616 OSPTK_DESCRIP="OSP Toolkit"
8617 OSPTK_OPTION="osptk"
8619 # Check whether --with-osptk was given.
8620 if test "${with_osptk+set}" = set; then
8621 withval=$with_osptk;
8622 case ${withval} in
8623 n|no)
8624 USE_OSPTK=no
8626 y|ye|yes)
8627 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8630 OSPTK_DIR="${withval}"
8631 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8633 esac
8637 PBX_OSPTK=0
8644 OSS_DESCRIP="Open Sound System"
8645 OSS_OPTION="oss"
8647 # Check whether --with-oss was given.
8648 if test "${with_oss+set}" = set; then
8649 withval=$with_oss;
8650 case ${withval} in
8651 n|no)
8652 USE_OSS=no
8654 y|ye|yes)
8655 ac_mandatory_list="${ac_mandatory_list} OSS"
8658 OSS_DIR="${withval}"
8659 ac_mandatory_list="${ac_mandatory_list} OSS"
8661 esac
8665 PBX_OSS=0
8672 PGSQL_DESCRIP="PostgreSQL"
8673 PGSQL_OPTION="postgres"
8675 # Check whether --with-postgres was given.
8676 if test "${with_postgres+set}" = set; then
8677 withval=$with_postgres;
8678 case ${withval} in
8679 n|no)
8680 USE_PGSQL=no
8682 y|ye|yes)
8683 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8686 PGSQL_DIR="${withval}"
8687 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8689 esac
8693 PBX_PGSQL=0
8700 POPT_DESCRIP="popt"
8701 POPT_OPTION="popt"
8703 # Check whether --with-popt was given.
8704 if test "${with_popt+set}" = set; then
8705 withval=$with_popt;
8706 case ${withval} in
8707 n|no)
8708 USE_POPT=no
8710 y|ye|yes)
8711 ac_mandatory_list="${ac_mandatory_list} POPT"
8714 POPT_DIR="${withval}"
8715 ac_mandatory_list="${ac_mandatory_list} POPT"
8717 esac
8721 PBX_POPT=0
8728 PORTAUDIO_DESCRIP="PortAudio"
8729 PORTAUDIO_OPTION="portaudio"
8731 # Check whether --with-portaudio was given.
8732 if test "${with_portaudio+set}" = set; then
8733 withval=$with_portaudio;
8734 case ${withval} in
8735 n|no)
8736 USE_PORTAUDIO=no
8738 y|ye|yes)
8739 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8742 PORTAUDIO_DIR="${withval}"
8743 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8745 esac
8749 PBX_PORTAUDIO=0
8756 PRI_DESCRIP="ISDN PRI"
8757 PRI_OPTION="pri"
8759 # Check whether --with-pri was given.
8760 if test "${with_pri+set}" = set; then
8761 withval=$with_pri;
8762 case ${withval} in
8763 n|no)
8764 USE_PRI=no
8766 y|ye|yes)
8767 ac_mandatory_list="${ac_mandatory_list} PRI"
8770 PRI_DIR="${withval}"
8771 ac_mandatory_list="${ac_mandatory_list} PRI"
8773 esac
8777 PBX_PRI=0
8784 SS7_DESCRIP="ISDN SS7"
8785 SS7_OPTION="ss7"
8787 # Check whether --with-ss7 was given.
8788 if test "${with_ss7+set}" = set; then
8789 withval=$with_ss7;
8790 case ${withval} in
8791 n|no)
8792 USE_SS7=no
8794 y|ye|yes)
8795 ac_mandatory_list="${ac_mandatory_list} SS7"
8798 SS7_DIR="${withval}"
8799 ac_mandatory_list="${ac_mandatory_list} SS7"
8801 esac
8805 PBX_SS7=0
8812 PWLIB_DESCRIP="PWlib"
8813 PWLIB_OPTION="pwlib"
8815 # Check whether --with-pwlib was given.
8816 if test "${with_pwlib+set}" = set; then
8817 withval=$with_pwlib;
8818 case ${withval} in
8819 n|no)
8820 USE_PWLIB=no
8822 y|ye|yes)
8823 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8826 PWLIB_DIR="${withval}"
8827 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8829 esac
8833 PBX_PWLIB=0
8840 OPENH323_DESCRIP="OpenH323"
8841 OPENH323_OPTION="h323"
8843 # Check whether --with-h323 was given.
8844 if test "${with_h323+set}" = set; then
8845 withval=$with_h323;
8846 case ${withval} in
8847 n|no)
8848 USE_OPENH323=no
8850 y|ye|yes)
8851 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8854 OPENH323_DIR="${withval}"
8855 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8857 esac
8861 PBX_OPENH323=0
8868 RADIUS_DESCRIP="Radius Client"
8869 RADIUS_OPTION="radius"
8871 # Check whether --with-radius was given.
8872 if test "${with_radius+set}" = set; then
8873 withval=$with_radius;
8874 case ${withval} in
8875 n|no)
8876 USE_RADIUS=no
8878 y|ye|yes)
8879 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8882 RADIUS_DIR="${withval}"
8883 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8885 esac
8889 PBX_RADIUS=0
8896 SDL_DESCRIP="Sdl"
8897 SDL_OPTION="sdl"
8899 # Check whether --with-sdl was given.
8900 if test "${with_sdl+set}" = set; then
8901 withval=$with_sdl;
8902 case ${withval} in
8903 n|no)
8904 USE_SDL=no
8906 y|ye|yes)
8907 ac_mandatory_list="${ac_mandatory_list} SDL"
8910 SDL_DIR="${withval}"
8911 ac_mandatory_list="${ac_mandatory_list} SDL"
8913 esac
8917 PBX_SDL=0
8924 SDL_IMAGE_DESCRIP="Sdl Image library"
8925 SDL_IMAGE_OPTION="SDL_image"
8927 # Check whether --with-SDL_image was given.
8928 if test "${with_SDL_image+set}" = set; then
8929 withval=$with_SDL_image;
8930 case ${withval} in
8931 n|no)
8932 USE_SDL_IMAGE=no
8934 y|ye|yes)
8935 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8938 SDL_IMAGE_DIR="${withval}"
8939 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
8941 esac
8945 PBX_SDL_IMAGE=0
8952 SPEEX_DESCRIP="Speex"
8953 SPEEX_OPTION="speex"
8955 # Check whether --with-speex was given.
8956 if test "${with_speex+set}" = set; then
8957 withval=$with_speex;
8958 case ${withval} in
8959 n|no)
8960 USE_SPEEX=no
8962 y|ye|yes)
8963 ac_mandatory_list="${ac_mandatory_list} SPEEX"
8966 SPEEX_DIR="${withval}"
8967 ac_mandatory_list="${ac_mandatory_list} SPEEX"
8969 esac
8973 PBX_SPEEX=0
8980 SPEEXDSP_DESCRIP="Speexdsp"
8981 SPEEXDSP_OPTION="speexdsp"
8983 # Check whether --with-speexdsp was given.
8984 if test "${with_speexdsp+set}" = set; then
8985 withval=$with_speexdsp;
8986 case ${withval} in
8987 n|no)
8988 USE_SPEEXDSP=no
8990 y|ye|yes)
8991 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
8994 SPEEXDSP_DIR="${withval}"
8995 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
8997 esac
9001 PBX_SPEEXDSP=0
9008 SQLITE_DESCRIP="SQLite"
9009 SQLITE_OPTION="sqlite"
9011 # Check whether --with-sqlite was given.
9012 if test "${with_sqlite+set}" = set; then
9013 withval=$with_sqlite;
9014 case ${withval} in
9015 n|no)
9016 USE_SQLITE=no
9018 y|ye|yes)
9019 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9022 SQLITE_DIR="${withval}"
9023 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9025 esac
9029 PBX_SQLITE=0
9036 SQLITE3_DESCRIP="SQLite"
9037 SQLITE3_OPTION="sqlite3"
9039 # Check whether --with-sqlite3 was given.
9040 if test "${with_sqlite3+set}" = set; then
9041 withval=$with_sqlite3;
9042 case ${withval} in
9043 n|no)
9044 USE_SQLITE3=no
9046 y|ye|yes)
9047 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9050 SQLITE3_DIR="${withval}"
9051 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9053 esac
9057 PBX_SQLITE3=0
9064 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9065 SUPPSERV_OPTION="suppserv"
9067 # Check whether --with-suppserv was given.
9068 if test "${with_suppserv+set}" = set; then
9069 withval=$with_suppserv;
9070 case ${withval} in
9071 n|no)
9072 USE_SUPPSERV=no
9074 y|ye|yes)
9075 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9078 SUPPSERV_DIR="${withval}"
9079 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9081 esac
9085 PBX_SUPPSERV=0
9092 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9093 OPENSSL_OPTION="ssl"
9095 # Check whether --with-ssl was given.
9096 if test "${with_ssl+set}" = set; then
9097 withval=$with_ssl;
9098 case ${withval} in
9099 n|no)
9100 USE_OPENSSL=no
9102 y|ye|yes)
9103 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9106 OPENSSL_DIR="${withval}"
9107 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9109 esac
9113 PBX_OPENSSL=0
9120 FREETDS_DESCRIP="FreeTDS"
9121 FREETDS_OPTION="tds"
9123 # Check whether --with-tds was given.
9124 if test "${with_tds+set}" = set; then
9125 withval=$with_tds;
9126 case ${withval} in
9127 n|no)
9128 USE_FREETDS=no
9130 y|ye|yes)
9131 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9134 FREETDS_DIR="${withval}"
9135 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9137 esac
9141 PBX_FREETDS=0
9148 TERMCAP_DESCRIP="Termcap"
9149 TERMCAP_OPTION="termcap"
9151 # Check whether --with-termcap was given.
9152 if test "${with_termcap+set}" = set; then
9153 withval=$with_termcap;
9154 case ${withval} in
9155 n|no)
9156 USE_TERMCAP=no
9158 y|ye|yes)
9159 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9162 TERMCAP_DIR="${withval}"
9163 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9165 esac
9169 PBX_TERMCAP=0
9176 TINFO_DESCRIP="Term Info"
9177 TINFO_OPTION="tinfo"
9179 # Check whether --with-tinfo was given.
9180 if test "${with_tinfo+set}" = set; then
9181 withval=$with_tinfo;
9182 case ${withval} in
9183 n|no)
9184 USE_TINFO=no
9186 y|ye|yes)
9187 ac_mandatory_list="${ac_mandatory_list} TINFO"
9190 TINFO_DIR="${withval}"
9191 ac_mandatory_list="${ac_mandatory_list} TINFO"
9193 esac
9197 PBX_TINFO=0
9204 TONEZONE_DESCRIP="tonezone"
9205 TONEZONE_OPTION="tonezone"
9207 # Check whether --with-tonezone was given.
9208 if test "${with_tonezone+set}" = set; then
9209 withval=$with_tonezone;
9210 case ${withval} in
9211 n|no)
9212 USE_TONEZONE=no
9214 y|ye|yes)
9215 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9218 TONEZONE_DIR="${withval}"
9219 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9221 esac
9225 PBX_TONEZONE=0
9232 USB_DESCRIP="usb"
9233 USB_OPTION="usb"
9235 # Check whether --with-usb was given.
9236 if test "${with_usb+set}" = set; then
9237 withval=$with_usb;
9238 case ${withval} in
9239 n|no)
9240 USE_USB=no
9242 y|ye|yes)
9243 ac_mandatory_list="${ac_mandatory_list} USB"
9246 USB_DIR="${withval}"
9247 ac_mandatory_list="${ac_mandatory_list} USB"
9249 esac
9253 PBX_USB=0
9260 VORBIS_DESCRIP="Vorbis"
9261 VORBIS_OPTION="vorbis"
9263 # Check whether --with-vorbis was given.
9264 if test "${with_vorbis+set}" = set; then
9265 withval=$with_vorbis;
9266 case ${withval} in
9267 n|no)
9268 USE_VORBIS=no
9270 y|ye|yes)
9271 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9274 VORBIS_DIR="${withval}"
9275 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9277 esac
9281 PBX_VORBIS=0
9288 VPB_DESCRIP="Voicetronix API"
9289 VPB_OPTION="vpb"
9291 # Check whether --with-vpb was given.
9292 if test "${with_vpb+set}" = set; then
9293 withval=$with_vpb;
9294 case ${withval} in
9295 n|no)
9296 USE_VPB=no
9298 y|ye|yes)
9299 ac_mandatory_list="${ac_mandatory_list} VPB"
9302 VPB_DIR="${withval}"
9303 ac_mandatory_list="${ac_mandatory_list} VPB"
9305 esac
9309 PBX_VPB=0
9316 X11_DESCRIP="X11 support"
9317 X11_OPTION="x11"
9319 # Check whether --with-x11 was given.
9320 if test "${with_x11+set}" = set; then
9321 withval=$with_x11;
9322 case ${withval} in
9323 n|no)
9324 USE_X11=no
9326 y|ye|yes)
9327 ac_mandatory_list="${ac_mandatory_list} X11"
9330 X11_DIR="${withval}"
9331 ac_mandatory_list="${ac_mandatory_list} X11"
9333 esac
9337 PBX_X11=0
9344 ZLIB_DESCRIP="zlib"
9345 ZLIB_OPTION="z"
9347 # Check whether --with-z was given.
9348 if test "${with_z+set}" = set; then
9349 withval=$with_z;
9350 case ${withval} in
9351 n|no)
9352 USE_ZLIB=no
9354 y|ye|yes)
9355 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9358 ZLIB_DIR="${withval}"
9359 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9361 esac
9365 PBX_ZLIB=0
9372 ZAPTEL_DESCRIP="Zaptel"
9373 ZAPTEL_OPTION="zaptel"
9375 # Check whether --with-zaptel was given.
9376 if test "${with_zaptel+set}" = set; then
9377 withval=$with_zaptel;
9378 case ${withval} in
9379 n|no)
9380 USE_ZAPTEL=no
9382 y|ye|yes)
9383 ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
9386 ZAPTEL_DIR="${withval}"
9387 ac_mandatory_list="${ac_mandatory_list} ZAPTEL"
9389 esac
9393 PBX_ZAPTEL=0
9400 # check for basic system features and functionality before
9401 # checking for package libraries
9403 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9404 # for constant arguments. Useless!
9405 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9406 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9407 if test "${ac_cv_working_alloca_h+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h. */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <alloca.h>
9418 main ()
9420 char *p = (char *) alloca (2 * sizeof (int));
9421 if (p) return 0;
9423 return 0;
9425 _ACEOF
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (ac_try="$ac_link"
9428 case "(($ac_try" in
9429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430 *) ac_try_echo=$ac_try;;
9431 esac
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433 (eval "$ac_link") 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest$ac_exeext &&
9443 $as_test_x conftest$ac_exeext; then
9444 ac_cv_working_alloca_h=yes
9445 else
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9449 ac_cv_working_alloca_h=no
9452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453 conftest$ac_exeext conftest.$ac_ext
9455 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9456 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9457 if test $ac_cv_working_alloca_h = yes; then
9459 cat >>confdefs.h <<\_ACEOF
9460 #define HAVE_ALLOCA_H 1
9461 _ACEOF
9465 { echo "$as_me:$LINENO: checking for alloca" >&5
9466 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9467 if test "${ac_cv_func_alloca_works+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h. */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9476 #ifdef __GNUC__
9477 # define alloca __builtin_alloca
9478 #else
9479 # ifdef _MSC_VER
9480 # include <malloc.h>
9481 # define alloca _alloca
9482 # else
9483 # ifdef HAVE_ALLOCA_H
9484 # include <alloca.h>
9485 # else
9486 # ifdef _AIX
9487 #pragma alloca
9488 # else
9489 # ifndef alloca /* predefined by HP cc +Olibcalls */
9490 char *alloca ();
9491 # endif
9492 # endif
9493 # endif
9494 # endif
9495 #endif
9498 main ()
9500 char *p = (char *) alloca (1);
9501 if (p) return 0;
9503 return 0;
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9508 case "(($ac_try" in
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_link") 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext &&
9523 $as_test_x conftest$ac_exeext; then
9524 ac_cv_func_alloca_works=yes
9525 else
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_cv_func_alloca_works=no
9532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9533 conftest$ac_exeext conftest.$ac_ext
9535 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9536 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9538 if test $ac_cv_func_alloca_works = yes; then
9540 cat >>confdefs.h <<\_ACEOF
9541 #define HAVE_ALLOCA 1
9542 _ACEOF
9544 else
9545 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9546 # that cause trouble. Some versions do not even contain alloca or
9547 # contain a buggy version. If you still want to use their alloca,
9548 # use ar to extract alloca.o from them instead of compiling alloca.c.
9550 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9552 cat >>confdefs.h <<\_ACEOF
9553 #define C_ALLOCA 1
9554 _ACEOF
9557 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9558 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9559 if test "${ac_cv_os_cray+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #if defined CRAY && ! defined CRAY2
9569 webecray
9570 #else
9571 wenotbecray
9572 #endif
9574 _ACEOF
9575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9576 $EGREP "webecray" >/dev/null 2>&1; then
9577 ac_cv_os_cray=yes
9578 else
9579 ac_cv_os_cray=no
9581 rm -f conftest*
9584 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9585 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9586 if test $ac_cv_os_cray = yes; then
9587 for ac_func in _getb67 GETB67 getb67; do
9588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9602 #define $ac_func innocuous_$ac_func
9604 /* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char $ac_func (); below.
9606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607 <limits.h> exists even on freestanding compilers. */
9609 #ifdef __STDC__
9610 # include <limits.h>
9611 #else
9612 # include <assert.h>
9613 #endif
9615 #undef $ac_func
9617 /* Override any GCC internal prototype to avoid an error.
9618 Use char because int might match the return type of a GCC
9619 builtin and then its argument prototype would still apply. */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 char $ac_func ();
9624 /* The GNU C library defines this for functions which it implements
9625 to always fail with ENOSYS. Some functions are actually named
9626 something starting with __ and the normal name is an alias. */
9627 #if defined __stub_$ac_func || defined __stub___$ac_func
9628 choke me
9629 #endif
9632 main ()
9634 return $ac_func ();
9636 return 0;
9638 _ACEOF
9639 rm -f conftest.$ac_objext conftest$ac_exeext
9640 if { (ac_try="$ac_link"
9641 case "(($ac_try" in
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9644 esac
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_link") 2>conftest.er1
9647 ac_status=$?
9648 grep -v '^ *+' conftest.er1 >conftest.err
9649 rm -f conftest.er1
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } && {
9653 test -z "$ac_c_werror_flag" ||
9654 test ! -s conftest.err
9655 } && test -s conftest$ac_exeext &&
9656 $as_test_x conftest$ac_exeext; then
9657 eval "$as_ac_var=yes"
9658 else
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9662 eval "$as_ac_var=no"
9665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9666 conftest$ac_exeext conftest.$ac_ext
9668 ac_res=`eval echo '${'$as_ac_var'}'`
9669 { echo "$as_me:$LINENO: result: $ac_res" >&5
9670 echo "${ECHO_T}$ac_res" >&6; }
9671 if test `eval echo '${'$as_ac_var'}'` = yes; then
9673 cat >>confdefs.h <<_ACEOF
9674 #define CRAY_STACKSEG_END $ac_func
9675 _ACEOF
9677 break
9680 done
9683 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9684 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9685 if test "${ac_cv_c_stack_direction+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 if test "$cross_compiling" = yes; then
9689 ac_cv_c_stack_direction=0
9690 else
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 $ac_includes_default
9699 find_stack_direction ()
9701 static char *addr = 0;
9702 auto char dummy;
9703 if (addr == 0)
9705 addr = &dummy;
9706 return find_stack_direction ();
9708 else
9709 return (&dummy > addr) ? 1 : -1;
9713 main ()
9715 return find_stack_direction () < 0;
9717 _ACEOF
9718 rm -f conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9720 case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729 { (case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_try") 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_c_stack_direction=1
9739 else
9740 echo "$as_me: program exited with status $ac_status" >&5
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ( exit $ac_status )
9745 ac_cv_c_stack_direction=-1
9747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9752 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9753 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9755 cat >>confdefs.h <<_ACEOF
9756 #define STACK_DIRECTION $ac_cv_c_stack_direction
9757 _ACEOF
9767 ac_header_dirent=no
9768 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9769 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9770 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9771 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 #include <sys/types.h>
9782 #include <$ac_hdr>
9785 main ()
9787 if ((DIR *) 0)
9788 return 0;
9790 return 0;
9792 _ACEOF
9793 rm -f conftest.$ac_objext
9794 if { (ac_try="$ac_compile"
9795 case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_compile") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest.$ac_objext; then
9810 eval "$as_ac_Header=yes"
9811 else
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 eval "$as_ac_Header=no"
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820 ac_res=`eval echo '${'$as_ac_Header'}'`
9821 { echo "$as_me:$LINENO: result: $ac_res" >&5
9822 echo "${ECHO_T}$ac_res" >&6; }
9823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9824 cat >>confdefs.h <<_ACEOF
9825 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9826 _ACEOF
9828 ac_header_dirent=$ac_hdr; break
9831 done
9832 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9833 if test $ac_header_dirent = dirent.h; then
9834 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9835 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9836 if test "${ac_cv_search_opendir+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839 ac_func_search_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char opendir ();
9855 main ()
9857 return opendir ();
9859 return 0;
9861 _ACEOF
9862 for ac_lib in '' dir; do
9863 if test -z "$ac_lib"; then
9864 ac_res="none required"
9865 else
9866 ac_res=-l$ac_lib
9867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (ac_try="$ac_link"
9871 case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } && {
9883 test -z "$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 } && test -s conftest$ac_exeext &&
9886 $as_test_x conftest$ac_exeext; then
9887 ac_cv_search_opendir=$ac_res
9888 else
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9896 conftest$ac_exeext
9897 if test "${ac_cv_search_opendir+set}" = set; then
9898 break
9900 done
9901 if test "${ac_cv_search_opendir+set}" = set; then
9903 else
9904 ac_cv_search_opendir=no
9906 rm conftest.$ac_ext
9907 LIBS=$ac_func_search_save_LIBS
9909 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9910 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9911 ac_res=$ac_cv_search_opendir
9912 if test "$ac_res" != no; then
9913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9917 else
9918 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9919 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9920 if test "${ac_cv_search_opendir+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 ac_func_search_save_LIBS=$LIBS
9924 cat >conftest.$ac_ext <<_ACEOF
9925 /* confdefs.h. */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9931 /* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
9934 #ifdef __cplusplus
9935 extern "C"
9936 #endif
9937 char opendir ();
9939 main ()
9941 return opendir ();
9943 return 0;
9945 _ACEOF
9946 for ac_lib in '' x; do
9947 if test -z "$ac_lib"; then
9948 ac_res="none required"
9949 else
9950 ac_res=-l$ac_lib
9951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9953 rm -f conftest.$ac_objext conftest$ac_exeext
9954 if { (ac_try="$ac_link"
9955 case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958 esac
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_link") 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest$ac_exeext &&
9970 $as_test_x conftest$ac_exeext; then
9971 ac_cv_search_opendir=$ac_res
9972 else
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9980 conftest$ac_exeext
9981 if test "${ac_cv_search_opendir+set}" = set; then
9982 break
9984 done
9985 if test "${ac_cv_search_opendir+set}" = set; then
9987 else
9988 ac_cv_search_opendir=no
9990 rm conftest.$ac_ext
9991 LIBS=$ac_func_search_save_LIBS
9993 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9994 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9995 ac_res=$ac_cv_search_opendir
9996 if test "$ac_res" != no; then
9997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10003 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10004 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10005 if test "${ac_cv_header_stdc+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008 cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h. */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 #include <stdlib.h>
10015 #include <stdarg.h>
10016 #include <string.h>
10017 #include <float.h>
10020 main ()
10024 return 0;
10026 _ACEOF
10027 rm -f conftest.$ac_objext
10028 if { (ac_try="$ac_compile"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_compile") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest.$ac_objext; then
10044 ac_cv_header_stdc=yes
10045 else
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_header_stdc=no
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054 if test $ac_cv_header_stdc = yes; then
10055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 #include <string.h>
10064 _ACEOF
10065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10066 $EGREP "memchr" >/dev/null 2>&1; then
10068 else
10069 ac_cv_header_stdc=no
10071 rm -f conftest*
10075 if test $ac_cv_header_stdc = yes; then
10076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h. */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <stdlib.h>
10085 _ACEOF
10086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10087 $EGREP "free" >/dev/null 2>&1; then
10089 else
10090 ac_cv_header_stdc=no
10092 rm -f conftest*
10096 if test $ac_cv_header_stdc = yes; then
10097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10098 if test "$cross_compiling" = yes; then
10100 else
10101 cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h. */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10107 #include <ctype.h>
10108 #include <stdlib.h>
10109 #if ((' ' & 0x0FF) == 0x020)
10110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10112 #else
10113 # define ISLOWER(c) \
10114 (('a' <= (c) && (c) <= 'i') \
10115 || ('j' <= (c) && (c) <= 'r') \
10116 || ('s' <= (c) && (c) <= 'z'))
10117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10118 #endif
10120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10122 main ()
10124 int i;
10125 for (i = 0; i < 256; i++)
10126 if (XOR (islower (i), ISLOWER (i))
10127 || toupper (i) != TOUPPER (i))
10128 return 2;
10129 return 0;
10131 _ACEOF
10132 rm -f conftest$ac_exeext
10133 if { (ac_try="$ac_link"
10134 case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_link") 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10143 { (case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146 esac
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_try") 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10153 else
10154 echo "$as_me: program exited with status $ac_status" >&5
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ( exit $ac_status )
10159 ac_cv_header_stdc=no
10161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10168 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10169 if test $ac_cv_header_stdc = yes; then
10171 cat >>confdefs.h <<\_ACEOF
10172 #define STDC_HEADERS 1
10173 _ACEOF
10177 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10178 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10179 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 #include <sys/types.h>
10189 #include <sys/wait.h>
10190 #ifndef WEXITSTATUS
10191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10192 #endif
10193 #ifndef WIFEXITED
10194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10195 #endif
10198 main ()
10200 int s;
10201 wait (&s);
10202 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10204 return 0;
10206 _ACEOF
10207 rm -f conftest.$ac_objext
10208 if { (ac_try="$ac_compile"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_compile") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest.$ac_objext; then
10224 ac_cv_header_sys_wait_h=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_cv_header_sys_wait_h=no
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10235 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10236 if test $ac_cv_header_sys_wait_h = yes; then
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_SYS_WAIT_H 1
10240 _ACEOF
10267 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
10269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 ac_res=`eval echo '${'$as_ac_Header'}'`
10277 { echo "$as_me:$LINENO: result: $ac_res" >&5
10278 echo "${ECHO_T}$ac_res" >&6; }
10279 else
10280 # Is the header compilable?
10281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 #include <$ac_header>
10291 _ACEOF
10292 rm -f conftest.$ac_objext
10293 if { (ac_try="$ac_compile"
10294 case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_compile") 2>conftest.er1
10300 ac_status=$?
10301 grep -v '^ *+' conftest.er1 >conftest.err
10302 rm -f conftest.er1
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && {
10306 test -z "$ac_c_werror_flag" ||
10307 test ! -s conftest.err
10308 } && test -s conftest.$ac_objext; then
10309 ac_header_compiler=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_header_compiler=no
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10319 echo "${ECHO_T}$ac_header_compiler" >&6; }
10321 # Is the header present?
10322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10324 cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h. */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 #include <$ac_header>
10331 _ACEOF
10332 if { (ac_try="$ac_cpp conftest.$ac_ext"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336 esac
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } >/dev/null && {
10345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10346 test ! -s conftest.err
10347 }; then
10348 ac_header_preproc=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_header_preproc=no
10356 rm -f conftest.err conftest.$ac_ext
10357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10358 echo "${ECHO_T}$ac_header_preproc" >&6; }
10360 # So? What about this header?
10361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10362 yes:no: )
10363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10367 ac_header_preproc=yes
10369 no:yes:* )
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10382 ( cat <<\_ASBOX
10383 ## ------------------------------- ##
10384 ## Report this to www.asterisk.org ##
10385 ## ------------------------------- ##
10386 _ASBOX
10387 ) | sed "s/^/$as_me: WARNING: /" >&2
10389 esac
10390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395 eval "$as_ac_Header=\$ac_header_preproc"
10397 ac_res=`eval echo '${'$as_ac_Header'}'`
10398 { echo "$as_me:$LINENO: result: $ac_res" >&5
10399 echo "${ECHO_T}$ac_res" >&6; }
10402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10403 cat >>confdefs.h <<_ACEOF
10404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10405 _ACEOF
10409 done
10414 for ac_header in winsock.h winsock2.h
10416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 ac_res=`eval echo '${'$as_ac_Header'}'`
10424 { echo "$as_me:$LINENO: result: $ac_res" >&5
10425 echo "${ECHO_T}$ac_res" >&6; }
10426 else
10427 # Is the header compilable?
10428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 $ac_includes_default
10437 #include <$ac_header>
10438 _ACEOF
10439 rm -f conftest.$ac_objext
10440 if { (ac_try="$ac_compile"
10441 case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_compile") 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && {
10453 test -z "$ac_c_werror_flag" ||
10454 test ! -s conftest.err
10455 } && test -s conftest.$ac_objext; then
10456 ac_header_compiler=yes
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_header_compiler=no
10464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10466 echo "${ECHO_T}$ac_header_compiler" >&6; }
10468 # Is the header present?
10469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h. */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 #include <$ac_header>
10478 _ACEOF
10479 if { (ac_try="$ac_cpp conftest.$ac_ext"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } >/dev/null && {
10492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 }; then
10495 ac_header_preproc=yes
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 ac_header_preproc=no
10503 rm -f conftest.err conftest.$ac_ext
10504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10505 echo "${ECHO_T}$ac_header_preproc" >&6; }
10507 # So? What about this header?
10508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10509 yes:no: )
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10514 ac_header_preproc=yes
10516 no:yes:* )
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10529 ( cat <<\_ASBOX
10530 ## ------------------------------- ##
10531 ## Report this to www.asterisk.org ##
10532 ## ------------------------------- ##
10533 _ASBOX
10534 ) | sed "s/^/$as_me: WARNING: /" >&2
10536 esac
10537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 eval "$as_ac_Header=\$ac_header_preproc"
10544 ac_res=`eval echo '${'$as_ac_Header'}'`
10545 { echo "$as_me:$LINENO: result: $ac_res" >&5
10546 echo "${ECHO_T}$ac_res" >&6; }
10549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10550 cat >>confdefs.h <<_ACEOF
10551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10552 _ACEOF
10556 done
10559 # Check whether --enable-largefile was given.
10560 if test "${enable_largefile+set}" = set; then
10561 enableval=$enable_largefile;
10564 if test "$enable_largefile" != no; then
10566 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10567 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10568 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571 ac_cv_sys_largefile_CC=no
10572 if test "$GCC" != yes; then
10573 ac_save_CC=$CC
10574 while :; do
10575 # IRIX 6.2 and later do not support large files by default,
10576 # so use the C compiler's -n32 option if that helps.
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h. */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 #include <sys/types.h>
10584 /* Check that off_t can represent 2**63 - 1 correctly.
10585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10586 since some C++ compilers masquerading as C compilers
10587 incorrectly reject 9223372036854775807. */
10588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10590 && LARGE_OFF_T % 2147483647 == 1)
10591 ? 1 : -1];
10593 main ()
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest.$ac_objext; then
10617 break
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10625 rm -f core conftest.err conftest.$ac_objext
10626 CC="$CC -n32"
10627 rm -f conftest.$ac_objext
10628 if { (ac_try="$ac_compile"
10629 case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10632 esac
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_compile") 2>conftest.er1
10635 ac_status=$?
10636 grep -v '^ *+' conftest.er1 >conftest.err
10637 rm -f conftest.er1
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && {
10641 test -z "$ac_c_werror_flag" ||
10642 test ! -s conftest.err
10643 } && test -s conftest.$ac_objext; then
10644 ac_cv_sys_largefile_CC=' -n32'; break
10645 else
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10652 rm -f core conftest.err conftest.$ac_objext
10653 break
10654 done
10655 CC=$ac_save_CC
10656 rm -f conftest.$ac_ext
10659 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10660 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10661 if test "$ac_cv_sys_largefile_CC" != no; then
10662 CC=$CC$ac_cv_sys_largefile_CC
10665 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10666 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10667 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670 while :; do
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h. */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 #include <sys/types.h>
10678 /* Check that off_t can represent 2**63 - 1 correctly.
10679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10680 since some C++ compilers masquerading as C compilers
10681 incorrectly reject 9223372036854775807. */
10682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10684 && LARGE_OFF_T % 2147483647 == 1)
10685 ? 1 : -1];
10687 main ()
10691 return 0;
10693 _ACEOF
10694 rm -f conftest.$ac_objext
10695 if { (ac_try="$ac_compile"
10696 case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_compile") 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest.$ac_objext; then
10711 ac_cv_sys_file_offset_bits=no; break
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h. */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 #define _FILE_OFFSET_BITS 64
10727 #include <sys/types.h>
10728 /* Check that off_t can represent 2**63 - 1 correctly.
10729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10730 since some C++ compilers masquerading as C compilers
10731 incorrectly reject 9223372036854775807. */
10732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10734 && LARGE_OFF_T % 2147483647 == 1)
10735 ? 1 : -1];
10737 main ()
10741 return 0;
10743 _ACEOF
10744 rm -f conftest.$ac_objext
10745 if { (ac_try="$ac_compile"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_compile") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest.$ac_objext; then
10761 ac_cv_sys_file_offset_bits=64; break
10762 else
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 ac_cv_sys_file_offset_bits=unknown
10771 break
10772 done
10774 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10775 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10776 case $ac_cv_sys_file_offset_bits in #(
10777 no | unknown) ;;
10779 cat >>confdefs.h <<_ACEOF
10780 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10781 _ACEOF
10783 esac
10784 rm -f conftest*
10785 if test $ac_cv_sys_file_offset_bits = unknown; then
10786 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10787 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10788 if test "${ac_cv_sys_large_files+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 while :; do
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 #include <sys/types.h>
10799 /* Check that off_t can represent 2**63 - 1 correctly.
10800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10801 since some C++ compilers masquerading as C compilers
10802 incorrectly reject 9223372036854775807. */
10803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10805 && LARGE_OFF_T % 2147483647 == 1)
10806 ? 1 : -1];
10808 main ()
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext
10816 if { (ac_try="$ac_compile"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_compile") 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest.$ac_objext; then
10832 ac_cv_sys_large_files=no; break
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h. */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 #define _LARGE_FILES 1
10848 #include <sys/types.h>
10849 /* Check that off_t can represent 2**63 - 1 correctly.
10850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10851 since some C++ compilers masquerading as C compilers
10852 incorrectly reject 9223372036854775807. */
10853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10855 && LARGE_OFF_T % 2147483647 == 1)
10856 ? 1 : -1];
10858 main ()
10862 return 0;
10864 _ACEOF
10865 rm -f conftest.$ac_objext
10866 if { (ac_try="$ac_compile"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870 esac
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_compile") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest.$ac_objext; then
10882 ac_cv_sys_large_files=1; break
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891 ac_cv_sys_large_files=unknown
10892 break
10893 done
10895 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10896 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10897 case $ac_cv_sys_large_files in #(
10898 no | unknown) ;;
10900 cat >>confdefs.h <<_ACEOF
10901 #define _LARGE_FILES $ac_cv_sys_large_files
10902 _ACEOF
10904 esac
10905 rm -f conftest*
10910 # Checks for typedefs, structures, and compiler characteristics.
10911 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10912 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10913 if test "${ac_cv_header_stdbool_h+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h. */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10923 #include <stdbool.h>
10924 #ifndef bool
10925 "error: bool is not defined"
10926 #endif
10927 #ifndef false
10928 "error: false is not defined"
10929 #endif
10930 #if false
10931 "error: false is not 0"
10932 #endif
10933 #ifndef true
10934 "error: true is not defined"
10935 #endif
10936 #if true != 1
10937 "error: true is not 1"
10938 #endif
10939 #ifndef __bool_true_false_are_defined
10940 "error: __bool_true_false_are_defined is not defined"
10941 #endif
10943 struct s { _Bool s: 1; _Bool t; } s;
10945 char a[true == 1 ? 1 : -1];
10946 char b[false == 0 ? 1 : -1];
10947 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10948 char d[(bool) 0.5 == true ? 1 : -1];
10949 bool e = &s;
10950 char f[(_Bool) 0.0 == false ? 1 : -1];
10951 char g[true];
10952 char h[sizeof (_Bool)];
10953 char i[sizeof s.t];
10954 enum { j = false, k = true, l = false * true, m = true * 256 };
10955 _Bool n[m];
10956 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10957 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10958 # if defined __xlc__ || defined __GNUC__
10959 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10960 reported by James Lemley on 2005-10-05; see
10961 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10962 This test is not quite right, since xlc is allowed to
10963 reject this program, as the initializer for xlcbug is
10964 not one of the forms that C requires support for.
10965 However, doing the test right would require a runtime
10966 test, and that would make cross-compilation harder.
10967 Let us hope that IBM fixes the xlc bug, and also adds
10968 support for this kind of constant expression. In the
10969 meantime, this test will reject xlc, which is OK, since
10970 our stdbool.h substitute should suffice. We also test
10971 this with GCC, where it should work, to detect more
10972 quickly whether someone messes up the test in the
10973 future. */
10974 char digs[] = "0123456789";
10975 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10976 # endif
10977 /* Catch a bug in an HP-UX C compiler. See
10978 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10979 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10981 _Bool q = true;
10982 _Bool *pq = &q;
10985 main ()
10988 *pq |= q;
10989 *pq |= ! q;
10990 /* Refer to every declared value, to avoid compiler optimizations. */
10991 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10992 + !m + !n + !o + !p + !q + !pq);
10995 return 0;
10997 _ACEOF
10998 rm -f conftest.$ac_objext
10999 if { (ac_try="$ac_compile"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_compile") 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && {
11012 test -z "$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest.$ac_objext; then
11015 ac_cv_header_stdbool_h=yes
11016 else
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 ac_cv_header_stdbool_h=no
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11026 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11027 { echo "$as_me:$LINENO: checking for _Bool" >&5
11028 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11029 if test "${ac_cv_type__Bool+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 $ac_includes_default
11039 typedef _Bool ac__type_new_;
11041 main ()
11043 if ((ac__type_new_ *) 0)
11044 return 0;
11045 if (sizeof (ac__type_new_))
11046 return 0;
11048 return 0;
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (ac_try="$ac_compile"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest.$ac_objext; then
11068 ac_cv_type__Bool=yes
11069 else
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_cv_type__Bool=no
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11079 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11080 if test $ac_cv_type__Bool = yes; then
11082 cat >>confdefs.h <<_ACEOF
11083 #define HAVE__BOOL 1
11084 _ACEOF
11089 if test $ac_cv_header_stdbool_h = yes; then
11091 cat >>confdefs.h <<\_ACEOF
11092 #define HAVE_STDBOOL_H 1
11093 _ACEOF
11097 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11098 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11099 if test "${ac_cv_c_const+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11110 main ()
11112 /* FIXME: Include the comments suggested by Paul. */
11113 #ifndef __cplusplus
11114 /* Ultrix mips cc rejects this. */
11115 typedef int charset[2];
11116 const charset cs;
11117 /* SunOS 4.1.1 cc rejects this. */
11118 char const *const *pcpcc;
11119 char **ppc;
11120 /* NEC SVR4.0.2 mips cc rejects this. */
11121 struct point {int x, y;};
11122 static struct point const zero = {0,0};
11123 /* AIX XL C 1.02.0.0 rejects this.
11124 It does not let you subtract one const X* pointer from another in
11125 an arm of an if-expression whose if-part is not a constant
11126 expression */
11127 const char *g = "string";
11128 pcpcc = &g + (g ? g-g : 0);
11129 /* HPUX 7.0 cc rejects these. */
11130 ++pcpcc;
11131 ppc = (char**) pcpcc;
11132 pcpcc = (char const *const *) ppc;
11133 { /* SCO 3.2v4 cc rejects this. */
11134 char *t;
11135 char const *s = 0 ? (char *) 0 : (char const *) 0;
11137 *t++ = 0;
11138 if (s) return 0;
11140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11141 int x[] = {25, 17};
11142 const int *foo = &x[0];
11143 ++foo;
11145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11146 typedef const int *iptr;
11147 iptr p = 0;
11148 ++p;
11150 { /* AIX XL C 1.02.0.0 rejects this saying
11151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11152 struct s { int j; const int *ap[3]; };
11153 struct s *b; b->j = 5;
11155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11156 const int foo = 10;
11157 if (!foo) return 0;
11159 return !cs[0] && !zero.x;
11160 #endif
11163 return 0;
11165 _ACEOF
11166 rm -f conftest.$ac_objext
11167 if { (ac_try="$ac_compile"
11168 case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_compile") 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && {
11180 test -z "$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11182 } && test -s conftest.$ac_objext; then
11183 ac_cv_c_const=yes
11184 else
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_cv_c_const=no
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11194 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11195 if test $ac_cv_c_const = no; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define const
11199 _ACEOF
11203 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11204 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11205 if test "${ac_cv_type_uid_t+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #include <sys/types.h>
11216 _ACEOF
11217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11218 $EGREP "uid_t" >/dev/null 2>&1; then
11219 ac_cv_type_uid_t=yes
11220 else
11221 ac_cv_type_uid_t=no
11223 rm -f conftest*
11226 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11227 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11228 if test $ac_cv_type_uid_t = no; then
11230 cat >>confdefs.h <<\_ACEOF
11231 #define uid_t int
11232 _ACEOF
11235 cat >>confdefs.h <<\_ACEOF
11236 #define gid_t int
11237 _ACEOF
11241 { echo "$as_me:$LINENO: checking for inline" >&5
11242 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11243 if test "${ac_cv_c_inline+set}" = set; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 else
11246 ac_cv_c_inline=no
11247 for ac_kw in inline __inline__ __inline; do
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h. */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #ifndef __cplusplus
11255 typedef int foo_t;
11256 static $ac_kw foo_t static_foo () {return 0; }
11257 $ac_kw foo_t foo () {return 0; }
11258 #endif
11260 _ACEOF
11261 rm -f conftest.$ac_objext
11262 if { (ac_try="$ac_compile"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_compile") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest.$ac_objext; then
11278 ac_cv_c_inline=$ac_kw
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 test "$ac_cv_c_inline" != no && break
11288 done
11291 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11292 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11295 case $ac_cv_c_inline in
11296 inline | yes) ;;
11298 case $ac_cv_c_inline in
11299 no) ac_val=;;
11300 *) ac_val=$ac_cv_c_inline;;
11301 esac
11302 cat >>confdefs.h <<_ACEOF
11303 #ifndef __cplusplus
11304 #define inline $ac_val
11305 #endif
11306 _ACEOF
11308 esac
11310 { echo "$as_me:$LINENO: checking for mode_t" >&5
11311 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11312 if test "${ac_cv_type_mode_t+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11322 typedef mode_t ac__type_new_;
11324 main ()
11326 if ((ac__type_new_ *) 0)
11327 return 0;
11328 if (sizeof (ac__type_new_))
11329 return 0;
11331 return 0;
11333 _ACEOF
11334 rm -f conftest.$ac_objext
11335 if { (ac_try="$ac_compile"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_compile") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest.$ac_objext; then
11351 ac_cv_type_mode_t=yes
11352 else
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_cv_type_mode_t=no
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11362 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11363 if test $ac_cv_type_mode_t = yes; then
11365 else
11367 cat >>confdefs.h <<_ACEOF
11368 #define mode_t int
11369 _ACEOF
11373 { echo "$as_me:$LINENO: checking for off_t" >&5
11374 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11375 if test "${ac_cv_type_off_t+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h. */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 typedef off_t ac__type_new_;
11387 main ()
11389 if ((ac__type_new_ *) 0)
11390 return 0;
11391 if (sizeof (ac__type_new_))
11392 return 0;
11394 return 0;
11396 _ACEOF
11397 rm -f conftest.$ac_objext
11398 if { (ac_try="$ac_compile"
11399 case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11402 esac
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_compile") 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } && {
11411 test -z "$ac_c_werror_flag" ||
11412 test ! -s conftest.err
11413 } && test -s conftest.$ac_objext; then
11414 ac_cv_type_off_t=yes
11415 else
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 ac_cv_type_off_t=no
11422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11425 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11426 if test $ac_cv_type_off_t = yes; then
11428 else
11430 cat >>confdefs.h <<_ACEOF
11431 #define off_t long int
11432 _ACEOF
11436 { echo "$as_me:$LINENO: checking for pid_t" >&5
11437 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11438 if test "${ac_cv_type_pid_t+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 typedef pid_t ac__type_new_;
11450 main ()
11452 if ((ac__type_new_ *) 0)
11453 return 0;
11454 if (sizeof (ac__type_new_))
11455 return 0;
11457 return 0;
11459 _ACEOF
11460 rm -f conftest.$ac_objext
11461 if { (ac_try="$ac_compile"
11462 case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest.$ac_objext; then
11477 ac_cv_type_pid_t=yes
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 ac_cv_type_pid_t=no
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11489 if test $ac_cv_type_pid_t = yes; then
11491 else
11493 cat >>confdefs.h <<_ACEOF
11494 #define pid_t int
11495 _ACEOF
11499 { echo "$as_me:$LINENO: checking for size_t" >&5
11500 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11501 if test "${ac_cv_type_size_t+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 typedef size_t ac__type_new_;
11513 main ()
11515 if ((ac__type_new_ *) 0)
11516 return 0;
11517 if (sizeof (ac__type_new_))
11518 return 0;
11520 return 0;
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (ac_try="$ac_compile"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_compile") 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } && {
11537 test -z "$ac_c_werror_flag" ||
11538 test ! -s conftest.err
11539 } && test -s conftest.$ac_objext; then
11540 ac_cv_type_size_t=yes
11541 else
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_cv_type_size_t=no
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11551 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11552 if test $ac_cv_type_size_t = yes; then
11554 else
11556 cat >>confdefs.h <<_ACEOF
11557 #define size_t unsigned int
11558 _ACEOF
11562 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11563 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11564 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 $ac_includes_default
11575 main ()
11577 static struct stat ac_aggr;
11578 if (ac_aggr.st_blksize)
11579 return 0;
11581 return 0;
11583 _ACEOF
11584 rm -f conftest.$ac_objext
11585 if { (ac_try="$ac_compile"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11589 esac
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_compile") 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } && {
11598 test -z "$ac_c_werror_flag" ||
11599 test ! -s conftest.err
11600 } && test -s conftest.$ac_objext; then
11601 ac_cv_member_struct_stat_st_blksize=yes
11602 else
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11614 main ()
11616 static struct stat ac_aggr;
11617 if (sizeof ac_aggr.st_blksize)
11618 return 0;
11620 return 0;
11622 _ACEOF
11623 rm -f conftest.$ac_objext
11624 if { (ac_try="$ac_compile"
11625 case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628 esac
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_compile") 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } && {
11637 test -z "$ac_c_werror_flag" ||
11638 test ! -s conftest.err
11639 } && test -s conftest.$ac_objext; then
11640 ac_cv_member_struct_stat_st_blksize=yes
11641 else
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 ac_cv_member_struct_stat_st_blksize=no
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11654 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11655 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11657 cat >>confdefs.h <<_ACEOF
11658 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11659 _ACEOF
11664 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11665 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11666 if test "${ac_cv_header_time+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 #include <sys/types.h>
11676 #include <sys/time.h>
11677 #include <time.h>
11680 main ()
11682 if ((struct tm *) 0)
11683 return 0;
11685 return 0;
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_compile") 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest.$ac_objext; then
11705 ac_cv_header_time=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_cv_header_time=no
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11715 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11716 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11717 if test $ac_cv_header_time = yes; then
11719 cat >>confdefs.h <<\_ACEOF
11720 #define TIME_WITH_SYS_TIME 1
11721 _ACEOF
11725 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11726 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11727 if test "${ac_cv_struct_tm+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h. */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 #include <sys/types.h>
11737 #include <time.h>
11740 main ()
11742 struct tm tm;
11743 int *p = &tm.tm_sec;
11744 return !p;
11746 return 0;
11748 _ACEOF
11749 rm -f conftest.$ac_objext
11750 if { (ac_try="$ac_compile"
11751 case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754 esac
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_compile") 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } && {
11763 test -z "$ac_c_werror_flag" ||
11764 test ! -s conftest.err
11765 } && test -s conftest.$ac_objext; then
11766 ac_cv_struct_tm=time.h
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_struct_tm=sys/time.h
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11777 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11778 if test $ac_cv_struct_tm = sys/time.h; then
11780 cat >>confdefs.h <<\_ACEOF
11781 #define TM_IN_SYS_TIME 1
11782 _ACEOF
11786 { echo "$as_me:$LINENO: checking for working volatile" >&5
11787 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11788 if test "${ac_cv_c_volatile+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791 cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11799 main ()
11802 volatile int x;
11803 int * volatile y = (int *) 0;
11804 return !x && !y;
11806 return 0;
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest.$ac_objext; then
11826 ac_cv_c_volatile=yes
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 ac_cv_c_volatile=no
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11837 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11838 if test $ac_cv_c_volatile = no; then
11840 cat >>confdefs.h <<\_ACEOF
11841 #define volatile
11842 _ACEOF
11846 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11847 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11848 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11858 typedef ptrdiff_t ac__type_new_;
11860 main ()
11862 if ((ac__type_new_ *) 0)
11863 return 0;
11864 if (sizeof (ac__type_new_))
11865 return 0;
11867 return 0;
11869 _ACEOF
11870 rm -f conftest.$ac_objext
11871 if { (ac_try="$ac_compile"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_compile") 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest.$ac_objext; then
11887 ac_cv_type_ptrdiff_t=yes
11888 else
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 ac_cv_type_ptrdiff_t=no
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11898 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11899 if test $ac_cv_type_ptrdiff_t = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902 #define HAVE_PTRDIFF_T 1
11903 _ACEOF
11909 # Checks for library functions.
11911 for ac_header in unistd.h
11913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 ac_res=`eval echo '${'$as_ac_Header'}'`
11921 { echo "$as_me:$LINENO: result: $ac_res" >&5
11922 echo "${ECHO_T}$ac_res" >&6; }
11923 else
11924 # Is the header compilable?
11925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11927 cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h. */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 $ac_includes_default
11934 #include <$ac_header>
11935 _ACEOF
11936 rm -f conftest.$ac_objext
11937 if { (ac_try="$ac_compile"
11938 case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11941 esac
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_compile") 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } && {
11950 test -z "$ac_c_werror_flag" ||
11951 test ! -s conftest.err
11952 } && test -s conftest.$ac_objext; then
11953 ac_header_compiler=yes
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 ac_header_compiler=no
11961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11963 echo "${ECHO_T}$ac_header_compiler" >&6; }
11965 # Is the header present?
11966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 #include <$ac_header>
11975 _ACEOF
11976 if { (ac_try="$ac_cpp conftest.$ac_ext"
11977 case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } >/dev/null && {
11989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 }; then
11992 ac_header_preproc=yes
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_header_preproc=no
12000 rm -f conftest.err conftest.$ac_ext
12001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12002 echo "${ECHO_T}$ac_header_preproc" >&6; }
12004 # So? What about this header?
12005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12006 yes:no: )
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12011 ac_header_preproc=yes
12013 no:yes:* )
12014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12026 ( cat <<\_ASBOX
12027 ## ------------------------------- ##
12028 ## Report this to www.asterisk.org ##
12029 ## ------------------------------- ##
12030 _ASBOX
12031 ) | sed "s/^/$as_me: WARNING: /" >&2
12033 esac
12034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039 eval "$as_ac_Header=\$ac_header_preproc"
12041 ac_res=`eval echo '${'$as_ac_Header'}'`
12042 { echo "$as_me:$LINENO: result: $ac_res" >&5
12043 echo "${ECHO_T}$ac_res" >&6; }
12046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12047 cat >>confdefs.h <<_ACEOF
12048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12049 _ACEOF
12053 done
12055 { echo "$as_me:$LINENO: checking for working chown" >&5
12056 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12057 if test "${ac_cv_func_chown_works+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060 if test "$cross_compiling" = yes; then
12061 ac_cv_func_chown_works=no
12062 else
12063 cat >conftest.$ac_ext <<_ACEOF
12064 /* confdefs.h. */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 $ac_includes_default
12070 #include <fcntl.h>
12073 main ()
12075 char *f = "conftest.chown";
12076 struct stat before, after;
12078 if (creat (f, 0600) < 0)
12079 return 1;
12080 if (stat (f, &before) < 0)
12081 return 1;
12082 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12083 return 1;
12084 if (stat (f, &after) < 0)
12085 return 1;
12086 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12089 return 0;
12091 _ACEOF
12092 rm -f conftest$ac_exeext
12093 if { (ac_try="$ac_link"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097 esac
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_link") 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12103 { (case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106 esac
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_try") 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_func_chown_works=yes
12113 else
12114 echo "$as_me: program exited with status $ac_status" >&5
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 ( exit $ac_status )
12119 ac_cv_func_chown_works=no
12121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12125 rm -f conftest.chown
12128 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12129 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12130 if test $ac_cv_func_chown_works = yes; then
12132 cat >>confdefs.h <<\_ACEOF
12133 #define HAVE_CHOWN 1
12134 _ACEOF
12138 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12139 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12140 if test "${ac_cv_func_closedir_void+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 if test "$cross_compiling" = yes; then
12144 ac_cv_func_closedir_void=yes
12145 else
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 #include <$ac_header_dirent>
12154 #ifndef __cplusplus
12155 int closedir ();
12156 #endif
12159 main ()
12161 return closedir (opendir (".")) != 0;
12163 return 0;
12165 _ACEOF
12166 rm -f conftest$ac_exeext
12167 if { (ac_try="$ac_link"
12168 case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12171 esac
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_link") 2>&5
12174 ac_status=$?
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 ac_cv_func_closedir_void=no
12187 else
12188 echo "$as_me: program exited with status $ac_status" >&5
12189 echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12192 ( exit $ac_status )
12193 ac_cv_func_closedir_void=yes
12195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12200 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12201 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12202 if test $ac_cv_func_closedir_void = yes; then
12204 cat >>confdefs.h <<\_ACEOF
12205 #define CLOSEDIR_VOID 1
12206 _ACEOF
12210 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12211 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12212 if test "${ac_cv_lib_error_at_line+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 #include <error.h>
12223 main ()
12225 error_at_line (0, 0, "", 0, "an error occurred");
12227 return 0;
12229 _ACEOF
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (ac_try="$ac_link"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235 esac
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_link") 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && {
12244 test -z "$ac_c_werror_flag" ||
12245 test ! -s conftest.err
12246 } && test -s conftest$ac_exeext &&
12247 $as_test_x conftest$ac_exeext; then
12248 ac_cv_lib_error_at_line=yes
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 ac_cv_lib_error_at_line=no
12256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12257 conftest$ac_exeext conftest.$ac_ext
12259 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12260 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12261 if test $ac_cv_lib_error_at_line = no; then
12262 case " $LIBOBJS " in
12263 *" error.$ac_objext "* ) ;;
12264 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12266 esac
12271 for ac_header in vfork.h
12273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 ac_res=`eval echo '${'$as_ac_Header'}'`
12281 { echo "$as_me:$LINENO: result: $ac_res" >&5
12282 echo "${ECHO_T}$ac_res" >&6; }
12283 else
12284 # Is the header compilable?
12285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12287 cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 $ac_includes_default
12294 #include <$ac_header>
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.$ac_objext; then
12313 ac_header_compiler=yes
12314 else
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_header_compiler=no
12321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12323 echo "${ECHO_T}$ac_header_compiler" >&6; }
12325 # Is the header present?
12326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h. */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 #include <$ac_header>
12335 _ACEOF
12336 if { (ac_try="$ac_cpp conftest.$ac_ext"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340 esac
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } >/dev/null && {
12349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12350 test ! -s conftest.err
12351 }; then
12352 ac_header_preproc=yes
12353 else
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_header_preproc=no
12360 rm -f conftest.err conftest.$ac_ext
12361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12362 echo "${ECHO_T}$ac_header_preproc" >&6; }
12364 # So? What about this header?
12365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12366 yes:no: )
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12371 ac_header_preproc=yes
12373 no:yes:* )
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12386 ( cat <<\_ASBOX
12387 ## ------------------------------- ##
12388 ## Report this to www.asterisk.org ##
12389 ## ------------------------------- ##
12390 _ASBOX
12391 ) | sed "s/^/$as_me: WARNING: /" >&2
12393 esac
12394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399 eval "$as_ac_Header=\$ac_header_preproc"
12401 ac_res=`eval echo '${'$as_ac_Header'}'`
12402 { echo "$as_me:$LINENO: result: $ac_res" >&5
12403 echo "${ECHO_T}$ac_res" >&6; }
12406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12407 cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12409 _ACEOF
12413 done
12417 for ac_func in fork vfork
12419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h. */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12433 #define $ac_func innocuous_$ac_func
12435 /* System header to define __stub macros and hopefully few prototypes,
12436 which can conflict with char $ac_func (); below.
12437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12438 <limits.h> exists even on freestanding compilers. */
12440 #ifdef __STDC__
12441 # include <limits.h>
12442 #else
12443 # include <assert.h>
12444 #endif
12446 #undef $ac_func
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 char $ac_func ();
12455 /* The GNU C library defines this for functions which it implements
12456 to always fail with ENOSYS. Some functions are actually named
12457 something starting with __ and the normal name is an alias. */
12458 #if defined __stub_$ac_func || defined __stub___$ac_func
12459 choke me
12460 #endif
12463 main ()
12465 return $ac_func ();
12467 return 0;
12469 _ACEOF
12470 rm -f conftest.$ac_objext conftest$ac_exeext
12471 if { (ac_try="$ac_link"
12472 case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_link") 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } && {
12484 test -z "$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 } && test -s conftest$ac_exeext &&
12487 $as_test_x conftest$ac_exeext; then
12488 eval "$as_ac_var=yes"
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 eval "$as_ac_var=no"
12496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12497 conftest$ac_exeext conftest.$ac_ext
12499 ac_res=`eval echo '${'$as_ac_var'}'`
12500 { echo "$as_me:$LINENO: result: $ac_res" >&5
12501 echo "${ECHO_T}$ac_res" >&6; }
12502 if test `eval echo '${'$as_ac_var'}'` = yes; then
12503 cat >>confdefs.h <<_ACEOF
12504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12505 _ACEOF
12508 done
12510 if test "x$ac_cv_func_fork" = xyes; then
12511 { echo "$as_me:$LINENO: checking for working fork" >&5
12512 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12513 if test "${ac_cv_func_fork_works+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516 if test "$cross_compiling" = yes; then
12517 ac_cv_func_fork_works=cross
12518 else
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h. */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 $ac_includes_default
12527 main ()
12530 /* By Ruediger Kuhlmann. */
12531 return fork () < 0;
12534 return 0;
12536 _ACEOF
12537 rm -f conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12548 { (case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_try") 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_func_fork_works=yes
12558 else
12559 echo "$as_me: program exited with status $ac_status" >&5
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ( exit $ac_status )
12564 ac_cv_func_fork_works=no
12566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12571 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12572 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12574 else
12575 ac_cv_func_fork_works=$ac_cv_func_fork
12577 if test "x$ac_cv_func_fork_works" = xcross; then
12578 case $host in
12579 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12580 # Override, as these systems have only a dummy fork() stub
12581 ac_cv_func_fork_works=no
12584 ac_cv_func_fork_works=yes
12586 esac
12587 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12588 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12590 ac_cv_func_vfork_works=$ac_cv_func_vfork
12591 if test "x$ac_cv_func_vfork" = xyes; then
12592 { echo "$as_me:$LINENO: checking for working vfork" >&5
12593 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12594 if test "${ac_cv_func_vfork_works+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 if test "$cross_compiling" = yes; then
12598 ac_cv_func_vfork_works=cross
12599 else
12600 cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h. */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 /* Thanks to Paul Eggert for this test. */
12607 $ac_includes_default
12608 #include <sys/wait.h>
12609 #ifdef HAVE_VFORK_H
12610 # include <vfork.h>
12611 #endif
12612 /* On some sparc systems, changes by the child to local and incoming
12613 argument registers are propagated back to the parent. The compiler
12614 is told about this with #include <vfork.h>, but some compilers
12615 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12616 static variable whose address is put into a register that is
12617 clobbered by the vfork. */
12618 static void
12619 #ifdef __cplusplus
12620 sparc_address_test (int arg)
12621 # else
12622 sparc_address_test (arg) int arg;
12623 #endif
12625 static pid_t child;
12626 if (!child) {
12627 child = vfork ();
12628 if (child < 0) {
12629 perror ("vfork");
12630 _exit(2);
12632 if (!child) {
12633 arg = getpid();
12634 write(-1, "", 0);
12635 _exit (arg);
12641 main ()
12643 pid_t parent = getpid ();
12644 pid_t child;
12646 sparc_address_test (0);
12648 child = vfork ();
12650 if (child == 0) {
12651 /* Here is another test for sparc vfork register problems. This
12652 test uses lots of local variables, at least as many local
12653 variables as main has allocated so far including compiler
12654 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12655 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12656 reuse the register of parent for one of the local variables,
12657 since it will think that parent can't possibly be used any more
12658 in this routine. Assigning to the local variable will thus
12659 munge parent in the parent process. */
12660 pid_t
12661 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12662 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12663 /* Convince the compiler that p..p7 are live; otherwise, it might
12664 use the same hardware register for all 8 local variables. */
12665 if (p != p1 || p != p2 || p != p3 || p != p4
12666 || p != p5 || p != p6 || p != p7)
12667 _exit(1);
12669 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12670 from child file descriptors. If the child closes a descriptor
12671 before it execs or exits, this munges the parent's descriptor
12672 as well. Test for this by closing stdout in the child. */
12673 _exit(close(fileno(stdout)) != 0);
12674 } else {
12675 int status;
12676 struct stat st;
12678 while (wait(&status) != child)
12680 return (
12681 /* Was there some problem with vforking? */
12682 child < 0
12684 /* Did the child fail? (This shouldn't happen.) */
12685 || status
12687 /* Did the vfork/compiler bug occur? */
12688 || parent != getpid()
12690 /* Did the file descriptor bug occur? */
12691 || fstat(fileno(stdout), &st) != 0
12695 _ACEOF
12696 rm -f conftest$ac_exeext
12697 if { (ac_try="$ac_link"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_link") 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_func_vfork_works=yes
12717 else
12718 echo "$as_me: program exited with status $ac_status" >&5
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ( exit $ac_status )
12723 ac_cv_func_vfork_works=no
12725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12730 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12731 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12734 if test "x$ac_cv_func_fork_works" = xcross; then
12735 ac_cv_func_vfork_works=$ac_cv_func_vfork
12736 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12737 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12740 if test "x$ac_cv_func_vfork_works" = xyes; then
12742 cat >>confdefs.h <<\_ACEOF
12743 #define HAVE_WORKING_VFORK 1
12744 _ACEOF
12746 else
12748 cat >>confdefs.h <<\_ACEOF
12749 #define vfork fork
12750 _ACEOF
12753 if test "x$ac_cv_func_fork_works" = xyes; then
12755 cat >>confdefs.h <<\_ACEOF
12756 #define HAVE_WORKING_FORK 1
12757 _ACEOF
12761 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12762 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12763 if test "${ac_cv_sys_largefile_source+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766 while :; do
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h. */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 #include <sys/types.h> /* for off_t */
12774 #include <stdio.h>
12776 main ()
12778 int (*fp) (FILE *, off_t, int) = fseeko;
12779 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12781 return 0;
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_link") 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && {
12798 test -z "$ac_c_werror_flag" ||
12799 test ! -s conftest.err
12800 } && test -s conftest$ac_exeext &&
12801 $as_test_x conftest$ac_exeext; then
12802 ac_cv_sys_largefile_source=no; break
12803 else
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12811 conftest$ac_exeext conftest.$ac_ext
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h. */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12818 #define _LARGEFILE_SOURCE 1
12819 #include <sys/types.h> /* for off_t */
12820 #include <stdio.h>
12822 main ()
12824 int (*fp) (FILE *, off_t, int) = fseeko;
12825 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12827 return 0;
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_link") 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest$ac_exeext &&
12847 $as_test_x conftest$ac_exeext; then
12848 ac_cv_sys_largefile_source=1; break
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext conftest.$ac_ext
12858 ac_cv_sys_largefile_source=unknown
12859 break
12860 done
12862 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12863 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12864 case $ac_cv_sys_largefile_source in #(
12865 no | unknown) ;;
12867 cat >>confdefs.h <<_ACEOF
12868 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12869 _ACEOF
12871 esac
12872 rm -f conftest*
12874 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12875 # in glibc 2.1.3, but that breaks too many other things.
12876 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12877 if test $ac_cv_sys_largefile_source != unknown; then
12879 cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_FSEEKO 1
12881 _ACEOF
12885 if test $ac_cv_c_compiler_gnu = yes; then
12886 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12887 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12888 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 else
12891 ac_pattern="Autoconf.*'x'"
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h. */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 #include <sgtty.h>
12899 Autoconf TIOCGETP
12900 _ACEOF
12901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12902 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12903 ac_cv_prog_gcc_traditional=yes
12904 else
12905 ac_cv_prog_gcc_traditional=no
12907 rm -f conftest*
12910 if test $ac_cv_prog_gcc_traditional = no; then
12911 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h. */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 #include <termio.h>
12918 Autoconf TCGETA
12919 _ACEOF
12920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12921 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12922 ac_cv_prog_gcc_traditional=yes
12924 rm -f conftest*
12928 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12929 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12930 if test $ac_cv_prog_gcc_traditional = yes; then
12931 CC="$CC -traditional"
12935 # XXX: these are commented out until we determine whether it matters if our malloc()
12936 # acts exactly like glibc's or not
12937 # AC_FUNC_MALLOC
12938 # AC_FUNC_REALLOC
12939 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12940 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12941 if test "${ac_cv_func_memcmp_working+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944 if test "$cross_compiling" = yes; then
12945 ac_cv_func_memcmp_working=no
12946 else
12947 cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h. */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 $ac_includes_default
12955 main ()
12958 /* Some versions of memcmp are not 8-bit clean. */
12959 char c0 = '\100', c1 = '\200', c2 = '\201';
12960 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12961 return 1;
12963 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12964 or more and with at least one buffer not starting on a 4-byte boundary.
12965 William Lewis provided this test program. */
12967 char foo[21];
12968 char bar[21];
12969 int i;
12970 for (i = 0; i < 4; i++)
12972 char *a = foo + i;
12973 char *b = bar + i;
12974 strcpy (a, "--------01111111");
12975 strcpy (b, "--------10000000");
12976 if (memcmp (a, b, 16) >= 0)
12977 return 1;
12979 return 0;
12983 return 0;
12985 _ACEOF
12986 rm -f conftest$ac_exeext
12987 if { (ac_try="$ac_link"
12988 case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991 esac
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_link") 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 ac_cv_func_memcmp_working=yes
13007 else
13008 echo "$as_me: program exited with status $ac_status" >&5
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 ( exit $ac_status )
13013 ac_cv_func_memcmp_working=no
13015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13020 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13021 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13022 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13023 *" memcmp.$ac_objext "* ) ;;
13024 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13026 esac
13031 for ac_header in stdlib.h unistd.h
13033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 ac_res=`eval echo '${'$as_ac_Header'}'`
13041 { echo "$as_me:$LINENO: result: $ac_res" >&5
13042 echo "${ECHO_T}$ac_res" >&6; }
13043 else
13044 # Is the header compilable?
13045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 $ac_includes_default
13054 #include <$ac_header>
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (ac_try="$ac_compile"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_compile") 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest.$ac_objext; then
13073 ac_header_compiler=yes
13074 else
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 ac_header_compiler=no
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13083 echo "${ECHO_T}$ac_header_compiler" >&6; }
13085 # Is the header present?
13086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 #include <$ac_header>
13095 _ACEOF
13096 if { (ac_try="$ac_cpp conftest.$ac_ext"
13097 case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } >/dev/null && {
13109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 }; then
13112 ac_header_preproc=yes
13113 else
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13117 ac_header_preproc=no
13120 rm -f conftest.err conftest.$ac_ext
13121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13122 echo "${ECHO_T}$ac_header_preproc" >&6; }
13124 # So? What about this header?
13125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13126 yes:no: )
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13131 ac_header_preproc=yes
13133 no:yes:* )
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13146 ( cat <<\_ASBOX
13147 ## ------------------------------- ##
13148 ## Report this to www.asterisk.org ##
13149 ## ------------------------------- ##
13150 _ASBOX
13151 ) | sed "s/^/$as_me: WARNING: /" >&2
13153 esac
13154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159 eval "$as_ac_Header=\$ac_header_preproc"
13161 ac_res=`eval echo '${'$as_ac_Header'}'`
13162 { echo "$as_me:$LINENO: result: $ac_res" >&5
13163 echo "${ECHO_T}$ac_res" >&6; }
13166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13169 _ACEOF
13173 done
13176 for ac_func in getpagesize
13178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h. */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13192 #define $ac_func innocuous_$ac_func
13194 /* System header to define __stub macros and hopefully few prototypes,
13195 which can conflict with char $ac_func (); below.
13196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13197 <limits.h> exists even on freestanding compilers. */
13199 #ifdef __STDC__
13200 # include <limits.h>
13201 #else
13202 # include <assert.h>
13203 #endif
13205 #undef $ac_func
13207 /* Override any GCC internal prototype to avoid an error.
13208 Use char because int might match the return type of a GCC
13209 builtin and then its argument prototype would still apply. */
13210 #ifdef __cplusplus
13211 extern "C"
13212 #endif
13213 char $ac_func ();
13214 /* The GNU C library defines this for functions which it implements
13215 to always fail with ENOSYS. Some functions are actually named
13216 something starting with __ and the normal name is an alias. */
13217 #if defined __stub_$ac_func || defined __stub___$ac_func
13218 choke me
13219 #endif
13222 main ()
13224 return $ac_func ();
13226 return 0;
13228 _ACEOF
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (ac_try="$ac_link"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_link") 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && {
13243 test -z "$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 } && test -s conftest$ac_exeext &&
13246 $as_test_x conftest$ac_exeext; then
13247 eval "$as_ac_var=yes"
13248 else
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 eval "$as_ac_var=no"
13255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13256 conftest$ac_exeext conftest.$ac_ext
13258 ac_res=`eval echo '${'$as_ac_var'}'`
13259 { echo "$as_me:$LINENO: result: $ac_res" >&5
13260 echo "${ECHO_T}$ac_res" >&6; }
13261 if test `eval echo '${'$as_ac_var'}'` = yes; then
13262 cat >>confdefs.h <<_ACEOF
13263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13264 _ACEOF
13267 done
13269 { echo "$as_me:$LINENO: checking for working mmap" >&5
13270 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13271 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274 if test "$cross_compiling" = yes; then
13275 ac_cv_func_mmap_fixed_mapped=no
13276 else
13277 cat >conftest.$ac_ext <<_ACEOF
13278 /* confdefs.h. */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 $ac_includes_default
13284 /* malloc might have been renamed as rpl_malloc. */
13285 #undef malloc
13287 /* Thanks to Mike Haertel and Jim Avera for this test.
13288 Here is a matrix of mmap possibilities:
13289 mmap private not fixed
13290 mmap private fixed at somewhere currently unmapped
13291 mmap private fixed at somewhere already mapped
13292 mmap shared not fixed
13293 mmap shared fixed at somewhere currently unmapped
13294 mmap shared fixed at somewhere already mapped
13295 For private mappings, we should verify that changes cannot be read()
13296 back from the file, nor mmap's back from the file at a different
13297 address. (There have been systems where private was not correctly
13298 implemented like the infamous i386 svr4.0, and systems where the
13299 VM page cache was not coherent with the file system buffer cache
13300 like early versions of FreeBSD and possibly contemporary NetBSD.)
13301 For shared mappings, we should conversely verify that changes get
13302 propagated back to all the places they're supposed to be.
13304 Grep wants private fixed already mapped.
13305 The main things grep needs to know about mmap are:
13306 * does it exist and is it safe to write into the mmap'd area
13307 * how to use it (BSD variants) */
13309 #include <fcntl.h>
13310 #include <sys/mman.h>
13312 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13313 char *malloc ();
13314 #endif
13316 /* This mess was copied from the GNU getpagesize.h. */
13317 #ifndef HAVE_GETPAGESIZE
13318 /* Assume that all systems that can run configure have sys/param.h. */
13319 # ifndef HAVE_SYS_PARAM_H
13320 # define HAVE_SYS_PARAM_H 1
13321 # endif
13323 # ifdef _SC_PAGESIZE
13324 # define getpagesize() sysconf(_SC_PAGESIZE)
13325 # else /* no _SC_PAGESIZE */
13326 # ifdef HAVE_SYS_PARAM_H
13327 # include <sys/param.h>
13328 # ifdef EXEC_PAGESIZE
13329 # define getpagesize() EXEC_PAGESIZE
13330 # else /* no EXEC_PAGESIZE */
13331 # ifdef NBPG
13332 # define getpagesize() NBPG * CLSIZE
13333 # ifndef CLSIZE
13334 # define CLSIZE 1
13335 # endif /* no CLSIZE */
13336 # else /* no NBPG */
13337 # ifdef NBPC
13338 # define getpagesize() NBPC
13339 # else /* no NBPC */
13340 # ifdef PAGESIZE
13341 # define getpagesize() PAGESIZE
13342 # endif /* PAGESIZE */
13343 # endif /* no NBPC */
13344 # endif /* no NBPG */
13345 # endif /* no EXEC_PAGESIZE */
13346 # else /* no HAVE_SYS_PARAM_H */
13347 # define getpagesize() 8192 /* punt totally */
13348 # endif /* no HAVE_SYS_PARAM_H */
13349 # endif /* no _SC_PAGESIZE */
13351 #endif /* no HAVE_GETPAGESIZE */
13354 main ()
13356 char *data, *data2, *data3;
13357 int i, pagesize;
13358 int fd;
13360 pagesize = getpagesize ();
13362 /* First, make a file with some known garbage in it. */
13363 data = (char *) malloc (pagesize);
13364 if (!data)
13365 return 1;
13366 for (i = 0; i < pagesize; ++i)
13367 *(data + i) = rand ();
13368 umask (0);
13369 fd = creat ("conftest.mmap", 0600);
13370 if (fd < 0)
13371 return 1;
13372 if (write (fd, data, pagesize) != pagesize)
13373 return 1;
13374 close (fd);
13376 /* Next, try to mmap the file at a fixed address which already has
13377 something else allocated at it. If we can, also make sure that
13378 we see the same garbage. */
13379 fd = open ("conftest.mmap", O_RDWR);
13380 if (fd < 0)
13381 return 1;
13382 data2 = (char *) malloc (2 * pagesize);
13383 if (!data2)
13384 return 1;
13385 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13386 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13387 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13388 return 1;
13389 for (i = 0; i < pagesize; ++i)
13390 if (*(data + i) != *(data2 + i))
13391 return 1;
13393 /* Finally, make sure that changes to the mapped area do not
13394 percolate back to the file as seen by read(). (This is a bug on
13395 some variants of i386 svr4.0.) */
13396 for (i = 0; i < pagesize; ++i)
13397 *(data2 + i) = *(data2 + i) + 1;
13398 data3 = (char *) malloc (pagesize);
13399 if (!data3)
13400 return 1;
13401 if (read (fd, data3, pagesize) != pagesize)
13402 return 1;
13403 for (i = 0; i < pagesize; ++i)
13404 if (*(data + i) != *(data3 + i))
13405 return 1;
13406 close (fd);
13407 return 0;
13409 _ACEOF
13410 rm -f conftest$ac_exeext
13411 if { (ac_try="$ac_link"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_link") 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_cv_func_mmap_fixed_mapped=yes
13431 else
13432 echo "$as_me: program exited with status $ac_status" >&5
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ( exit $ac_status )
13437 ac_cv_func_mmap_fixed_mapped=no
13439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13444 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13445 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13446 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13448 cat >>confdefs.h <<\_ACEOF
13449 #define HAVE_MMAP 1
13450 _ACEOF
13453 rm -f conftest.mmap
13457 for ac_header in sys/select.h sys/socket.h
13459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 ac_res=`eval echo '${'$as_ac_Header'}'`
13467 { echo "$as_me:$LINENO: result: $ac_res" >&5
13468 echo "${ECHO_T}$ac_res" >&6; }
13469 else
13470 # Is the header compilable?
13471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h. */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 $ac_includes_default
13480 #include <$ac_header>
13481 _ACEOF
13482 rm -f conftest.$ac_objext
13483 if { (ac_try="$ac_compile"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_compile") 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } && {
13496 test -z "$ac_c_werror_flag" ||
13497 test ! -s conftest.err
13498 } && test -s conftest.$ac_objext; then
13499 ac_header_compiler=yes
13500 else
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_header_compiler=no
13507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13509 echo "${ECHO_T}$ac_header_compiler" >&6; }
13511 # Is the header present?
13512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13514 cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h. */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 #include <$ac_header>
13521 _ACEOF
13522 if { (ac_try="$ac_cpp conftest.$ac_ext"
13523 case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526 esac
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } >/dev/null && {
13535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 }; then
13538 ac_header_preproc=yes
13539 else
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_header_preproc=no
13546 rm -f conftest.err conftest.$ac_ext
13547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13548 echo "${ECHO_T}$ac_header_preproc" >&6; }
13550 # So? What about this header?
13551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13552 yes:no: )
13553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13557 ac_header_preproc=yes
13559 no:yes:* )
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13572 ( cat <<\_ASBOX
13573 ## ------------------------------- ##
13574 ## Report this to www.asterisk.org ##
13575 ## ------------------------------- ##
13576 _ASBOX
13577 ) | sed "s/^/$as_me: WARNING: /" >&2
13579 esac
13580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 eval "$as_ac_Header=\$ac_header_preproc"
13587 ac_res=`eval echo '${'$as_ac_Header'}'`
13588 { echo "$as_me:$LINENO: result: $ac_res" >&5
13589 echo "${ECHO_T}$ac_res" >&6; }
13592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13593 cat >>confdefs.h <<_ACEOF
13594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13595 _ACEOF
13599 done
13601 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13602 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13603 if test "${ac_cv_func_select_args+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13607 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13608 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 $ac_includes_default
13616 #ifdef HAVE_SYS_SELECT_H
13617 # include <sys/select.h>
13618 #endif
13619 #ifdef HAVE_SYS_SOCKET_H
13620 # include <sys/socket.h>
13621 #endif
13624 main ()
13626 extern int select ($ac_arg1,
13627 $ac_arg234, $ac_arg234, $ac_arg234,
13628 $ac_arg5);
13630 return 0;
13632 _ACEOF
13633 rm -f conftest.$ac_objext
13634 if { (ac_try="$ac_compile"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_compile") 2>conftest.er1
13641 ac_status=$?
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } && {
13647 test -z "$ac_c_werror_flag" ||
13648 test ! -s conftest.err
13649 } && test -s conftest.$ac_objext; then
13650 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13651 else
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 done
13660 done
13661 done
13662 # Provide a safe default value.
13663 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13666 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13667 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13668 ac_save_IFS=$IFS; IFS=','
13669 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13670 IFS=$ac_save_IFS
13671 shift
13673 cat >>confdefs.h <<_ACEOF
13674 #define SELECT_TYPE_ARG1 $1
13675 _ACEOF
13678 cat >>confdefs.h <<_ACEOF
13679 #define SELECT_TYPE_ARG234 ($2)
13680 _ACEOF
13683 cat >>confdefs.h <<_ACEOF
13684 #define SELECT_TYPE_ARG5 ($3)
13685 _ACEOF
13687 rm -f conftest*
13689 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13690 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13691 if test "$ac_cv_prog_cc_c89" != no; then
13692 { echo "$as_me:$LINENO: result: yes" >&5
13693 echo "${ECHO_T}yes" >&6; }
13695 cat >>confdefs.h <<\_ACEOF
13696 #define PROTOTYPES 1
13697 _ACEOF
13700 cat >>confdefs.h <<\_ACEOF
13701 #define __PROTOTYPES 1
13702 _ACEOF
13704 else
13705 { echo "$as_me:$LINENO: result: no" >&5
13706 echo "${ECHO_T}no" >&6; }
13709 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13710 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13711 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714 ac_cv_func_setvbuf_reversed=no
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 #include <stdio.h>
13722 # ifdef PROTOTYPES
13723 int (setvbuf) (FILE *, int, char *, size_t);
13724 # endif
13726 main ()
13728 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13730 return 0;
13732 _ACEOF
13733 rm -f conftest.$ac_objext conftest$ac_exeext
13734 if { (ac_try="$ac_link"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_link") 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } && {
13747 test -z "$ac_c_werror_flag" ||
13748 test ! -s conftest.err
13749 } && test -s conftest$ac_exeext &&
13750 $as_test_x conftest$ac_exeext; then
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h. */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13757 #include <stdio.h>
13758 # ifdef PROTOTYPES
13759 int (setvbuf) (FILE *, int, char *, size_t);
13760 # endif
13762 main ()
13764 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13766 return 0;
13768 _ACEOF
13769 rm -f conftest.$ac_objext conftest$ac_exeext
13770 if { (ac_try="$ac_link"
13771 case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774 esac
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_link") 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && {
13783 test -z "$ac_c_werror_flag" ||
13784 test ! -s conftest.err
13785 } && test -s conftest$ac_exeext &&
13786 $as_test_x conftest$ac_exeext; then
13787 # It compiles and links either way, so it must not be declared
13788 # with a prototype and most likely this is a K&R C compiler.
13789 # Try running it.
13790 if test "$cross_compiling" = yes; then
13791 : # Assume setvbuf is not reversed when cross-compiling.
13792 else
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13801 main ()
13803 /* This call has the arguments reversed.
13804 A reversed system may check and see that the address of buf
13805 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13806 char buf;
13807 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13808 return 1;
13809 putchar ('\r');
13810 return 0; /* Non-reversed systems SEGV here. */
13812 return 0;
13814 _ACEOF
13815 rm -f conftest$ac_exeext
13816 if { (ac_try="$ac_link"
13817 case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820 esac
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_link") 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 ac_cv_func_setvbuf_reversed=yes
13836 else
13837 echo "$as_me: program exited with status $ac_status" >&5
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13846 ac_cv_func_setvbuf_reversed=yes
13847 else
13848 echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13855 conftest$ac_exeext conftest.$ac_ext
13856 else
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13864 conftest$ac_exeext conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13867 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13868 if test $ac_cv_func_setvbuf_reversed = yes; then
13870 cat >>confdefs.h <<\_ACEOF
13871 #define SETVBUF_REVERSED 1
13872 _ACEOF
13876 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13877 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13878 if test "${ac_cv_type_signal+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 #include <sys/types.h>
13888 #include <signal.h>
13891 main ()
13893 return *(signal (0, 0)) (0) == 1;
13895 return 0;
13897 _ACEOF
13898 rm -f conftest.$ac_objext
13899 if { (ac_try="$ac_compile"
13900 case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_compile") 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest.$ac_objext; then
13915 ac_cv_type_signal=int
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_type_signal=void
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13926 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13928 cat >>confdefs.h <<_ACEOF
13929 #define RETSIGTYPE $ac_cv_type_signal
13930 _ACEOF
13933 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
13934 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
13935 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938 rm -f conftest.sym conftest.file
13939 echo >conftest.file
13940 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13941 if test "$cross_compiling" = yes; then
13942 ac_cv_func_lstat_dereferences_slashed_symlink=no
13943 else
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h. */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 $ac_includes_default
13952 main ()
13954 struct stat sbuf;
13955 /* Linux will dereference the symlink and fail.
13956 That is better in the sense that it means we will not
13957 have to compile and use the lstat wrapper. */
13958 return lstat ("conftest.sym/", &sbuf) == 0;
13960 return 0;
13962 _ACEOF
13963 rm -f conftest$ac_exeext
13964 if { (ac_try="$ac_link"
13965 case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_link") 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13984 else
13985 echo "$as_me: program exited with status $ac_status" >&5
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ( exit $ac_status )
13990 ac_cv_func_lstat_dereferences_slashed_symlink=no
13992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13996 else
13997 # If the `ln -s' command failed, then we probably don't even
13998 # have an lstat function.
13999 ac_cv_func_lstat_dereferences_slashed_symlink=no
14001 rm -f conftest.sym conftest.file
14004 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14005 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14007 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14009 cat >>confdefs.h <<_ACEOF
14010 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14011 _ACEOF
14014 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14015 case " $LIBOBJS " in
14016 *" lstat.$ac_objext "* ) ;;
14017 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14019 esac
14023 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14024 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14025 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028 if test "$cross_compiling" = yes; then
14029 ac_cv_func_stat_empty_string_bug=yes
14030 else
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14039 main ()
14041 struct stat sbuf;
14042 return stat ("", &sbuf) == 0;
14044 return 0;
14046 _ACEOF
14047 rm -f conftest$ac_exeext
14048 if { (ac_try="$ac_link"
14049 case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_link") 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_func_stat_empty_string_bug=no
14068 else
14069 echo "$as_me: program exited with status $ac_status" >&5
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 ( exit $ac_status )
14074 ac_cv_func_stat_empty_string_bug=yes
14076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14081 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14082 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14083 if test $ac_cv_func_stat_empty_string_bug = yes; then
14084 case " $LIBOBJS " in
14085 *" stat.$ac_objext "* ) ;;
14086 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14088 esac
14091 cat >>confdefs.h <<_ACEOF
14092 #define HAVE_STAT_EMPTY_STRING_BUG 1
14093 _ACEOF
14097 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14098 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14099 if test "${ac_cv_func_strcoll_works+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102 if test "$cross_compiling" = yes; then
14103 ac_cv_func_strcoll_works=no
14104 else
14105 cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h. */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14111 $ac_includes_default
14113 main ()
14115 return (strcoll ("abc", "def") >= 0 ||
14116 strcoll ("ABC", "DEF") >= 0 ||
14117 strcoll ("123", "456") >= 0)
14119 return 0;
14121 _ACEOF
14122 rm -f conftest$ac_exeext
14123 if { (ac_try="$ac_link"
14124 case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_link") 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14133 { (case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136 esac
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_try") 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_func_strcoll_works=yes
14143 else
14144 echo "$as_me: program exited with status $ac_status" >&5
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 ( exit $ac_status )
14149 ac_cv_func_strcoll_works=no
14151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14156 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14157 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14158 if test $ac_cv_func_strcoll_works = yes; then
14160 cat >>confdefs.h <<\_ACEOF
14161 #define HAVE_STRCOLL 1
14162 _ACEOF
14167 for ac_func in strftime
14169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h. */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14183 #define $ac_func innocuous_$ac_func
14185 /* System header to define __stub macros and hopefully few prototypes,
14186 which can conflict with char $ac_func (); below.
14187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14188 <limits.h> exists even on freestanding compilers. */
14190 #ifdef __STDC__
14191 # include <limits.h>
14192 #else
14193 # include <assert.h>
14194 #endif
14196 #undef $ac_func
14198 /* Override any GCC internal prototype to avoid an error.
14199 Use char because int might match the return type of a GCC
14200 builtin and then its argument prototype would still apply. */
14201 #ifdef __cplusplus
14202 extern "C"
14203 #endif
14204 char $ac_func ();
14205 /* The GNU C library defines this for functions which it implements
14206 to always fail with ENOSYS. Some functions are actually named
14207 something starting with __ and the normal name is an alias. */
14208 #if defined __stub_$ac_func || defined __stub___$ac_func
14209 choke me
14210 #endif
14213 main ()
14215 return $ac_func ();
14217 return 0;
14219 _ACEOF
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (ac_try="$ac_link"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225 esac
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_link") 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } && {
14234 test -z "$ac_c_werror_flag" ||
14235 test ! -s conftest.err
14236 } && test -s conftest$ac_exeext &&
14237 $as_test_x conftest$ac_exeext; then
14238 eval "$as_ac_var=yes"
14239 else
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 eval "$as_ac_var=no"
14246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14247 conftest$ac_exeext conftest.$ac_ext
14249 ac_res=`eval echo '${'$as_ac_var'}'`
14250 { echo "$as_me:$LINENO: result: $ac_res" >&5
14251 echo "${ECHO_T}$ac_res" >&6; }
14252 if test `eval echo '${'$as_ac_var'}'` = yes; then
14253 cat >>confdefs.h <<_ACEOF
14254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14255 _ACEOF
14257 else
14258 # strftime is in -lintl on SCO UNIX.
14259 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14260 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14261 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264 ac_check_lib_save_LIBS=$LIBS
14265 LIBS="-lintl $LIBS"
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h. */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14276 #ifdef __cplusplus
14277 extern "C"
14278 #endif
14279 char strftime ();
14281 main ()
14283 return strftime ();
14285 return 0;
14287 _ACEOF
14288 rm -f conftest.$ac_objext conftest$ac_exeext
14289 if { (ac_try="$ac_link"
14290 case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_link") 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } && {
14302 test -z "$ac_c_werror_flag" ||
14303 test ! -s conftest.err
14304 } && test -s conftest$ac_exeext &&
14305 $as_test_x conftest$ac_exeext; then
14306 ac_cv_lib_intl_strftime=yes
14307 else
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 ac_cv_lib_intl_strftime=no
14314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14315 conftest$ac_exeext conftest.$ac_ext
14316 LIBS=$ac_check_lib_save_LIBS
14318 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14319 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14320 if test $ac_cv_lib_intl_strftime = yes; then
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_STRFTIME 1
14323 _ACEOF
14325 LIBS="-lintl $LIBS"
14329 done
14331 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14332 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14333 if test "${ac_cv_func_strnlen_working+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336 if test "$cross_compiling" = yes; then
14337 ac_cv_func_strnlen_working=no
14338 else
14339 cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h. */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 $ac_includes_default
14347 main ()
14350 #define S "foobar"
14351 #define S_LEN (sizeof S - 1)
14353 /* At least one implementation is buggy: that of AIX 4.3 would
14354 give strnlen (S, 1) == 3. */
14356 int i;
14357 for (i = 0; i < S_LEN + 1; ++i)
14359 int expected = i <= S_LEN ? i : S_LEN;
14360 if (strnlen (S, i) != expected)
14361 return 1;
14363 return 0;
14366 return 0;
14368 _ACEOF
14369 rm -f conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_cv_func_strnlen_working=yes
14390 else
14391 echo "$as_me: program exited with status $ac_status" >&5
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ( exit $ac_status )
14396 ac_cv_func_strnlen_working=no
14398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14403 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14404 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14405 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14406 *" strnlen.$ac_objext "* ) ;;
14407 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14409 esac
14412 { echo "$as_me:$LINENO: checking for working strtod" >&5
14413 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14414 if test "${ac_cv_func_strtod+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417 if test "$cross_compiling" = yes; then
14418 ac_cv_func_strtod=no
14419 else
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14427 $ac_includes_default
14428 #ifndef strtod
14429 double strtod ();
14430 #endif
14432 main()
14435 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14436 char *string = " +69";
14437 char *term;
14438 double value;
14439 value = strtod (string, &term);
14440 if (value != 69 || term != (string + 4))
14441 return 1;
14445 /* Under Solaris 2.4, strtod returns the wrong value for the
14446 terminating character under some conditions. */
14447 char *string = "NaN";
14448 char *term;
14449 strtod (string, &term);
14450 if (term != string && *(term - 1) == 0)
14451 return 1;
14453 return 0;
14456 _ACEOF
14457 rm -f conftest$ac_exeext
14458 if { (ac_try="$ac_link"
14459 case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_link") 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14468 { (case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_try") 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 ac_cv_func_strtod=yes
14478 else
14479 echo "$as_me: program exited with status $ac_status" >&5
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 ( exit $ac_status )
14484 ac_cv_func_strtod=no
14486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14491 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14492 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14493 if test $ac_cv_func_strtod = no; then
14494 case " $LIBOBJS " in
14495 *" strtod.$ac_objext "* ) ;;
14496 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14498 esac
14500 { echo "$as_me:$LINENO: checking for pow" >&5
14501 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14502 if test "${ac_cv_func_pow+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505 cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h. */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14511 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14513 #define pow innocuous_pow
14515 /* System header to define __stub macros and hopefully few prototypes,
14516 which can conflict with char pow (); below.
14517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14518 <limits.h> exists even on freestanding compilers. */
14520 #ifdef __STDC__
14521 # include <limits.h>
14522 #else
14523 # include <assert.h>
14524 #endif
14526 #undef pow
14528 /* Override any GCC internal prototype to avoid an error.
14529 Use char because int might match the return type of a GCC
14530 builtin and then its argument prototype would still apply. */
14531 #ifdef __cplusplus
14532 extern "C"
14533 #endif
14534 char pow ();
14535 /* The GNU C library defines this for functions which it implements
14536 to always fail with ENOSYS. Some functions are actually named
14537 something starting with __ and the normal name is an alias. */
14538 #if defined __stub_pow || defined __stub___pow
14539 choke me
14540 #endif
14543 main ()
14545 return pow ();
14547 return 0;
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_link") 2>conftest.er1
14558 ac_status=$?
14559 grep -v '^ *+' conftest.er1 >conftest.err
14560 rm -f conftest.er1
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && {
14564 test -z "$ac_c_werror_flag" ||
14565 test ! -s conftest.err
14566 } && test -s conftest$ac_exeext &&
14567 $as_test_x conftest$ac_exeext; then
14568 ac_cv_func_pow=yes
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_cv_func_pow=no
14576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14577 conftest$ac_exeext conftest.$ac_ext
14579 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14580 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14582 if test $ac_cv_func_pow = no; then
14583 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14584 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14585 if test "${ac_cv_lib_m_pow+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588 ac_check_lib_save_LIBS=$LIBS
14589 LIBS="-lm $LIBS"
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h. */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14597 /* Override any GCC internal prototype to avoid an error.
14598 Use char because int might match the return type of a GCC
14599 builtin and then its argument prototype would still apply. */
14600 #ifdef __cplusplus
14601 extern "C"
14602 #endif
14603 char pow ();
14605 main ()
14607 return pow ();
14609 return 0;
14611 _ACEOF
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (ac_try="$ac_link"
14614 case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_link") 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest$ac_exeext &&
14629 $as_test_x conftest$ac_exeext; then
14630 ac_cv_lib_m_pow=yes
14631 else
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 ac_cv_lib_m_pow=no
14638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14639 conftest$ac_exeext conftest.$ac_ext
14640 LIBS=$ac_check_lib_save_LIBS
14642 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14643 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14644 if test $ac_cv_lib_m_pow = yes; then
14645 POW_LIB=-lm
14646 else
14647 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14648 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14659 for ac_header in $ac_header_list
14661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 ac_res=`eval echo '${'$as_ac_Header'}'`
14669 { echo "$as_me:$LINENO: result: $ac_res" >&5
14670 echo "${ECHO_T}$ac_res" >&6; }
14671 else
14672 # Is the header compilable?
14673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14682 #include <$ac_header>
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (ac_try="$ac_compile"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_compile") 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } && {
14698 test -z "$ac_c_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest.$ac_objext; then
14701 ac_header_compiler=yes
14702 else
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_header_compiler=no
14709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14711 echo "${ECHO_T}$ac_header_compiler" >&6; }
14713 # Is the header present?
14714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14716 cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h. */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 #include <$ac_header>
14723 _ACEOF
14724 if { (ac_try="$ac_cpp conftest.$ac_ext"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } >/dev/null && {
14737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 }; then
14740 ac_header_preproc=yes
14741 else
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14745 ac_header_preproc=no
14748 rm -f conftest.err conftest.$ac_ext
14749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14750 echo "${ECHO_T}$ac_header_preproc" >&6; }
14752 # So? What about this header?
14753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14754 yes:no: )
14755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14759 ac_header_preproc=yes
14761 no:yes:* )
14762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14774 ( cat <<\_ASBOX
14775 ## ------------------------------- ##
14776 ## Report this to www.asterisk.org ##
14777 ## ------------------------------- ##
14778 _ASBOX
14779 ) | sed "s/^/$as_me: WARNING: /" >&2
14781 esac
14782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 eval "$as_ac_Header=\$ac_header_preproc"
14789 ac_res=`eval echo '${'$as_ac_Header'}'`
14790 { echo "$as_me:$LINENO: result: $ac_res" >&5
14791 echo "${ECHO_T}$ac_res" >&6; }
14794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14795 cat >>confdefs.h <<_ACEOF
14796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14797 _ACEOF
14801 done
14811 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14812 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14813 if test "${ac_cv_func_utime_null+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816 rm -f conftest.data; >conftest.data
14817 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14818 if test "$cross_compiling" = yes; then
14819 ac_cv_func_utime_null=no
14820 else
14821 cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h. */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 $ac_includes_default
14828 #ifdef HAVE_UTIME_H
14829 # include <utime.h>
14830 #endif
14832 main ()
14834 struct stat s, t;
14835 return ! (stat ("conftest.data", &s) == 0
14836 && utime ("conftest.data", 0) == 0
14837 && stat ("conftest.data", &t) == 0
14838 && t.st_mtime >= s.st_mtime
14839 && t.st_mtime - s.st_mtime < 120);
14841 return 0;
14843 _ACEOF
14844 rm -f conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_link") 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14855 { (case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14858 esac
14859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14860 (eval "$ac_try") 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_func_utime_null=yes
14865 else
14866 echo "$as_me: program exited with status $ac_status" >&5
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 ( exit $ac_status )
14871 ac_cv_func_utime_null=no
14873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14878 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14879 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14880 if test $ac_cv_func_utime_null = yes; then
14882 cat >>confdefs.h <<\_ACEOF
14883 #define HAVE_UTIME_NULL 1
14884 _ACEOF
14887 rm -f conftest.data
14890 for ac_func in vprintf
14892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h. */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14906 #define $ac_func innocuous_$ac_func
14908 /* System header to define __stub macros and hopefully few prototypes,
14909 which can conflict with char $ac_func (); below.
14910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14911 <limits.h> exists even on freestanding compilers. */
14913 #ifdef __STDC__
14914 # include <limits.h>
14915 #else
14916 # include <assert.h>
14917 #endif
14919 #undef $ac_func
14921 /* Override any GCC internal prototype to avoid an error.
14922 Use char because int might match the return type of a GCC
14923 builtin and then its argument prototype would still apply. */
14924 #ifdef __cplusplus
14925 extern "C"
14926 #endif
14927 char $ac_func ();
14928 /* The GNU C library defines this for functions which it implements
14929 to always fail with ENOSYS. Some functions are actually named
14930 something starting with __ and the normal name is an alias. */
14931 #if defined __stub_$ac_func || defined __stub___$ac_func
14932 choke me
14933 #endif
14936 main ()
14938 return $ac_func ();
14940 return 0;
14942 _ACEOF
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_link") 2>conftest.er1
14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest$ac_exeext &&
14960 $as_test_x conftest$ac_exeext; then
14961 eval "$as_ac_var=yes"
14962 else
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 eval "$as_ac_var=no"
14969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14970 conftest$ac_exeext conftest.$ac_ext
14972 ac_res=`eval echo '${'$as_ac_var'}'`
14973 { echo "$as_me:$LINENO: result: $ac_res" >&5
14974 echo "${ECHO_T}$ac_res" >&6; }
14975 if test `eval echo '${'$as_ac_var'}'` = yes; then
14976 cat >>confdefs.h <<_ACEOF
14977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14978 _ACEOF
14980 { echo "$as_me:$LINENO: checking for _doprnt" >&5
14981 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
14982 if test "${ac_cv_func__doprnt+set}" = set; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985 cat >conftest.$ac_ext <<_ACEOF
14986 /* confdefs.h. */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
14992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14993 #define _doprnt innocuous__doprnt
14995 /* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char _doprnt (); below.
14997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14998 <limits.h> exists even on freestanding compilers. */
15000 #ifdef __STDC__
15001 # include <limits.h>
15002 #else
15003 # include <assert.h>
15004 #endif
15006 #undef _doprnt
15008 /* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15011 #ifdef __cplusplus
15012 extern "C"
15013 #endif
15014 char _doprnt ();
15015 /* The GNU C library defines this for functions which it implements
15016 to always fail with ENOSYS. Some functions are actually named
15017 something starting with __ and the normal name is an alias. */
15018 #if defined __stub__doprnt || defined __stub____doprnt
15019 choke me
15020 #endif
15023 main ()
15025 return _doprnt ();
15027 return 0;
15029 _ACEOF
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035 esac
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
15038 ac_status=$?
15039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest$ac_exeext &&
15047 $as_test_x conftest$ac_exeext; then
15048 ac_cv_func__doprnt=yes
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_cv_func__doprnt=no
15056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15057 conftest$ac_exeext conftest.$ac_ext
15059 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15060 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15061 if test $ac_cv_func__doprnt = yes; then
15063 cat >>confdefs.h <<\_ACEOF
15064 #define HAVE_DOPRNT 1
15065 _ACEOF
15070 done
15118 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
15120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126 cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h. */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15134 #define $ac_func innocuous_$ac_func
15136 /* System header to define __stub macros and hopefully few prototypes,
15137 which can conflict with char $ac_func (); below.
15138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15139 <limits.h> exists even on freestanding compilers. */
15141 #ifdef __STDC__
15142 # include <limits.h>
15143 #else
15144 # include <assert.h>
15145 #endif
15147 #undef $ac_func
15149 /* Override any GCC internal prototype to avoid an error.
15150 Use char because int might match the return type of a GCC
15151 builtin and then its argument prototype would still apply. */
15152 #ifdef __cplusplus
15153 extern "C"
15154 #endif
15155 char $ac_func ();
15156 /* The GNU C library defines this for functions which it implements
15157 to always fail with ENOSYS. Some functions are actually named
15158 something starting with __ and the normal name is an alias. */
15159 #if defined __stub_$ac_func || defined __stub___$ac_func
15160 choke me
15161 #endif
15164 main ()
15166 return $ac_func ();
15168 return 0;
15170 _ACEOF
15171 rm -f conftest.$ac_objext conftest$ac_exeext
15172 if { (ac_try="$ac_link"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15176 esac
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_link") 2>conftest.er1
15179 ac_status=$?
15180 grep -v '^ *+' conftest.er1 >conftest.err
15181 rm -f conftest.er1
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } && {
15185 test -z "$ac_c_werror_flag" ||
15186 test ! -s conftest.err
15187 } && test -s conftest$ac_exeext &&
15188 $as_test_x conftest$ac_exeext; then
15189 eval "$as_ac_var=yes"
15190 else
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 eval "$as_ac_var=no"
15197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15198 conftest$ac_exeext conftest.$ac_ext
15200 ac_res=`eval echo '${'$as_ac_var'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15203 if test `eval echo '${'$as_ac_var'}'` = yes; then
15204 cat >>confdefs.h <<_ACEOF
15205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15206 _ACEOF
15209 done
15213 for ac_func in glob
15215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 else
15221 cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h. */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15229 #define $ac_func innocuous_$ac_func
15231 /* System header to define __stub macros and hopefully few prototypes,
15232 which can conflict with char $ac_func (); below.
15233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15234 <limits.h> exists even on freestanding compilers. */
15236 #ifdef __STDC__
15237 # include <limits.h>
15238 #else
15239 # include <assert.h>
15240 #endif
15242 #undef $ac_func
15244 /* Override any GCC internal prototype to avoid an error.
15245 Use char because int might match the return type of a GCC
15246 builtin and then its argument prototype would still apply. */
15247 #ifdef __cplusplus
15248 extern "C"
15249 #endif
15250 char $ac_func ();
15251 /* The GNU C library defines this for functions which it implements
15252 to always fail with ENOSYS. Some functions are actually named
15253 something starting with __ and the normal name is an alias. */
15254 #if defined __stub_$ac_func || defined __stub___$ac_func
15255 choke me
15256 #endif
15259 main ()
15261 return $ac_func ();
15263 return 0;
15265 _ACEOF
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271 esac
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_link") 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } && {
15280 test -z "$ac_c_werror_flag" ||
15281 test ! -s conftest.err
15282 } && test -s conftest$ac_exeext &&
15283 $as_test_x conftest$ac_exeext; then
15284 eval "$as_ac_var=yes"
15285 else
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 eval "$as_ac_var=no"
15292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293 conftest$ac_exeext conftest.$ac_ext
15295 ac_res=`eval echo '${'$as_ac_var'}'`
15296 { echo "$as_me:$LINENO: result: $ac_res" >&5
15297 echo "${ECHO_T}$ac_res" >&6; }
15298 if test `eval echo '${'$as_ac_var'}'` = yes; then
15299 cat >>confdefs.h <<_ACEOF
15300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15301 _ACEOF
15304 done
15307 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15308 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h. */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 #include <sys/time.h>
15317 main ()
15319 struct timeval *a; timersub(a, a, a);
15321 return 0;
15323 _ACEOF
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (ac_try="$ac_link"
15326 case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_link") 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } && {
15338 test -z "$ac_c_werror_flag" ||
15339 test ! -s conftest.err
15340 } && test -s conftest$ac_exeext &&
15341 $as_test_x conftest$ac_exeext; then
15342 { echo "$as_me:$LINENO: result: yes" >&5
15343 echo "${ECHO_T}yes" >&6; }
15345 cat >>confdefs.h <<\_ACEOF
15346 #define HAVE_TIMERSUB 1
15347 _ACEOF
15349 else
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 { echo "$as_me:$LINENO: result: no" >&5
15354 echo "${ECHO_T}no" >&6; }
15358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15359 conftest$ac_exeext conftest.$ac_ext
15361 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15362 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15363 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15364 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15368 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15369 else
15370 # Is the header compilable?
15371 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15372 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 $ac_includes_default
15380 #include <sys/poll.h>
15381 _ACEOF
15382 rm -f conftest.$ac_objext
15383 if { (ac_try="$ac_compile"
15384 case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15387 esac
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_compile") 2>conftest.er1
15390 ac_status=$?
15391 grep -v '^ *+' conftest.er1 >conftest.err
15392 rm -f conftest.er1
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } && {
15396 test -z "$ac_c_werror_flag" ||
15397 test ! -s conftest.err
15398 } && test -s conftest.$ac_objext; then
15399 ac_header_compiler=yes
15400 else
15401 echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15404 ac_header_compiler=no
15407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15409 echo "${ECHO_T}$ac_header_compiler" >&6; }
15411 # Is the header present?
15412 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15413 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h. */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420 #include <sys/poll.h>
15421 _ACEOF
15422 if { (ac_try="$ac_cpp conftest.$ac_ext"
15423 case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } >/dev/null && {
15435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15436 test ! -s conftest.err
15437 }; then
15438 ac_header_preproc=yes
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_header_preproc=no
15446 rm -f conftest.err conftest.$ac_ext
15447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15448 echo "${ECHO_T}$ac_header_preproc" >&6; }
15450 # So? What about this header?
15451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15452 yes:no: )
15453 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15454 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15456 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15457 ac_header_preproc=yes
15459 no:yes:* )
15460 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15461 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15463 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15465 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15467 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15469 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15471 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15472 ( cat <<\_ASBOX
15473 ## ------------------------------- ##
15474 ## Report this to www.asterisk.org ##
15475 ## ------------------------------- ##
15476 _ASBOX
15477 ) | sed "s/^/$as_me: WARNING: /" >&2
15479 esac
15480 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15481 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15482 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485 ac_cv_header_sys_poll_h=$ac_header_preproc
15487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15488 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15491 if test $ac_cv_header_sys_poll_h = yes; then
15492 HAS_POLL=1
15494 cat >>confdefs.h <<\_ACEOF
15495 #define HAVE_SYS_POLL_H 1
15496 _ACEOF
15503 # https support (in main/http.c) uses funopen on BSD systems,
15504 # fopencookie on linux
15507 for ac_func in funopen fopencookie
15509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515 cat >conftest.$ac_ext <<_ACEOF
15516 /* confdefs.h. */
15517 _ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15523 #define $ac_func innocuous_$ac_func
15525 /* System header to define __stub macros and hopefully few prototypes,
15526 which can conflict with char $ac_func (); below.
15527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15528 <limits.h> exists even on freestanding compilers. */
15530 #ifdef __STDC__
15531 # include <limits.h>
15532 #else
15533 # include <assert.h>
15534 #endif
15536 #undef $ac_func
15538 /* Override any GCC internal prototype to avoid an error.
15539 Use char because int might match the return type of a GCC
15540 builtin and then its argument prototype would still apply. */
15541 #ifdef __cplusplus
15542 extern "C"
15543 #endif
15544 char $ac_func ();
15545 /* The GNU C library defines this for functions which it implements
15546 to always fail with ENOSYS. Some functions are actually named
15547 something starting with __ and the normal name is an alias. */
15548 #if defined __stub_$ac_func || defined __stub___$ac_func
15549 choke me
15550 #endif
15553 main ()
15555 return $ac_func ();
15557 return 0;
15559 _ACEOF
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (ac_try="$ac_link"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_link") 2>conftest.er1
15568 ac_status=$?
15569 grep -v '^ *+' conftest.er1 >conftest.err
15570 rm -f conftest.er1
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } && {
15574 test -z "$ac_c_werror_flag" ||
15575 test ! -s conftest.err
15576 } && test -s conftest$ac_exeext &&
15577 $as_test_x conftest$ac_exeext; then
15578 eval "$as_ac_var=yes"
15579 else
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15583 eval "$as_ac_var=no"
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587 conftest$ac_exeext conftest.$ac_ext
15589 ac_res=`eval echo '${'$as_ac_var'}'`
15590 { echo "$as_me:$LINENO: result: $ac_res" >&5
15591 echo "${ECHO_T}$ac_res" >&6; }
15592 if test `eval echo '${'$as_ac_var'}'` = yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15595 _ACEOF
15598 done
15602 for ac_func in inet_aton
15604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15618 #define $ac_func innocuous_$ac_func
15620 /* System header to define __stub macros and hopefully few prototypes,
15621 which can conflict with char $ac_func (); below.
15622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15623 <limits.h> exists even on freestanding compilers. */
15625 #ifdef __STDC__
15626 # include <limits.h>
15627 #else
15628 # include <assert.h>
15629 #endif
15631 #undef $ac_func
15633 /* Override any GCC internal prototype to avoid an error.
15634 Use char because int might match the return type of a GCC
15635 builtin and then its argument prototype would still apply. */
15636 #ifdef __cplusplus
15637 extern "C"
15638 #endif
15639 char $ac_func ();
15640 /* The GNU C library defines this for functions which it implements
15641 to always fail with ENOSYS. Some functions are actually named
15642 something starting with __ and the normal name is an alias. */
15643 #if defined __stub_$ac_func || defined __stub___$ac_func
15644 choke me
15645 #endif
15648 main ()
15650 return $ac_func ();
15652 return 0;
15654 _ACEOF
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_link") 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } && {
15669 test -z "$ac_c_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest$ac_exeext &&
15672 $as_test_x conftest$ac_exeext; then
15673 eval "$as_ac_var=yes"
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 eval "$as_ac_var=no"
15681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15682 conftest$ac_exeext conftest.$ac_ext
15684 ac_res=`eval echo '${'$as_ac_var'}'`
15685 { echo "$as_me:$LINENO: result: $ac_res" >&5
15686 echo "${ECHO_T}$ac_res" >&6; }
15687 if test `eval echo '${'$as_ac_var'}'` = yes; then
15688 cat >>confdefs.h <<_ACEOF
15689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15690 _ACEOF
15693 done
15696 # check if we have IP_PKTINFO constant defined
15697 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15698 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 #include <netinet/in.h>
15707 main ()
15709 int pi = IP_PKTINFO;
15711 return 0;
15713 _ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_link") 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } && {
15728 test -z "$ac_c_werror_flag" ||
15729 test ! -s conftest.err
15730 } && test -s conftest$ac_exeext &&
15731 $as_test_x conftest$ac_exeext; then
15732 { echo "$as_me:$LINENO: result: yes" >&5
15733 echo "${ECHO_T}yes" >&6; }
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_PKTINFO 1
15737 _ACEOF
15739 else
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 { echo "$as_me:$LINENO: result: no" >&5
15744 echo "${ECHO_T}no" >&6; }
15748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15749 conftest$ac_exeext conftest.$ac_ext
15751 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15752 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15753 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15754 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757 ac_func_search_save_LIBS=$LIBS
15758 cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h. */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15765 /* Override any GCC internal prototype to avoid an error.
15766 Use char because int might match the return type of a GCC
15767 builtin and then its argument prototype would still apply. */
15768 #ifdef __cplusplus
15769 extern "C"
15770 #endif
15771 char gethostbyname_r ();
15773 main ()
15775 return gethostbyname_r ();
15777 return 0;
15779 _ACEOF
15780 for ac_lib in '' socket nsl; do
15781 if test -z "$ac_lib"; then
15782 ac_res="none required"
15783 else
15784 ac_res=-l$ac_lib
15785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (ac_try="$ac_link"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_link") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest$ac_exeext &&
15804 $as_test_x conftest$ac_exeext; then
15805 ac_cv_search_gethostbyname_r=$ac_res
15806 else
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15814 conftest$ac_exeext
15815 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15816 break
15818 done
15819 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15821 else
15822 ac_cv_search_gethostbyname_r=no
15824 rm conftest.$ac_ext
15825 LIBS=$ac_func_search_save_LIBS
15827 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15828 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15829 ac_res=$ac_cv_search_gethostbyname_r
15830 if test "$ac_res" != no; then
15831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15836 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15837 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h. */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 #include <stdlib.h>
15845 #include <netdb.h>
15847 main ()
15849 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15851 return 0;
15853 _ACEOF
15854 rm -f conftest.$ac_objext conftest$ac_exeext
15855 if { (ac_try="$ac_link"
15856 case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_link") 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest$ac_exeext &&
15871 $as_test_x conftest$ac_exeext; then
15872 { echo "$as_me:$LINENO: result: yes" >&5
15873 echo "${ECHO_T}yes" >&6; }
15875 cat >>confdefs.h <<\_ACEOF
15876 #define HAVE_GETHOSTBYNAME_R_6 1
15877 _ACEOF
15879 else
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 { echo "$as_me:$LINENO: result: no" >&5
15884 echo "${ECHO_T}no" >&6; }
15888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15889 conftest$ac_exeext conftest.$ac_ext
15891 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
15892 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 #include <stdlib.h>
15900 #include <netdb.h>
15902 main ()
15904 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
15906 return 0;
15908 _ACEOF
15909 rm -f conftest.$ac_objext conftest$ac_exeext
15910 if { (ac_try="$ac_link"
15911 case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_link") 2>conftest.er1
15917 ac_status=$?
15918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } && {
15923 test -z "$ac_c_werror_flag" ||
15924 test ! -s conftest.err
15925 } && test -s conftest$ac_exeext &&
15926 $as_test_x conftest$ac_exeext; then
15927 { echo "$as_me:$LINENO: result: yes" >&5
15928 echo "${ECHO_T}yes" >&6; }
15930 cat >>confdefs.h <<\_ACEOF
15931 #define HAVE_GETHOSTBYNAME_R_5 1
15932 _ACEOF
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 { echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6; }
15943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15944 conftest$ac_exeext conftest.$ac_ext
15946 if test "${ac_cv_header_byteswap_h+set}" = set; then
15947 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
15948 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
15949 if test "${ac_cv_header_byteswap_h+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
15953 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
15954 else
15955 # Is the header compilable?
15956 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
15957 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
15958 cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h. */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15964 $ac_includes_default
15965 #include <byteswap.h>
15966 _ACEOF
15967 rm -f conftest.$ac_objext
15968 if { (ac_try="$ac_compile"
15969 case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_compile") 2>conftest.er1
15975 ac_status=$?
15976 grep -v '^ *+' conftest.er1 >conftest.err
15977 rm -f conftest.er1
15978 cat conftest.err >&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); } && {
15981 test -z "$ac_c_werror_flag" ||
15982 test ! -s conftest.err
15983 } && test -s conftest.$ac_objext; then
15984 ac_header_compiler=yes
15985 else
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15989 ac_header_compiler=no
15992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15994 echo "${ECHO_T}$ac_header_compiler" >&6; }
15996 # Is the header present?
15997 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
15998 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
15999 cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h. */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 #include <byteswap.h>
16006 _ACEOF
16007 if { (ac_try="$ac_cpp conftest.$ac_ext"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16014 ac_status=$?
16015 grep -v '^ *+' conftest.er1 >conftest.err
16016 rm -f conftest.er1
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } >/dev/null && {
16020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 }; then
16023 ac_header_preproc=yes
16024 else
16025 echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16028 ac_header_preproc=no
16031 rm -f conftest.err conftest.$ac_ext
16032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16033 echo "${ECHO_T}$ac_header_preproc" >&6; }
16035 # So? What about this header?
16036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16037 yes:no: )
16038 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16039 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16041 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16042 ac_header_preproc=yes
16044 no:yes:* )
16045 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16046 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16048 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16050 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16052 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16054 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16056 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16057 ( cat <<\_ASBOX
16058 ## ------------------------------- ##
16059 ## Report this to www.asterisk.org ##
16060 ## ------------------------------- ##
16061 _ASBOX
16062 ) | sed "s/^/$as_me: WARNING: /" >&2
16064 esac
16065 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16066 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16067 if test "${ac_cv_header_byteswap_h+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070 ac_cv_header_byteswap_h=$ac_header_preproc
16072 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16073 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16076 if test $ac_cv_header_byteswap_h = yes; then
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_BYTESWAP_H 1
16080 _ACEOF
16086 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16087 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16088 cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h. */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 #include <sys/endian.h>
16096 main ()
16098 int a = 1; int b = __swap16(a);
16100 return 0;
16102 _ACEOF
16103 rm -f conftest.$ac_objext conftest$ac_exeext
16104 if { (ac_try="$ac_link"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16108 esac
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_link") 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } && {
16117 test -z "$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 } && test -s conftest$ac_exeext &&
16120 $as_test_x conftest$ac_exeext; then
16121 { echo "$as_me:$LINENO: result: yes" >&5
16122 echo "${ECHO_T}yes" >&6; }
16124 cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_SYS_ENDIAN_SWAP16 1
16126 _ACEOF
16128 else
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 { echo "$as_me:$LINENO: result: no" >&5
16133 echo "${ECHO_T}no" >&6; }
16137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16138 conftest$ac_exeext conftest.$ac_ext
16140 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16141 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h. */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 #include <sys/endian.h>
16150 main ()
16152 int a = 1; int b = bswap16(a);
16154 return 0;
16156 _ACEOF
16157 rm -f conftest.$ac_objext conftest$ac_exeext
16158 if { (ac_try="$ac_link"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_link") 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } && {
16171 test -z "$ac_c_werror_flag" ||
16172 test ! -s conftest.err
16173 } && test -s conftest$ac_exeext &&
16174 $as_test_x conftest$ac_exeext; then
16175 { echo "$as_me:$LINENO: result: yes" >&5
16176 echo "${ECHO_T}yes" >&6; }
16178 cat >>confdefs.h <<\_ACEOF
16179 #define HAVE_SYS_ENDIAN_BSWAP16 1
16180 _ACEOF
16182 else
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 { echo "$as_me:$LINENO: result: no" >&5
16187 echo "${ECHO_T}no" >&6; }
16191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16192 conftest$ac_exeext conftest.$ac_ext
16194 if test "${cross_compiling}" = "no";
16195 then
16196 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16197 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16198 if test "${ac_cv_file__dev_urandom+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201 test "$cross_compiling" = yes &&
16202 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16203 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16204 { (exit 1); exit 1; }; }
16205 if test -r "/dev/urandom"; then
16206 ac_cv_file__dev_urandom=yes
16207 else
16208 ac_cv_file__dev_urandom=no
16211 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16212 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16213 if test $ac_cv_file__dev_urandom = yes; then
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE_DEV_URANDOM 1
16217 _ACEOF
16224 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16225 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16226 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16227 saved_cppflags="${CPPFLAGS}"
16228 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16229 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16231 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 #include <pthread.h>
16241 main ()
16243 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16244 int foo = 0;
16245 #else
16246 int foo = bar;
16247 #endif
16251 return 0;
16253 _ACEOF
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_compile") 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } && {
16268 test -z "$ac_c_werror_flag" ||
16269 test ! -s conftest.err
16270 } && test -s conftest.$ac_objext; then
16271 { echo "$as_me:$LINENO: result: yes" >&5
16272 echo "${ECHO_T}yes" >&6; }
16273 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16275 cat >>confdefs.h <<\_ACEOF
16276 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16277 _ACEOF
16280 cat >>confdefs.h <<\_ACEOF
16281 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16282 _ACEOF
16285 else
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 { echo "$as_me:$LINENO: result: no" >&5
16290 echo "${ECHO_T}no" >&6; }
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295 CPPFLAGS="${saved_cppflags}"
16300 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16301 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h. */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308 #include <pthread.h>
16310 main ()
16312 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16314 return 0;
16316 _ACEOF
16317 rm -f conftest.$ac_objext conftest$ac_exeext
16318 if { (ac_try="$ac_link"
16319 case "(($ac_try" in
16320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321 *) ac_try_echo=$ac_try;;
16322 esac
16323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16324 (eval "$ac_link") 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && {
16331 test -z "$ac_c_werror_flag" ||
16332 test ! -s conftest.err
16333 } && test -s conftest$ac_exeext &&
16334 $as_test_x conftest$ac_exeext; then
16335 { echo "$as_me:$LINENO: result: yes" >&5
16336 echo "${ECHO_T}yes" >&6; }
16338 cat >>confdefs.h <<\_ACEOF
16339 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16340 _ACEOF
16342 else
16343 echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16346 { echo "$as_me:$LINENO: result: no" >&5
16347 echo "${ECHO_T}no" >&6; }
16351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16352 conftest$ac_exeext conftest.$ac_ext
16354 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16355 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h. */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 #include <pthread.h>
16364 main ()
16366 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16368 return 0;
16370 _ACEOF
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (ac_try="$ac_link"
16373 case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16376 esac
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_link") 2>conftest.er1
16379 ac_status=$?
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } && {
16385 test -z "$ac_c_werror_flag" ||
16386 test ! -s conftest.err
16387 } && test -s conftest$ac_exeext &&
16388 $as_test_x conftest$ac_exeext; then
16389 { echo "$as_me:$LINENO: result: yes" >&5
16390 echo "${ECHO_T}yes" >&6; }
16392 cat >>confdefs.h <<\_ACEOF
16393 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16394 _ACEOF
16396 else
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 { echo "$as_me:$LINENO: result: no" >&5
16401 echo "${ECHO_T}no" >&6; }
16405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16406 conftest$ac_exeext conftest.$ac_ext
16409 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16410 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16411 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16412 saved_cppflags="${CPPFLAGS}"
16413 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16414 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16416 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 #include <pthread.h>
16426 main ()
16428 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16429 int foo = 0;
16430 #else
16431 int foo = bar;
16432 #endif
16436 return 0;
16438 _ACEOF
16439 rm -f conftest.$ac_objext
16440 if { (ac_try="$ac_compile"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_compile") 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest.$ac_objext; then
16456 { echo "$as_me:$LINENO: result: yes" >&5
16457 echo "${ECHO_T}yes" >&6; }
16458 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16460 cat >>confdefs.h <<\_ACEOF
16461 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16462 _ACEOF
16465 cat >>confdefs.h <<\_ACEOF
16466 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16467 _ACEOF
16470 else
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 { echo "$as_me:$LINENO: result: no" >&5
16475 echo "${ECHO_T}no" >&6; }
16479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 CPPFLAGS="${saved_cppflags}"
16485 #if test "${cross_compiling}" = "no";
16486 #then
16487 #AC_MSG_CHECKING(for working epoll support)
16488 #AC_LINK_IFELSE(
16489 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16490 # if (res < 0)
16491 # return 1;
16492 # close (res);
16493 # return 0;]),
16494 #AC_MSG_RESULT(yes)
16495 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16496 #AC_MSG_RESULT(no)
16500 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16501 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h. */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16510 main ()
16512 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16514 return 0;
16516 _ACEOF
16517 rm -f conftest.$ac_objext conftest$ac_exeext
16518 if { (ac_try="$ac_link"
16519 case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522 esac
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_link") 2>conftest.er1
16525 ac_status=$?
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } && {
16531 test -z "$ac_c_werror_flag" ||
16532 test ! -s conftest.err
16533 } && test -s conftest$ac_exeext &&
16534 $as_test_x conftest$ac_exeext; then
16535 { echo "$as_me:$LINENO: result: yes" >&5
16536 echo "${ECHO_T}yes" >&6; }
16538 cat >>confdefs.h <<\_ACEOF
16539 #define HAVE_GCC_ATOMICS 1
16540 _ACEOF
16542 else
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 { echo "$as_me:$LINENO: result: no" >&5
16547 echo "${ECHO_T}no" >&6; }
16551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16552 conftest$ac_exeext conftest.$ac_ext
16555 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16556 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16557 saved_CFLAGS="$CFLAGS"
16558 CFLAGS="$CFLAGS -Werror"
16559 cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h. */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 static void __attribute__((pure)) *test(void *muffin, ...) {}
16567 main ()
16571 return 0;
16573 _ACEOF
16574 rm -f conftest.$ac_objext
16575 if { (ac_try="$ac_compile"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_compile") 2>conftest.er1
16582 ac_status=$?
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } && {
16588 test -z "$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16590 } && test -s conftest.$ac_objext; then
16591 { echo "$as_me:$LINENO: result: yes" >&5
16592 echo "${ECHO_T}yes" >&6; }
16594 cat >>confdefs.h <<_ACEOF
16595 #define HAVE_ATTRIBUTE_pure 1
16596 _ACEOF
16598 else
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 { echo "$as_me:$LINENO: result: no" >&5
16603 echo "${ECHO_T}no" >&6; }
16606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 CFLAGS="$saved_CFLAGS"
16611 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16612 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16613 saved_CFLAGS="$CFLAGS"
16614 CFLAGS="$CFLAGS -Werror"
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 static void __attribute__((malloc)) *test(void *muffin, ...) {}
16623 main ()
16627 return 0;
16629 _ACEOF
16630 rm -f conftest.$ac_objext
16631 if { (ac_try="$ac_compile"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_compile") 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && {
16644 test -z "$ac_c_werror_flag" ||
16645 test ! -s conftest.err
16646 } && test -s conftest.$ac_objext; then
16647 { echo "$as_me:$LINENO: result: yes" >&5
16648 echo "${ECHO_T}yes" >&6; }
16650 cat >>confdefs.h <<_ACEOF
16651 #define HAVE_ATTRIBUTE_malloc 1
16652 _ACEOF
16654 else
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 { echo "$as_me:$LINENO: result: no" >&5
16659 echo "${ECHO_T}no" >&6; }
16662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 CFLAGS="$saved_CFLAGS"
16667 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16668 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16669 saved_CFLAGS="$CFLAGS"
16670 CFLAGS="$CFLAGS -Werror"
16671 cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h. */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 static void __attribute__((const)) *test(void *muffin, ...) {}
16679 main ()
16683 return 0;
16685 _ACEOF
16686 rm -f conftest.$ac_objext
16687 if { (ac_try="$ac_compile"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_compile") 2>conftest.er1
16694 ac_status=$?
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } && {
16700 test -z "$ac_c_werror_flag" ||
16701 test ! -s conftest.err
16702 } && test -s conftest.$ac_objext; then
16703 { echo "$as_me:$LINENO: result: yes" >&5
16704 echo "${ECHO_T}yes" >&6; }
16706 cat >>confdefs.h <<_ACEOF
16707 #define HAVE_ATTRIBUTE_const 1
16708 _ACEOF
16710 else
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714 { echo "$as_me:$LINENO: result: no" >&5
16715 echo "${ECHO_T}no" >&6; }
16718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720 CFLAGS="$saved_CFLAGS"
16723 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16724 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16725 saved_CFLAGS="$CFLAGS"
16726 CFLAGS="$CFLAGS -Werror"
16727 cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 static void __attribute__((unused)) *test(void *muffin, ...) {}
16735 main ()
16739 return 0;
16741 _ACEOF
16742 rm -f conftest.$ac_objext
16743 if { (ac_try="$ac_compile"
16744 case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_compile") 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } && {
16756 test -z "$ac_c_werror_flag" ||
16757 test ! -s conftest.err
16758 } && test -s conftest.$ac_objext; then
16759 { echo "$as_me:$LINENO: result: yes" >&5
16760 echo "${ECHO_T}yes" >&6; }
16762 cat >>confdefs.h <<_ACEOF
16763 #define HAVE_ATTRIBUTE_unused 1
16764 _ACEOF
16766 else
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 { echo "$as_me:$LINENO: result: no" >&5
16771 echo "${ECHO_T}no" >&6; }
16774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 CFLAGS="$saved_CFLAGS"
16779 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16780 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16781 saved_CFLAGS="$CFLAGS"
16782 CFLAGS="$CFLAGS -Werror"
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
16791 main ()
16795 return 0;
16797 _ACEOF
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest.$ac_objext; then
16815 { echo "$as_me:$LINENO: result: yes" >&5
16816 echo "${ECHO_T}yes" >&6; }
16818 cat >>confdefs.h <<_ACEOF
16819 #define HAVE_ATTRIBUTE_always_inline 1
16820 _ACEOF
16822 else
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16826 { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832 CFLAGS="$saved_CFLAGS"
16835 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16836 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16837 saved_CFLAGS="$CFLAGS"
16838 CFLAGS="$CFLAGS -Werror"
16839 cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h. */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
16847 main ()
16851 return 0;
16853 _ACEOF
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_compile") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest.$ac_objext; then
16871 { echo "$as_me:$LINENO: result: yes" >&5
16872 echo "${ECHO_T}yes" >&6; }
16874 cat >>confdefs.h <<_ACEOF
16875 #define HAVE_ATTRIBUTE_deprecated 1
16876 _ACEOF
16878 else
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 { echo "$as_me:$LINENO: result: no" >&5
16883 echo "${ECHO_T}no" >&6; }
16886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16888 CFLAGS="$saved_CFLAGS"
16891 { echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
16892 echo $ECHO_N "checking for compiler 'attribute sentinel' support... $ECHO_C" >&6; }
16893 saved_CFLAGS="$CFLAGS"
16894 CFLAGS="$CFLAGS -Werror"
16895 cat >conftest.$ac_ext <<_ACEOF
16896 /* confdefs.h. */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16901 static void __attribute__((sentinel)) *test(void *muffin, ...) {}
16903 main ()
16907 return 0;
16909 _ACEOF
16910 rm -f conftest.$ac_objext
16911 if { (ac_try="$ac_compile"
16912 case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_compile") 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && {
16924 test -z "$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16926 } && test -s conftest.$ac_objext; then
16927 { echo "$as_me:$LINENO: result: yes" >&5
16928 echo "${ECHO_T}yes" >&6; }
16930 cat >>confdefs.h <<_ACEOF
16931 #define HAVE_ATTRIBUTE_sentinel 1
16932 _ACEOF
16934 else
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16938 { echo "$as_me:$LINENO: result: no" >&5
16939 echo "${ECHO_T}no" >&6; }
16942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944 CFLAGS="$saved_CFLAGS"
16947 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
16948 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
16949 saved_CFLAGS="${CFLAGS}"
16950 CFLAGS="${CFLAGS} -ffunction-sections"
16951 cat >conftest.$ac_ext <<_ACEOF
16952 /* confdefs.h. */
16953 _ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h. */
16959 main ()
16961 int x = 1;
16963 return 0;
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (ac_try="$ac_compile"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_compile") 2>conftest.er1
16974 ac_status=$?
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } && {
16980 test -z "$ac_c_werror_flag" ||
16981 test ! -s conftest.err
16982 } && test -s conftest.$ac_objext; then
16983 { echo "$as_me:$LINENO: result: yes" >&5
16984 echo "${ECHO_T}yes" >&6; }
16985 saved_LDFLAGS="${LDFLAGS}"
16986 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
16987 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
16988 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16997 main ()
16999 int x = 1;
17001 return 0;
17003 _ACEOF
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest$ac_exeext &&
17021 $as_test_x conftest$ac_exeext; then
17022 { echo "$as_me:$LINENO: result: yes" >&5
17023 echo "${ECHO_T}yes" >&6; }
17024 GC_CFLAGS="-ffunction-sections"
17025 GC_LDFLAGS="-Wl,--gc-sections"
17026 else
17027 echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17030 { echo "$as_me:$LINENO: result: no" >&5
17031 echo "${ECHO_T}no" >&6; }
17035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17036 conftest$ac_exeext conftest.$ac_ext
17037 LDFLAGS="${saved_LDFLAGS}"
17038 else
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17042 { echo "$as_me:$LINENO: result: no" >&5
17043 echo "${ECHO_T}no" >&6; }
17047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048 CFLAGS="${saved_CFLAGS}"
17052 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17053 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17054 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17055 { echo "$as_me:$LINENO: result: yes" >&5
17056 echo "${ECHO_T}yes" >&6; }
17057 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17058 else
17059 { echo "$as_me:$LINENO: result: no" >&5
17060 echo "${ECHO_T}no" >&6; }
17061 AST_DECLARATION_AFTER_STATEMENT=
17065 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
17066 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
17067 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17068 { echo "$as_me:$LINENO: result: yes" >&5
17069 echo "${ECHO_T}yes" >&6; }
17070 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
17071 else
17072 { echo "$as_me:$LINENO: result: no" >&5
17073 echo "${ECHO_T}no" >&6; }
17074 AST_NO_STRICT_OVERFLOW=
17078 { echo "$as_me:$LINENO: checking for sysinfo" >&5
17079 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h. */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 #include <sys/sysinfo.h>
17088 main ()
17090 struct sysinfo sys_info; int uptime = sys_info.uptime
17092 return 0;
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } && {
17109 test -z "$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 } && test -s conftest$ac_exeext &&
17112 $as_test_x conftest$ac_exeext; then
17113 { echo "$as_me:$LINENO: result: yes" >&5
17114 echo "${ECHO_T}yes" >&6; }
17116 cat >>confdefs.h <<\_ACEOF
17117 #define HAVE_SYSINFO 1
17118 _ACEOF
17120 else
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17124 { echo "$as_me:$LINENO: result: no" >&5
17125 echo "${ECHO_T}no" >&6; }
17129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17130 conftest$ac_exeext conftest.$ac_ext
17132 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17133 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17134 cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h. */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 #include <resolv.h>
17142 main ()
17144 int foo = res_ninit(NULL);
17146 return 0;
17148 _ACEOF
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (ac_try="$ac_link"
17151 case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154 esac
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_link") 2>conftest.er1
17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && {
17163 test -z "$ac_c_werror_flag" ||
17164 test ! -s conftest.err
17165 } && test -s conftest$ac_exeext &&
17166 $as_test_x conftest$ac_exeext; then
17167 { echo "$as_me:$LINENO: result: yes" >&5
17168 echo "${ECHO_T}yes" >&6; }
17170 cat >>confdefs.h <<\_ACEOF
17171 #define HAVE_RES_NINIT 1
17172 _ACEOF
17174 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17175 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17176 cat >conftest.$ac_ext <<_ACEOF
17177 /* confdefs.h. */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17182 #include <resolv.h>
17184 main ()
17186 int foo = res_ndestroy(NULL);
17188 return 0;
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } && {
17205 test -z "$ac_c_werror_flag" ||
17206 test ! -s conftest.err
17207 } && test -s conftest$ac_exeext &&
17208 $as_test_x conftest$ac_exeext; then
17209 { echo "$as_me:$LINENO: result: yes" >&5
17210 echo "${ECHO_T}yes" >&6; }
17212 cat >>confdefs.h <<\_ACEOF
17213 #define HAVE_RES_NDESTROY 1
17214 _ACEOF
17216 else
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 { echo "$as_me:$LINENO: result: no" >&5
17221 echo "${ECHO_T}no" >&6; }
17225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17226 conftest$ac_exeext conftest.$ac_ext
17227 else
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 { echo "$as_me:$LINENO: result: no" >&5
17232 echo "${ECHO_T}no" >&6; }
17236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17237 conftest$ac_exeext conftest.$ac_ext
17240 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17241 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17242 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17243 saved_cppflags="${CPPFLAGS}"
17244 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17245 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17247 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
17249 cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h. */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 #include <dlfcn.h>
17257 main ()
17259 #if defined(RTLD_NOLOAD)
17260 int foo = 0;
17261 #else
17262 int foo = bar;
17263 #endif
17267 return 0;
17269 _ACEOF
17270 rm -f conftest.$ac_objext
17271 if { (ac_try="$ac_compile"
17272 case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275 esac
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_compile") 2>conftest.er1
17278 ac_status=$?
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && {
17284 test -z "$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 } && test -s conftest.$ac_objext; then
17287 { echo "$as_me:$LINENO: result: yes" >&5
17288 echo "${ECHO_T}yes" >&6; }
17289 PBX_RTLD_NOLOAD=1
17291 cat >>confdefs.h <<\_ACEOF
17292 #define HAVE_RTLD_NOLOAD 1
17293 _ACEOF
17296 cat >>confdefs.h <<\_ACEOF
17297 #define HAVE_RTLD_NOLOAD_VERSION
17298 _ACEOF
17301 else
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 { echo "$as_me:$LINENO: result: no" >&5
17306 echo "${ECHO_T}no" >&6; }
17310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17311 CPPFLAGS="${saved_cppflags}"
17317 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17318 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17319 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17320 saved_cppflags="${CPPFLAGS}"
17321 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17322 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17324 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17326 cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h. */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17332 #include <netinet/in.h>
17334 main ()
17336 #if defined(IP_MTU_DISCOVER)
17337 int foo = 0;
17338 #else
17339 int foo = bar;
17340 #endif
17344 return 0;
17346 _ACEOF
17347 rm -f conftest.$ac_objext
17348 if { (ac_try="$ac_compile"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_compile") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } && {
17361 test -z "$ac_c_werror_flag" ||
17362 test ! -s conftest.err
17363 } && test -s conftest.$ac_objext; then
17364 { echo "$as_me:$LINENO: result: yes" >&5
17365 echo "${ECHO_T}yes" >&6; }
17366 PBX_IP_MTU_DISCOVER=1
17368 cat >>confdefs.h <<\_ACEOF
17369 #define HAVE_IP_MTU_DISCOVER 1
17370 _ACEOF
17373 cat >>confdefs.h <<\_ACEOF
17374 #define HAVE_IP_MTU_DISCOVER_VERSION
17375 _ACEOF
17378 else
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 { echo "$as_me:$LINENO: result: no" >&5
17383 echo "${ECHO_T}no" >&6; }
17387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17388 CPPFLAGS="${saved_cppflags}"
17393 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17394 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17395 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17396 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17400 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17401 else
17402 # Is the header compilable?
17403 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17404 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17405 cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h. */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17411 $ac_includes_default
17412 #include <libkern/OSAtomic.h>
17413 _ACEOF
17414 rm -f conftest.$ac_objext
17415 if { (ac_try="$ac_compile"
17416 case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_compile") 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest.$ac_objext; then
17431 ac_header_compiler=yes
17432 else
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ac_header_compiler=no
17439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17441 echo "${ECHO_T}$ac_header_compiler" >&6; }
17443 # Is the header present?
17444 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17445 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17446 cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h. */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452 #include <libkern/OSAtomic.h>
17453 _ACEOF
17454 if { (ac_try="$ac_cpp conftest.$ac_ext"
17455 case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458 esac
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17461 ac_status=$?
17462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } >/dev/null && {
17467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17468 test ! -s conftest.err
17469 }; then
17470 ac_header_preproc=yes
17471 else
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 ac_header_preproc=no
17478 rm -f conftest.err conftest.$ac_ext
17479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17480 echo "${ECHO_T}$ac_header_preproc" >&6; }
17482 # So? What about this header?
17483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17484 yes:no: )
17485 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17486 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17488 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17489 ac_header_preproc=yes
17491 no:yes:* )
17492 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17493 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17495 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17496 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17497 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17498 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17499 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17500 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17501 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17502 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17503 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17504 ( cat <<\_ASBOX
17505 ## ------------------------------- ##
17506 ## Report this to www.asterisk.org ##
17507 ## ------------------------------- ##
17508 _ASBOX
17509 ) | sed "s/^/$as_me: WARNING: /" >&2
17511 esac
17512 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17513 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17514 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17519 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17520 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17523 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17525 cat >>confdefs.h <<_ACEOF
17526 #define HAVE_OSX_ATOMICS 1
17527 _ACEOF
17533 { echo "$as_me:$LINENO: checking for int" >&5
17534 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17535 if test "${ac_cv_type_int+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538 cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h. */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 $ac_includes_default
17545 typedef int ac__type_new_;
17547 main ()
17549 if ((ac__type_new_ *) 0)
17550 return 0;
17551 if (sizeof (ac__type_new_))
17552 return 0;
17554 return 0;
17556 _ACEOF
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest.$ac_objext; then
17574 ac_cv_type_int=yes
17575 else
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 ac_cv_type_int=no
17582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17585 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17587 # The cast to long int works around a bug in the HP C Compiler
17588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17590 # This bug is HP SR number 8606223364.
17591 { echo "$as_me:$LINENO: checking size of int" >&5
17592 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17593 if test "${ac_cv_sizeof_int+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596 if test "$cross_compiling" = yes; then
17597 # Depending upon the size, compute the lo and hi bounds.
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h. */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 typedef int ac__type_sizeof_;
17607 main ()
17609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17610 test_array [0] = 0
17613 return 0;
17615 _ACEOF
17616 rm -f conftest.$ac_objext
17617 if { (ac_try="$ac_compile"
17618 case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621 esac
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_compile") 2>conftest.er1
17624 ac_status=$?
17625 grep -v '^ *+' conftest.er1 >conftest.err
17626 rm -f conftest.er1
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } && {
17630 test -z "$ac_c_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest.$ac_objext; then
17633 ac_lo=0 ac_mid=0
17634 while :; do
17635 cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h. */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 $ac_includes_default
17642 typedef int ac__type_sizeof_;
17644 main ()
17646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17647 test_array [0] = 0
17650 return 0;
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (ac_try="$ac_compile"
17655 case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17658 esac
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_compile") 2>conftest.er1
17661 ac_status=$?
17662 grep -v '^ *+' conftest.er1 >conftest.err
17663 rm -f conftest.er1
17664 cat conftest.err >&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } && {
17667 test -z "$ac_c_werror_flag" ||
17668 test ! -s conftest.err
17669 } && test -s conftest.$ac_objext; then
17670 ac_hi=$ac_mid; break
17671 else
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17675 ac_lo=`expr $ac_mid + 1`
17676 if test $ac_lo -le $ac_mid; then
17677 ac_lo= ac_hi=
17678 break
17680 ac_mid=`expr 2 '*' $ac_mid + 1`
17683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684 done
17685 else
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h. */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 $ac_includes_default
17696 typedef int ac__type_sizeof_;
17698 main ()
17700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17701 test_array [0] = 0
17704 return 0;
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_compile") 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } && {
17721 test -z "$ac_c_werror_flag" ||
17722 test ! -s conftest.err
17723 } && test -s conftest.$ac_objext; then
17724 ac_hi=-1 ac_mid=-1
17725 while :; do
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17732 $ac_includes_default
17733 typedef int ac__type_sizeof_;
17735 main ()
17737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17738 test_array [0] = 0
17741 return 0;
17743 _ACEOF
17744 rm -f conftest.$ac_objext
17745 if { (ac_try="$ac_compile"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_compile") 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } && {
17758 test -z "$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17760 } && test -s conftest.$ac_objext; then
17761 ac_lo=$ac_mid; break
17762 else
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 ac_hi=`expr '(' $ac_mid ')' - 1`
17767 if test $ac_mid -le $ac_hi; then
17768 ac_lo= ac_hi=
17769 break
17771 ac_mid=`expr 2 '*' $ac_mid`
17774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775 done
17776 else
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17780 ac_lo= ac_hi=
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17787 # Binary search between lo and hi bounds.
17788 while test "x$ac_lo" != "x$ac_hi"; do
17789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17790 cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h. */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 $ac_includes_default
17797 typedef int ac__type_sizeof_;
17799 main ()
17801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17802 test_array [0] = 0
17805 return 0;
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_compile") 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } && {
17822 test -z "$ac_c_werror_flag" ||
17823 test ! -s conftest.err
17824 } && test -s conftest.$ac_objext; then
17825 ac_hi=$ac_mid
17826 else
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 ac_lo=`expr '(' $ac_mid ')' + 1`
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 done
17835 case $ac_lo in
17836 ?*) ac_cv_sizeof_int=$ac_lo;;
17837 '') if test "$ac_cv_type_int" = yes; then
17838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
17839 See \`config.log' for more details." >&5
17840 echo "$as_me: error: cannot compute sizeof (int)
17841 See \`config.log' for more details." >&2;}
17842 { (exit 77); exit 77; }; }
17843 else
17844 ac_cv_sizeof_int=0
17845 fi ;;
17846 esac
17847 else
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 $ac_includes_default
17855 typedef int ac__type_sizeof_;
17856 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
17857 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
17858 #include <stdio.h>
17859 #include <stdlib.h>
17861 main ()
17864 FILE *f = fopen ("conftest.val", "w");
17865 if (! f)
17866 return 1;
17867 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
17869 long int i = longval ();
17870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
17871 return 1;
17872 fprintf (f, "%ld\n", i);
17874 else
17876 unsigned long int i = ulongval ();
17877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
17878 return 1;
17879 fprintf (f, "%lu\n", i);
17881 return ferror (f) || fclose (f) != 0;
17884 return 0;
17886 _ACEOF
17887 rm -f conftest$ac_exeext
17888 if { (ac_try="$ac_link"
17889 case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17892 esac
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_link") 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17901 esac
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 ac_cv_sizeof_int=`cat conftest.val`
17908 else
17909 echo "$as_me: program exited with status $ac_status" >&5
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ( exit $ac_status )
17914 if test "$ac_cv_type_int" = yes; then
17915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
17916 See \`config.log' for more details." >&5
17917 echo "$as_me: error: cannot compute sizeof (int)
17918 See \`config.log' for more details." >&2;}
17919 { (exit 77); exit 77; }; }
17920 else
17921 ac_cv_sizeof_int=0
17924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17926 rm -f conftest.val
17928 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17929 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
17933 cat >>confdefs.h <<_ACEOF
17934 #define SIZEOF_INT $ac_cv_sizeof_int
17935 _ACEOF
17939 # do the package library checks now
17942 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
17943 pbxlibdir=""
17944 # if --with-ALSA=DIR has been specified, use it.
17945 if test "x${ALSA_DIR}" != "x"; then
17946 if test -d ${ALSA_DIR}/lib; then
17947 pbxlibdir="-L${ALSA_DIR}/lib"
17948 else
17949 pbxlibdir="-L${ALSA_DIR}"
17952 pbxfuncname="snd_spcm_init"
17953 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
17954 AST_ALSA_FOUND=yes
17955 else
17956 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
17957 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
17958 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
17959 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962 ac_check_lib_save_LIBS=$LIBS
17963 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
17964 cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h. */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17971 /* Override any GCC internal prototype to avoid an error.
17972 Use char because int might match the return type of a GCC
17973 builtin and then its argument prototype would still apply. */
17974 #ifdef __cplusplus
17975 extern "C"
17976 #endif
17977 char ${pbxfuncname} ();
17979 main ()
17981 return ${pbxfuncname} ();
17983 return 0;
17985 _ACEOF
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17991 esac
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_link") 2>conftest.er1
17994 ac_status=$?
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && {
18000 test -z "$ac_c_werror_flag" ||
18001 test ! -s conftest.err
18002 } && test -s conftest$ac_exeext &&
18003 $as_test_x conftest$ac_exeext; then
18004 eval "$as_ac_Lib=yes"
18005 else
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 eval "$as_ac_Lib=no"
18012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18013 conftest$ac_exeext conftest.$ac_ext
18014 LIBS=$ac_check_lib_save_LIBS
18016 ac_res=`eval echo '${'$as_ac_Lib'}'`
18017 { echo "$as_me:$LINENO: result: $ac_res" >&5
18018 echo "${ECHO_T}$ac_res" >&6; }
18019 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18020 AST_ALSA_FOUND=yes
18021 else
18022 AST_ALSA_FOUND=no
18027 # now check for the header.
18028 if test "${AST_ALSA_FOUND}" = "yes"; then
18029 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
18030 # if --with-ALSA=DIR has been specified, use it.
18031 if test "x${ALSA_DIR}" != "x"; then
18032 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18034 ALSA_INCLUDE="${ALSA_INCLUDE} "
18035 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
18036 ALSA_HEADER_FOUND="1"
18037 else # check for the header
18038 saved_cppflags="${CPPFLAGS}"
18039 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE} "
18040 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18041 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18042 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18043 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18047 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18048 else
18049 # Is the header compilable?
18050 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18051 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 $ac_includes_default
18059 #include <alsa/asoundlib.h>
18060 _ACEOF
18061 rm -f conftest.$ac_objext
18062 if { (ac_try="$ac_compile"
18063 case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_compile") 2>conftest.er1
18069 ac_status=$?
18070 grep -v '^ *+' conftest.er1 >conftest.err
18071 rm -f conftest.er1
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } && {
18075 test -z "$ac_c_werror_flag" ||
18076 test ! -s conftest.err
18077 } && test -s conftest.$ac_objext; then
18078 ac_header_compiler=yes
18079 else
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ac_header_compiler=no
18086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18088 echo "${ECHO_T}$ac_header_compiler" >&6; }
18090 # Is the header present?
18091 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18092 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18093 cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h. */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 #include <alsa/asoundlib.h>
18100 _ACEOF
18101 if { (ac_try="$ac_cpp conftest.$ac_ext"
18102 case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105 esac
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18108 ac_status=$?
18109 grep -v '^ *+' conftest.er1 >conftest.err
18110 rm -f conftest.er1
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } >/dev/null && {
18114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18115 test ! -s conftest.err
18116 }; then
18117 ac_header_preproc=yes
18118 else
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 ac_header_preproc=no
18125 rm -f conftest.err conftest.$ac_ext
18126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18127 echo "${ECHO_T}$ac_header_preproc" >&6; }
18129 # So? What about this header?
18130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18131 yes:no: )
18132 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18133 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18135 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18136 ac_header_preproc=yes
18138 no:yes:* )
18139 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18140 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18141 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18142 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18143 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18144 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18145 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18146 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18147 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18148 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18149 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18150 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18151 ( cat <<\_ASBOX
18152 ## ------------------------------- ##
18153 ## Report this to www.asterisk.org ##
18154 ## ------------------------------- ##
18155 _ASBOX
18156 ) | sed "s/^/$as_me: WARNING: /" >&2
18158 esac
18159 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18160 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18161 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 else
18164 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18166 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18167 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18170 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18171 ALSA_HEADER_FOUND=1
18172 else
18173 ALSA_HEADER_FOUND=0
18177 CPPFLAGS="${saved_cppflags}"
18179 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18180 ALSA_LIB=""
18181 ALSA_INCLUDE=""
18182 else
18183 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18184 ALSA_LIB=""
18186 PBX_ALSA=1
18187 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18189 cat >>confdefs.h <<_ACEOF
18190 #define HAVE_ALSA 1
18191 _ACEOF
18194 cat >>confdefs.h <<_ACEOF
18195 #define HAVE_ALSA_VERSION
18196 _ACEOF
18204 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18205 pbxlibdir=""
18206 # if --with-CURSES=DIR has been specified, use it.
18207 if test "x${CURSES_DIR}" != "x"; then
18208 if test -d ${CURSES_DIR}/lib; then
18209 pbxlibdir="-L${CURSES_DIR}/lib"
18210 else
18211 pbxlibdir="-L${CURSES_DIR}"
18214 pbxfuncname="initscr"
18215 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18216 AST_CURSES_FOUND=yes
18217 else
18218 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18219 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18220 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18221 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224 ac_check_lib_save_LIBS=$LIBS
18225 LIBS="-lcurses ${pbxlibdir} $LIBS"
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18233 /* Override any GCC internal prototype to avoid an error.
18234 Use char because int might match the return type of a GCC
18235 builtin and then its argument prototype would still apply. */
18236 #ifdef __cplusplus
18237 extern "C"
18238 #endif
18239 char ${pbxfuncname} ();
18241 main ()
18243 return ${pbxfuncname} ();
18245 return 0;
18247 _ACEOF
18248 rm -f conftest.$ac_objext conftest$ac_exeext
18249 if { (ac_try="$ac_link"
18250 case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18253 esac
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_link") 2>conftest.er1
18256 ac_status=$?
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext &&
18265 $as_test_x conftest$ac_exeext; then
18266 eval "$as_ac_Lib=yes"
18267 else
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 eval "$as_ac_Lib=no"
18274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18275 conftest$ac_exeext conftest.$ac_ext
18276 LIBS=$ac_check_lib_save_LIBS
18278 ac_res=`eval echo '${'$as_ac_Lib'}'`
18279 { echo "$as_me:$LINENO: result: $ac_res" >&5
18280 echo "${ECHO_T}$ac_res" >&6; }
18281 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18282 AST_CURSES_FOUND=yes
18283 else
18284 AST_CURSES_FOUND=no
18289 # now check for the header.
18290 if test "${AST_CURSES_FOUND}" = "yes"; then
18291 CURSES_LIB="${pbxlibdir} -lcurses "
18292 # if --with-CURSES=DIR has been specified, use it.
18293 if test "x${CURSES_DIR}" != "x"; then
18294 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18296 CURSES_INCLUDE="${CURSES_INCLUDE} "
18297 if test "xcurses.h" = "x" ; then # no header, assume found
18298 CURSES_HEADER_FOUND="1"
18299 else # check for the header
18300 saved_cppflags="${CPPFLAGS}"
18301 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE} "
18302 if test "${ac_cv_header_curses_h+set}" = set; then
18303 { echo "$as_me:$LINENO: checking for curses.h" >&5
18304 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18305 if test "${ac_cv_header_curses_h+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18309 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18310 else
18311 # Is the header compilable?
18312 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18313 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18314 cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h. */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 $ac_includes_default
18321 #include <curses.h>
18322 _ACEOF
18323 rm -f conftest.$ac_objext
18324 if { (ac_try="$ac_compile"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_compile") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest.$ac_objext; then
18340 ac_header_compiler=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_compiler=no
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18350 echo "${ECHO_T}$ac_header_compiler" >&6; }
18352 # Is the header present?
18353 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18354 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18355 cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h. */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18361 #include <curses.h>
18362 _ACEOF
18363 if { (ac_try="$ac_cpp conftest.$ac_ext"
18364 case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } >/dev/null && {
18376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18377 test ! -s conftest.err
18378 }; then
18379 ac_header_preproc=yes
18380 else
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18384 ac_header_preproc=no
18387 rm -f conftest.err conftest.$ac_ext
18388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18389 echo "${ECHO_T}$ac_header_preproc" >&6; }
18391 # So? What about this header?
18392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18393 yes:no: )
18394 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18395 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18397 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18398 ac_header_preproc=yes
18400 no:yes:* )
18401 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18402 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18404 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18405 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18406 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18407 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18408 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18409 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18410 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18411 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18412 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18413 ( cat <<\_ASBOX
18414 ## ------------------------------- ##
18415 ## Report this to www.asterisk.org ##
18416 ## ------------------------------- ##
18417 _ASBOX
18418 ) | sed "s/^/$as_me: WARNING: /" >&2
18420 esac
18421 { echo "$as_me:$LINENO: checking for curses.h" >&5
18422 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18423 if test "${ac_cv_header_curses_h+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426 ac_cv_header_curses_h=$ac_header_preproc
18428 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18429 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18432 if test $ac_cv_header_curses_h = yes; then
18433 CURSES_HEADER_FOUND=1
18434 else
18435 CURSES_HEADER_FOUND=0
18439 CPPFLAGS="${saved_cppflags}"
18441 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18442 CURSES_LIB=""
18443 CURSES_INCLUDE=""
18444 else
18445 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18446 CURSES_LIB=""
18448 PBX_CURSES=1
18449 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18451 cat >>confdefs.h <<_ACEOF
18452 #define HAVE_CURSES 1
18453 _ACEOF
18456 cat >>confdefs.h <<_ACEOF
18457 #define HAVE_CURSES_VERSION
18458 _ACEOF
18465 if test "x${host_os}" = "xlinux-gnu" ; then
18467 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18468 pbxlibdir=""
18469 # if --with-CAP=DIR has been specified, use it.
18470 if test "x${CAP_DIR}" != "x"; then
18471 if test -d ${CAP_DIR}/lib; then
18472 pbxlibdir="-L${CAP_DIR}/lib"
18473 else
18474 pbxlibdir="-L${CAP_DIR}"
18477 pbxfuncname="cap_from_text"
18478 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18479 AST_CAP_FOUND=yes
18480 else
18481 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18482 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18483 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18484 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487 ac_check_lib_save_LIBS=$LIBS
18488 LIBS="-lcap ${pbxlibdir} $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h. */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18496 /* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18499 #ifdef __cplusplus
18500 extern "C"
18501 #endif
18502 char ${pbxfuncname} ();
18504 main ()
18506 return ${pbxfuncname} ();
18508 return 0;
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest$ac_exeext &&
18528 $as_test_x conftest$ac_exeext; then
18529 eval "$as_ac_Lib=yes"
18530 else
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 eval "$as_ac_Lib=no"
18537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18538 conftest$ac_exeext conftest.$ac_ext
18539 LIBS=$ac_check_lib_save_LIBS
18541 ac_res=`eval echo '${'$as_ac_Lib'}'`
18542 { echo "$as_me:$LINENO: result: $ac_res" >&5
18543 echo "${ECHO_T}$ac_res" >&6; }
18544 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18545 AST_CAP_FOUND=yes
18546 else
18547 AST_CAP_FOUND=no
18552 # now check for the header.
18553 if test "${AST_CAP_FOUND}" = "yes"; then
18554 CAP_LIB="${pbxlibdir} -lcap "
18555 # if --with-CAP=DIR has been specified, use it.
18556 if test "x${CAP_DIR}" != "x"; then
18557 CAP_INCLUDE="-I${CAP_DIR}/include"
18559 CAP_INCLUDE="${CAP_INCLUDE} "
18560 if test "xsys/capability.h" = "x" ; then # no header, assume found
18561 CAP_HEADER_FOUND="1"
18562 else # check for the header
18563 saved_cppflags="${CPPFLAGS}"
18564 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE} "
18565 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18566 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18567 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18568 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18572 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18573 else
18574 # Is the header compilable?
18575 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18576 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 $ac_includes_default
18584 #include <sys/capability.h>
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_compile") 2>conftest.er1
18594 ac_status=$?
18595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } && {
18600 test -z "$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18602 } && test -s conftest.$ac_objext; then
18603 ac_header_compiler=yes
18604 else
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 ac_header_compiler=no
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18613 echo "${ECHO_T}$ac_header_compiler" >&6; }
18615 # Is the header present?
18616 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
18617 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h. */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 #include <sys/capability.h>
18625 _ACEOF
18626 if { (ac_try="$ac_cpp conftest.$ac_ext"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630 esac
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18633 ac_status=$?
18634 grep -v '^ *+' conftest.er1 >conftest.err
18635 rm -f conftest.er1
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } >/dev/null && {
18639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18640 test ! -s conftest.err
18641 }; then
18642 ac_header_preproc=yes
18643 else
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 ac_header_preproc=no
18650 rm -f conftest.err conftest.$ac_ext
18651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18652 echo "${ECHO_T}$ac_header_preproc" >&6; }
18654 # So? What about this header?
18655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18656 yes:no: )
18657 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
18658 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18659 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
18660 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
18661 ac_header_preproc=yes
18663 no:yes:* )
18664 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
18665 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
18666 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
18667 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
18668 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
18669 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
18670 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
18671 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
18672 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
18673 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
18674 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
18675 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
18676 ( cat <<\_ASBOX
18677 ## ------------------------------- ##
18678 ## Report this to www.asterisk.org ##
18679 ## ------------------------------- ##
18680 _ASBOX
18681 ) | sed "s/^/$as_me: WARNING: /" >&2
18683 esac
18684 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18685 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18686 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 else
18689 ac_cv_header_sys_capability_h=$ac_header_preproc
18691 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18692 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18695 if test $ac_cv_header_sys_capability_h = yes; then
18696 CAP_HEADER_FOUND=1
18697 else
18698 CAP_HEADER_FOUND=0
18702 CPPFLAGS="${saved_cppflags}"
18704 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
18705 CAP_LIB=""
18706 CAP_INCLUDE=""
18707 else
18708 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18709 CAP_LIB=""
18711 PBX_CAP=1
18712 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18714 cat >>confdefs.h <<_ACEOF
18715 #define HAVE_CAP 1
18716 _ACEOF
18719 cat >>confdefs.h <<_ACEOF
18720 #define HAVE_CAP_VERSION
18721 _ACEOF
18729 # BSD might not have exp2, and/or log2
18731 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
18732 pbxlibdir=""
18733 # if --with-EXP2L=DIR has been specified, use it.
18734 if test "x${EXP2L_DIR}" != "x"; then
18735 if test -d ${EXP2L_DIR}/lib; then
18736 pbxlibdir="-L${EXP2L_DIR}/lib"
18737 else
18738 pbxlibdir="-L${EXP2L_DIR}"
18741 pbxfuncname="exp2l"
18742 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18743 AST_EXP2L_FOUND=yes
18744 else
18745 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
18746 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
18747 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
18748 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 else
18751 ac_check_lib_save_LIBS=$LIBS
18752 LIBS="-lm ${pbxlibdir} $LIBS"
18753 cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h. */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18763 #ifdef __cplusplus
18764 extern "C"
18765 #endif
18766 char ${pbxfuncname} ();
18768 main ()
18770 return ${pbxfuncname} ();
18772 return 0;
18774 _ACEOF
18775 rm -f conftest.$ac_objext conftest$ac_exeext
18776 if { (ac_try="$ac_link"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_link") 2>conftest.er1
18783 ac_status=$?
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } && {
18789 test -z "$ac_c_werror_flag" ||
18790 test ! -s conftest.err
18791 } && test -s conftest$ac_exeext &&
18792 $as_test_x conftest$ac_exeext; then
18793 eval "$as_ac_Lib=yes"
18794 else
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18798 eval "$as_ac_Lib=no"
18801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18802 conftest$ac_exeext conftest.$ac_ext
18803 LIBS=$ac_check_lib_save_LIBS
18805 ac_res=`eval echo '${'$as_ac_Lib'}'`
18806 { echo "$as_me:$LINENO: result: $ac_res" >&5
18807 echo "${ECHO_T}$ac_res" >&6; }
18808 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18809 AST_EXP2L_FOUND=yes
18810 else
18811 AST_EXP2L_FOUND=no
18816 # now check for the header.
18817 if test "${AST_EXP2L_FOUND}" = "yes"; then
18818 EXP2L_LIB="${pbxlibdir} -lm "
18819 # if --with-EXP2L=DIR has been specified, use it.
18820 if test "x${EXP2L_DIR}" != "x"; then
18821 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
18823 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
18824 if test "x" = "x" ; then # no header, assume found
18825 EXP2L_HEADER_FOUND="1"
18826 else # check for the header
18827 saved_cppflags="${CPPFLAGS}"
18828 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE} "
18829 if test "${ac_cv_header_+set}" = set; then
18830 { echo "$as_me:$LINENO: checking for " >&5
18831 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
18832 if test "${ac_cv_header_+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18835 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
18836 echo "${ECHO_T}$ac_cv_header_" >&6; }
18837 else
18838 # Is the header compilable?
18839 { echo "$as_me:$LINENO: checking usability" >&5
18840 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
18841 cat >conftest.$ac_ext <<_ACEOF
18842 /* confdefs.h. */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18847 $ac_includes_default
18848 #include <>
18849 _ACEOF
18850 rm -f conftest.$ac_objext
18851 if { (ac_try="$ac_compile"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855 esac
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_compile") 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } && {
18864 test -z "$ac_c_werror_flag" ||
18865 test ! -s conftest.err
18866 } && test -s conftest.$ac_objext; then
18867 ac_header_compiler=yes
18868 else
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18872 ac_header_compiler=no
18875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18877 echo "${ECHO_T}$ac_header_compiler" >&6; }
18879 # Is the header present?
18880 { echo "$as_me:$LINENO: checking presence" >&5
18881 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
18882 cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h. */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 #include <>
18889 _ACEOF
18890 if { (ac_try="$ac_cpp conftest.$ac_ext"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } >/dev/null && {
18903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 }; then
18906 ac_header_preproc=yes
18907 else
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 ac_header_preproc=no
18914 rm -f conftest.err conftest.$ac_ext
18915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18916 echo "${ECHO_T}$ac_header_preproc" >&6; }
18918 # So? What about this header?
18919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18920 yes:no: )
18921 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
18922 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
18924 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
18925 ac_header_preproc=yes
18927 no:yes:* )
18928 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
18929 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
18930 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
18931 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
18933 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
18935 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
18936 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
18937 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
18938 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
18939 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
18940 ( cat <<\_ASBOX
18941 ## ------------------------------- ##
18942 ## Report this to www.asterisk.org ##
18943 ## ------------------------------- ##
18944 _ASBOX
18945 ) | sed "s/^/$as_me: WARNING: /" >&2
18947 esac
18948 { echo "$as_me:$LINENO: checking for " >&5
18949 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
18950 if test "${ac_cv_header_+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953 ac_cv_header_=$ac_header_preproc
18955 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
18956 echo "${ECHO_T}$ac_cv_header_" >&6; }
18959 if test $ac_cv_header_ = yes; then
18960 EXP2L_HEADER_FOUND=1
18961 else
18962 EXP2L_HEADER_FOUND=0
18966 CPPFLAGS="${saved_cppflags}"
18968 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
18969 EXP2L_LIB=""
18970 EXP2L_INCLUDE=""
18971 else
18972 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18973 EXP2L_LIB=""
18975 PBX_EXP2L=1
18976 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_EXP2L 1
18980 _ACEOF
18983 cat >>confdefs.h <<_ACEOF
18984 #define HAVE_EXP2L_VERSION
18985 _ACEOF
18992 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
18993 pbxlibdir=""
18994 # if --with-LOG2L=DIR has been specified, use it.
18995 if test "x${LOG2L_DIR}" != "x"; then
18996 if test -d ${LOG2L_DIR}/lib; then
18997 pbxlibdir="-L${LOG2L_DIR}/lib"
18998 else
18999 pbxlibdir="-L${LOG2L_DIR}"
19002 pbxfuncname="log2l"
19003 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19004 AST_LOG2L_FOUND=yes
19005 else
19006 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19007 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19008 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19009 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19011 else
19012 ac_check_lib_save_LIBS=$LIBS
19013 LIBS="-lm ${pbxlibdir} $LIBS"
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19021 /* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19024 #ifdef __cplusplus
19025 extern "C"
19026 #endif
19027 char ${pbxfuncname} ();
19029 main ()
19031 return ${pbxfuncname} ();
19033 return 0;
19035 _ACEOF
19036 rm -f conftest.$ac_objext conftest$ac_exeext
19037 if { (ac_try="$ac_link"
19038 case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19041 esac
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_link") 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } && {
19050 test -z "$ac_c_werror_flag" ||
19051 test ! -s conftest.err
19052 } && test -s conftest$ac_exeext &&
19053 $as_test_x conftest$ac_exeext; then
19054 eval "$as_ac_Lib=yes"
19055 else
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 eval "$as_ac_Lib=no"
19062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19063 conftest$ac_exeext conftest.$ac_ext
19064 LIBS=$ac_check_lib_save_LIBS
19066 ac_res=`eval echo '${'$as_ac_Lib'}'`
19067 { echo "$as_me:$LINENO: result: $ac_res" >&5
19068 echo "${ECHO_T}$ac_res" >&6; }
19069 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19070 AST_LOG2L_FOUND=yes
19071 else
19072 AST_LOG2L_FOUND=no
19077 # now check for the header.
19078 if test "${AST_LOG2L_FOUND}" = "yes"; then
19079 LOG2L_LIB="${pbxlibdir} -lm "
19080 # if --with-LOG2L=DIR has been specified, use it.
19081 if test "x${LOG2L_DIR}" != "x"; then
19082 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19084 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19085 if test "x" = "x" ; then # no header, assume found
19086 LOG2L_HEADER_FOUND="1"
19087 else # check for the header
19088 saved_cppflags="${CPPFLAGS}"
19089 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE} "
19090 if test "${ac_cv_header_+set}" = set; then
19091 { echo "$as_me:$LINENO: checking for " >&5
19092 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19093 if test "${ac_cv_header_+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19097 echo "${ECHO_T}$ac_cv_header_" >&6; }
19098 else
19099 # Is the header compilable?
19100 { echo "$as_me:$LINENO: checking usability" >&5
19101 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h. */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19108 $ac_includes_default
19109 #include <>
19110 _ACEOF
19111 rm -f conftest.$ac_objext
19112 if { (ac_try="$ac_compile"
19113 case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118 (eval "$ac_compile") 2>conftest.er1
19119 ac_status=$?
19120 grep -v '^ *+' conftest.er1 >conftest.err
19121 rm -f conftest.er1
19122 cat conftest.err >&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } && {
19125 test -z "$ac_c_werror_flag" ||
19126 test ! -s conftest.err
19127 } && test -s conftest.$ac_objext; then
19128 ac_header_compiler=yes
19129 else
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ac_header_compiler=no
19136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19138 echo "${ECHO_T}$ac_header_compiler" >&6; }
19140 # Is the header present?
19141 { echo "$as_me:$LINENO: checking presence" >&5
19142 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 #include <>
19150 _ACEOF
19151 if { (ac_try="$ac_cpp conftest.$ac_ext"
19152 case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19158 ac_status=$?
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } >/dev/null && {
19164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19165 test ! -s conftest.err
19166 }; then
19167 ac_header_preproc=yes
19168 else
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_header_preproc=no
19175 rm -f conftest.err conftest.$ac_ext
19176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19177 echo "${ECHO_T}$ac_header_preproc" >&6; }
19179 # So? What about this header?
19180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19181 yes:no: )
19182 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19183 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19184 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19185 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19186 ac_header_preproc=yes
19188 no:yes:* )
19189 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19190 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19191 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19192 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19193 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19194 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19195 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19196 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19197 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19198 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19199 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19200 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19201 ( cat <<\_ASBOX
19202 ## ------------------------------- ##
19203 ## Report this to www.asterisk.org ##
19204 ## ------------------------------- ##
19205 _ASBOX
19206 ) | sed "s/^/$as_me: WARNING: /" >&2
19208 esac
19209 { echo "$as_me:$LINENO: checking for " >&5
19210 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19211 if test "${ac_cv_header_+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 else
19214 ac_cv_header_=$ac_header_preproc
19216 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19217 echo "${ECHO_T}$ac_cv_header_" >&6; }
19220 if test $ac_cv_header_ = yes; then
19221 LOG2L_HEADER_FOUND=1
19222 else
19223 LOG2L_HEADER_FOUND=0
19227 CPPFLAGS="${saved_cppflags}"
19229 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19230 LOG2L_LIB=""
19231 LOG2L_INCLUDE=""
19232 else
19233 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19234 LOG2L_LIB=""
19236 PBX_LOG2L=1
19237 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19239 cat >>confdefs.h <<_ACEOF
19240 #define HAVE_LOG2L 1
19241 _ACEOF
19244 cat >>confdefs.h <<_ACEOF
19245 #define HAVE_LOG2L_VERSION
19246 _ACEOF
19253 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19254 pbxlibdir=""
19255 # if --with-EXP10L=DIR has been specified, use it.
19256 if test "x${EXP10L_DIR}" != "x"; then
19257 if test -d ${EXP10L_DIR}/lib; then
19258 pbxlibdir="-L${EXP10L_DIR}/lib"
19259 else
19260 pbxlibdir="-L${EXP10L_DIR}"
19263 pbxfuncname="exp10l"
19264 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19265 AST_EXP10L_FOUND=yes
19266 else
19267 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19268 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19269 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19270 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19272 else
19273 ac_check_lib_save_LIBS=$LIBS
19274 LIBS="-lm ${pbxlibdir} $LIBS"
19275 cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h. */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19282 /* Override any GCC internal prototype to avoid an error.
19283 Use char because int might match the return type of a GCC
19284 builtin and then its argument prototype would still apply. */
19285 #ifdef __cplusplus
19286 extern "C"
19287 #endif
19288 char ${pbxfuncname} ();
19290 main ()
19292 return ${pbxfuncname} ();
19294 return 0;
19296 _ACEOF
19297 rm -f conftest.$ac_objext conftest$ac_exeext
19298 if { (ac_try="$ac_link"
19299 case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19302 esac
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_link") 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } && {
19311 test -z "$ac_c_werror_flag" ||
19312 test ! -s conftest.err
19313 } && test -s conftest$ac_exeext &&
19314 $as_test_x conftest$ac_exeext; then
19315 eval "$as_ac_Lib=yes"
19316 else
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 eval "$as_ac_Lib=no"
19323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19324 conftest$ac_exeext conftest.$ac_ext
19325 LIBS=$ac_check_lib_save_LIBS
19327 ac_res=`eval echo '${'$as_ac_Lib'}'`
19328 { echo "$as_me:$LINENO: result: $ac_res" >&5
19329 echo "${ECHO_T}$ac_res" >&6; }
19330 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19331 AST_EXP10L_FOUND=yes
19332 else
19333 AST_EXP10L_FOUND=no
19338 # now check for the header.
19339 if test "${AST_EXP10L_FOUND}" = "yes"; then
19340 EXP10L_LIB="${pbxlibdir} -lm "
19341 # if --with-EXP10L=DIR has been specified, use it.
19342 if test "x${EXP10L_DIR}" != "x"; then
19343 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19345 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19346 if test "x" = "x" ; then # no header, assume found
19347 EXP10L_HEADER_FOUND="1"
19348 else # check for the header
19349 saved_cppflags="${CPPFLAGS}"
19350 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE} "
19351 if test "${ac_cv_header_+set}" = set; then
19352 { echo "$as_me:$LINENO: checking for " >&5
19353 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19354 if test "${ac_cv_header_+set}" = set; then
19355 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19358 echo "${ECHO_T}$ac_cv_header_" >&6; }
19359 else
19360 # Is the header compilable?
19361 { echo "$as_me:$LINENO: checking usability" >&5
19362 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h. */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19369 $ac_includes_default
19370 #include <>
19371 _ACEOF
19372 rm -f conftest.$ac_objext
19373 if { (ac_try="$ac_compile"
19374 case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19377 esac
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_compile") 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } && {
19386 test -z "$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 } && test -s conftest.$ac_objext; then
19389 ac_header_compiler=yes
19390 else
19391 echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 ac_header_compiler=no
19397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19399 echo "${ECHO_T}$ac_header_compiler" >&6; }
19401 # Is the header present?
19402 { echo "$as_me:$LINENO: checking presence" >&5
19403 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19404 cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h. */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410 #include <>
19411 _ACEOF
19412 if { (ac_try="$ac_cpp conftest.$ac_ext"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } >/dev/null && {
19425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 }; then
19428 ac_header_preproc=yes
19429 else
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_header_preproc=no
19436 rm -f conftest.err conftest.$ac_ext
19437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19438 echo "${ECHO_T}$ac_header_preproc" >&6; }
19440 # So? What about this header?
19441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19442 yes:no: )
19443 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19444 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19445 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19446 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19447 ac_header_preproc=yes
19449 no:yes:* )
19450 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19451 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19453 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19455 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19457 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19458 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19459 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19460 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19461 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19462 ( cat <<\_ASBOX
19463 ## ------------------------------- ##
19464 ## Report this to www.asterisk.org ##
19465 ## ------------------------------- ##
19466 _ASBOX
19467 ) | sed "s/^/$as_me: WARNING: /" >&2
19469 esac
19470 { echo "$as_me:$LINENO: checking for " >&5
19471 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19472 if test "${ac_cv_header_+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475 ac_cv_header_=$ac_header_preproc
19477 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19478 echo "${ECHO_T}$ac_cv_header_" >&6; }
19481 if test $ac_cv_header_ = yes; then
19482 EXP10L_HEADER_FOUND=1
19483 else
19484 EXP10L_HEADER_FOUND=0
19488 CPPFLAGS="${saved_cppflags}"
19490 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19491 EXP10L_LIB=""
19492 EXP10L_INCLUDE=""
19493 else
19494 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19495 EXP10L_LIB=""
19497 PBX_EXP10L=1
19498 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19500 cat >>confdefs.h <<_ACEOF
19501 #define HAVE_EXP10L 1
19502 _ACEOF
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_EXP10L_VERSION
19507 _ACEOF
19514 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19515 pbxlibdir=""
19516 # if --with-LOG10L=DIR has been specified, use it.
19517 if test "x${LOG10L_DIR}" != "x"; then
19518 if test -d ${LOG10L_DIR}/lib; then
19519 pbxlibdir="-L${LOG10L_DIR}/lib"
19520 else
19521 pbxlibdir="-L${LOG10L_DIR}"
19524 pbxfuncname="log10l"
19525 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19526 AST_LOG10L_FOUND=yes
19527 else
19528 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19529 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19530 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19531 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534 ac_check_lib_save_LIBS=$LIBS
19535 LIBS="-lm ${pbxlibdir} $LIBS"
19536 cat >conftest.$ac_ext <<_ACEOF
19537 /* confdefs.h. */
19538 _ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19543 /* Override any GCC internal prototype to avoid an error.
19544 Use char because int might match the return type of a GCC
19545 builtin and then its argument prototype would still apply. */
19546 #ifdef __cplusplus
19547 extern "C"
19548 #endif
19549 char ${pbxfuncname} ();
19551 main ()
19553 return ${pbxfuncname} ();
19555 return 0;
19557 _ACEOF
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (ac_try="$ac_link"
19560 case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_link") 2>conftest.er1
19566 ac_status=$?
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } && {
19572 test -z "$ac_c_werror_flag" ||
19573 test ! -s conftest.err
19574 } && test -s conftest$ac_exeext &&
19575 $as_test_x conftest$ac_exeext; then
19576 eval "$as_ac_Lib=yes"
19577 else
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 eval "$as_ac_Lib=no"
19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19585 conftest$ac_exeext conftest.$ac_ext
19586 LIBS=$ac_check_lib_save_LIBS
19588 ac_res=`eval echo '${'$as_ac_Lib'}'`
19589 { echo "$as_me:$LINENO: result: $ac_res" >&5
19590 echo "${ECHO_T}$ac_res" >&6; }
19591 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19592 AST_LOG10L_FOUND=yes
19593 else
19594 AST_LOG10L_FOUND=no
19599 # now check for the header.
19600 if test "${AST_LOG10L_FOUND}" = "yes"; then
19601 LOG10L_LIB="${pbxlibdir} -lm "
19602 # if --with-LOG10L=DIR has been specified, use it.
19603 if test "x${LOG10L_DIR}" != "x"; then
19604 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
19606 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
19607 if test "x" = "x" ; then # no header, assume found
19608 LOG10L_HEADER_FOUND="1"
19609 else # check for the header
19610 saved_cppflags="${CPPFLAGS}"
19611 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE} "
19612 if test "${ac_cv_header_+set}" = set; then
19613 { echo "$as_me:$LINENO: checking for " >&5
19614 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19615 if test "${ac_cv_header_+set}" = set; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19619 echo "${ECHO_T}$ac_cv_header_" >&6; }
19620 else
19621 # Is the header compilable?
19622 { echo "$as_me:$LINENO: checking usability" >&5
19623 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h. */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 $ac_includes_default
19631 #include <>
19632 _ACEOF
19633 rm -f conftest.$ac_objext
19634 if { (ac_try="$ac_compile"
19635 case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19638 esac
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640 (eval "$ac_compile") 2>conftest.er1
19641 ac_status=$?
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } && {
19647 test -z "$ac_c_werror_flag" ||
19648 test ! -s conftest.err
19649 } && test -s conftest.$ac_objext; then
19650 ac_header_compiler=yes
19651 else
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_header_compiler=no
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19660 echo "${ECHO_T}$ac_header_compiler" >&6; }
19662 # Is the header present?
19663 { echo "$as_me:$LINENO: checking presence" >&5
19664 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19665 cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h. */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 #include <>
19672 _ACEOF
19673 if { (ac_try="$ac_cpp conftest.$ac_ext"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19680 ac_status=$?
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } >/dev/null && {
19686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 }; then
19689 ac_header_preproc=yes
19690 else
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19694 ac_header_preproc=no
19697 rm -f conftest.err conftest.$ac_ext
19698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19699 echo "${ECHO_T}$ac_header_preproc" >&6; }
19701 # So? What about this header?
19702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19703 yes:no: )
19704 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19705 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19706 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19707 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19708 ac_header_preproc=yes
19710 no:yes:* )
19711 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19712 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19714 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19716 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19717 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19718 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19719 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19720 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19721 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19722 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19723 ( cat <<\_ASBOX
19724 ## ------------------------------- ##
19725 ## Report this to www.asterisk.org ##
19726 ## ------------------------------- ##
19727 _ASBOX
19728 ) | sed "s/^/$as_me: WARNING: /" >&2
19730 esac
19731 { echo "$as_me:$LINENO: checking for " >&5
19732 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19733 if test "${ac_cv_header_+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736 ac_cv_header_=$ac_header_preproc
19738 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19739 echo "${ECHO_T}$ac_cv_header_" >&6; }
19742 if test $ac_cv_header_ = yes; then
19743 LOG10L_HEADER_FOUND=1
19744 else
19745 LOG10L_HEADER_FOUND=0
19749 CPPFLAGS="${saved_cppflags}"
19751 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
19752 LOG10L_LIB=""
19753 LOG10L_INCLUDE=""
19754 else
19755 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19756 LOG10L_LIB=""
19758 PBX_LOG10L=1
19759 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19761 cat >>confdefs.h <<_ACEOF
19762 #define HAVE_LOG10L 1
19763 _ACEOF
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_LOG10L_VERSION
19768 _ACEOF
19775 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
19776 pbxlibdir=""
19777 # if --with-SINL=DIR has been specified, use it.
19778 if test "x${SINL_DIR}" != "x"; then
19779 if test -d ${SINL_DIR}/lib; then
19780 pbxlibdir="-L${SINL_DIR}/lib"
19781 else
19782 pbxlibdir="-L${SINL_DIR}"
19785 pbxfuncname="sinl"
19786 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19787 AST_SINL_FOUND=yes
19788 else
19789 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19790 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19791 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19792 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795 ac_check_lib_save_LIBS=$LIBS
19796 LIBS="-lm ${pbxlibdir} $LIBS"
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19804 /* Override any GCC internal prototype to avoid an error.
19805 Use char because int might match the return type of a GCC
19806 builtin and then its argument prototype would still apply. */
19807 #ifdef __cplusplus
19808 extern "C"
19809 #endif
19810 char ${pbxfuncname} ();
19812 main ()
19814 return ${pbxfuncname} ();
19816 return 0;
19818 _ACEOF
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (ac_try="$ac_link"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_link") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest$ac_exeext &&
19836 $as_test_x conftest$ac_exeext; then
19837 eval "$as_ac_Lib=yes"
19838 else
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19842 eval "$as_ac_Lib=no"
19845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19846 conftest$ac_exeext conftest.$ac_ext
19847 LIBS=$ac_check_lib_save_LIBS
19849 ac_res=`eval echo '${'$as_ac_Lib'}'`
19850 { echo "$as_me:$LINENO: result: $ac_res" >&5
19851 echo "${ECHO_T}$ac_res" >&6; }
19852 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19853 AST_SINL_FOUND=yes
19854 else
19855 AST_SINL_FOUND=no
19860 # now check for the header.
19861 if test "${AST_SINL_FOUND}" = "yes"; then
19862 SINL_LIB="${pbxlibdir} -lm "
19863 # if --with-SINL=DIR has been specified, use it.
19864 if test "x${SINL_DIR}" != "x"; then
19865 SINL_INCLUDE="-I${SINL_DIR}/include"
19867 SINL_INCLUDE="${SINL_INCLUDE} "
19868 if test "x" = "x" ; then # no header, assume found
19869 SINL_HEADER_FOUND="1"
19870 else # check for the header
19871 saved_cppflags="${CPPFLAGS}"
19872 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE} "
19873 if test "${ac_cv_header_+set}" = set; then
19874 { echo "$as_me:$LINENO: checking for " >&5
19875 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19876 if test "${ac_cv_header_+set}" = set; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19880 echo "${ECHO_T}$ac_cv_header_" >&6; }
19881 else
19882 # Is the header compilable?
19883 { echo "$as_me:$LINENO: checking usability" >&5
19884 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h. */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 $ac_includes_default
19892 #include <>
19893 _ACEOF
19894 rm -f conftest.$ac_objext
19895 if { (ac_try="$ac_compile"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_compile") 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } && {
19908 test -z "$ac_c_werror_flag" ||
19909 test ! -s conftest.err
19910 } && test -s conftest.$ac_objext; then
19911 ac_header_compiler=yes
19912 else
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19916 ac_header_compiler=no
19919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19921 echo "${ECHO_T}$ac_header_compiler" >&6; }
19923 # Is the header present?
19924 { echo "$as_me:$LINENO: checking presence" >&5
19925 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19926 cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h. */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 #include <>
19933 _ACEOF
19934 if { (ac_try="$ac_cpp conftest.$ac_ext"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } >/dev/null && {
19947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 }; then
19950 ac_header_preproc=yes
19951 else
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 ac_header_preproc=no
19958 rm -f conftest.err conftest.$ac_ext
19959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19960 echo "${ECHO_T}$ac_header_preproc" >&6; }
19962 # So? What about this header?
19963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19964 yes:no: )
19965 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19966 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19968 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19969 ac_header_preproc=yes
19971 no:yes:* )
19972 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19973 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19974 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19975 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19977 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19978 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19979 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19980 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19981 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19983 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19984 ( cat <<\_ASBOX
19985 ## ------------------------------- ##
19986 ## Report this to www.asterisk.org ##
19987 ## ------------------------------- ##
19988 _ASBOX
19989 ) | sed "s/^/$as_me: WARNING: /" >&2
19991 esac
19992 { echo "$as_me:$LINENO: checking for " >&5
19993 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19994 if test "${ac_cv_header_+set}" = set; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19996 else
19997 ac_cv_header_=$ac_header_preproc
19999 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20000 echo "${ECHO_T}$ac_cv_header_" >&6; }
20003 if test $ac_cv_header_ = yes; then
20004 SINL_HEADER_FOUND=1
20005 else
20006 SINL_HEADER_FOUND=0
20010 CPPFLAGS="${saved_cppflags}"
20012 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
20013 SINL_LIB=""
20014 SINL_INCLUDE=""
20015 else
20016 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20017 SINL_LIB=""
20019 PBX_SINL=1
20020 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20022 cat >>confdefs.h <<_ACEOF
20023 #define HAVE_SINL 1
20024 _ACEOF
20027 cat >>confdefs.h <<_ACEOF
20028 #define HAVE_SINL_VERSION
20029 _ACEOF
20036 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
20037 pbxlibdir=""
20038 # if --with-COSL=DIR has been specified, use it.
20039 if test "x${COSL_DIR}" != "x"; then
20040 if test -d ${COSL_DIR}/lib; then
20041 pbxlibdir="-L${COSL_DIR}/lib"
20042 else
20043 pbxlibdir="-L${COSL_DIR}"
20046 pbxfuncname="cosl"
20047 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20048 AST_COSL_FOUND=yes
20049 else
20050 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20051 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20052 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20053 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056 ac_check_lib_save_LIBS=$LIBS
20057 LIBS="-lm ${pbxlibdir} $LIBS"
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h. */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20065 /* Override any GCC internal prototype to avoid an error.
20066 Use char because int might match the return type of a GCC
20067 builtin and then its argument prototype would still apply. */
20068 #ifdef __cplusplus
20069 extern "C"
20070 #endif
20071 char ${pbxfuncname} ();
20073 main ()
20075 return ${pbxfuncname} ();
20077 return 0;
20079 _ACEOF
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_link") 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest$ac_exeext &&
20097 $as_test_x conftest$ac_exeext; then
20098 eval "$as_ac_Lib=yes"
20099 else
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103 eval "$as_ac_Lib=no"
20106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20107 conftest$ac_exeext conftest.$ac_ext
20108 LIBS=$ac_check_lib_save_LIBS
20110 ac_res=`eval echo '${'$as_ac_Lib'}'`
20111 { echo "$as_me:$LINENO: result: $ac_res" >&5
20112 echo "${ECHO_T}$ac_res" >&6; }
20113 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20114 AST_COSL_FOUND=yes
20115 else
20116 AST_COSL_FOUND=no
20121 # now check for the header.
20122 if test "${AST_COSL_FOUND}" = "yes"; then
20123 COSL_LIB="${pbxlibdir} -lm "
20124 # if --with-COSL=DIR has been specified, use it.
20125 if test "x${COSL_DIR}" != "x"; then
20126 COSL_INCLUDE="-I${COSL_DIR}/include"
20128 COSL_INCLUDE="${COSL_INCLUDE} "
20129 if test "x" = "x" ; then # no header, assume found
20130 COSL_HEADER_FOUND="1"
20131 else # check for the header
20132 saved_cppflags="${CPPFLAGS}"
20133 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE} "
20134 if test "${ac_cv_header_+set}" = set; then
20135 { echo "$as_me:$LINENO: checking for " >&5
20136 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20137 if test "${ac_cv_header_+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20141 echo "${ECHO_T}$ac_cv_header_" >&6; }
20142 else
20143 # Is the header compilable?
20144 { echo "$as_me:$LINENO: checking usability" >&5
20145 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 $ac_includes_default
20153 #include <>
20154 _ACEOF
20155 rm -f conftest.$ac_objext
20156 if { (ac_try="$ac_compile"
20157 case "(($ac_try" in
20158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159 *) ac_try_echo=$ac_try;;
20160 esac
20161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162 (eval "$ac_compile") 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } && {
20169 test -z "$ac_c_werror_flag" ||
20170 test ! -s conftest.err
20171 } && test -s conftest.$ac_objext; then
20172 ac_header_compiler=yes
20173 else
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 ac_header_compiler=no
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20182 echo "${ECHO_T}$ac_header_compiler" >&6; }
20184 # Is the header present?
20185 { echo "$as_me:$LINENO: checking presence" >&5
20186 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h. */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193 #include <>
20194 _ACEOF
20195 if { (ac_try="$ac_cpp conftest.$ac_ext"
20196 case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20199 esac
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20202 ac_status=$?
20203 grep -v '^ *+' conftest.er1 >conftest.err
20204 rm -f conftest.er1
20205 cat conftest.err >&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } >/dev/null && {
20208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20209 test ! -s conftest.err
20210 }; then
20211 ac_header_preproc=yes
20212 else
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 ac_header_preproc=no
20219 rm -f conftest.err conftest.$ac_ext
20220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20221 echo "${ECHO_T}$ac_header_preproc" >&6; }
20223 # So? What about this header?
20224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20225 yes:no: )
20226 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20227 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20228 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20229 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20230 ac_header_preproc=yes
20232 no:yes:* )
20233 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20234 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20236 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20238 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20240 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20242 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20244 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20245 ( cat <<\_ASBOX
20246 ## ------------------------------- ##
20247 ## Report this to www.asterisk.org ##
20248 ## ------------------------------- ##
20249 _ASBOX
20250 ) | sed "s/^/$as_me: WARNING: /" >&2
20252 esac
20253 { echo "$as_me:$LINENO: checking for " >&5
20254 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20255 if test "${ac_cv_header_+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258 ac_cv_header_=$ac_header_preproc
20260 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20261 echo "${ECHO_T}$ac_cv_header_" >&6; }
20264 if test $ac_cv_header_ = yes; then
20265 COSL_HEADER_FOUND=1
20266 else
20267 COSL_HEADER_FOUND=0
20271 CPPFLAGS="${saved_cppflags}"
20273 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20274 COSL_LIB=""
20275 COSL_INCLUDE=""
20276 else
20277 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20278 COSL_LIB=""
20280 PBX_COSL=1
20281 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20283 cat >>confdefs.h <<_ACEOF
20284 #define HAVE_COSL 1
20285 _ACEOF
20288 cat >>confdefs.h <<_ACEOF
20289 #define HAVE_COSL_VERSION
20290 _ACEOF
20297 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20298 pbxlibdir=""
20299 # if --with-TANL=DIR has been specified, use it.
20300 if test "x${TANL_DIR}" != "x"; then
20301 if test -d ${TANL_DIR}/lib; then
20302 pbxlibdir="-L${TANL_DIR}/lib"
20303 else
20304 pbxlibdir="-L${TANL_DIR}"
20307 pbxfuncname="tanl"
20308 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20309 AST_TANL_FOUND=yes
20310 else
20311 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20312 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20313 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20314 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317 ac_check_lib_save_LIBS=$LIBS
20318 LIBS="-lm ${pbxlibdir} $LIBS"
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h. */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20326 /* Override any GCC internal prototype to avoid an error.
20327 Use char because int might match the return type of a GCC
20328 builtin and then its argument prototype would still apply. */
20329 #ifdef __cplusplus
20330 extern "C"
20331 #endif
20332 char ${pbxfuncname} ();
20334 main ()
20336 return ${pbxfuncname} ();
20338 return 0;
20340 _ACEOF
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (ac_try="$ac_link"
20343 case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_link") 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } && {
20355 test -z "$ac_c_werror_flag" ||
20356 test ! -s conftest.err
20357 } && test -s conftest$ac_exeext &&
20358 $as_test_x conftest$ac_exeext; then
20359 eval "$as_ac_Lib=yes"
20360 else
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 eval "$as_ac_Lib=no"
20367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20368 conftest$ac_exeext conftest.$ac_ext
20369 LIBS=$ac_check_lib_save_LIBS
20371 ac_res=`eval echo '${'$as_ac_Lib'}'`
20372 { echo "$as_me:$LINENO: result: $ac_res" >&5
20373 echo "${ECHO_T}$ac_res" >&6; }
20374 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20375 AST_TANL_FOUND=yes
20376 else
20377 AST_TANL_FOUND=no
20382 # now check for the header.
20383 if test "${AST_TANL_FOUND}" = "yes"; then
20384 TANL_LIB="${pbxlibdir} -lm "
20385 # if --with-TANL=DIR has been specified, use it.
20386 if test "x${TANL_DIR}" != "x"; then
20387 TANL_INCLUDE="-I${TANL_DIR}/include"
20389 TANL_INCLUDE="${TANL_INCLUDE} "
20390 if test "x" = "x" ; then # no header, assume found
20391 TANL_HEADER_FOUND="1"
20392 else # check for the header
20393 saved_cppflags="${CPPFLAGS}"
20394 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE} "
20395 if test "${ac_cv_header_+set}" = set; then
20396 { echo "$as_me:$LINENO: checking for " >&5
20397 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20398 if test "${ac_cv_header_+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20402 echo "${ECHO_T}$ac_cv_header_" >&6; }
20403 else
20404 # Is the header compilable?
20405 { echo "$as_me:$LINENO: checking usability" >&5
20406 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 $ac_includes_default
20414 #include <>
20415 _ACEOF
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_compile") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && {
20430 test -z "$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 } && test -s conftest.$ac_objext; then
20433 ac_header_compiler=yes
20434 else
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 ac_header_compiler=no
20441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20443 echo "${ECHO_T}$ac_header_compiler" >&6; }
20445 # Is the header present?
20446 { echo "$as_me:$LINENO: checking presence" >&5
20447 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20448 cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h. */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20454 #include <>
20455 _ACEOF
20456 if { (ac_try="$ac_cpp conftest.$ac_ext"
20457 case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460 esac
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20463 ac_status=$?
20464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } >/dev/null && {
20469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20470 test ! -s conftest.err
20471 }; then
20472 ac_header_preproc=yes
20473 else
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 ac_header_preproc=no
20480 rm -f conftest.err conftest.$ac_ext
20481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20482 echo "${ECHO_T}$ac_header_preproc" >&6; }
20484 # So? What about this header?
20485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20486 yes:no: )
20487 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20488 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20489 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20490 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20491 ac_header_preproc=yes
20493 no:yes:* )
20494 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20495 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20497 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20499 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20501 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20502 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20503 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20505 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20506 ( cat <<\_ASBOX
20507 ## ------------------------------- ##
20508 ## Report this to www.asterisk.org ##
20509 ## ------------------------------- ##
20510 _ASBOX
20511 ) | sed "s/^/$as_me: WARNING: /" >&2
20513 esac
20514 { echo "$as_me:$LINENO: checking for " >&5
20515 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20516 if test "${ac_cv_header_+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519 ac_cv_header_=$ac_header_preproc
20521 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20522 echo "${ECHO_T}$ac_cv_header_" >&6; }
20525 if test $ac_cv_header_ = yes; then
20526 TANL_HEADER_FOUND=1
20527 else
20528 TANL_HEADER_FOUND=0
20532 CPPFLAGS="${saved_cppflags}"
20534 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
20535 TANL_LIB=""
20536 TANL_INCLUDE=""
20537 else
20538 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20539 TANL_LIB=""
20541 PBX_TANL=1
20542 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20544 cat >>confdefs.h <<_ACEOF
20545 #define HAVE_TANL 1
20546 _ACEOF
20549 cat >>confdefs.h <<_ACEOF
20550 #define HAVE_TANL_VERSION
20551 _ACEOF
20558 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
20559 pbxlibdir=""
20560 # if --with-ASINL=DIR has been specified, use it.
20561 if test "x${ASINL_DIR}" != "x"; then
20562 if test -d ${ASINL_DIR}/lib; then
20563 pbxlibdir="-L${ASINL_DIR}/lib"
20564 else
20565 pbxlibdir="-L${ASINL_DIR}"
20568 pbxfuncname="asinl"
20569 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20570 AST_ASINL_FOUND=yes
20571 else
20572 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20573 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20574 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20575 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20578 ac_check_lib_save_LIBS=$LIBS
20579 LIBS="-lm ${pbxlibdir} $LIBS"
20580 cat >conftest.$ac_ext <<_ACEOF
20581 /* confdefs.h. */
20582 _ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20590 #ifdef __cplusplus
20591 extern "C"
20592 #endif
20593 char ${pbxfuncname} ();
20595 main ()
20597 return ${pbxfuncname} ();
20599 return 0;
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest$ac_exeext &&
20619 $as_test_x conftest$ac_exeext; then
20620 eval "$as_ac_Lib=yes"
20621 else
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 eval "$as_ac_Lib=no"
20628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20629 conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20632 ac_res=`eval echo '${'$as_ac_Lib'}'`
20633 { echo "$as_me:$LINENO: result: $ac_res" >&5
20634 echo "${ECHO_T}$ac_res" >&6; }
20635 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20636 AST_ASINL_FOUND=yes
20637 else
20638 AST_ASINL_FOUND=no
20643 # now check for the header.
20644 if test "${AST_ASINL_FOUND}" = "yes"; then
20645 ASINL_LIB="${pbxlibdir} -lm "
20646 # if --with-ASINL=DIR has been specified, use it.
20647 if test "x${ASINL_DIR}" != "x"; then
20648 ASINL_INCLUDE="-I${ASINL_DIR}/include"
20650 ASINL_INCLUDE="${ASINL_INCLUDE} "
20651 if test "x" = "x" ; then # no header, assume found
20652 ASINL_HEADER_FOUND="1"
20653 else # check for the header
20654 saved_cppflags="${CPPFLAGS}"
20655 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE} "
20656 if test "${ac_cv_header_+set}" = set; then
20657 { echo "$as_me:$LINENO: checking for " >&5
20658 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20659 if test "${ac_cv_header_+set}" = set; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20663 echo "${ECHO_T}$ac_cv_header_" >&6; }
20664 else
20665 # Is the header compilable?
20666 { echo "$as_me:$LINENO: checking usability" >&5
20667 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20668 cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h. */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20674 $ac_includes_default
20675 #include <>
20676 _ACEOF
20677 rm -f conftest.$ac_objext
20678 if { (ac_try="$ac_compile"
20679 case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682 esac
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_compile") 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest.$ac_objext; then
20694 ac_header_compiler=yes
20695 else
20696 echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20699 ac_header_compiler=no
20702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20704 echo "${ECHO_T}$ac_header_compiler" >&6; }
20706 # Is the header present?
20707 { echo "$as_me:$LINENO: checking presence" >&5
20708 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20709 cat >conftest.$ac_ext <<_ACEOF
20710 /* confdefs.h. */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20715 #include <>
20716 _ACEOF
20717 if { (ac_try="$ac_cpp conftest.$ac_ext"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } >/dev/null && {
20730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 }; then
20733 ac_header_preproc=yes
20734 else
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 ac_header_preproc=no
20741 rm -f conftest.err conftest.$ac_ext
20742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20743 echo "${ECHO_T}$ac_header_preproc" >&6; }
20745 # So? What about this header?
20746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20747 yes:no: )
20748 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20749 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20750 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20751 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20752 ac_header_preproc=yes
20754 no:yes:* )
20755 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20756 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20757 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20758 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20759 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20760 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20762 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20764 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20766 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20767 ( cat <<\_ASBOX
20768 ## ------------------------------- ##
20769 ## Report this to www.asterisk.org ##
20770 ## ------------------------------- ##
20771 _ASBOX
20772 ) | sed "s/^/$as_me: WARNING: /" >&2
20774 esac
20775 { echo "$as_me:$LINENO: checking for " >&5
20776 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20777 if test "${ac_cv_header_+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 else
20780 ac_cv_header_=$ac_header_preproc
20782 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20783 echo "${ECHO_T}$ac_cv_header_" >&6; }
20786 if test $ac_cv_header_ = yes; then
20787 ASINL_HEADER_FOUND=1
20788 else
20789 ASINL_HEADER_FOUND=0
20793 CPPFLAGS="${saved_cppflags}"
20795 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
20796 ASINL_LIB=""
20797 ASINL_INCLUDE=""
20798 else
20799 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20800 ASINL_LIB=""
20802 PBX_ASINL=1
20803 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_ASINL 1
20807 _ACEOF
20810 cat >>confdefs.h <<_ACEOF
20811 #define HAVE_ASINL_VERSION
20812 _ACEOF
20819 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
20820 pbxlibdir=""
20821 # if --with-ACOSL=DIR has been specified, use it.
20822 if test "x${ACOSL_DIR}" != "x"; then
20823 if test -d ${ACOSL_DIR}/lib; then
20824 pbxlibdir="-L${ACOSL_DIR}/lib"
20825 else
20826 pbxlibdir="-L${ACOSL_DIR}"
20829 pbxfuncname="acosl"
20830 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20831 AST_ACOSL_FOUND=yes
20832 else
20833 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20834 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20835 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20836 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839 ac_check_lib_save_LIBS=$LIBS
20840 LIBS="-lm ${pbxlibdir} $LIBS"
20841 cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20848 /* Override any GCC internal prototype to avoid an error.
20849 Use char because int might match the return type of a GCC
20850 builtin and then its argument prototype would still apply. */
20851 #ifdef __cplusplus
20852 extern "C"
20853 #endif
20854 char ${pbxfuncname} ();
20856 main ()
20858 return ${pbxfuncname} ();
20860 return 0;
20862 _ACEOF
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (ac_try="$ac_link"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_link") 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest$ac_exeext &&
20880 $as_test_x conftest$ac_exeext; then
20881 eval "$as_ac_Lib=yes"
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 eval "$as_ac_Lib=no"
20889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20890 conftest$ac_exeext conftest.$ac_ext
20891 LIBS=$ac_check_lib_save_LIBS
20893 ac_res=`eval echo '${'$as_ac_Lib'}'`
20894 { echo "$as_me:$LINENO: result: $ac_res" >&5
20895 echo "${ECHO_T}$ac_res" >&6; }
20896 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20897 AST_ACOSL_FOUND=yes
20898 else
20899 AST_ACOSL_FOUND=no
20904 # now check for the header.
20905 if test "${AST_ACOSL_FOUND}" = "yes"; then
20906 ACOSL_LIB="${pbxlibdir} -lm "
20907 # if --with-ACOSL=DIR has been specified, use it.
20908 if test "x${ACOSL_DIR}" != "x"; then
20909 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
20911 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
20912 if test "x" = "x" ; then # no header, assume found
20913 ACOSL_HEADER_FOUND="1"
20914 else # check for the header
20915 saved_cppflags="${CPPFLAGS}"
20916 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE} "
20917 if test "${ac_cv_header_+set}" = set; then
20918 { echo "$as_me:$LINENO: checking for " >&5
20919 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20920 if test "${ac_cv_header_+set}" = set; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20924 echo "${ECHO_T}$ac_cv_header_" >&6; }
20925 else
20926 # Is the header compilable?
20927 { echo "$as_me:$LINENO: checking usability" >&5
20928 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 $ac_includes_default
20936 #include <>
20937 _ACEOF
20938 rm -f conftest.$ac_objext
20939 if { (ac_try="$ac_compile"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_compile") 2>conftest.er1
20946 ac_status=$?
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } && {
20952 test -z "$ac_c_werror_flag" ||
20953 test ! -s conftest.err
20954 } && test -s conftest.$ac_objext; then
20955 ac_header_compiler=yes
20956 else
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 ac_header_compiler=no
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20965 echo "${ECHO_T}$ac_header_compiler" >&6; }
20967 # Is the header present?
20968 { echo "$as_me:$LINENO: checking presence" >&5
20969 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h. */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 #include <>
20977 _ACEOF
20978 if { (ac_try="$ac_cpp conftest.$ac_ext"
20979 case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20982 esac
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20985 ac_status=$?
20986 grep -v '^ *+' conftest.er1 >conftest.err
20987 rm -f conftest.er1
20988 cat conftest.err >&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } >/dev/null && {
20991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20992 test ! -s conftest.err
20993 }; then
20994 ac_header_preproc=yes
20995 else
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_header_preproc=no
21002 rm -f conftest.err conftest.$ac_ext
21003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21004 echo "${ECHO_T}$ac_header_preproc" >&6; }
21006 # So? What about this header?
21007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21008 yes:no: )
21009 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21010 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21011 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21012 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21013 ac_header_preproc=yes
21015 no:yes:* )
21016 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21017 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21018 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21019 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21020 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21021 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21023 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21025 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21027 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21028 ( cat <<\_ASBOX
21029 ## ------------------------------- ##
21030 ## Report this to www.asterisk.org ##
21031 ## ------------------------------- ##
21032 _ASBOX
21033 ) | sed "s/^/$as_me: WARNING: /" >&2
21035 esac
21036 { echo "$as_me:$LINENO: checking for " >&5
21037 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21038 if test "${ac_cv_header_+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 else
21041 ac_cv_header_=$ac_header_preproc
21043 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21044 echo "${ECHO_T}$ac_cv_header_" >&6; }
21047 if test $ac_cv_header_ = yes; then
21048 ACOSL_HEADER_FOUND=1
21049 else
21050 ACOSL_HEADER_FOUND=0
21054 CPPFLAGS="${saved_cppflags}"
21056 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
21057 ACOSL_LIB=""
21058 ACOSL_INCLUDE=""
21059 else
21060 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21061 ACOSL_LIB=""
21063 PBX_ACOSL=1
21064 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21066 cat >>confdefs.h <<_ACEOF
21067 #define HAVE_ACOSL 1
21068 _ACEOF
21071 cat >>confdefs.h <<_ACEOF
21072 #define HAVE_ACOSL_VERSION
21073 _ACEOF
21080 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21081 pbxlibdir=""
21082 # if --with-ATANL=DIR has been specified, use it.
21083 if test "x${ATANL_DIR}" != "x"; then
21084 if test -d ${ATANL_DIR}/lib; then
21085 pbxlibdir="-L${ATANL_DIR}/lib"
21086 else
21087 pbxlibdir="-L${ATANL_DIR}"
21090 pbxfuncname="atanl"
21091 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21092 AST_ATANL_FOUND=yes
21093 else
21094 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21095 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21096 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21097 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100 ac_check_lib_save_LIBS=$LIBS
21101 LIBS="-lm ${pbxlibdir} $LIBS"
21102 cat >conftest.$ac_ext <<_ACEOF
21103 /* confdefs.h. */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21109 /* Override any GCC internal prototype to avoid an error.
21110 Use char because int might match the return type of a GCC
21111 builtin and then its argument prototype would still apply. */
21112 #ifdef __cplusplus
21113 extern "C"
21114 #endif
21115 char ${pbxfuncname} ();
21117 main ()
21119 return ${pbxfuncname} ();
21121 return 0;
21123 _ACEOF
21124 rm -f conftest.$ac_objext conftest$ac_exeext
21125 if { (ac_try="$ac_link"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_link") 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest$ac_exeext &&
21141 $as_test_x conftest$ac_exeext; then
21142 eval "$as_ac_Lib=yes"
21143 else
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 eval "$as_ac_Lib=no"
21150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21151 conftest$ac_exeext conftest.$ac_ext
21152 LIBS=$ac_check_lib_save_LIBS
21154 ac_res=`eval echo '${'$as_ac_Lib'}'`
21155 { echo "$as_me:$LINENO: result: $ac_res" >&5
21156 echo "${ECHO_T}$ac_res" >&6; }
21157 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21158 AST_ATANL_FOUND=yes
21159 else
21160 AST_ATANL_FOUND=no
21165 # now check for the header.
21166 if test "${AST_ATANL_FOUND}" = "yes"; then
21167 ATANL_LIB="${pbxlibdir} -lm "
21168 # if --with-ATANL=DIR has been specified, use it.
21169 if test "x${ATANL_DIR}" != "x"; then
21170 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21172 ATANL_INCLUDE="${ATANL_INCLUDE} "
21173 if test "x" = "x" ; then # no header, assume found
21174 ATANL_HEADER_FOUND="1"
21175 else # check for the header
21176 saved_cppflags="${CPPFLAGS}"
21177 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE} "
21178 if test "${ac_cv_header_+set}" = set; then
21179 { echo "$as_me:$LINENO: checking for " >&5
21180 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21181 if test "${ac_cv_header_+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21185 echo "${ECHO_T}$ac_cv_header_" >&6; }
21186 else
21187 # Is the header compilable?
21188 { echo "$as_me:$LINENO: checking usability" >&5
21189 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21190 cat >conftest.$ac_ext <<_ACEOF
21191 /* confdefs.h. */
21192 _ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21196 $ac_includes_default
21197 #include <>
21198 _ACEOF
21199 rm -f conftest.$ac_objext
21200 if { (ac_try="$ac_compile"
21201 case "(($ac_try" in
21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203 *) ac_try_echo=$ac_try;;
21204 esac
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21207 ac_status=$?
21208 grep -v '^ *+' conftest.er1 >conftest.err
21209 rm -f conftest.er1
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest.$ac_objext; then
21216 ac_header_compiler=yes
21217 else
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ac_header_compiler=no
21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21226 echo "${ECHO_T}$ac_header_compiler" >&6; }
21228 # Is the header present?
21229 { echo "$as_me:$LINENO: checking presence" >&5
21230 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h. */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237 #include <>
21238 _ACEOF
21239 if { (ac_try="$ac_cpp conftest.$ac_ext"
21240 case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21243 esac
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21246 ac_status=$?
21247 grep -v '^ *+' conftest.er1 >conftest.err
21248 rm -f conftest.er1
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } >/dev/null && {
21252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21253 test ! -s conftest.err
21254 }; then
21255 ac_header_preproc=yes
21256 else
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ac_header_preproc=no
21263 rm -f conftest.err conftest.$ac_ext
21264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21265 echo "${ECHO_T}$ac_header_preproc" >&6; }
21267 # So? What about this header?
21268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21269 yes:no: )
21270 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21271 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21272 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21273 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21274 ac_header_preproc=yes
21276 no:yes:* )
21277 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21278 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21280 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21281 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21282 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21283 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21284 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21286 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21287 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21288 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21289 ( cat <<\_ASBOX
21290 ## ------------------------------- ##
21291 ## Report this to www.asterisk.org ##
21292 ## ------------------------------- ##
21293 _ASBOX
21294 ) | sed "s/^/$as_me: WARNING: /" >&2
21296 esac
21297 { echo "$as_me:$LINENO: checking for " >&5
21298 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21299 if test "${ac_cv_header_+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302 ac_cv_header_=$ac_header_preproc
21304 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21305 echo "${ECHO_T}$ac_cv_header_" >&6; }
21308 if test $ac_cv_header_ = yes; then
21309 ATANL_HEADER_FOUND=1
21310 else
21311 ATANL_HEADER_FOUND=0
21315 CPPFLAGS="${saved_cppflags}"
21317 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21318 ATANL_LIB=""
21319 ATANL_INCLUDE=""
21320 else
21321 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21322 ATANL_LIB=""
21324 PBX_ATANL=1
21325 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21327 cat >>confdefs.h <<_ACEOF
21328 #define HAVE_ATANL 1
21329 _ACEOF
21332 cat >>confdefs.h <<_ACEOF
21333 #define HAVE_ATANL_VERSION
21334 _ACEOF
21341 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21342 pbxlibdir=""
21343 # if --with-ATAN2L=DIR has been specified, use it.
21344 if test "x${ATAN2L_DIR}" != "x"; then
21345 if test -d ${ATAN2L_DIR}/lib; then
21346 pbxlibdir="-L${ATAN2L_DIR}/lib"
21347 else
21348 pbxlibdir="-L${ATAN2L_DIR}"
21351 pbxfuncname="atan2l"
21352 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21353 AST_ATAN2L_FOUND=yes
21354 else
21355 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21356 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21357 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21358 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361 ac_check_lib_save_LIBS=$LIBS
21362 LIBS="-lm ${pbxlibdir} $LIBS"
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21373 #ifdef __cplusplus
21374 extern "C"
21375 #endif
21376 char ${pbxfuncname} ();
21378 main ()
21380 return ${pbxfuncname} ();
21382 return 0;
21384 _ACEOF
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_link") 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest$ac_exeext &&
21402 $as_test_x conftest$ac_exeext; then
21403 eval "$as_ac_Lib=yes"
21404 else
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 eval "$as_ac_Lib=no"
21411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21412 conftest$ac_exeext conftest.$ac_ext
21413 LIBS=$ac_check_lib_save_LIBS
21415 ac_res=`eval echo '${'$as_ac_Lib'}'`
21416 { echo "$as_me:$LINENO: result: $ac_res" >&5
21417 echo "${ECHO_T}$ac_res" >&6; }
21418 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21419 AST_ATAN2L_FOUND=yes
21420 else
21421 AST_ATAN2L_FOUND=no
21426 # now check for the header.
21427 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21428 ATAN2L_LIB="${pbxlibdir} -lm "
21429 # if --with-ATAN2L=DIR has been specified, use it.
21430 if test "x${ATAN2L_DIR}" != "x"; then
21431 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21433 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21434 if test "x" = "x" ; then # no header, assume found
21435 ATAN2L_HEADER_FOUND="1"
21436 else # check for the header
21437 saved_cppflags="${CPPFLAGS}"
21438 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE} "
21439 if test "${ac_cv_header_+set}" = set; then
21440 { echo "$as_me:$LINENO: checking for " >&5
21441 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21442 if test "${ac_cv_header_+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21446 echo "${ECHO_T}$ac_cv_header_" >&6; }
21447 else
21448 # Is the header compilable?
21449 { echo "$as_me:$LINENO: checking usability" >&5
21450 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21451 cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h. */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21457 $ac_includes_default
21458 #include <>
21459 _ACEOF
21460 rm -f conftest.$ac_objext
21461 if { (ac_try="$ac_compile"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21465 esac
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_compile") 2>conftest.er1
21468 ac_status=$?
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && {
21474 test -z "$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 } && test -s conftest.$ac_objext; then
21477 ac_header_compiler=yes
21478 else
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21482 ac_header_compiler=no
21485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21487 echo "${ECHO_T}$ac_header_compiler" >&6; }
21489 # Is the header present?
21490 { echo "$as_me:$LINENO: checking presence" >&5
21491 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h. */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21498 #include <>
21499 _ACEOF
21500 if { (ac_try="$ac_cpp conftest.$ac_ext"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21507 ac_status=$?
21508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } >/dev/null && {
21513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21514 test ! -s conftest.err
21515 }; then
21516 ac_header_preproc=yes
21517 else
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ac_header_preproc=no
21524 rm -f conftest.err conftest.$ac_ext
21525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21526 echo "${ECHO_T}$ac_header_preproc" >&6; }
21528 # So? What about this header?
21529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21530 yes:no: )
21531 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21532 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21534 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21535 ac_header_preproc=yes
21537 no:yes:* )
21538 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21539 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21540 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21541 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21542 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21543 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21544 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21545 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21546 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21547 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21549 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21550 ( cat <<\_ASBOX
21551 ## ------------------------------- ##
21552 ## Report this to www.asterisk.org ##
21553 ## ------------------------------- ##
21554 _ASBOX
21555 ) | sed "s/^/$as_me: WARNING: /" >&2
21557 esac
21558 { echo "$as_me:$LINENO: checking for " >&5
21559 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21560 if test "${ac_cv_header_+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 else
21563 ac_cv_header_=$ac_header_preproc
21565 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21566 echo "${ECHO_T}$ac_cv_header_" >&6; }
21569 if test $ac_cv_header_ = yes; then
21570 ATAN2L_HEADER_FOUND=1
21571 else
21572 ATAN2L_HEADER_FOUND=0
21576 CPPFLAGS="${saved_cppflags}"
21578 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
21579 ATAN2L_LIB=""
21580 ATAN2L_INCLUDE=""
21581 else
21582 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21583 ATAN2L_LIB=""
21585 PBX_ATAN2L=1
21586 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21588 cat >>confdefs.h <<_ACEOF
21589 #define HAVE_ATAN2L 1
21590 _ACEOF
21593 cat >>confdefs.h <<_ACEOF
21594 #define HAVE_ATAN2L_VERSION
21595 _ACEOF
21602 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
21603 pbxlibdir=""
21604 # if --with-POWL=DIR has been specified, use it.
21605 if test "x${POWL_DIR}" != "x"; then
21606 if test -d ${POWL_DIR}/lib; then
21607 pbxlibdir="-L${POWL_DIR}/lib"
21608 else
21609 pbxlibdir="-L${POWL_DIR}"
21612 pbxfuncname="powl"
21613 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21614 AST_POWL_FOUND=yes
21615 else
21616 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21617 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21618 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21619 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622 ac_check_lib_save_LIBS=$LIBS
21623 LIBS="-lm ${pbxlibdir} $LIBS"
21624 cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h. */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21631 /* Override any GCC internal prototype to avoid an error.
21632 Use char because int might match the return type of a GCC
21633 builtin and then its argument prototype would still apply. */
21634 #ifdef __cplusplus
21635 extern "C"
21636 #endif
21637 char ${pbxfuncname} ();
21639 main ()
21641 return ${pbxfuncname} ();
21643 return 0;
21645 _ACEOF
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (ac_try="$ac_link"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_link") 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && {
21660 test -z "$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21662 } && test -s conftest$ac_exeext &&
21663 $as_test_x conftest$ac_exeext; then
21664 eval "$as_ac_Lib=yes"
21665 else
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 eval "$as_ac_Lib=no"
21672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21673 conftest$ac_exeext conftest.$ac_ext
21674 LIBS=$ac_check_lib_save_LIBS
21676 ac_res=`eval echo '${'$as_ac_Lib'}'`
21677 { echo "$as_me:$LINENO: result: $ac_res" >&5
21678 echo "${ECHO_T}$ac_res" >&6; }
21679 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21680 AST_POWL_FOUND=yes
21681 else
21682 AST_POWL_FOUND=no
21687 # now check for the header.
21688 if test "${AST_POWL_FOUND}" = "yes"; then
21689 POWL_LIB="${pbxlibdir} -lm "
21690 # if --with-POWL=DIR has been specified, use it.
21691 if test "x${POWL_DIR}" != "x"; then
21692 POWL_INCLUDE="-I${POWL_DIR}/include"
21694 POWL_INCLUDE="${POWL_INCLUDE} "
21695 if test "x" = "x" ; then # no header, assume found
21696 POWL_HEADER_FOUND="1"
21697 else # check for the header
21698 saved_cppflags="${CPPFLAGS}"
21699 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE} "
21700 if test "${ac_cv_header_+set}" = set; then
21701 { echo "$as_me:$LINENO: checking for " >&5
21702 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21703 if test "${ac_cv_header_+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21707 echo "${ECHO_T}$ac_cv_header_" >&6; }
21708 else
21709 # Is the header compilable?
21710 { echo "$as_me:$LINENO: checking usability" >&5
21711 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 $ac_includes_default
21719 #include <>
21720 _ACEOF
21721 rm -f conftest.$ac_objext
21722 if { (ac_try="$ac_compile"
21723 case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21726 esac
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_compile") 2>conftest.er1
21729 ac_status=$?
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest.$ac_objext; then
21738 ac_header_compiler=yes
21739 else
21740 echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21743 ac_header_compiler=no
21746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21748 echo "${ECHO_T}$ac_header_compiler" >&6; }
21750 # Is the header present?
21751 { echo "$as_me:$LINENO: checking presence" >&5
21752 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21753 cat >conftest.$ac_ext <<_ACEOF
21754 /* confdefs.h. */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 #include <>
21760 _ACEOF
21761 if { (ac_try="$ac_cpp conftest.$ac_ext"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } >/dev/null && {
21774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 }; then
21777 ac_header_preproc=yes
21778 else
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 ac_header_preproc=no
21785 rm -f conftest.err conftest.$ac_ext
21786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21787 echo "${ECHO_T}$ac_header_preproc" >&6; }
21789 # So? What about this header?
21790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21791 yes:no: )
21792 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21793 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21795 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21796 ac_header_preproc=yes
21798 no:yes:* )
21799 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21800 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21802 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21804 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21806 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21808 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21810 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21811 ( cat <<\_ASBOX
21812 ## ------------------------------- ##
21813 ## Report this to www.asterisk.org ##
21814 ## ------------------------------- ##
21815 _ASBOX
21816 ) | sed "s/^/$as_me: WARNING: /" >&2
21818 esac
21819 { echo "$as_me:$LINENO: checking for " >&5
21820 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21821 if test "${ac_cv_header_+set}" = set; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21823 else
21824 ac_cv_header_=$ac_header_preproc
21826 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21827 echo "${ECHO_T}$ac_cv_header_" >&6; }
21830 if test $ac_cv_header_ = yes; then
21831 POWL_HEADER_FOUND=1
21832 else
21833 POWL_HEADER_FOUND=0
21837 CPPFLAGS="${saved_cppflags}"
21839 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
21840 POWL_LIB=""
21841 POWL_INCLUDE=""
21842 else
21843 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21844 POWL_LIB=""
21846 PBX_POWL=1
21847 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21849 cat >>confdefs.h <<_ACEOF
21850 #define HAVE_POWL 1
21851 _ACEOF
21854 cat >>confdefs.h <<_ACEOF
21855 #define HAVE_POWL_VERSION
21856 _ACEOF
21863 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
21864 pbxlibdir=""
21865 # if --with-SQRTL=DIR has been specified, use it.
21866 if test "x${SQRTL_DIR}" != "x"; then
21867 if test -d ${SQRTL_DIR}/lib; then
21868 pbxlibdir="-L${SQRTL_DIR}/lib"
21869 else
21870 pbxlibdir="-L${SQRTL_DIR}"
21873 pbxfuncname="sqrtl"
21874 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21875 AST_SQRTL_FOUND=yes
21876 else
21877 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21878 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21879 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21880 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883 ac_check_lib_save_LIBS=$LIBS
21884 LIBS="-lm ${pbxlibdir} $LIBS"
21885 cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h. */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21892 /* Override any GCC internal prototype to avoid an error.
21893 Use char because int might match the return type of a GCC
21894 builtin and then its argument prototype would still apply. */
21895 #ifdef __cplusplus
21896 extern "C"
21897 #endif
21898 char ${pbxfuncname} ();
21900 main ()
21902 return ${pbxfuncname} ();
21904 return 0;
21906 _ACEOF
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_link") 2>conftest.er1
21915 ac_status=$?
21916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } && {
21921 test -z "$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21923 } && test -s conftest$ac_exeext &&
21924 $as_test_x conftest$ac_exeext; then
21925 eval "$as_ac_Lib=yes"
21926 else
21927 echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 eval "$as_ac_Lib=no"
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21935 LIBS=$ac_check_lib_save_LIBS
21937 ac_res=`eval echo '${'$as_ac_Lib'}'`
21938 { echo "$as_me:$LINENO: result: $ac_res" >&5
21939 echo "${ECHO_T}$ac_res" >&6; }
21940 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21941 AST_SQRTL_FOUND=yes
21942 else
21943 AST_SQRTL_FOUND=no
21948 # now check for the header.
21949 if test "${AST_SQRTL_FOUND}" = "yes"; then
21950 SQRTL_LIB="${pbxlibdir} -lm "
21951 # if --with-SQRTL=DIR has been specified, use it.
21952 if test "x${SQRTL_DIR}" != "x"; then
21953 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
21955 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
21956 if test "x" = "x" ; then # no header, assume found
21957 SQRTL_HEADER_FOUND="1"
21958 else # check for the header
21959 saved_cppflags="${CPPFLAGS}"
21960 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE} "
21961 if test "${ac_cv_header_+set}" = set; then
21962 { echo "$as_me:$LINENO: checking for " >&5
21963 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21964 if test "${ac_cv_header_+set}" = set; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21968 echo "${ECHO_T}$ac_cv_header_" >&6; }
21969 else
21970 # Is the header compilable?
21971 { echo "$as_me:$LINENO: checking usability" >&5
21972 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21973 cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h. */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 $ac_includes_default
21980 #include <>
21981 _ACEOF
21982 rm -f conftest.$ac_objext
21983 if { (ac_try="$ac_compile"
21984 case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21987 esac
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_compile") 2>conftest.er1
21990 ac_status=$?
21991 grep -v '^ *+' conftest.er1 >conftest.err
21992 rm -f conftest.er1
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } && {
21996 test -z "$ac_c_werror_flag" ||
21997 test ! -s conftest.err
21998 } && test -s conftest.$ac_objext; then
21999 ac_header_compiler=yes
22000 else
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_header_compiler=no
22007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22009 echo "${ECHO_T}$ac_header_compiler" >&6; }
22011 # Is the header present?
22012 { echo "$as_me:$LINENO: checking presence" >&5
22013 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22014 cat >conftest.$ac_ext <<_ACEOF
22015 /* confdefs.h. */
22016 _ACEOF
22017 cat confdefs.h >>conftest.$ac_ext
22018 cat >>conftest.$ac_ext <<_ACEOF
22019 /* end confdefs.h. */
22020 #include <>
22021 _ACEOF
22022 if { (ac_try="$ac_cpp conftest.$ac_ext"
22023 case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026 esac
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22029 ac_status=$?
22030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } >/dev/null && {
22035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22036 test ! -s conftest.err
22037 }; then
22038 ac_header_preproc=yes
22039 else
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 ac_header_preproc=no
22046 rm -f conftest.err conftest.$ac_ext
22047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22048 echo "${ECHO_T}$ac_header_preproc" >&6; }
22050 # So? What about this header?
22051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22052 yes:no: )
22053 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22054 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22055 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22056 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22057 ac_header_preproc=yes
22059 no:yes:* )
22060 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22061 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22062 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22063 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22064 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22065 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22066 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22067 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22069 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22070 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22071 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22072 ( cat <<\_ASBOX
22073 ## ------------------------------- ##
22074 ## Report this to www.asterisk.org ##
22075 ## ------------------------------- ##
22076 _ASBOX
22077 ) | sed "s/^/$as_me: WARNING: /" >&2
22079 esac
22080 { echo "$as_me:$LINENO: checking for " >&5
22081 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22082 if test "${ac_cv_header_+set}" = set; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22084 else
22085 ac_cv_header_=$ac_header_preproc
22087 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22088 echo "${ECHO_T}$ac_cv_header_" >&6; }
22091 if test $ac_cv_header_ = yes; then
22092 SQRTL_HEADER_FOUND=1
22093 else
22094 SQRTL_HEADER_FOUND=0
22098 CPPFLAGS="${saved_cppflags}"
22100 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22101 SQRTL_LIB=""
22102 SQRTL_INCLUDE=""
22103 else
22104 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22105 SQRTL_LIB=""
22107 PBX_SQRTL=1
22108 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22110 cat >>confdefs.h <<_ACEOF
22111 #define HAVE_SQRTL 1
22112 _ACEOF
22115 cat >>confdefs.h <<_ACEOF
22116 #define HAVE_SQRTL_VERSION
22117 _ACEOF
22124 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22125 pbxlibdir=""
22126 # if --with-RINTL=DIR has been specified, use it.
22127 if test "x${RINTL_DIR}" != "x"; then
22128 if test -d ${RINTL_DIR}/lib; then
22129 pbxlibdir="-L${RINTL_DIR}/lib"
22130 else
22131 pbxlibdir="-L${RINTL_DIR}"
22134 pbxfuncname="rintl"
22135 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22136 AST_RINTL_FOUND=yes
22137 else
22138 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22139 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22140 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22141 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 else
22144 ac_check_lib_save_LIBS=$LIBS
22145 LIBS="-lm ${pbxlibdir} $LIBS"
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22153 /* Override any GCC internal prototype to avoid an error.
22154 Use char because int might match the return type of a GCC
22155 builtin and then its argument prototype would still apply. */
22156 #ifdef __cplusplus
22157 extern "C"
22158 #endif
22159 char ${pbxfuncname} ();
22161 main ()
22163 return ${pbxfuncname} ();
22165 return 0;
22167 _ACEOF
22168 rm -f conftest.$ac_objext conftest$ac_exeext
22169 if { (ac_try="$ac_link"
22170 case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22173 esac
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175 (eval "$ac_link") 2>conftest.er1
22176 ac_status=$?
22177 grep -v '^ *+' conftest.er1 >conftest.err
22178 rm -f conftest.er1
22179 cat conftest.err >&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); } && {
22182 test -z "$ac_c_werror_flag" ||
22183 test ! -s conftest.err
22184 } && test -s conftest$ac_exeext &&
22185 $as_test_x conftest$ac_exeext; then
22186 eval "$as_ac_Lib=yes"
22187 else
22188 echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22191 eval "$as_ac_Lib=no"
22194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22195 conftest$ac_exeext conftest.$ac_ext
22196 LIBS=$ac_check_lib_save_LIBS
22198 ac_res=`eval echo '${'$as_ac_Lib'}'`
22199 { echo "$as_me:$LINENO: result: $ac_res" >&5
22200 echo "${ECHO_T}$ac_res" >&6; }
22201 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22202 AST_RINTL_FOUND=yes
22203 else
22204 AST_RINTL_FOUND=no
22209 # now check for the header.
22210 if test "${AST_RINTL_FOUND}" = "yes"; then
22211 RINTL_LIB="${pbxlibdir} -lm "
22212 # if --with-RINTL=DIR has been specified, use it.
22213 if test "x${RINTL_DIR}" != "x"; then
22214 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22216 RINTL_INCLUDE="${RINTL_INCLUDE} "
22217 if test "x" = "x" ; then # no header, assume found
22218 RINTL_HEADER_FOUND="1"
22219 else # check for the header
22220 saved_cppflags="${CPPFLAGS}"
22221 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE} "
22222 if test "${ac_cv_header_+set}" = set; then
22223 { echo "$as_me:$LINENO: checking for " >&5
22224 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22225 if test "${ac_cv_header_+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22229 echo "${ECHO_T}$ac_cv_header_" >&6; }
22230 else
22231 # Is the header compilable?
22232 { echo "$as_me:$LINENO: checking usability" >&5
22233 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22234 cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h. */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240 $ac_includes_default
22241 #include <>
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (ac_try="$ac_compile"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_compile") 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest.$ac_objext; then
22260 ac_header_compiler=yes
22261 else
22262 echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 ac_header_compiler=no
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22270 echo "${ECHO_T}$ac_header_compiler" >&6; }
22272 # Is the header present?
22273 { echo "$as_me:$LINENO: checking presence" >&5
22274 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h. */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include <>
22282 _ACEOF
22283 if { (ac_try="$ac_cpp conftest.$ac_ext"
22284 case "(($ac_try" in
22285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286 *) ac_try_echo=$ac_try;;
22287 esac
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22290 ac_status=$?
22291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } >/dev/null && {
22296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22297 test ! -s conftest.err
22298 }; then
22299 ac_header_preproc=yes
22300 else
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 ac_header_preproc=no
22307 rm -f conftest.err conftest.$ac_ext
22308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22309 echo "${ECHO_T}$ac_header_preproc" >&6; }
22311 # So? What about this header?
22312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22313 yes:no: )
22314 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22315 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22316 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22317 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22318 ac_header_preproc=yes
22320 no:yes:* )
22321 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22322 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22323 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22324 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22325 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22326 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22327 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22328 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22329 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22330 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22331 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22332 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22333 ( cat <<\_ASBOX
22334 ## ------------------------------- ##
22335 ## Report this to www.asterisk.org ##
22336 ## ------------------------------- ##
22337 _ASBOX
22338 ) | sed "s/^/$as_me: WARNING: /" >&2
22340 esac
22341 { echo "$as_me:$LINENO: checking for " >&5
22342 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22343 if test "${ac_cv_header_+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346 ac_cv_header_=$ac_header_preproc
22348 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22349 echo "${ECHO_T}$ac_cv_header_" >&6; }
22352 if test $ac_cv_header_ = yes; then
22353 RINTL_HEADER_FOUND=1
22354 else
22355 RINTL_HEADER_FOUND=0
22359 CPPFLAGS="${saved_cppflags}"
22361 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22362 RINTL_LIB=""
22363 RINTL_INCLUDE=""
22364 else
22365 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22366 RINTL_LIB=""
22368 PBX_RINTL=1
22369 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22371 cat >>confdefs.h <<_ACEOF
22372 #define HAVE_RINTL 1
22373 _ACEOF
22376 cat >>confdefs.h <<_ACEOF
22377 #define HAVE_RINTL_VERSION
22378 _ACEOF
22385 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22386 pbxlibdir=""
22387 # if --with-EXPL=DIR has been specified, use it.
22388 if test "x${EXPL_DIR}" != "x"; then
22389 if test -d ${EXPL_DIR}/lib; then
22390 pbxlibdir="-L${EXPL_DIR}/lib"
22391 else
22392 pbxlibdir="-L${EXPL_DIR}"
22395 pbxfuncname="expl"
22396 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22397 AST_EXPL_FOUND=yes
22398 else
22399 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22400 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22401 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22402 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 else
22405 ac_check_lib_save_LIBS=$LIBS
22406 LIBS="-lm ${pbxlibdir} $LIBS"
22407 cat >conftest.$ac_ext <<_ACEOF
22408 /* confdefs.h. */
22409 _ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22414 /* Override any GCC internal prototype to avoid an error.
22415 Use char because int might match the return type of a GCC
22416 builtin and then its argument prototype would still apply. */
22417 #ifdef __cplusplus
22418 extern "C"
22419 #endif
22420 char ${pbxfuncname} ();
22422 main ()
22424 return ${pbxfuncname} ();
22426 return 0;
22428 _ACEOF
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (ac_try="$ac_link"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434 esac
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_link") 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && {
22443 test -z "$ac_c_werror_flag" ||
22444 test ! -s conftest.err
22445 } && test -s conftest$ac_exeext &&
22446 $as_test_x conftest$ac_exeext; then
22447 eval "$as_ac_Lib=yes"
22448 else
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 eval "$as_ac_Lib=no"
22455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22456 conftest$ac_exeext conftest.$ac_ext
22457 LIBS=$ac_check_lib_save_LIBS
22459 ac_res=`eval echo '${'$as_ac_Lib'}'`
22460 { echo "$as_me:$LINENO: result: $ac_res" >&5
22461 echo "${ECHO_T}$ac_res" >&6; }
22462 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22463 AST_EXPL_FOUND=yes
22464 else
22465 AST_EXPL_FOUND=no
22470 # now check for the header.
22471 if test "${AST_EXPL_FOUND}" = "yes"; then
22472 EXPL_LIB="${pbxlibdir} -lm "
22473 # if --with-EXPL=DIR has been specified, use it.
22474 if test "x${EXPL_DIR}" != "x"; then
22475 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22477 EXPL_INCLUDE="${EXPL_INCLUDE} "
22478 if test "x" = "x" ; then # no header, assume found
22479 EXPL_HEADER_FOUND="1"
22480 else # check for the header
22481 saved_cppflags="${CPPFLAGS}"
22482 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE} "
22483 if test "${ac_cv_header_+set}" = set; then
22484 { echo "$as_me:$LINENO: checking for " >&5
22485 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22486 if test "${ac_cv_header_+set}" = set; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22490 echo "${ECHO_T}$ac_cv_header_" >&6; }
22491 else
22492 # Is the header compilable?
22493 { echo "$as_me:$LINENO: checking usability" >&5
22494 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 $ac_includes_default
22502 #include <>
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (ac_try="$ac_compile"
22506 case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22509 esac
22510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_compile") 2>conftest.er1
22512 ac_status=$?
22513 grep -v '^ *+' conftest.er1 >conftest.err
22514 rm -f conftest.er1
22515 cat conftest.err >&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } && {
22518 test -z "$ac_c_werror_flag" ||
22519 test ! -s conftest.err
22520 } && test -s conftest.$ac_objext; then
22521 ac_header_compiler=yes
22522 else
22523 echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22526 ac_header_compiler=no
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22531 echo "${ECHO_T}$ac_header_compiler" >&6; }
22533 # Is the header present?
22534 { echo "$as_me:$LINENO: checking presence" >&5
22535 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22536 cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h. */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22542 #include <>
22543 _ACEOF
22544 if { (ac_try="$ac_cpp conftest.$ac_ext"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22548 esac
22549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22551 ac_status=$?
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } >/dev/null && {
22557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22558 test ! -s conftest.err
22559 }; then
22560 ac_header_preproc=yes
22561 else
22562 echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22565 ac_header_preproc=no
22568 rm -f conftest.err conftest.$ac_ext
22569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22570 echo "${ECHO_T}$ac_header_preproc" >&6; }
22572 # So? What about this header?
22573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22574 yes:no: )
22575 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22576 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22577 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22578 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22579 ac_header_preproc=yes
22581 no:yes:* )
22582 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22583 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22584 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22585 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22586 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22587 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22588 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22589 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22591 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22592 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22593 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22594 ( cat <<\_ASBOX
22595 ## ------------------------------- ##
22596 ## Report this to www.asterisk.org ##
22597 ## ------------------------------- ##
22598 _ASBOX
22599 ) | sed "s/^/$as_me: WARNING: /" >&2
22601 esac
22602 { echo "$as_me:$LINENO: checking for " >&5
22603 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22604 if test "${ac_cv_header_+set}" = set; then
22605 echo $ECHO_N "(cached) $ECHO_C" >&6
22606 else
22607 ac_cv_header_=$ac_header_preproc
22609 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22610 echo "${ECHO_T}$ac_cv_header_" >&6; }
22613 if test $ac_cv_header_ = yes; then
22614 EXPL_HEADER_FOUND=1
22615 else
22616 EXPL_HEADER_FOUND=0
22620 CPPFLAGS="${saved_cppflags}"
22622 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
22623 EXPL_LIB=""
22624 EXPL_INCLUDE=""
22625 else
22626 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22627 EXPL_LIB=""
22629 PBX_EXPL=1
22630 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_EXPL 1
22634 _ACEOF
22637 cat >>confdefs.h <<_ACEOF
22638 #define HAVE_EXPL_VERSION
22639 _ACEOF
22646 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
22647 pbxlibdir=""
22648 # if --with-LOGL=DIR has been specified, use it.
22649 if test "x${LOGL_DIR}" != "x"; then
22650 if test -d ${LOGL_DIR}/lib; then
22651 pbxlibdir="-L${LOGL_DIR}/lib"
22652 else
22653 pbxlibdir="-L${LOGL_DIR}"
22656 pbxfuncname="logl"
22657 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22658 AST_LOGL_FOUND=yes
22659 else
22660 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22661 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22662 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22663 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 else
22666 ac_check_lib_save_LIBS=$LIBS
22667 LIBS="-lm ${pbxlibdir} $LIBS"
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22675 /* Override any GCC internal prototype to avoid an error.
22676 Use char because int might match the return type of a GCC
22677 builtin and then its argument prototype would still apply. */
22678 #ifdef __cplusplus
22679 extern "C"
22680 #endif
22681 char ${pbxfuncname} ();
22683 main ()
22685 return ${pbxfuncname} ();
22687 return 0;
22689 _ACEOF
22690 rm -f conftest.$ac_objext conftest$ac_exeext
22691 if { (ac_try="$ac_link"
22692 case "(($ac_try" in
22693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22694 *) ac_try_echo=$ac_try;;
22695 esac
22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22697 (eval "$ac_link") 2>conftest.er1
22698 ac_status=$?
22699 grep -v '^ *+' conftest.er1 >conftest.err
22700 rm -f conftest.er1
22701 cat conftest.err >&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } && {
22704 test -z "$ac_c_werror_flag" ||
22705 test ! -s conftest.err
22706 } && test -s conftest$ac_exeext &&
22707 $as_test_x conftest$ac_exeext; then
22708 eval "$as_ac_Lib=yes"
22709 else
22710 echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22713 eval "$as_ac_Lib=no"
22716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22717 conftest$ac_exeext conftest.$ac_ext
22718 LIBS=$ac_check_lib_save_LIBS
22720 ac_res=`eval echo '${'$as_ac_Lib'}'`
22721 { echo "$as_me:$LINENO: result: $ac_res" >&5
22722 echo "${ECHO_T}$ac_res" >&6; }
22723 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22724 AST_LOGL_FOUND=yes
22725 else
22726 AST_LOGL_FOUND=no
22731 # now check for the header.
22732 if test "${AST_LOGL_FOUND}" = "yes"; then
22733 LOGL_LIB="${pbxlibdir} -lm "
22734 # if --with-LOGL=DIR has been specified, use it.
22735 if test "x${LOGL_DIR}" != "x"; then
22736 LOGL_INCLUDE="-I${LOGL_DIR}/include"
22738 LOGL_INCLUDE="${LOGL_INCLUDE} "
22739 if test "x" = "x" ; then # no header, assume found
22740 LOGL_HEADER_FOUND="1"
22741 else # check for the header
22742 saved_cppflags="${CPPFLAGS}"
22743 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE} "
22744 if test "${ac_cv_header_+set}" = set; then
22745 { echo "$as_me:$LINENO: checking for " >&5
22746 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22747 if test "${ac_cv_header_+set}" = set; then
22748 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22751 echo "${ECHO_T}$ac_cv_header_" >&6; }
22752 else
22753 # Is the header compilable?
22754 { echo "$as_me:$LINENO: checking usability" >&5
22755 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22756 cat >conftest.$ac_ext <<_ACEOF
22757 /* confdefs.h. */
22758 _ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22762 $ac_includes_default
22763 #include <>
22764 _ACEOF
22765 rm -f conftest.$ac_objext
22766 if { (ac_try="$ac_compile"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_compile") 2>conftest.er1
22773 ac_status=$?
22774 grep -v '^ *+' conftest.er1 >conftest.err
22775 rm -f conftest.er1
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } && {
22779 test -z "$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 } && test -s conftest.$ac_objext; then
22782 ac_header_compiler=yes
22783 else
22784 echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22787 ac_header_compiler=no
22790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22792 echo "${ECHO_T}$ac_header_compiler" >&6; }
22794 # Is the header present?
22795 { echo "$as_me:$LINENO: checking presence" >&5
22796 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h. */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803 #include <>
22804 _ACEOF
22805 if { (ac_try="$ac_cpp conftest.$ac_ext"
22806 case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22809 esac
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22812 ac_status=$?
22813 grep -v '^ *+' conftest.er1 >conftest.err
22814 rm -f conftest.er1
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } >/dev/null && {
22818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 }; then
22821 ac_header_preproc=yes
22822 else
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ac_header_preproc=no
22829 rm -f conftest.err conftest.$ac_ext
22830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22831 echo "${ECHO_T}$ac_header_preproc" >&6; }
22833 # So? What about this header?
22834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22835 yes:no: )
22836 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22837 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22838 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22839 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22840 ac_header_preproc=yes
22842 no:yes:* )
22843 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22844 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22845 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22846 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22847 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22848 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22849 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22850 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22851 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22852 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22853 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22854 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22855 ( cat <<\_ASBOX
22856 ## ------------------------------- ##
22857 ## Report this to www.asterisk.org ##
22858 ## ------------------------------- ##
22859 _ASBOX
22860 ) | sed "s/^/$as_me: WARNING: /" >&2
22862 esac
22863 { echo "$as_me:$LINENO: checking for " >&5
22864 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22865 if test "${ac_cv_header_+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868 ac_cv_header_=$ac_header_preproc
22870 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22871 echo "${ECHO_T}$ac_cv_header_" >&6; }
22874 if test $ac_cv_header_ = yes; then
22875 LOGL_HEADER_FOUND=1
22876 else
22877 LOGL_HEADER_FOUND=0
22881 CPPFLAGS="${saved_cppflags}"
22883 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
22884 LOGL_LIB=""
22885 LOGL_INCLUDE=""
22886 else
22887 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22888 LOGL_LIB=""
22890 PBX_LOGL=1
22891 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22893 cat >>confdefs.h <<_ACEOF
22894 #define HAVE_LOGL 1
22895 _ACEOF
22898 cat >>confdefs.h <<_ACEOF
22899 #define HAVE_LOGL_VERSION
22900 _ACEOF
22907 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
22908 pbxlibdir=""
22909 # if --with-REMAINDERL=DIR has been specified, use it.
22910 if test "x${REMAINDERL_DIR}" != "x"; then
22911 if test -d ${REMAINDERL_DIR}/lib; then
22912 pbxlibdir="-L${REMAINDERL_DIR}/lib"
22913 else
22914 pbxlibdir="-L${REMAINDERL_DIR}"
22917 pbxfuncname="remainderl"
22918 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22919 AST_REMAINDERL_FOUND=yes
22920 else
22921 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22922 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22923 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22924 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927 ac_check_lib_save_LIBS=$LIBS
22928 LIBS="-lm ${pbxlibdir} $LIBS"
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h. */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22936 /* Override any GCC internal prototype to avoid an error.
22937 Use char because int might match the return type of a GCC
22938 builtin and then its argument prototype would still apply. */
22939 #ifdef __cplusplus
22940 extern "C"
22941 #endif
22942 char ${pbxfuncname} ();
22944 main ()
22946 return ${pbxfuncname} ();
22948 return 0;
22950 _ACEOF
22951 rm -f conftest.$ac_objext conftest$ac_exeext
22952 if { (ac_try="$ac_link"
22953 case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22956 esac
22957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22958 (eval "$ac_link") 2>conftest.er1
22959 ac_status=$?
22960 grep -v '^ *+' conftest.er1 >conftest.err
22961 rm -f conftest.er1
22962 cat conftest.err >&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } && {
22965 test -z "$ac_c_werror_flag" ||
22966 test ! -s conftest.err
22967 } && test -s conftest$ac_exeext &&
22968 $as_test_x conftest$ac_exeext; then
22969 eval "$as_ac_Lib=yes"
22970 else
22971 echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22974 eval "$as_ac_Lib=no"
22977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22978 conftest$ac_exeext conftest.$ac_ext
22979 LIBS=$ac_check_lib_save_LIBS
22981 ac_res=`eval echo '${'$as_ac_Lib'}'`
22982 { echo "$as_me:$LINENO: result: $ac_res" >&5
22983 echo "${ECHO_T}$ac_res" >&6; }
22984 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22985 AST_REMAINDERL_FOUND=yes
22986 else
22987 AST_REMAINDERL_FOUND=no
22992 # now check for the header.
22993 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
22994 REMAINDERL_LIB="${pbxlibdir} -lm "
22995 # if --with-REMAINDERL=DIR has been specified, use it.
22996 if test "x${REMAINDERL_DIR}" != "x"; then
22997 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
22999 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
23000 if test "x" = "x" ; then # no header, assume found
23001 REMAINDERL_HEADER_FOUND="1"
23002 else # check for the header
23003 saved_cppflags="${CPPFLAGS}"
23004 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE} "
23005 if test "${ac_cv_header_+set}" = set; then
23006 { echo "$as_me:$LINENO: checking for " >&5
23007 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23008 if test "${ac_cv_header_+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23011 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23012 echo "${ECHO_T}$ac_cv_header_" >&6; }
23013 else
23014 # Is the header compilable?
23015 { echo "$as_me:$LINENO: checking usability" >&5
23016 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23017 cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h. */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23023 $ac_includes_default
23024 #include <>
23025 _ACEOF
23026 rm -f conftest.$ac_objext
23027 if { (ac_try="$ac_compile"
23028 case "(($ac_try" in
23029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030 *) ac_try_echo=$ac_try;;
23031 esac
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033 (eval "$ac_compile") 2>conftest.er1
23034 ac_status=$?
23035 grep -v '^ *+' conftest.er1 >conftest.err
23036 rm -f conftest.er1
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } && {
23040 test -z "$ac_c_werror_flag" ||
23041 test ! -s conftest.err
23042 } && test -s conftest.$ac_objext; then
23043 ac_header_compiler=yes
23044 else
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23048 ac_header_compiler=no
23051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23053 echo "${ECHO_T}$ac_header_compiler" >&6; }
23055 # Is the header present?
23056 { echo "$as_me:$LINENO: checking presence" >&5
23057 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23058 cat >conftest.$ac_ext <<_ACEOF
23059 /* confdefs.h. */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 #include <>
23065 _ACEOF
23066 if { (ac_try="$ac_cpp conftest.$ac_ext"
23067 case "(($ac_try" in
23068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069 *) ac_try_echo=$ac_try;;
23070 esac
23071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23073 ac_status=$?
23074 grep -v '^ *+' conftest.er1 >conftest.err
23075 rm -f conftest.er1
23076 cat conftest.err >&5
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } >/dev/null && {
23079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23080 test ! -s conftest.err
23081 }; then
23082 ac_header_preproc=yes
23083 else
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 ac_header_preproc=no
23090 rm -f conftest.err conftest.$ac_ext
23091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23092 echo "${ECHO_T}$ac_header_preproc" >&6; }
23094 # So? What about this header?
23095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23096 yes:no: )
23097 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23098 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23099 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23100 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23101 ac_header_preproc=yes
23103 no:yes:* )
23104 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23105 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23107 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23108 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23109 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23110 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23111 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23112 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23113 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23114 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23115 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23116 ( cat <<\_ASBOX
23117 ## ------------------------------- ##
23118 ## Report this to www.asterisk.org ##
23119 ## ------------------------------- ##
23120 _ASBOX
23121 ) | sed "s/^/$as_me: WARNING: /" >&2
23123 esac
23124 { echo "$as_me:$LINENO: checking for " >&5
23125 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23126 if test "${ac_cv_header_+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23128 else
23129 ac_cv_header_=$ac_header_preproc
23131 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23132 echo "${ECHO_T}$ac_cv_header_" >&6; }
23135 if test $ac_cv_header_ = yes; then
23136 REMAINDERL_HEADER_FOUND=1
23137 else
23138 REMAINDERL_HEADER_FOUND=0
23142 CPPFLAGS="${saved_cppflags}"
23144 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23145 REMAINDERL_LIB=""
23146 REMAINDERL_INCLUDE=""
23147 else
23148 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23149 REMAINDERL_LIB=""
23151 PBX_REMAINDERL=1
23152 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23154 cat >>confdefs.h <<_ACEOF
23155 #define HAVE_REMAINDERL 1
23156 _ACEOF
23159 cat >>confdefs.h <<_ACEOF
23160 #define HAVE_REMAINDERL_VERSION
23161 _ACEOF
23168 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23169 pbxlibdir=""
23170 # if --with-FMODL=DIR has been specified, use it.
23171 if test "x${FMODL_DIR}" != "x"; then
23172 if test -d ${FMODL_DIR}/lib; then
23173 pbxlibdir="-L${FMODL_DIR}/lib"
23174 else
23175 pbxlibdir="-L${FMODL_DIR}"
23178 pbxfuncname="fmodl"
23179 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23180 AST_FMODL_FOUND=yes
23181 else
23182 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23183 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23184 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23185 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188 ac_check_lib_save_LIBS=$LIBS
23189 LIBS="-lm ${pbxlibdir} $LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h. */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23197 /* Override any GCC internal prototype to avoid an error.
23198 Use char because int might match the return type of a GCC
23199 builtin and then its argument prototype would still apply. */
23200 #ifdef __cplusplus
23201 extern "C"
23202 #endif
23203 char ${pbxfuncname} ();
23205 main ()
23207 return ${pbxfuncname} ();
23209 return 0;
23211 _ACEOF
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216 *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219 (eval "$ac_link") 2>conftest.er1
23220 ac_status=$?
23221 grep -v '^ *+' conftest.er1 >conftest.err
23222 rm -f conftest.er1
23223 cat conftest.err >&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); } && {
23226 test -z "$ac_c_werror_flag" ||
23227 test ! -s conftest.err
23228 } && test -s conftest$ac_exeext &&
23229 $as_test_x conftest$ac_exeext; then
23230 eval "$as_ac_Lib=yes"
23231 else
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 eval "$as_ac_Lib=no"
23238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23239 conftest$ac_exeext conftest.$ac_ext
23240 LIBS=$ac_check_lib_save_LIBS
23242 ac_res=`eval echo '${'$as_ac_Lib'}'`
23243 { echo "$as_me:$LINENO: result: $ac_res" >&5
23244 echo "${ECHO_T}$ac_res" >&6; }
23245 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23246 AST_FMODL_FOUND=yes
23247 else
23248 AST_FMODL_FOUND=no
23253 # now check for the header.
23254 if test "${AST_FMODL_FOUND}" = "yes"; then
23255 FMODL_LIB="${pbxlibdir} -lm "
23256 # if --with-FMODL=DIR has been specified, use it.
23257 if test "x${FMODL_DIR}" != "x"; then
23258 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23260 FMODL_INCLUDE="${FMODL_INCLUDE} "
23261 if test "x" = "x" ; then # no header, assume found
23262 FMODL_HEADER_FOUND="1"
23263 else # check for the header
23264 saved_cppflags="${CPPFLAGS}"
23265 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE} "
23266 if test "${ac_cv_header_+set}" = set; then
23267 { echo "$as_me:$LINENO: checking for " >&5
23268 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23269 if test "${ac_cv_header_+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23273 echo "${ECHO_T}$ac_cv_header_" >&6; }
23274 else
23275 # Is the header compilable?
23276 { echo "$as_me:$LINENO: checking usability" >&5
23277 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23278 cat >conftest.$ac_ext <<_ACEOF
23279 /* confdefs.h. */
23280 _ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h. */
23284 $ac_includes_default
23285 #include <>
23286 _ACEOF
23287 rm -f conftest.$ac_objext
23288 if { (ac_try="$ac_compile"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23292 esac
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294 (eval "$ac_compile") 2>conftest.er1
23295 ac_status=$?
23296 grep -v '^ *+' conftest.er1 >conftest.err
23297 rm -f conftest.er1
23298 cat conftest.err >&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } && {
23301 test -z "$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23303 } && test -s conftest.$ac_objext; then
23304 ac_header_compiler=yes
23305 else
23306 echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_header_compiler=no
23312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23314 echo "${ECHO_T}$ac_header_compiler" >&6; }
23316 # Is the header present?
23317 { echo "$as_me:$LINENO: checking presence" >&5
23318 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h. */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 #include <>
23326 _ACEOF
23327 if { (ac_try="$ac_cpp conftest.$ac_ext"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331 esac
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23334 ac_status=$?
23335 grep -v '^ *+' conftest.er1 >conftest.err
23336 rm -f conftest.er1
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } >/dev/null && {
23340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23341 test ! -s conftest.err
23342 }; then
23343 ac_header_preproc=yes
23344 else
23345 echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 ac_header_preproc=no
23351 rm -f conftest.err conftest.$ac_ext
23352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23353 echo "${ECHO_T}$ac_header_preproc" >&6; }
23355 # So? What about this header?
23356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23357 yes:no: )
23358 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23359 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23360 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23361 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23362 ac_header_preproc=yes
23364 no:yes:* )
23365 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23366 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23367 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23368 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23369 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23370 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23371 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23372 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23373 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23374 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23375 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23376 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23377 ( cat <<\_ASBOX
23378 ## ------------------------------- ##
23379 ## Report this to www.asterisk.org ##
23380 ## ------------------------------- ##
23381 _ASBOX
23382 ) | sed "s/^/$as_me: WARNING: /" >&2
23384 esac
23385 { echo "$as_me:$LINENO: checking for " >&5
23386 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23387 if test "${ac_cv_header_+set}" = set; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390 ac_cv_header_=$ac_header_preproc
23392 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23393 echo "${ECHO_T}$ac_cv_header_" >&6; }
23396 if test $ac_cv_header_ = yes; then
23397 FMODL_HEADER_FOUND=1
23398 else
23399 FMODL_HEADER_FOUND=0
23403 CPPFLAGS="${saved_cppflags}"
23405 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23406 FMODL_LIB=""
23407 FMODL_INCLUDE=""
23408 else
23409 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23410 FMODL_LIB=""
23412 PBX_FMODL=1
23413 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23415 cat >>confdefs.h <<_ACEOF
23416 #define HAVE_FMODL 1
23417 _ACEOF
23420 cat >>confdefs.h <<_ACEOF
23421 #define HAVE_FMODL_VERSION
23422 _ACEOF
23429 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23430 pbxlibdir=""
23431 # if --with-ROUNDL=DIR has been specified, use it.
23432 if test "x${ROUNDL_DIR}" != "x"; then
23433 if test -d ${ROUNDL_DIR}/lib; then
23434 pbxlibdir="-L${ROUNDL_DIR}/lib"
23435 else
23436 pbxlibdir="-L${ROUNDL_DIR}"
23439 pbxfuncname="roundl"
23440 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23441 AST_ROUNDL_FOUND=yes
23442 else
23443 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23444 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23445 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23446 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449 ac_check_lib_save_LIBS=$LIBS
23450 LIBS="-lm ${pbxlibdir} $LIBS"
23451 cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h. */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23458 /* Override any GCC internal prototype to avoid an error.
23459 Use char because int might match the return type of a GCC
23460 builtin and then its argument prototype would still apply. */
23461 #ifdef __cplusplus
23462 extern "C"
23463 #endif
23464 char ${pbxfuncname} ();
23466 main ()
23468 return ${pbxfuncname} ();
23470 return 0;
23472 _ACEOF
23473 rm -f conftest.$ac_objext conftest$ac_exeext
23474 if { (ac_try="$ac_link"
23475 case "(($ac_try" in
23476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477 *) ac_try_echo=$ac_try;;
23478 esac
23479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480 (eval "$ac_link") 2>conftest.er1
23481 ac_status=$?
23482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } && {
23487 test -z "$ac_c_werror_flag" ||
23488 test ! -s conftest.err
23489 } && test -s conftest$ac_exeext &&
23490 $as_test_x conftest$ac_exeext; then
23491 eval "$as_ac_Lib=yes"
23492 else
23493 echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23496 eval "$as_ac_Lib=no"
23499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23500 conftest$ac_exeext conftest.$ac_ext
23501 LIBS=$ac_check_lib_save_LIBS
23503 ac_res=`eval echo '${'$as_ac_Lib'}'`
23504 { echo "$as_me:$LINENO: result: $ac_res" >&5
23505 echo "${ECHO_T}$ac_res" >&6; }
23506 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23507 AST_ROUNDL_FOUND=yes
23508 else
23509 AST_ROUNDL_FOUND=no
23514 # now check for the header.
23515 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23516 ROUNDL_LIB="${pbxlibdir} -lm "
23517 # if --with-ROUNDL=DIR has been specified, use it.
23518 if test "x${ROUNDL_DIR}" != "x"; then
23519 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23521 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23522 if test "x" = "x" ; then # no header, assume found
23523 ROUNDL_HEADER_FOUND="1"
23524 else # check for the header
23525 saved_cppflags="${CPPFLAGS}"
23526 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE} "
23527 if test "${ac_cv_header_+set}" = set; then
23528 { echo "$as_me:$LINENO: checking for " >&5
23529 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23530 if test "${ac_cv_header_+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23534 echo "${ECHO_T}$ac_cv_header_" >&6; }
23535 else
23536 # Is the header compilable?
23537 { echo "$as_me:$LINENO: checking usability" >&5
23538 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23539 cat >conftest.$ac_ext <<_ACEOF
23540 /* confdefs.h. */
23541 _ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h. */
23545 $ac_includes_default
23546 #include <>
23547 _ACEOF
23548 rm -f conftest.$ac_objext
23549 if { (ac_try="$ac_compile"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23553 esac
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_compile") 2>conftest.er1
23556 ac_status=$?
23557 grep -v '^ *+' conftest.er1 >conftest.err
23558 rm -f conftest.er1
23559 cat conftest.err >&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } && {
23562 test -z "$ac_c_werror_flag" ||
23563 test ! -s conftest.err
23564 } && test -s conftest.$ac_objext; then
23565 ac_header_compiler=yes
23566 else
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 ac_header_compiler=no
23573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23575 echo "${ECHO_T}$ac_header_compiler" >&6; }
23577 # Is the header present?
23578 { echo "$as_me:$LINENO: checking presence" >&5
23579 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23580 cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h. */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 #include <>
23587 _ACEOF
23588 if { (ac_try="$ac_cpp conftest.$ac_ext"
23589 case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23595 ac_status=$?
23596 grep -v '^ *+' conftest.er1 >conftest.err
23597 rm -f conftest.er1
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } >/dev/null && {
23601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 }; then
23604 ac_header_preproc=yes
23605 else
23606 echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23609 ac_header_preproc=no
23612 rm -f conftest.err conftest.$ac_ext
23613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23614 echo "${ECHO_T}$ac_header_preproc" >&6; }
23616 # So? What about this header?
23617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23618 yes:no: )
23619 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23620 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23621 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23622 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23623 ac_header_preproc=yes
23625 no:yes:* )
23626 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23627 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23628 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23629 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23630 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23631 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23632 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23633 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23634 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23635 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23636 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23637 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23638 ( cat <<\_ASBOX
23639 ## ------------------------------- ##
23640 ## Report this to www.asterisk.org ##
23641 ## ------------------------------- ##
23642 _ASBOX
23643 ) | sed "s/^/$as_me: WARNING: /" >&2
23645 esac
23646 { echo "$as_me:$LINENO: checking for " >&5
23647 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23648 if test "${ac_cv_header_+set}" = set; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23650 else
23651 ac_cv_header_=$ac_header_preproc
23653 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23654 echo "${ECHO_T}$ac_cv_header_" >&6; }
23657 if test $ac_cv_header_ = yes; then
23658 ROUNDL_HEADER_FOUND=1
23659 else
23660 ROUNDL_HEADER_FOUND=0
23664 CPPFLAGS="${saved_cppflags}"
23666 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
23667 ROUNDL_LIB=""
23668 ROUNDL_INCLUDE=""
23669 else
23670 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23671 ROUNDL_LIB=""
23673 PBX_ROUNDL=1
23674 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23676 cat >>confdefs.h <<_ACEOF
23677 #define HAVE_ROUNDL 1
23678 _ACEOF
23681 cat >>confdefs.h <<_ACEOF
23682 #define HAVE_ROUNDL_VERSION
23683 _ACEOF
23690 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
23691 pbxlibdir=""
23692 # if --with-TRUNCL=DIR has been specified, use it.
23693 if test "x${TRUNCL_DIR}" != "x"; then
23694 if test -d ${TRUNCL_DIR}/lib; then
23695 pbxlibdir="-L${TRUNCL_DIR}/lib"
23696 else
23697 pbxlibdir="-L${TRUNCL_DIR}"
23700 pbxfuncname="truncl"
23701 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23702 AST_TRUNCL_FOUND=yes
23703 else
23704 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23705 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23706 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23707 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23708 echo $ECHO_N "(cached) $ECHO_C" >&6
23709 else
23710 ac_check_lib_save_LIBS=$LIBS
23711 LIBS="-lm ${pbxlibdir} $LIBS"
23712 cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h. */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23719 /* Override any GCC internal prototype to avoid an error.
23720 Use char because int might match the return type of a GCC
23721 builtin and then its argument prototype would still apply. */
23722 #ifdef __cplusplus
23723 extern "C"
23724 #endif
23725 char ${pbxfuncname} ();
23727 main ()
23729 return ${pbxfuncname} ();
23731 return 0;
23733 _ACEOF
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (ac_try="$ac_link"
23736 case "(($ac_try" in
23737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738 *) ac_try_echo=$ac_try;;
23739 esac
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741 (eval "$ac_link") 2>conftest.er1
23742 ac_status=$?
23743 grep -v '^ *+' conftest.er1 >conftest.err
23744 rm -f conftest.er1
23745 cat conftest.err >&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && {
23748 test -z "$ac_c_werror_flag" ||
23749 test ! -s conftest.err
23750 } && test -s conftest$ac_exeext &&
23751 $as_test_x conftest$ac_exeext; then
23752 eval "$as_ac_Lib=yes"
23753 else
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23757 eval "$as_ac_Lib=no"
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761 conftest$ac_exeext conftest.$ac_ext
23762 LIBS=$ac_check_lib_save_LIBS
23764 ac_res=`eval echo '${'$as_ac_Lib'}'`
23765 { echo "$as_me:$LINENO: result: $ac_res" >&5
23766 echo "${ECHO_T}$ac_res" >&6; }
23767 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23768 AST_TRUNCL_FOUND=yes
23769 else
23770 AST_TRUNCL_FOUND=no
23775 # now check for the header.
23776 if test "${AST_TRUNCL_FOUND}" = "yes"; then
23777 TRUNCL_LIB="${pbxlibdir} -lm "
23778 # if --with-TRUNCL=DIR has been specified, use it.
23779 if test "x${TRUNCL_DIR}" != "x"; then
23780 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
23782 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
23783 if test "x" = "x" ; then # no header, assume found
23784 TRUNCL_HEADER_FOUND="1"
23785 else # check for the header
23786 saved_cppflags="${CPPFLAGS}"
23787 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE} "
23788 if test "${ac_cv_header_+set}" = set; then
23789 { echo "$as_me:$LINENO: checking for " >&5
23790 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23791 if test "${ac_cv_header_+set}" = set; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23795 echo "${ECHO_T}$ac_cv_header_" >&6; }
23796 else
23797 # Is the header compilable?
23798 { echo "$as_me:$LINENO: checking usability" >&5
23799 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23800 cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h. */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23806 $ac_includes_default
23807 #include <>
23808 _ACEOF
23809 rm -f conftest.$ac_objext
23810 if { (ac_try="$ac_compile"
23811 case "(($ac_try" in
23812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813 *) ac_try_echo=$ac_try;;
23814 esac
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816 (eval "$ac_compile") 2>conftest.er1
23817 ac_status=$?
23818 grep -v '^ *+' conftest.er1 >conftest.err
23819 rm -f conftest.er1
23820 cat conftest.err >&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } && {
23823 test -z "$ac_c_werror_flag" ||
23824 test ! -s conftest.err
23825 } && test -s conftest.$ac_objext; then
23826 ac_header_compiler=yes
23827 else
23828 echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23831 ac_header_compiler=no
23834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23836 echo "${ECHO_T}$ac_header_compiler" >&6; }
23838 # Is the header present?
23839 { echo "$as_me:$LINENO: checking presence" >&5
23840 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23841 cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h. */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 #include <>
23848 _ACEOF
23849 if { (ac_try="$ac_cpp conftest.$ac_ext"
23850 case "(($ac_try" in
23851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852 *) ac_try_echo=$ac_try;;
23853 esac
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23856 ac_status=$?
23857 grep -v '^ *+' conftest.er1 >conftest.err
23858 rm -f conftest.er1
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } >/dev/null && {
23862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23863 test ! -s conftest.err
23864 }; then
23865 ac_header_preproc=yes
23866 else
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23870 ac_header_preproc=no
23873 rm -f conftest.err conftest.$ac_ext
23874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23875 echo "${ECHO_T}$ac_header_preproc" >&6; }
23877 # So? What about this header?
23878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23879 yes:no: )
23880 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23881 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23882 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23883 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23884 ac_header_preproc=yes
23886 no:yes:* )
23887 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23888 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23889 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23890 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23891 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23892 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23893 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23894 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23895 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23896 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23897 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23898 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23899 ( cat <<\_ASBOX
23900 ## ------------------------------- ##
23901 ## Report this to www.asterisk.org ##
23902 ## ------------------------------- ##
23903 _ASBOX
23904 ) | sed "s/^/$as_me: WARNING: /" >&2
23906 esac
23907 { echo "$as_me:$LINENO: checking for " >&5
23908 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23909 if test "${ac_cv_header_+set}" = set; then
23910 echo $ECHO_N "(cached) $ECHO_C" >&6
23911 else
23912 ac_cv_header_=$ac_header_preproc
23914 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23915 echo "${ECHO_T}$ac_cv_header_" >&6; }
23918 if test $ac_cv_header_ = yes; then
23919 TRUNCL_HEADER_FOUND=1
23920 else
23921 TRUNCL_HEADER_FOUND=0
23925 CPPFLAGS="${saved_cppflags}"
23927 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
23928 TRUNCL_LIB=""
23929 TRUNCL_INCLUDE=""
23930 else
23931 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23932 TRUNCL_LIB=""
23934 PBX_TRUNCL=1
23935 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23937 cat >>confdefs.h <<_ACEOF
23938 #define HAVE_TRUNCL 1
23939 _ACEOF
23942 cat >>confdefs.h <<_ACEOF
23943 #define HAVE_TRUNCL_VERSION
23944 _ACEOF
23951 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
23952 pbxlibdir=""
23953 # if --with-STRTOLD=DIR has been specified, use it.
23954 if test "x${STRTOLD_DIR}" != "x"; then
23955 if test -d ${STRTOLD_DIR}/lib; then
23956 pbxlibdir="-L${STRTOLD_DIR}/lib"
23957 else
23958 pbxlibdir="-L${STRTOLD_DIR}"
23961 pbxfuncname="strtold"
23962 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23963 AST_STRTOLD_FOUND=yes
23964 else
23965 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
23966 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
23967 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
23968 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23970 else
23971 ac_check_lib_save_LIBS=$LIBS
23972 LIBS="-lc ${pbxlibdir} $LIBS"
23973 cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h. */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23980 /* Override any GCC internal prototype to avoid an error.
23981 Use char because int might match the return type of a GCC
23982 builtin and then its argument prototype would still apply. */
23983 #ifdef __cplusplus
23984 extern "C"
23985 #endif
23986 char ${pbxfuncname} ();
23988 main ()
23990 return ${pbxfuncname} ();
23992 return 0;
23994 _ACEOF
23995 rm -f conftest.$ac_objext conftest$ac_exeext
23996 if { (ac_try="$ac_link"
23997 case "(($ac_try" in
23998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23999 *) ac_try_echo=$ac_try;;
24000 esac
24001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24002 (eval "$ac_link") 2>conftest.er1
24003 ac_status=$?
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } && {
24009 test -z "$ac_c_werror_flag" ||
24010 test ! -s conftest.err
24011 } && test -s conftest$ac_exeext &&
24012 $as_test_x conftest$ac_exeext; then
24013 eval "$as_ac_Lib=yes"
24014 else
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24018 eval "$as_ac_Lib=no"
24021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24022 conftest$ac_exeext conftest.$ac_ext
24023 LIBS=$ac_check_lib_save_LIBS
24025 ac_res=`eval echo '${'$as_ac_Lib'}'`
24026 { echo "$as_me:$LINENO: result: $ac_res" >&5
24027 echo "${ECHO_T}$ac_res" >&6; }
24028 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24029 AST_STRTOLD_FOUND=yes
24030 else
24031 AST_STRTOLD_FOUND=no
24036 # now check for the header.
24037 if test "${AST_STRTOLD_FOUND}" = "yes"; then
24038 STRTOLD_LIB="${pbxlibdir} -lc "
24039 # if --with-STRTOLD=DIR has been specified, use it.
24040 if test "x${STRTOLD_DIR}" != "x"; then
24041 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
24043 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
24044 if test "xstdlib.h" = "x" ; then # no header, assume found
24045 STRTOLD_HEADER_FOUND="1"
24046 else # check for the header
24047 saved_cppflags="${CPPFLAGS}"
24048 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE} "
24049 if test "${ac_cv_header_stdlib_h+set}" = set; then
24050 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24051 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24052 if test "${ac_cv_header_stdlib_h+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24055 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24056 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24057 else
24058 # Is the header compilable?
24059 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
24060 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
24061 cat >conftest.$ac_ext <<_ACEOF
24062 /* confdefs.h. */
24063 _ACEOF
24064 cat confdefs.h >>conftest.$ac_ext
24065 cat >>conftest.$ac_ext <<_ACEOF
24066 /* end confdefs.h. */
24067 $ac_includes_default
24068 #include <stdlib.h>
24069 _ACEOF
24070 rm -f conftest.$ac_objext
24071 if { (ac_try="$ac_compile"
24072 case "(($ac_try" in
24073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074 *) ac_try_echo=$ac_try;;
24075 esac
24076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077 (eval "$ac_compile") 2>conftest.er1
24078 ac_status=$?
24079 grep -v '^ *+' conftest.er1 >conftest.err
24080 rm -f conftest.er1
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } && {
24084 test -z "$ac_c_werror_flag" ||
24085 test ! -s conftest.err
24086 } && test -s conftest.$ac_objext; then
24087 ac_header_compiler=yes
24088 else
24089 echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24092 ac_header_compiler=no
24095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24097 echo "${ECHO_T}$ac_header_compiler" >&6; }
24099 # Is the header present?
24100 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24101 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24102 cat >conftest.$ac_ext <<_ACEOF
24103 /* confdefs.h. */
24104 _ACEOF
24105 cat confdefs.h >>conftest.$ac_ext
24106 cat >>conftest.$ac_ext <<_ACEOF
24107 /* end confdefs.h. */
24108 #include <stdlib.h>
24109 _ACEOF
24110 if { (ac_try="$ac_cpp conftest.$ac_ext"
24111 case "(($ac_try" in
24112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24113 *) ac_try_echo=$ac_try;;
24114 esac
24115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24117 ac_status=$?
24118 grep -v '^ *+' conftest.er1 >conftest.err
24119 rm -f conftest.er1
24120 cat conftest.err >&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); } >/dev/null && {
24123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24124 test ! -s conftest.err
24125 }; then
24126 ac_header_preproc=yes
24127 else
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ac_header_preproc=no
24134 rm -f conftest.err conftest.$ac_ext
24135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24136 echo "${ECHO_T}$ac_header_preproc" >&6; }
24138 # So? What about this header?
24139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24140 yes:no: )
24141 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24142 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24143 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24144 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24145 ac_header_preproc=yes
24147 no:yes:* )
24148 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24149 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24150 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24151 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24152 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24153 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24154 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24155 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24156 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24157 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24158 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24159 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24160 ( cat <<\_ASBOX
24161 ## ------------------------------- ##
24162 ## Report this to www.asterisk.org ##
24163 ## ------------------------------- ##
24164 _ASBOX
24165 ) | sed "s/^/$as_me: WARNING: /" >&2
24167 esac
24168 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24169 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24170 if test "${ac_cv_header_stdlib_h+set}" = set; then
24171 echo $ECHO_N "(cached) $ECHO_C" >&6
24172 else
24173 ac_cv_header_stdlib_h=$ac_header_preproc
24175 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24176 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24179 if test $ac_cv_header_stdlib_h = yes; then
24180 STRTOLD_HEADER_FOUND=1
24181 else
24182 STRTOLD_HEADER_FOUND=0
24186 CPPFLAGS="${saved_cppflags}"
24188 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24189 STRTOLD_LIB=""
24190 STRTOLD_INCLUDE=""
24191 else
24192 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24193 STRTOLD_LIB=""
24195 PBX_STRTOLD=1
24196 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24198 cat >>confdefs.h <<_ACEOF
24199 #define HAVE_STRTOLD 1
24200 _ACEOF
24203 cat >>confdefs.h <<_ACEOF
24204 #define HAVE_STRTOLD_VERSION
24205 _ACEOF
24212 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24213 pbxlibdir=""
24214 # if --with-FLOORL=DIR has been specified, use it.
24215 if test "x${FLOORL_DIR}" != "x"; then
24216 if test -d ${FLOORL_DIR}/lib; then
24217 pbxlibdir="-L${FLOORL_DIR}/lib"
24218 else
24219 pbxlibdir="-L${FLOORL_DIR}"
24222 pbxfuncname="floorl"
24223 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24224 AST_FLOORL_FOUND=yes
24225 else
24226 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24227 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24228 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24229 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24231 else
24232 ac_check_lib_save_LIBS=$LIBS
24233 LIBS="-lm ${pbxlibdir} $LIBS"
24234 cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h. */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24241 /* Override any GCC internal prototype to avoid an error.
24242 Use char because int might match the return type of a GCC
24243 builtin and then its argument prototype would still apply. */
24244 #ifdef __cplusplus
24245 extern "C"
24246 #endif
24247 char ${pbxfuncname} ();
24249 main ()
24251 return ${pbxfuncname} ();
24253 return 0;
24255 _ACEOF
24256 rm -f conftest.$ac_objext conftest$ac_exeext
24257 if { (ac_try="$ac_link"
24258 case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24261 esac
24262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263 (eval "$ac_link") 2>conftest.er1
24264 ac_status=$?
24265 grep -v '^ *+' conftest.er1 >conftest.err
24266 rm -f conftest.er1
24267 cat conftest.err >&5
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); } && {
24270 test -z "$ac_c_werror_flag" ||
24271 test ! -s conftest.err
24272 } && test -s conftest$ac_exeext &&
24273 $as_test_x conftest$ac_exeext; then
24274 eval "$as_ac_Lib=yes"
24275 else
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 eval "$as_ac_Lib=no"
24282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24283 conftest$ac_exeext conftest.$ac_ext
24284 LIBS=$ac_check_lib_save_LIBS
24286 ac_res=`eval echo '${'$as_ac_Lib'}'`
24287 { echo "$as_me:$LINENO: result: $ac_res" >&5
24288 echo "${ECHO_T}$ac_res" >&6; }
24289 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24290 AST_FLOORL_FOUND=yes
24291 else
24292 AST_FLOORL_FOUND=no
24297 # now check for the header.
24298 if test "${AST_FLOORL_FOUND}" = "yes"; then
24299 FLOORL_LIB="${pbxlibdir} -lm "
24300 # if --with-FLOORL=DIR has been specified, use it.
24301 if test "x${FLOORL_DIR}" != "x"; then
24302 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24304 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24305 if test "x" = "x" ; then # no header, assume found
24306 FLOORL_HEADER_FOUND="1"
24307 else # check for the header
24308 saved_cppflags="${CPPFLAGS}"
24309 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE} "
24310 if test "${ac_cv_header_+set}" = set; then
24311 { echo "$as_me:$LINENO: checking for " >&5
24312 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24313 if test "${ac_cv_header_+set}" = set; then
24314 echo $ECHO_N "(cached) $ECHO_C" >&6
24316 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24317 echo "${ECHO_T}$ac_cv_header_" >&6; }
24318 else
24319 # Is the header compilable?
24320 { echo "$as_me:$LINENO: checking usability" >&5
24321 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24322 cat >conftest.$ac_ext <<_ACEOF
24323 /* confdefs.h. */
24324 _ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24328 $ac_includes_default
24329 #include <>
24330 _ACEOF
24331 rm -f conftest.$ac_objext
24332 if { (ac_try="$ac_compile"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24336 esac
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_compile") 2>conftest.er1
24339 ac_status=$?
24340 grep -v '^ *+' conftest.er1 >conftest.err
24341 rm -f conftest.er1
24342 cat conftest.err >&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } && {
24345 test -z "$ac_c_werror_flag" ||
24346 test ! -s conftest.err
24347 } && test -s conftest.$ac_objext; then
24348 ac_header_compiler=yes
24349 else
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 ac_header_compiler=no
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24358 echo "${ECHO_T}$ac_header_compiler" >&6; }
24360 # Is the header present?
24361 { echo "$as_me:$LINENO: checking presence" >&5
24362 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24363 cat >conftest.$ac_ext <<_ACEOF
24364 /* confdefs.h. */
24365 _ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h. */
24369 #include <>
24370 _ACEOF
24371 if { (ac_try="$ac_cpp conftest.$ac_ext"
24372 case "(($ac_try" in
24373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24374 *) ac_try_echo=$ac_try;;
24375 esac
24376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24378 ac_status=$?
24379 grep -v '^ *+' conftest.er1 >conftest.err
24380 rm -f conftest.er1
24381 cat conftest.err >&5
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); } >/dev/null && {
24384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24385 test ! -s conftest.err
24386 }; then
24387 ac_header_preproc=yes
24388 else
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24392 ac_header_preproc=no
24395 rm -f conftest.err conftest.$ac_ext
24396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24397 echo "${ECHO_T}$ac_header_preproc" >&6; }
24399 # So? What about this header?
24400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24401 yes:no: )
24402 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24403 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24404 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24405 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24406 ac_header_preproc=yes
24408 no:yes:* )
24409 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24410 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24411 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24412 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24413 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24414 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24415 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24416 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24417 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24418 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24419 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24420 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24421 ( cat <<\_ASBOX
24422 ## ------------------------------- ##
24423 ## Report this to www.asterisk.org ##
24424 ## ------------------------------- ##
24425 _ASBOX
24426 ) | sed "s/^/$as_me: WARNING: /" >&2
24428 esac
24429 { echo "$as_me:$LINENO: checking for " >&5
24430 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24431 if test "${ac_cv_header_+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24433 else
24434 ac_cv_header_=$ac_header_preproc
24436 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24437 echo "${ECHO_T}$ac_cv_header_" >&6; }
24440 if test $ac_cv_header_ = yes; then
24441 FLOORL_HEADER_FOUND=1
24442 else
24443 FLOORL_HEADER_FOUND=0
24447 CPPFLAGS="${saved_cppflags}"
24449 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24450 FLOORL_LIB=""
24451 FLOORL_INCLUDE=""
24452 else
24453 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24454 FLOORL_LIB=""
24456 PBX_FLOORL=1
24457 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24459 cat >>confdefs.h <<_ACEOF
24460 #define HAVE_FLOORL 1
24461 _ACEOF
24464 cat >>confdefs.h <<_ACEOF
24465 #define HAVE_FLOORL_VERSION
24466 _ACEOF
24473 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24474 pbxlibdir=""
24475 # if --with-CEILL=DIR has been specified, use it.
24476 if test "x${CEILL_DIR}" != "x"; then
24477 if test -d ${CEILL_DIR}/lib; then
24478 pbxlibdir="-L${CEILL_DIR}/lib"
24479 else
24480 pbxlibdir="-L${CEILL_DIR}"
24483 pbxfuncname="ceill"
24484 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24485 AST_CEILL_FOUND=yes
24486 else
24487 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24488 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24489 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24490 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
24492 else
24493 ac_check_lib_save_LIBS=$LIBS
24494 LIBS="-lm ${pbxlibdir} $LIBS"
24495 cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h. */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24502 /* Override any GCC internal prototype to avoid an error.
24503 Use char because int might match the return type of a GCC
24504 builtin and then its argument prototype would still apply. */
24505 #ifdef __cplusplus
24506 extern "C"
24507 #endif
24508 char ${pbxfuncname} ();
24510 main ()
24512 return ${pbxfuncname} ();
24514 return 0;
24516 _ACEOF
24517 rm -f conftest.$ac_objext conftest$ac_exeext
24518 if { (ac_try="$ac_link"
24519 case "(($ac_try" in
24520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24521 *) ac_try_echo=$ac_try;;
24522 esac
24523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24524 (eval "$ac_link") 2>conftest.er1
24525 ac_status=$?
24526 grep -v '^ *+' conftest.er1 >conftest.err
24527 rm -f conftest.er1
24528 cat conftest.err >&5
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } && {
24531 test -z "$ac_c_werror_flag" ||
24532 test ! -s conftest.err
24533 } && test -s conftest$ac_exeext &&
24534 $as_test_x conftest$ac_exeext; then
24535 eval "$as_ac_Lib=yes"
24536 else
24537 echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24540 eval "$as_ac_Lib=no"
24543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24544 conftest$ac_exeext conftest.$ac_ext
24545 LIBS=$ac_check_lib_save_LIBS
24547 ac_res=`eval echo '${'$as_ac_Lib'}'`
24548 { echo "$as_me:$LINENO: result: $ac_res" >&5
24549 echo "${ECHO_T}$ac_res" >&6; }
24550 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24551 AST_CEILL_FOUND=yes
24552 else
24553 AST_CEILL_FOUND=no
24558 # now check for the header.
24559 if test "${AST_CEILL_FOUND}" = "yes"; then
24560 CEILL_LIB="${pbxlibdir} -lm "
24561 # if --with-CEILL=DIR has been specified, use it.
24562 if test "x${CEILL_DIR}" != "x"; then
24563 CEILL_INCLUDE="-I${CEILL_DIR}/include"
24565 CEILL_INCLUDE="${CEILL_INCLUDE} "
24566 if test "x" = "x" ; then # no header, assume found
24567 CEILL_HEADER_FOUND="1"
24568 else # check for the header
24569 saved_cppflags="${CPPFLAGS}"
24570 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE} "
24571 if test "${ac_cv_header_+set}" = set; then
24572 { echo "$as_me:$LINENO: checking for " >&5
24573 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24574 if test "${ac_cv_header_+set}" = set; then
24575 echo $ECHO_N "(cached) $ECHO_C" >&6
24577 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24578 echo "${ECHO_T}$ac_cv_header_" >&6; }
24579 else
24580 # Is the header compilable?
24581 { echo "$as_me:$LINENO: checking usability" >&5
24582 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24583 cat >conftest.$ac_ext <<_ACEOF
24584 /* confdefs.h. */
24585 _ACEOF
24586 cat confdefs.h >>conftest.$ac_ext
24587 cat >>conftest.$ac_ext <<_ACEOF
24588 /* end confdefs.h. */
24589 $ac_includes_default
24590 #include <>
24591 _ACEOF
24592 rm -f conftest.$ac_objext
24593 if { (ac_try="$ac_compile"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_compile") 2>conftest.er1
24600 ac_status=$?
24601 grep -v '^ *+' conftest.er1 >conftest.err
24602 rm -f conftest.er1
24603 cat conftest.err >&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); } && {
24606 test -z "$ac_c_werror_flag" ||
24607 test ! -s conftest.err
24608 } && test -s conftest.$ac_objext; then
24609 ac_header_compiler=yes
24610 else
24611 echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24614 ac_header_compiler=no
24617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24619 echo "${ECHO_T}$ac_header_compiler" >&6; }
24621 # Is the header present?
24622 { echo "$as_me:$LINENO: checking presence" >&5
24623 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24624 cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h. */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24630 #include <>
24631 _ACEOF
24632 if { (ac_try="$ac_cpp conftest.$ac_ext"
24633 case "(($ac_try" in
24634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635 *) ac_try_echo=$ac_try;;
24636 esac
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24639 ac_status=$?
24640 grep -v '^ *+' conftest.er1 >conftest.err
24641 rm -f conftest.er1
24642 cat conftest.err >&5
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } >/dev/null && {
24645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24646 test ! -s conftest.err
24647 }; then
24648 ac_header_preproc=yes
24649 else
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 ac_header_preproc=no
24656 rm -f conftest.err conftest.$ac_ext
24657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24658 echo "${ECHO_T}$ac_header_preproc" >&6; }
24660 # So? What about this header?
24661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24662 yes:no: )
24663 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24664 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24665 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24666 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24667 ac_header_preproc=yes
24669 no:yes:* )
24670 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24671 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24672 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24673 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24674 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24675 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24676 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24677 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24678 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24679 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24680 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24681 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24682 ( cat <<\_ASBOX
24683 ## ------------------------------- ##
24684 ## Report this to www.asterisk.org ##
24685 ## ------------------------------- ##
24686 _ASBOX
24687 ) | sed "s/^/$as_me: WARNING: /" >&2
24689 esac
24690 { echo "$as_me:$LINENO: checking for " >&5
24691 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24692 if test "${ac_cv_header_+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
24694 else
24695 ac_cv_header_=$ac_header_preproc
24697 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24698 echo "${ECHO_T}$ac_cv_header_" >&6; }
24701 if test $ac_cv_header_ = yes; then
24702 CEILL_HEADER_FOUND=1
24703 else
24704 CEILL_HEADER_FOUND=0
24708 CPPFLAGS="${saved_cppflags}"
24710 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
24711 CEILL_LIB=""
24712 CEILL_INCLUDE=""
24713 else
24714 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24715 CEILL_LIB=""
24717 PBX_CEILL=1
24718 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24720 cat >>confdefs.h <<_ACEOF
24721 #define HAVE_CEILL 1
24722 _ACEOF
24725 cat >>confdefs.h <<_ACEOF
24726 #define HAVE_CEILL_VERSION
24727 _ACEOF
24734 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
24735 pbxlibdir=""
24736 # if --with-EXP2=DIR has been specified, use it.
24737 if test "x${EXP2_DIR}" != "x"; then
24738 if test -d ${EXP2_DIR}/lib; then
24739 pbxlibdir="-L${EXP2_DIR}/lib"
24740 else
24741 pbxlibdir="-L${EXP2_DIR}"
24744 pbxfuncname="exp2"
24745 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24746 AST_EXP2_FOUND=yes
24747 else
24748 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24749 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24750 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24751 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24753 else
24754 ac_check_lib_save_LIBS=$LIBS
24755 LIBS="-lm ${pbxlibdir} $LIBS"
24756 cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h. */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24763 /* Override any GCC internal prototype to avoid an error.
24764 Use char because int might match the return type of a GCC
24765 builtin and then its argument prototype would still apply. */
24766 #ifdef __cplusplus
24767 extern "C"
24768 #endif
24769 char ${pbxfuncname} ();
24771 main ()
24773 return ${pbxfuncname} ();
24775 return 0;
24777 _ACEOF
24778 rm -f conftest.$ac_objext conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24783 esac
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_link") 2>conftest.er1
24786 ac_status=$?
24787 grep -v '^ *+' conftest.er1 >conftest.err
24788 rm -f conftest.er1
24789 cat conftest.err >&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } && {
24792 test -z "$ac_c_werror_flag" ||
24793 test ! -s conftest.err
24794 } && test -s conftest$ac_exeext &&
24795 $as_test_x conftest$ac_exeext; then
24796 eval "$as_ac_Lib=yes"
24797 else
24798 echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24801 eval "$as_ac_Lib=no"
24804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24805 conftest$ac_exeext conftest.$ac_ext
24806 LIBS=$ac_check_lib_save_LIBS
24808 ac_res=`eval echo '${'$as_ac_Lib'}'`
24809 { echo "$as_me:$LINENO: result: $ac_res" >&5
24810 echo "${ECHO_T}$ac_res" >&6; }
24811 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24812 AST_EXP2_FOUND=yes
24813 else
24814 AST_EXP2_FOUND=no
24819 # now check for the header.
24820 if test "${AST_EXP2_FOUND}" = "yes"; then
24821 EXP2_LIB="${pbxlibdir} -lm "
24822 # if --with-EXP2=DIR has been specified, use it.
24823 if test "x${EXP2_DIR}" != "x"; then
24824 EXP2_INCLUDE="-I${EXP2_DIR}/include"
24826 EXP2_INCLUDE="${EXP2_INCLUDE} "
24827 if test "x" = "x" ; then # no header, assume found
24828 EXP2_HEADER_FOUND="1"
24829 else # check for the header
24830 saved_cppflags="${CPPFLAGS}"
24831 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE} "
24832 if test "${ac_cv_header_+set}" = set; then
24833 { echo "$as_me:$LINENO: checking for " >&5
24834 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24835 if test "${ac_cv_header_+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24839 echo "${ECHO_T}$ac_cv_header_" >&6; }
24840 else
24841 # Is the header compilable?
24842 { echo "$as_me:$LINENO: checking usability" >&5
24843 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24844 cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h. */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24850 $ac_includes_default
24851 #include <>
24852 _ACEOF
24853 rm -f conftest.$ac_objext
24854 if { (ac_try="$ac_compile"
24855 case "(($ac_try" in
24856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24858 esac
24859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24860 (eval "$ac_compile") 2>conftest.er1
24861 ac_status=$?
24862 grep -v '^ *+' conftest.er1 >conftest.err
24863 rm -f conftest.er1
24864 cat conftest.err >&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } && {
24867 test -z "$ac_c_werror_flag" ||
24868 test ! -s conftest.err
24869 } && test -s conftest.$ac_objext; then
24870 ac_header_compiler=yes
24871 else
24872 echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24875 ac_header_compiler=no
24878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24880 echo "${ECHO_T}$ac_header_compiler" >&6; }
24882 # Is the header present?
24883 { echo "$as_me:$LINENO: checking presence" >&5
24884 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24885 cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h. */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24891 #include <>
24892 _ACEOF
24893 if { (ac_try="$ac_cpp conftest.$ac_ext"
24894 case "(($ac_try" in
24895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896 *) ac_try_echo=$ac_try;;
24897 esac
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24900 ac_status=$?
24901 grep -v '^ *+' conftest.er1 >conftest.err
24902 rm -f conftest.er1
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); } >/dev/null && {
24906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24907 test ! -s conftest.err
24908 }; then
24909 ac_header_preproc=yes
24910 else
24911 echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24914 ac_header_preproc=no
24917 rm -f conftest.err conftest.$ac_ext
24918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24919 echo "${ECHO_T}$ac_header_preproc" >&6; }
24921 # So? What about this header?
24922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24923 yes:no: )
24924 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24925 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24926 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24927 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24928 ac_header_preproc=yes
24930 no:yes:* )
24931 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24932 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24934 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24935 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24936 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24937 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24938 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24939 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24940 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24941 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24942 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24943 ( cat <<\_ASBOX
24944 ## ------------------------------- ##
24945 ## Report this to www.asterisk.org ##
24946 ## ------------------------------- ##
24947 _ASBOX
24948 ) | sed "s/^/$as_me: WARNING: /" >&2
24950 esac
24951 { echo "$as_me:$LINENO: checking for " >&5
24952 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24953 if test "${ac_cv_header_+set}" = set; then
24954 echo $ECHO_N "(cached) $ECHO_C" >&6
24955 else
24956 ac_cv_header_=$ac_header_preproc
24958 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24959 echo "${ECHO_T}$ac_cv_header_" >&6; }
24962 if test $ac_cv_header_ = yes; then
24963 EXP2_HEADER_FOUND=1
24964 else
24965 EXP2_HEADER_FOUND=0
24969 CPPFLAGS="${saved_cppflags}"
24971 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
24972 EXP2_LIB=""
24973 EXP2_INCLUDE=""
24974 else
24975 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24976 EXP2_LIB=""
24978 PBX_EXP2=1
24979 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24981 cat >>confdefs.h <<_ACEOF
24982 #define HAVE_EXP2 1
24983 _ACEOF
24986 cat >>confdefs.h <<_ACEOF
24987 #define HAVE_EXP2_VERSION
24988 _ACEOF
24995 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
24996 pbxlibdir=""
24997 # if --with-LOG2=DIR has been specified, use it.
24998 if test "x${LOG2_DIR}" != "x"; then
24999 if test -d ${LOG2_DIR}/lib; then
25000 pbxlibdir="-L${LOG2_DIR}/lib"
25001 else
25002 pbxlibdir="-L${LOG2_DIR}"
25005 pbxfuncname="log2"
25006 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25007 AST_LOG2_FOUND=yes
25008 else
25009 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25010 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25011 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25012 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25013 echo $ECHO_N "(cached) $ECHO_C" >&6
25014 else
25015 ac_check_lib_save_LIBS=$LIBS
25016 LIBS="-lm ${pbxlibdir} $LIBS"
25017 cat >conftest.$ac_ext <<_ACEOF
25018 /* confdefs.h. */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25024 /* Override any GCC internal prototype to avoid an error.
25025 Use char because int might match the return type of a GCC
25026 builtin and then its argument prototype would still apply. */
25027 #ifdef __cplusplus
25028 extern "C"
25029 #endif
25030 char ${pbxfuncname} ();
25032 main ()
25034 return ${pbxfuncname} ();
25036 return 0;
25038 _ACEOF
25039 rm -f conftest.$ac_objext conftest$ac_exeext
25040 if { (ac_try="$ac_link"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_link") 2>conftest.er1
25047 ac_status=$?
25048 grep -v '^ *+' conftest.er1 >conftest.err
25049 rm -f conftest.er1
25050 cat conftest.err >&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } && {
25053 test -z "$ac_c_werror_flag" ||
25054 test ! -s conftest.err
25055 } && test -s conftest$ac_exeext &&
25056 $as_test_x conftest$ac_exeext; then
25057 eval "$as_ac_Lib=yes"
25058 else
25059 echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25062 eval "$as_ac_Lib=no"
25065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25066 conftest$ac_exeext conftest.$ac_ext
25067 LIBS=$ac_check_lib_save_LIBS
25069 ac_res=`eval echo '${'$as_ac_Lib'}'`
25070 { echo "$as_me:$LINENO: result: $ac_res" >&5
25071 echo "${ECHO_T}$ac_res" >&6; }
25072 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25073 AST_LOG2_FOUND=yes
25074 else
25075 AST_LOG2_FOUND=no
25080 # now check for the header.
25081 if test "${AST_LOG2_FOUND}" = "yes"; then
25082 LOG2_LIB="${pbxlibdir} -lm "
25083 # if --with-LOG2=DIR has been specified, use it.
25084 if test "x${LOG2_DIR}" != "x"; then
25085 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25087 LOG2_INCLUDE="${LOG2_INCLUDE} "
25088 if test "x" = "x" ; then # no header, assume found
25089 LOG2_HEADER_FOUND="1"
25090 else # check for the header
25091 saved_cppflags="${CPPFLAGS}"
25092 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE} "
25093 if test "${ac_cv_header_+set}" = set; then
25094 { echo "$as_me:$LINENO: checking for " >&5
25095 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25096 if test "${ac_cv_header_+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25100 echo "${ECHO_T}$ac_cv_header_" >&6; }
25101 else
25102 # Is the header compilable?
25103 { echo "$as_me:$LINENO: checking usability" >&5
25104 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25105 cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h. */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25111 $ac_includes_default
25112 #include <>
25113 _ACEOF
25114 rm -f conftest.$ac_objext
25115 if { (ac_try="$ac_compile"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25119 esac
25120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121 (eval "$ac_compile") 2>conftest.er1
25122 ac_status=$?
25123 grep -v '^ *+' conftest.er1 >conftest.err
25124 rm -f conftest.er1
25125 cat conftest.err >&5
25126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127 (exit $ac_status); } && {
25128 test -z "$ac_c_werror_flag" ||
25129 test ! -s conftest.err
25130 } && test -s conftest.$ac_objext; then
25131 ac_header_compiler=yes
25132 else
25133 echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25136 ac_header_compiler=no
25139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25141 echo "${ECHO_T}$ac_header_compiler" >&6; }
25143 # Is the header present?
25144 { echo "$as_me:$LINENO: checking presence" >&5
25145 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25146 cat >conftest.$ac_ext <<_ACEOF
25147 /* confdefs.h. */
25148 _ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h. */
25152 #include <>
25153 _ACEOF
25154 if { (ac_try="$ac_cpp conftest.$ac_ext"
25155 case "(($ac_try" in
25156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25157 *) ac_try_echo=$ac_try;;
25158 esac
25159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25161 ac_status=$?
25162 grep -v '^ *+' conftest.er1 >conftest.err
25163 rm -f conftest.er1
25164 cat conftest.err >&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); } >/dev/null && {
25167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25168 test ! -s conftest.err
25169 }; then
25170 ac_header_preproc=yes
25171 else
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25175 ac_header_preproc=no
25178 rm -f conftest.err conftest.$ac_ext
25179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25180 echo "${ECHO_T}$ac_header_preproc" >&6; }
25182 # So? What about this header?
25183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25184 yes:no: )
25185 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25186 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25187 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25188 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25189 ac_header_preproc=yes
25191 no:yes:* )
25192 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25193 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25194 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25195 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25196 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25197 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25198 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25199 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25200 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25201 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25202 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25203 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25204 ( cat <<\_ASBOX
25205 ## ------------------------------- ##
25206 ## Report this to www.asterisk.org ##
25207 ## ------------------------------- ##
25208 _ASBOX
25209 ) | sed "s/^/$as_me: WARNING: /" >&2
25211 esac
25212 { echo "$as_me:$LINENO: checking for " >&5
25213 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25214 if test "${ac_cv_header_+set}" = set; then
25215 echo $ECHO_N "(cached) $ECHO_C" >&6
25216 else
25217 ac_cv_header_=$ac_header_preproc
25219 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25220 echo "${ECHO_T}$ac_cv_header_" >&6; }
25223 if test $ac_cv_header_ = yes; then
25224 LOG2_HEADER_FOUND=1
25225 else
25226 LOG2_HEADER_FOUND=0
25230 CPPFLAGS="${saved_cppflags}"
25232 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25233 LOG2_LIB=""
25234 LOG2_INCLUDE=""
25235 else
25236 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25237 LOG2_LIB=""
25239 PBX_LOG2=1
25240 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25242 cat >>confdefs.h <<_ACEOF
25243 #define HAVE_LOG2 1
25244 _ACEOF
25247 cat >>confdefs.h <<_ACEOF
25248 #define HAVE_LOG2_VERSION
25249 _ACEOF
25256 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25257 pbxlibdir=""
25258 # if --with-EXP10=DIR has been specified, use it.
25259 if test "x${EXP10_DIR}" != "x"; then
25260 if test -d ${EXP10_DIR}/lib; then
25261 pbxlibdir="-L${EXP10_DIR}/lib"
25262 else
25263 pbxlibdir="-L${EXP10_DIR}"
25266 pbxfuncname="exp10"
25267 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25268 AST_EXP10_FOUND=yes
25269 else
25270 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25271 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25272 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25273 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 else
25276 ac_check_lib_save_LIBS=$LIBS
25277 LIBS="-lm ${pbxlibdir} $LIBS"
25278 cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h. */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25285 /* Override any GCC internal prototype to avoid an error.
25286 Use char because int might match the return type of a GCC
25287 builtin and then its argument prototype would still apply. */
25288 #ifdef __cplusplus
25289 extern "C"
25290 #endif
25291 char ${pbxfuncname} ();
25293 main ()
25295 return ${pbxfuncname} ();
25297 return 0;
25299 _ACEOF
25300 rm -f conftest.$ac_objext conftest$ac_exeext
25301 if { (ac_try="$ac_link"
25302 case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25305 esac
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_link") 2>conftest.er1
25308 ac_status=$?
25309 grep -v '^ *+' conftest.er1 >conftest.err
25310 rm -f conftest.er1
25311 cat conftest.err >&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && {
25314 test -z "$ac_c_werror_flag" ||
25315 test ! -s conftest.err
25316 } && test -s conftest$ac_exeext &&
25317 $as_test_x conftest$ac_exeext; then
25318 eval "$as_ac_Lib=yes"
25319 else
25320 echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 eval "$as_ac_Lib=no"
25326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25327 conftest$ac_exeext conftest.$ac_ext
25328 LIBS=$ac_check_lib_save_LIBS
25330 ac_res=`eval echo '${'$as_ac_Lib'}'`
25331 { echo "$as_me:$LINENO: result: $ac_res" >&5
25332 echo "${ECHO_T}$ac_res" >&6; }
25333 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25334 AST_EXP10_FOUND=yes
25335 else
25336 AST_EXP10_FOUND=no
25341 # now check for the header.
25342 if test "${AST_EXP10_FOUND}" = "yes"; then
25343 EXP10_LIB="${pbxlibdir} -lm "
25344 # if --with-EXP10=DIR has been specified, use it.
25345 if test "x${EXP10_DIR}" != "x"; then
25346 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25348 EXP10_INCLUDE="${EXP10_INCLUDE} "
25349 if test "x" = "x" ; then # no header, assume found
25350 EXP10_HEADER_FOUND="1"
25351 else # check for the header
25352 saved_cppflags="${CPPFLAGS}"
25353 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE} "
25354 if test "${ac_cv_header_+set}" = set; then
25355 { echo "$as_me:$LINENO: checking for " >&5
25356 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25357 if test "${ac_cv_header_+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25360 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25361 echo "${ECHO_T}$ac_cv_header_" >&6; }
25362 else
25363 # Is the header compilable?
25364 { echo "$as_me:$LINENO: checking usability" >&5
25365 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25366 cat >conftest.$ac_ext <<_ACEOF
25367 /* confdefs.h. */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25372 $ac_includes_default
25373 #include <>
25374 _ACEOF
25375 rm -f conftest.$ac_objext
25376 if { (ac_try="$ac_compile"
25377 case "(($ac_try" in
25378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25379 *) ac_try_echo=$ac_try;;
25380 esac
25381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25382 (eval "$ac_compile") 2>conftest.er1
25383 ac_status=$?
25384 grep -v '^ *+' conftest.er1 >conftest.err
25385 rm -f conftest.er1
25386 cat conftest.err >&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } && {
25389 test -z "$ac_c_werror_flag" ||
25390 test ! -s conftest.err
25391 } && test -s conftest.$ac_objext; then
25392 ac_header_compiler=yes
25393 else
25394 echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25397 ac_header_compiler=no
25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25402 echo "${ECHO_T}$ac_header_compiler" >&6; }
25404 # Is the header present?
25405 { echo "$as_me:$LINENO: checking presence" >&5
25406 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25407 cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h. */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25413 #include <>
25414 _ACEOF
25415 if { (ac_try="$ac_cpp conftest.$ac_ext"
25416 case "(($ac_try" in
25417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25418 *) ac_try_echo=$ac_try;;
25419 esac
25420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25422 ac_status=$?
25423 grep -v '^ *+' conftest.er1 >conftest.err
25424 rm -f conftest.er1
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } >/dev/null && {
25428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25429 test ! -s conftest.err
25430 }; then
25431 ac_header_preproc=yes
25432 else
25433 echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25436 ac_header_preproc=no
25439 rm -f conftest.err conftest.$ac_ext
25440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25441 echo "${ECHO_T}$ac_header_preproc" >&6; }
25443 # So? What about this header?
25444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25445 yes:no: )
25446 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25447 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25448 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25449 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25450 ac_header_preproc=yes
25452 no:yes:* )
25453 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25454 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25455 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25456 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25457 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25458 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25459 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25460 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25461 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25462 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25463 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25464 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25465 ( cat <<\_ASBOX
25466 ## ------------------------------- ##
25467 ## Report this to www.asterisk.org ##
25468 ## ------------------------------- ##
25469 _ASBOX
25470 ) | sed "s/^/$as_me: WARNING: /" >&2
25472 esac
25473 { echo "$as_me:$LINENO: checking for " >&5
25474 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25475 if test "${ac_cv_header_+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25477 else
25478 ac_cv_header_=$ac_header_preproc
25480 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25481 echo "${ECHO_T}$ac_cv_header_" >&6; }
25484 if test $ac_cv_header_ = yes; then
25485 EXP10_HEADER_FOUND=1
25486 else
25487 EXP10_HEADER_FOUND=0
25491 CPPFLAGS="${saved_cppflags}"
25493 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25494 EXP10_LIB=""
25495 EXP10_INCLUDE=""
25496 else
25497 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25498 EXP10_LIB=""
25500 PBX_EXP10=1
25501 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25503 cat >>confdefs.h <<_ACEOF
25504 #define HAVE_EXP10 1
25505 _ACEOF
25508 cat >>confdefs.h <<_ACEOF
25509 #define HAVE_EXP10_VERSION
25510 _ACEOF
25517 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25518 pbxlibdir=""
25519 # if --with-LOG10=DIR has been specified, use it.
25520 if test "x${LOG10_DIR}" != "x"; then
25521 if test -d ${LOG10_DIR}/lib; then
25522 pbxlibdir="-L${LOG10_DIR}/lib"
25523 else
25524 pbxlibdir="-L${LOG10_DIR}"
25527 pbxfuncname="log10"
25528 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25529 AST_LOG10_FOUND=yes
25530 else
25531 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25532 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25533 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25534 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25535 echo $ECHO_N "(cached) $ECHO_C" >&6
25536 else
25537 ac_check_lib_save_LIBS=$LIBS
25538 LIBS="-lm ${pbxlibdir} $LIBS"
25539 cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h. */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25546 /* Override any GCC internal prototype to avoid an error.
25547 Use char because int might match the return type of a GCC
25548 builtin and then its argument prototype would still apply. */
25549 #ifdef __cplusplus
25550 extern "C"
25551 #endif
25552 char ${pbxfuncname} ();
25554 main ()
25556 return ${pbxfuncname} ();
25558 return 0;
25560 _ACEOF
25561 rm -f conftest.$ac_objext conftest$ac_exeext
25562 if { (ac_try="$ac_link"
25563 case "(($ac_try" in
25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565 *) ac_try_echo=$ac_try;;
25566 esac
25567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25568 (eval "$ac_link") 2>conftest.er1
25569 ac_status=$?
25570 grep -v '^ *+' conftest.er1 >conftest.err
25571 rm -f conftest.er1
25572 cat conftest.err >&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); } && {
25575 test -z "$ac_c_werror_flag" ||
25576 test ! -s conftest.err
25577 } && test -s conftest$ac_exeext &&
25578 $as_test_x conftest$ac_exeext; then
25579 eval "$as_ac_Lib=yes"
25580 else
25581 echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25584 eval "$as_ac_Lib=no"
25587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25588 conftest$ac_exeext conftest.$ac_ext
25589 LIBS=$ac_check_lib_save_LIBS
25591 ac_res=`eval echo '${'$as_ac_Lib'}'`
25592 { echo "$as_me:$LINENO: result: $ac_res" >&5
25593 echo "${ECHO_T}$ac_res" >&6; }
25594 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25595 AST_LOG10_FOUND=yes
25596 else
25597 AST_LOG10_FOUND=no
25602 # now check for the header.
25603 if test "${AST_LOG10_FOUND}" = "yes"; then
25604 LOG10_LIB="${pbxlibdir} -lm "
25605 # if --with-LOG10=DIR has been specified, use it.
25606 if test "x${LOG10_DIR}" != "x"; then
25607 LOG10_INCLUDE="-I${LOG10_DIR}/include"
25609 LOG10_INCLUDE="${LOG10_INCLUDE} "
25610 if test "x" = "x" ; then # no header, assume found
25611 LOG10_HEADER_FOUND="1"
25612 else # check for the header
25613 saved_cppflags="${CPPFLAGS}"
25614 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE} "
25615 if test "${ac_cv_header_+set}" = set; then
25616 { echo "$as_me:$LINENO: checking for " >&5
25617 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25618 if test "${ac_cv_header_+set}" = set; then
25619 echo $ECHO_N "(cached) $ECHO_C" >&6
25621 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25622 echo "${ECHO_T}$ac_cv_header_" >&6; }
25623 else
25624 # Is the header compilable?
25625 { echo "$as_me:$LINENO: checking usability" >&5
25626 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25627 cat >conftest.$ac_ext <<_ACEOF
25628 /* confdefs.h. */
25629 _ACEOF
25630 cat confdefs.h >>conftest.$ac_ext
25631 cat >>conftest.$ac_ext <<_ACEOF
25632 /* end confdefs.h. */
25633 $ac_includes_default
25634 #include <>
25635 _ACEOF
25636 rm -f conftest.$ac_objext
25637 if { (ac_try="$ac_compile"
25638 case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25641 esac
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643 (eval "$ac_compile") 2>conftest.er1
25644 ac_status=$?
25645 grep -v '^ *+' conftest.er1 >conftest.err
25646 rm -f conftest.er1
25647 cat conftest.err >&5
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } && {
25650 test -z "$ac_c_werror_flag" ||
25651 test ! -s conftest.err
25652 } && test -s conftest.$ac_objext; then
25653 ac_header_compiler=yes
25654 else
25655 echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25658 ac_header_compiler=no
25661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25663 echo "${ECHO_T}$ac_header_compiler" >&6; }
25665 # Is the header present?
25666 { echo "$as_me:$LINENO: checking presence" >&5
25667 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25668 cat >conftest.$ac_ext <<_ACEOF
25669 /* confdefs.h. */
25670 _ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h. */
25674 #include <>
25675 _ACEOF
25676 if { (ac_try="$ac_cpp conftest.$ac_ext"
25677 case "(($ac_try" in
25678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25679 *) ac_try_echo=$ac_try;;
25680 esac
25681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25683 ac_status=$?
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } >/dev/null && {
25689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 }; then
25692 ac_header_preproc=yes
25693 else
25694 echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25697 ac_header_preproc=no
25700 rm -f conftest.err conftest.$ac_ext
25701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25702 echo "${ECHO_T}$ac_header_preproc" >&6; }
25704 # So? What about this header?
25705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25706 yes:no: )
25707 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25708 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25709 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25710 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25711 ac_header_preproc=yes
25713 no:yes:* )
25714 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25715 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25716 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25717 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25718 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25719 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25720 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25721 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25722 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25723 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25724 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25725 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25726 ( cat <<\_ASBOX
25727 ## ------------------------------- ##
25728 ## Report this to www.asterisk.org ##
25729 ## ------------------------------- ##
25730 _ASBOX
25731 ) | sed "s/^/$as_me: WARNING: /" >&2
25733 esac
25734 { echo "$as_me:$LINENO: checking for " >&5
25735 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25736 if test "${ac_cv_header_+set}" = set; then
25737 echo $ECHO_N "(cached) $ECHO_C" >&6
25738 else
25739 ac_cv_header_=$ac_header_preproc
25741 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25742 echo "${ECHO_T}$ac_cv_header_" >&6; }
25745 if test $ac_cv_header_ = yes; then
25746 LOG10_HEADER_FOUND=1
25747 else
25748 LOG10_HEADER_FOUND=0
25752 CPPFLAGS="${saved_cppflags}"
25754 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
25755 LOG10_LIB=""
25756 LOG10_INCLUDE=""
25757 else
25758 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25759 LOG10_LIB=""
25761 PBX_LOG10=1
25762 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25764 cat >>confdefs.h <<_ACEOF
25765 #define HAVE_LOG10 1
25766 _ACEOF
25769 cat >>confdefs.h <<_ACEOF
25770 #define HAVE_LOG10_VERSION
25771 _ACEOF
25778 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
25779 pbxlibdir=""
25780 # if --with-SIN=DIR has been specified, use it.
25781 if test "x${SIN_DIR}" != "x"; then
25782 if test -d ${SIN_DIR}/lib; then
25783 pbxlibdir="-L${SIN_DIR}/lib"
25784 else
25785 pbxlibdir="-L${SIN_DIR}"
25788 pbxfuncname="sin"
25789 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25790 AST_SIN_FOUND=yes
25791 else
25792 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25793 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25794 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25795 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25797 else
25798 ac_check_lib_save_LIBS=$LIBS
25799 LIBS="-lm ${pbxlibdir} $LIBS"
25800 cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h. */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25807 /* Override any GCC internal prototype to avoid an error.
25808 Use char because int might match the return type of a GCC
25809 builtin and then its argument prototype would still apply. */
25810 #ifdef __cplusplus
25811 extern "C"
25812 #endif
25813 char ${pbxfuncname} ();
25815 main ()
25817 return ${pbxfuncname} ();
25819 return 0;
25821 _ACEOF
25822 rm -f conftest.$ac_objext conftest$ac_exeext
25823 if { (ac_try="$ac_link"
25824 case "(($ac_try" in
25825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25826 *) ac_try_echo=$ac_try;;
25827 esac
25828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25829 (eval "$ac_link") 2>conftest.er1
25830 ac_status=$?
25831 grep -v '^ *+' conftest.er1 >conftest.err
25832 rm -f conftest.er1
25833 cat conftest.err >&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); } && {
25836 test -z "$ac_c_werror_flag" ||
25837 test ! -s conftest.err
25838 } && test -s conftest$ac_exeext &&
25839 $as_test_x conftest$ac_exeext; then
25840 eval "$as_ac_Lib=yes"
25841 else
25842 echo "$as_me: failed program was:" >&5
25843 sed 's/^/| /' conftest.$ac_ext >&5
25845 eval "$as_ac_Lib=no"
25848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25849 conftest$ac_exeext conftest.$ac_ext
25850 LIBS=$ac_check_lib_save_LIBS
25852 ac_res=`eval echo '${'$as_ac_Lib'}'`
25853 { echo "$as_me:$LINENO: result: $ac_res" >&5
25854 echo "${ECHO_T}$ac_res" >&6; }
25855 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25856 AST_SIN_FOUND=yes
25857 else
25858 AST_SIN_FOUND=no
25863 # now check for the header.
25864 if test "${AST_SIN_FOUND}" = "yes"; then
25865 SIN_LIB="${pbxlibdir} -lm "
25866 # if --with-SIN=DIR has been specified, use it.
25867 if test "x${SIN_DIR}" != "x"; then
25868 SIN_INCLUDE="-I${SIN_DIR}/include"
25870 SIN_INCLUDE="${SIN_INCLUDE} "
25871 if test "x" = "x" ; then # no header, assume found
25872 SIN_HEADER_FOUND="1"
25873 else # check for the header
25874 saved_cppflags="${CPPFLAGS}"
25875 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE} "
25876 if test "${ac_cv_header_+set}" = set; then
25877 { echo "$as_me:$LINENO: checking for " >&5
25878 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25879 if test "${ac_cv_header_+set}" = set; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25882 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25883 echo "${ECHO_T}$ac_cv_header_" >&6; }
25884 else
25885 # Is the header compilable?
25886 { echo "$as_me:$LINENO: checking usability" >&5
25887 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25888 cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h. */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 $ac_includes_default
25895 #include <>
25896 _ACEOF
25897 rm -f conftest.$ac_objext
25898 if { (ac_try="$ac_compile"
25899 case "(($ac_try" in
25900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901 *) ac_try_echo=$ac_try;;
25902 esac
25903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25904 (eval "$ac_compile") 2>conftest.er1
25905 ac_status=$?
25906 grep -v '^ *+' conftest.er1 >conftest.err
25907 rm -f conftest.er1
25908 cat conftest.err >&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } && {
25911 test -z "$ac_c_werror_flag" ||
25912 test ! -s conftest.err
25913 } && test -s conftest.$ac_objext; then
25914 ac_header_compiler=yes
25915 else
25916 echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25919 ac_header_compiler=no
25922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25924 echo "${ECHO_T}$ac_header_compiler" >&6; }
25926 # Is the header present?
25927 { echo "$as_me:$LINENO: checking presence" >&5
25928 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25929 cat >conftest.$ac_ext <<_ACEOF
25930 /* confdefs.h. */
25931 _ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25935 #include <>
25936 _ACEOF
25937 if { (ac_try="$ac_cpp conftest.$ac_ext"
25938 case "(($ac_try" in
25939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940 *) ac_try_echo=$ac_try;;
25941 esac
25942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25944 ac_status=$?
25945 grep -v '^ *+' conftest.er1 >conftest.err
25946 rm -f conftest.er1
25947 cat conftest.err >&5
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); } >/dev/null && {
25950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25951 test ! -s conftest.err
25952 }; then
25953 ac_header_preproc=yes
25954 else
25955 echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25958 ac_header_preproc=no
25961 rm -f conftest.err conftest.$ac_ext
25962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25963 echo "${ECHO_T}$ac_header_preproc" >&6; }
25965 # So? What about this header?
25966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25967 yes:no: )
25968 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25969 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25970 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25971 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25972 ac_header_preproc=yes
25974 no:yes:* )
25975 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25976 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25977 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25978 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25979 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25980 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25982 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25983 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25984 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25985 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25986 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25987 ( cat <<\_ASBOX
25988 ## ------------------------------- ##
25989 ## Report this to www.asterisk.org ##
25990 ## ------------------------------- ##
25991 _ASBOX
25992 ) | sed "s/^/$as_me: WARNING: /" >&2
25994 esac
25995 { echo "$as_me:$LINENO: checking for " >&5
25996 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25997 if test "${ac_cv_header_+set}" = set; then
25998 echo $ECHO_N "(cached) $ECHO_C" >&6
25999 else
26000 ac_cv_header_=$ac_header_preproc
26002 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26003 echo "${ECHO_T}$ac_cv_header_" >&6; }
26006 if test $ac_cv_header_ = yes; then
26007 SIN_HEADER_FOUND=1
26008 else
26009 SIN_HEADER_FOUND=0
26013 CPPFLAGS="${saved_cppflags}"
26015 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
26016 SIN_LIB=""
26017 SIN_INCLUDE=""
26018 else
26019 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26020 SIN_LIB=""
26022 PBX_SIN=1
26023 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26025 cat >>confdefs.h <<_ACEOF
26026 #define HAVE_SIN 1
26027 _ACEOF
26030 cat >>confdefs.h <<_ACEOF
26031 #define HAVE_SIN_VERSION
26032 _ACEOF
26039 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
26040 pbxlibdir=""
26041 # if --with-COS=DIR has been specified, use it.
26042 if test "x${COS_DIR}" != "x"; then
26043 if test -d ${COS_DIR}/lib; then
26044 pbxlibdir="-L${COS_DIR}/lib"
26045 else
26046 pbxlibdir="-L${COS_DIR}"
26049 pbxfuncname="cos"
26050 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26051 AST_COS_FOUND=yes
26052 else
26053 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26054 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26055 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26056 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26057 echo $ECHO_N "(cached) $ECHO_C" >&6
26058 else
26059 ac_check_lib_save_LIBS=$LIBS
26060 LIBS="-lm ${pbxlibdir} $LIBS"
26061 cat >conftest.$ac_ext <<_ACEOF
26062 /* confdefs.h. */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26068 /* Override any GCC internal prototype to avoid an error.
26069 Use char because int might match the return type of a GCC
26070 builtin and then its argument prototype would still apply. */
26071 #ifdef __cplusplus
26072 extern "C"
26073 #endif
26074 char ${pbxfuncname} ();
26076 main ()
26078 return ${pbxfuncname} ();
26080 return 0;
26082 _ACEOF
26083 rm -f conftest.$ac_objext conftest$ac_exeext
26084 if { (ac_try="$ac_link"
26085 case "(($ac_try" in
26086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26087 *) ac_try_echo=$ac_try;;
26088 esac
26089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26090 (eval "$ac_link") 2>conftest.er1
26091 ac_status=$?
26092 grep -v '^ *+' conftest.er1 >conftest.err
26093 rm -f conftest.er1
26094 cat conftest.err >&5
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); } && {
26097 test -z "$ac_c_werror_flag" ||
26098 test ! -s conftest.err
26099 } && test -s conftest$ac_exeext &&
26100 $as_test_x conftest$ac_exeext; then
26101 eval "$as_ac_Lib=yes"
26102 else
26103 echo "$as_me: failed program was:" >&5
26104 sed 's/^/| /' conftest.$ac_ext >&5
26106 eval "$as_ac_Lib=no"
26109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26110 conftest$ac_exeext conftest.$ac_ext
26111 LIBS=$ac_check_lib_save_LIBS
26113 ac_res=`eval echo '${'$as_ac_Lib'}'`
26114 { echo "$as_me:$LINENO: result: $ac_res" >&5
26115 echo "${ECHO_T}$ac_res" >&6; }
26116 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26117 AST_COS_FOUND=yes
26118 else
26119 AST_COS_FOUND=no
26124 # now check for the header.
26125 if test "${AST_COS_FOUND}" = "yes"; then
26126 COS_LIB="${pbxlibdir} -lm "
26127 # if --with-COS=DIR has been specified, use it.
26128 if test "x${COS_DIR}" != "x"; then
26129 COS_INCLUDE="-I${COS_DIR}/include"
26131 COS_INCLUDE="${COS_INCLUDE} "
26132 if test "x" = "x" ; then # no header, assume found
26133 COS_HEADER_FOUND="1"
26134 else # check for the header
26135 saved_cppflags="${CPPFLAGS}"
26136 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE} "
26137 if test "${ac_cv_header_+set}" = set; then
26138 { echo "$as_me:$LINENO: checking for " >&5
26139 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26140 if test "${ac_cv_header_+set}" = set; then
26141 echo $ECHO_N "(cached) $ECHO_C" >&6
26143 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26144 echo "${ECHO_T}$ac_cv_header_" >&6; }
26145 else
26146 # Is the header compilable?
26147 { echo "$as_me:$LINENO: checking usability" >&5
26148 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26149 cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h. */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 $ac_includes_default
26156 #include <>
26157 _ACEOF
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26163 esac
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_compile") 2>conftest.er1
26166 ac_status=$?
26167 grep -v '^ *+' conftest.er1 >conftest.err
26168 rm -f conftest.er1
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } && {
26172 test -z "$ac_c_werror_flag" ||
26173 test ! -s conftest.err
26174 } && test -s conftest.$ac_objext; then
26175 ac_header_compiler=yes
26176 else
26177 echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26180 ac_header_compiler=no
26183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26185 echo "${ECHO_T}$ac_header_compiler" >&6; }
26187 # Is the header present?
26188 { echo "$as_me:$LINENO: checking presence" >&5
26189 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h. */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 #include <>
26197 _ACEOF
26198 if { (ac_try="$ac_cpp conftest.$ac_ext"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26202 esac
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26205 ac_status=$?
26206 grep -v '^ *+' conftest.er1 >conftest.err
26207 rm -f conftest.er1
26208 cat conftest.err >&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } >/dev/null && {
26211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26212 test ! -s conftest.err
26213 }; then
26214 ac_header_preproc=yes
26215 else
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 ac_header_preproc=no
26222 rm -f conftest.err conftest.$ac_ext
26223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26224 echo "${ECHO_T}$ac_header_preproc" >&6; }
26226 # So? What about this header?
26227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26228 yes:no: )
26229 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26230 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26231 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26232 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26233 ac_header_preproc=yes
26235 no:yes:* )
26236 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26237 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26239 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26241 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26243 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26244 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26245 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26246 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26247 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26248 ( cat <<\_ASBOX
26249 ## ------------------------------- ##
26250 ## Report this to www.asterisk.org ##
26251 ## ------------------------------- ##
26252 _ASBOX
26253 ) | sed "s/^/$as_me: WARNING: /" >&2
26255 esac
26256 { echo "$as_me:$LINENO: checking for " >&5
26257 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26258 if test "${ac_cv_header_+set}" = set; then
26259 echo $ECHO_N "(cached) $ECHO_C" >&6
26260 else
26261 ac_cv_header_=$ac_header_preproc
26263 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26264 echo "${ECHO_T}$ac_cv_header_" >&6; }
26267 if test $ac_cv_header_ = yes; then
26268 COS_HEADER_FOUND=1
26269 else
26270 COS_HEADER_FOUND=0
26274 CPPFLAGS="${saved_cppflags}"
26276 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26277 COS_LIB=""
26278 COS_INCLUDE=""
26279 else
26280 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26281 COS_LIB=""
26283 PBX_COS=1
26284 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26286 cat >>confdefs.h <<_ACEOF
26287 #define HAVE_COS 1
26288 _ACEOF
26291 cat >>confdefs.h <<_ACEOF
26292 #define HAVE_COS_VERSION
26293 _ACEOF
26300 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26301 pbxlibdir=""
26302 # if --with-TAN=DIR has been specified, use it.
26303 if test "x${TAN_DIR}" != "x"; then
26304 if test -d ${TAN_DIR}/lib; then
26305 pbxlibdir="-L${TAN_DIR}/lib"
26306 else
26307 pbxlibdir="-L${TAN_DIR}"
26310 pbxfuncname="tan"
26311 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26312 AST_TAN_FOUND=yes
26313 else
26314 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26315 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26316 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26317 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26318 echo $ECHO_N "(cached) $ECHO_C" >&6
26319 else
26320 ac_check_lib_save_LIBS=$LIBS
26321 LIBS="-lm ${pbxlibdir} $LIBS"
26322 cat >conftest.$ac_ext <<_ACEOF
26323 /* confdefs.h. */
26324 _ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h. */
26329 /* Override any GCC internal prototype to avoid an error.
26330 Use char because int might match the return type of a GCC
26331 builtin and then its argument prototype would still apply. */
26332 #ifdef __cplusplus
26333 extern "C"
26334 #endif
26335 char ${pbxfuncname} ();
26337 main ()
26339 return ${pbxfuncname} ();
26341 return 0;
26343 _ACEOF
26344 rm -f conftest.$ac_objext conftest$ac_exeext
26345 if { (ac_try="$ac_link"
26346 case "(($ac_try" in
26347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26348 *) ac_try_echo=$ac_try;;
26349 esac
26350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26351 (eval "$ac_link") 2>conftest.er1
26352 ac_status=$?
26353 grep -v '^ *+' conftest.er1 >conftest.err
26354 rm -f conftest.er1
26355 cat conftest.err >&5
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } && {
26358 test -z "$ac_c_werror_flag" ||
26359 test ! -s conftest.err
26360 } && test -s conftest$ac_exeext &&
26361 $as_test_x conftest$ac_exeext; then
26362 eval "$as_ac_Lib=yes"
26363 else
26364 echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26367 eval "$as_ac_Lib=no"
26370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26371 conftest$ac_exeext conftest.$ac_ext
26372 LIBS=$ac_check_lib_save_LIBS
26374 ac_res=`eval echo '${'$as_ac_Lib'}'`
26375 { echo "$as_me:$LINENO: result: $ac_res" >&5
26376 echo "${ECHO_T}$ac_res" >&6; }
26377 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26378 AST_TAN_FOUND=yes
26379 else
26380 AST_TAN_FOUND=no
26385 # now check for the header.
26386 if test "${AST_TAN_FOUND}" = "yes"; then
26387 TAN_LIB="${pbxlibdir} -lm "
26388 # if --with-TAN=DIR has been specified, use it.
26389 if test "x${TAN_DIR}" != "x"; then
26390 TAN_INCLUDE="-I${TAN_DIR}/include"
26392 TAN_INCLUDE="${TAN_INCLUDE} "
26393 if test "x" = "x" ; then # no header, assume found
26394 TAN_HEADER_FOUND="1"
26395 else # check for the header
26396 saved_cppflags="${CPPFLAGS}"
26397 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE} "
26398 if test "${ac_cv_header_+set}" = set; then
26399 { echo "$as_me:$LINENO: checking for " >&5
26400 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26401 if test "${ac_cv_header_+set}" = set; then
26402 echo $ECHO_N "(cached) $ECHO_C" >&6
26404 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26405 echo "${ECHO_T}$ac_cv_header_" >&6; }
26406 else
26407 # Is the header compilable?
26408 { echo "$as_me:$LINENO: checking usability" >&5
26409 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26410 cat >conftest.$ac_ext <<_ACEOF
26411 /* confdefs.h. */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 $ac_includes_default
26417 #include <>
26418 _ACEOF
26419 rm -f conftest.$ac_objext
26420 if { (ac_try="$ac_compile"
26421 case "(($ac_try" in
26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423 *) ac_try_echo=$ac_try;;
26424 esac
26425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26426 (eval "$ac_compile") 2>conftest.er1
26427 ac_status=$?
26428 grep -v '^ *+' conftest.er1 >conftest.err
26429 rm -f conftest.er1
26430 cat conftest.err >&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && {
26433 test -z "$ac_c_werror_flag" ||
26434 test ! -s conftest.err
26435 } && test -s conftest.$ac_objext; then
26436 ac_header_compiler=yes
26437 else
26438 echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26441 ac_header_compiler=no
26444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26446 echo "${ECHO_T}$ac_header_compiler" >&6; }
26448 # Is the header present?
26449 { echo "$as_me:$LINENO: checking presence" >&5
26450 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26451 cat >conftest.$ac_ext <<_ACEOF
26452 /* confdefs.h. */
26453 _ACEOF
26454 cat confdefs.h >>conftest.$ac_ext
26455 cat >>conftest.$ac_ext <<_ACEOF
26456 /* end confdefs.h. */
26457 #include <>
26458 _ACEOF
26459 if { (ac_try="$ac_cpp conftest.$ac_ext"
26460 case "(($ac_try" in
26461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26462 *) ac_try_echo=$ac_try;;
26463 esac
26464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26466 ac_status=$?
26467 grep -v '^ *+' conftest.er1 >conftest.err
26468 rm -f conftest.er1
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } >/dev/null && {
26472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26473 test ! -s conftest.err
26474 }; then
26475 ac_header_preproc=yes
26476 else
26477 echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26480 ac_header_preproc=no
26483 rm -f conftest.err conftest.$ac_ext
26484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26485 echo "${ECHO_T}$ac_header_preproc" >&6; }
26487 # So? What about this header?
26488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26489 yes:no: )
26490 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26491 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26492 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26493 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26494 ac_header_preproc=yes
26496 no:yes:* )
26497 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26498 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26499 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26500 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26501 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26502 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26503 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26504 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26505 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26506 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26507 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26508 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26509 ( cat <<\_ASBOX
26510 ## ------------------------------- ##
26511 ## Report this to www.asterisk.org ##
26512 ## ------------------------------- ##
26513 _ASBOX
26514 ) | sed "s/^/$as_me: WARNING: /" >&2
26516 esac
26517 { echo "$as_me:$LINENO: checking for " >&5
26518 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26519 if test "${ac_cv_header_+set}" = set; then
26520 echo $ECHO_N "(cached) $ECHO_C" >&6
26521 else
26522 ac_cv_header_=$ac_header_preproc
26524 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26525 echo "${ECHO_T}$ac_cv_header_" >&6; }
26528 if test $ac_cv_header_ = yes; then
26529 TAN_HEADER_FOUND=1
26530 else
26531 TAN_HEADER_FOUND=0
26535 CPPFLAGS="${saved_cppflags}"
26537 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
26538 TAN_LIB=""
26539 TAN_INCLUDE=""
26540 else
26541 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26542 TAN_LIB=""
26544 PBX_TAN=1
26545 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26547 cat >>confdefs.h <<_ACEOF
26548 #define HAVE_TAN 1
26549 _ACEOF
26552 cat >>confdefs.h <<_ACEOF
26553 #define HAVE_TAN_VERSION
26554 _ACEOF
26561 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
26562 pbxlibdir=""
26563 # if --with-ASIN=DIR has been specified, use it.
26564 if test "x${ASIN_DIR}" != "x"; then
26565 if test -d ${ASIN_DIR}/lib; then
26566 pbxlibdir="-L${ASIN_DIR}/lib"
26567 else
26568 pbxlibdir="-L${ASIN_DIR}"
26571 pbxfuncname="asin"
26572 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26573 AST_ASIN_FOUND=yes
26574 else
26575 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26576 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26577 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26578 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26580 else
26581 ac_check_lib_save_LIBS=$LIBS
26582 LIBS="-lm ${pbxlibdir} $LIBS"
26583 cat >conftest.$ac_ext <<_ACEOF
26584 /* confdefs.h. */
26585 _ACEOF
26586 cat confdefs.h >>conftest.$ac_ext
26587 cat >>conftest.$ac_ext <<_ACEOF
26588 /* end confdefs.h. */
26590 /* Override any GCC internal prototype to avoid an error.
26591 Use char because int might match the return type of a GCC
26592 builtin and then its argument prototype would still apply. */
26593 #ifdef __cplusplus
26594 extern "C"
26595 #endif
26596 char ${pbxfuncname} ();
26598 main ()
26600 return ${pbxfuncname} ();
26602 return 0;
26604 _ACEOF
26605 rm -f conftest.$ac_objext conftest$ac_exeext
26606 if { (ac_try="$ac_link"
26607 case "(($ac_try" in
26608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26609 *) ac_try_echo=$ac_try;;
26610 esac
26611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26612 (eval "$ac_link") 2>conftest.er1
26613 ac_status=$?
26614 grep -v '^ *+' conftest.er1 >conftest.err
26615 rm -f conftest.er1
26616 cat conftest.err >&5
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); } && {
26619 test -z "$ac_c_werror_flag" ||
26620 test ! -s conftest.err
26621 } && test -s conftest$ac_exeext &&
26622 $as_test_x conftest$ac_exeext; then
26623 eval "$as_ac_Lib=yes"
26624 else
26625 echo "$as_me: failed program was:" >&5
26626 sed 's/^/| /' conftest.$ac_ext >&5
26628 eval "$as_ac_Lib=no"
26631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26632 conftest$ac_exeext conftest.$ac_ext
26633 LIBS=$ac_check_lib_save_LIBS
26635 ac_res=`eval echo '${'$as_ac_Lib'}'`
26636 { echo "$as_me:$LINENO: result: $ac_res" >&5
26637 echo "${ECHO_T}$ac_res" >&6; }
26638 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26639 AST_ASIN_FOUND=yes
26640 else
26641 AST_ASIN_FOUND=no
26646 # now check for the header.
26647 if test "${AST_ASIN_FOUND}" = "yes"; then
26648 ASIN_LIB="${pbxlibdir} -lm "
26649 # if --with-ASIN=DIR has been specified, use it.
26650 if test "x${ASIN_DIR}" != "x"; then
26651 ASIN_INCLUDE="-I${ASIN_DIR}/include"
26653 ASIN_INCLUDE="${ASIN_INCLUDE} "
26654 if test "x" = "x" ; then # no header, assume found
26655 ASIN_HEADER_FOUND="1"
26656 else # check for the header
26657 saved_cppflags="${CPPFLAGS}"
26658 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE} "
26659 if test "${ac_cv_header_+set}" = set; then
26660 { echo "$as_me:$LINENO: checking for " >&5
26661 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26662 if test "${ac_cv_header_+set}" = set; then
26663 echo $ECHO_N "(cached) $ECHO_C" >&6
26665 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26666 echo "${ECHO_T}$ac_cv_header_" >&6; }
26667 else
26668 # Is the header compilable?
26669 { echo "$as_me:$LINENO: checking usability" >&5
26670 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26671 cat >conftest.$ac_ext <<_ACEOF
26672 /* confdefs.h. */
26673 _ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h. */
26677 $ac_includes_default
26678 #include <>
26679 _ACEOF
26680 rm -f conftest.$ac_objext
26681 if { (ac_try="$ac_compile"
26682 case "(($ac_try" in
26683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684 *) ac_try_echo=$ac_try;;
26685 esac
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687 (eval "$ac_compile") 2>conftest.er1
26688 ac_status=$?
26689 grep -v '^ *+' conftest.er1 >conftest.err
26690 rm -f conftest.er1
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } && {
26694 test -z "$ac_c_werror_flag" ||
26695 test ! -s conftest.err
26696 } && test -s conftest.$ac_objext; then
26697 ac_header_compiler=yes
26698 else
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ac_header_compiler=no
26705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26707 echo "${ECHO_T}$ac_header_compiler" >&6; }
26709 # Is the header present?
26710 { echo "$as_me:$LINENO: checking presence" >&5
26711 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26712 cat >conftest.$ac_ext <<_ACEOF
26713 /* confdefs.h. */
26714 _ACEOF
26715 cat confdefs.h >>conftest.$ac_ext
26716 cat >>conftest.$ac_ext <<_ACEOF
26717 /* end confdefs.h. */
26718 #include <>
26719 _ACEOF
26720 if { (ac_try="$ac_cpp conftest.$ac_ext"
26721 case "(($ac_try" in
26722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723 *) ac_try_echo=$ac_try;;
26724 esac
26725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26727 ac_status=$?
26728 grep -v '^ *+' conftest.er1 >conftest.err
26729 rm -f conftest.er1
26730 cat conftest.err >&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } >/dev/null && {
26733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26734 test ! -s conftest.err
26735 }; then
26736 ac_header_preproc=yes
26737 else
26738 echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26741 ac_header_preproc=no
26744 rm -f conftest.err conftest.$ac_ext
26745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26746 echo "${ECHO_T}$ac_header_preproc" >&6; }
26748 # So? What about this header?
26749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26750 yes:no: )
26751 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26752 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26753 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26754 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26755 ac_header_preproc=yes
26757 no:yes:* )
26758 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26759 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26760 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26761 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26762 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26763 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26764 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26765 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26766 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26767 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26768 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26769 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26770 ( cat <<\_ASBOX
26771 ## ------------------------------- ##
26772 ## Report this to www.asterisk.org ##
26773 ## ------------------------------- ##
26774 _ASBOX
26775 ) | sed "s/^/$as_me: WARNING: /" >&2
26777 esac
26778 { echo "$as_me:$LINENO: checking for " >&5
26779 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26780 if test "${ac_cv_header_+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26782 else
26783 ac_cv_header_=$ac_header_preproc
26785 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26786 echo "${ECHO_T}$ac_cv_header_" >&6; }
26789 if test $ac_cv_header_ = yes; then
26790 ASIN_HEADER_FOUND=1
26791 else
26792 ASIN_HEADER_FOUND=0
26796 CPPFLAGS="${saved_cppflags}"
26798 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
26799 ASIN_LIB=""
26800 ASIN_INCLUDE=""
26801 else
26802 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26803 ASIN_LIB=""
26805 PBX_ASIN=1
26806 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26808 cat >>confdefs.h <<_ACEOF
26809 #define HAVE_ASIN 1
26810 _ACEOF
26813 cat >>confdefs.h <<_ACEOF
26814 #define HAVE_ASIN_VERSION
26815 _ACEOF
26822 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
26823 pbxlibdir=""
26824 # if --with-ACOS=DIR has been specified, use it.
26825 if test "x${ACOS_DIR}" != "x"; then
26826 if test -d ${ACOS_DIR}/lib; then
26827 pbxlibdir="-L${ACOS_DIR}/lib"
26828 else
26829 pbxlibdir="-L${ACOS_DIR}"
26832 pbxfuncname="acos"
26833 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26834 AST_ACOS_FOUND=yes
26835 else
26836 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26837 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26838 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26839 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26842 ac_check_lib_save_LIBS=$LIBS
26843 LIBS="-lm ${pbxlibdir} $LIBS"
26844 cat >conftest.$ac_ext <<_ACEOF
26845 /* confdefs.h. */
26846 _ACEOF
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h. */
26851 /* Override any GCC internal prototype to avoid an error.
26852 Use char because int might match the return type of a GCC
26853 builtin and then its argument prototype would still apply. */
26854 #ifdef __cplusplus
26855 extern "C"
26856 #endif
26857 char ${pbxfuncname} ();
26859 main ()
26861 return ${pbxfuncname} ();
26863 return 0;
26865 _ACEOF
26866 rm -f conftest.$ac_objext conftest$ac_exeext
26867 if { (ac_try="$ac_link"
26868 case "(($ac_try" in
26869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26870 *) ac_try_echo=$ac_try;;
26871 esac
26872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26873 (eval "$ac_link") 2>conftest.er1
26874 ac_status=$?
26875 grep -v '^ *+' conftest.er1 >conftest.err
26876 rm -f conftest.er1
26877 cat conftest.err >&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); } && {
26880 test -z "$ac_c_werror_flag" ||
26881 test ! -s conftest.err
26882 } && test -s conftest$ac_exeext &&
26883 $as_test_x conftest$ac_exeext; then
26884 eval "$as_ac_Lib=yes"
26885 else
26886 echo "$as_me: failed program was:" >&5
26887 sed 's/^/| /' conftest.$ac_ext >&5
26889 eval "$as_ac_Lib=no"
26892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26893 conftest$ac_exeext conftest.$ac_ext
26894 LIBS=$ac_check_lib_save_LIBS
26896 ac_res=`eval echo '${'$as_ac_Lib'}'`
26897 { echo "$as_me:$LINENO: result: $ac_res" >&5
26898 echo "${ECHO_T}$ac_res" >&6; }
26899 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26900 AST_ACOS_FOUND=yes
26901 else
26902 AST_ACOS_FOUND=no
26907 # now check for the header.
26908 if test "${AST_ACOS_FOUND}" = "yes"; then
26909 ACOS_LIB="${pbxlibdir} -lm "
26910 # if --with-ACOS=DIR has been specified, use it.
26911 if test "x${ACOS_DIR}" != "x"; then
26912 ACOS_INCLUDE="-I${ACOS_DIR}/include"
26914 ACOS_INCLUDE="${ACOS_INCLUDE} "
26915 if test "x" = "x" ; then # no header, assume found
26916 ACOS_HEADER_FOUND="1"
26917 else # check for the header
26918 saved_cppflags="${CPPFLAGS}"
26919 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE} "
26920 if test "${ac_cv_header_+set}" = set; then
26921 { echo "$as_me:$LINENO: checking for " >&5
26922 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26923 if test "${ac_cv_header_+set}" = set; then
26924 echo $ECHO_N "(cached) $ECHO_C" >&6
26926 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26927 echo "${ECHO_T}$ac_cv_header_" >&6; }
26928 else
26929 # Is the header compilable?
26930 { echo "$as_me:$LINENO: checking usability" >&5
26931 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26932 cat >conftest.$ac_ext <<_ACEOF
26933 /* confdefs.h. */
26934 _ACEOF
26935 cat confdefs.h >>conftest.$ac_ext
26936 cat >>conftest.$ac_ext <<_ACEOF
26937 /* end confdefs.h. */
26938 $ac_includes_default
26939 #include <>
26940 _ACEOF
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945 *) ac_try_echo=$ac_try;;
26946 esac
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948 (eval "$ac_compile") 2>conftest.er1
26949 ac_status=$?
26950 grep -v '^ *+' conftest.er1 >conftest.err
26951 rm -f conftest.er1
26952 cat conftest.err >&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } && {
26955 test -z "$ac_c_werror_flag" ||
26956 test ! -s conftest.err
26957 } && test -s conftest.$ac_objext; then
26958 ac_header_compiler=yes
26959 else
26960 echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 ac_header_compiler=no
26966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26968 echo "${ECHO_T}$ac_header_compiler" >&6; }
26970 # Is the header present?
26971 { echo "$as_me:$LINENO: checking presence" >&5
26972 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26973 cat >conftest.$ac_ext <<_ACEOF
26974 /* confdefs.h. */
26975 _ACEOF
26976 cat confdefs.h >>conftest.$ac_ext
26977 cat >>conftest.$ac_ext <<_ACEOF
26978 /* end confdefs.h. */
26979 #include <>
26980 _ACEOF
26981 if { (ac_try="$ac_cpp conftest.$ac_ext"
26982 case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26985 esac
26986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26988 ac_status=$?
26989 grep -v '^ *+' conftest.er1 >conftest.err
26990 rm -f conftest.er1
26991 cat conftest.err >&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } >/dev/null && {
26994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26995 test ! -s conftest.err
26996 }; then
26997 ac_header_preproc=yes
26998 else
26999 echo "$as_me: failed program was:" >&5
27000 sed 's/^/| /' conftest.$ac_ext >&5
27002 ac_header_preproc=no
27005 rm -f conftest.err conftest.$ac_ext
27006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27007 echo "${ECHO_T}$ac_header_preproc" >&6; }
27009 # So? What about this header?
27010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27011 yes:no: )
27012 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27013 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27014 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27015 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27016 ac_header_preproc=yes
27018 no:yes:* )
27019 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27020 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27021 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27022 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27023 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27024 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27025 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27026 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27027 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27028 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27029 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27030 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27031 ( cat <<\_ASBOX
27032 ## ------------------------------- ##
27033 ## Report this to www.asterisk.org ##
27034 ## ------------------------------- ##
27035 _ASBOX
27036 ) | sed "s/^/$as_me: WARNING: /" >&2
27038 esac
27039 { echo "$as_me:$LINENO: checking for " >&5
27040 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27041 if test "${ac_cv_header_+set}" = set; then
27042 echo $ECHO_N "(cached) $ECHO_C" >&6
27043 else
27044 ac_cv_header_=$ac_header_preproc
27046 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27047 echo "${ECHO_T}$ac_cv_header_" >&6; }
27050 if test $ac_cv_header_ = yes; then
27051 ACOS_HEADER_FOUND=1
27052 else
27053 ACOS_HEADER_FOUND=0
27057 CPPFLAGS="${saved_cppflags}"
27059 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
27060 ACOS_LIB=""
27061 ACOS_INCLUDE=""
27062 else
27063 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27064 ACOS_LIB=""
27066 PBX_ACOS=1
27067 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27069 cat >>confdefs.h <<_ACEOF
27070 #define HAVE_ACOS 1
27071 _ACEOF
27074 cat >>confdefs.h <<_ACEOF
27075 #define HAVE_ACOS_VERSION
27076 _ACEOF
27083 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27084 pbxlibdir=""
27085 # if --with-ATAN=DIR has been specified, use it.
27086 if test "x${ATAN_DIR}" != "x"; then
27087 if test -d ${ATAN_DIR}/lib; then
27088 pbxlibdir="-L${ATAN_DIR}/lib"
27089 else
27090 pbxlibdir="-L${ATAN_DIR}"
27093 pbxfuncname="atan"
27094 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27095 AST_ATAN_FOUND=yes
27096 else
27097 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27098 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27099 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27100 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
27102 else
27103 ac_check_lib_save_LIBS=$LIBS
27104 LIBS="-lm ${pbxlibdir} $LIBS"
27105 cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h. */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27112 /* Override any GCC internal prototype to avoid an error.
27113 Use char because int might match the return type of a GCC
27114 builtin and then its argument prototype would still apply. */
27115 #ifdef __cplusplus
27116 extern "C"
27117 #endif
27118 char ${pbxfuncname} ();
27120 main ()
27122 return ${pbxfuncname} ();
27124 return 0;
27126 _ACEOF
27127 rm -f conftest.$ac_objext conftest$ac_exeext
27128 if { (ac_try="$ac_link"
27129 case "(($ac_try" in
27130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131 *) ac_try_echo=$ac_try;;
27132 esac
27133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134 (eval "$ac_link") 2>conftest.er1
27135 ac_status=$?
27136 grep -v '^ *+' conftest.er1 >conftest.err
27137 rm -f conftest.er1
27138 cat conftest.err >&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } && {
27141 test -z "$ac_c_werror_flag" ||
27142 test ! -s conftest.err
27143 } && test -s conftest$ac_exeext &&
27144 $as_test_x conftest$ac_exeext; then
27145 eval "$as_ac_Lib=yes"
27146 else
27147 echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27150 eval "$as_ac_Lib=no"
27153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27154 conftest$ac_exeext conftest.$ac_ext
27155 LIBS=$ac_check_lib_save_LIBS
27157 ac_res=`eval echo '${'$as_ac_Lib'}'`
27158 { echo "$as_me:$LINENO: result: $ac_res" >&5
27159 echo "${ECHO_T}$ac_res" >&6; }
27160 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27161 AST_ATAN_FOUND=yes
27162 else
27163 AST_ATAN_FOUND=no
27168 # now check for the header.
27169 if test "${AST_ATAN_FOUND}" = "yes"; then
27170 ATAN_LIB="${pbxlibdir} -lm "
27171 # if --with-ATAN=DIR has been specified, use it.
27172 if test "x${ATAN_DIR}" != "x"; then
27173 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27175 ATAN_INCLUDE="${ATAN_INCLUDE} "
27176 if test "x" = "x" ; then # no header, assume found
27177 ATAN_HEADER_FOUND="1"
27178 else # check for the header
27179 saved_cppflags="${CPPFLAGS}"
27180 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE} "
27181 if test "${ac_cv_header_+set}" = set; then
27182 { echo "$as_me:$LINENO: checking for " >&5
27183 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27184 if test "${ac_cv_header_+set}" = set; then
27185 echo $ECHO_N "(cached) $ECHO_C" >&6
27187 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27188 echo "${ECHO_T}$ac_cv_header_" >&6; }
27189 else
27190 # Is the header compilable?
27191 { echo "$as_me:$LINENO: checking usability" >&5
27192 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27193 cat >conftest.$ac_ext <<_ACEOF
27194 /* confdefs.h. */
27195 _ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h. */
27199 $ac_includes_default
27200 #include <>
27201 _ACEOF
27202 rm -f conftest.$ac_objext
27203 if { (ac_try="$ac_compile"
27204 case "(($ac_try" in
27205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206 *) ac_try_echo=$ac_try;;
27207 esac
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209 (eval "$ac_compile") 2>conftest.er1
27210 ac_status=$?
27211 grep -v '^ *+' conftest.er1 >conftest.err
27212 rm -f conftest.er1
27213 cat conftest.err >&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); } && {
27216 test -z "$ac_c_werror_flag" ||
27217 test ! -s conftest.err
27218 } && test -s conftest.$ac_objext; then
27219 ac_header_compiler=yes
27220 else
27221 echo "$as_me: failed program was:" >&5
27222 sed 's/^/| /' conftest.$ac_ext >&5
27224 ac_header_compiler=no
27227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27229 echo "${ECHO_T}$ac_header_compiler" >&6; }
27231 # Is the header present?
27232 { echo "$as_me:$LINENO: checking presence" >&5
27233 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27234 cat >conftest.$ac_ext <<_ACEOF
27235 /* confdefs.h. */
27236 _ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h. */
27240 #include <>
27241 _ACEOF
27242 if { (ac_try="$ac_cpp conftest.$ac_ext"
27243 case "(($ac_try" in
27244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27245 *) ac_try_echo=$ac_try;;
27246 esac
27247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27249 ac_status=$?
27250 grep -v '^ *+' conftest.er1 >conftest.err
27251 rm -f conftest.er1
27252 cat conftest.err >&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } >/dev/null && {
27255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27256 test ! -s conftest.err
27257 }; then
27258 ac_header_preproc=yes
27259 else
27260 echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27263 ac_header_preproc=no
27266 rm -f conftest.err conftest.$ac_ext
27267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27268 echo "${ECHO_T}$ac_header_preproc" >&6; }
27270 # So? What about this header?
27271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27272 yes:no: )
27273 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27274 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27275 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27276 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27277 ac_header_preproc=yes
27279 no:yes:* )
27280 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27281 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27282 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27283 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27284 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27285 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27286 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27287 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27288 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27289 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27290 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27291 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27292 ( cat <<\_ASBOX
27293 ## ------------------------------- ##
27294 ## Report this to www.asterisk.org ##
27295 ## ------------------------------- ##
27296 _ASBOX
27297 ) | sed "s/^/$as_me: WARNING: /" >&2
27299 esac
27300 { echo "$as_me:$LINENO: checking for " >&5
27301 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27302 if test "${ac_cv_header_+set}" = set; then
27303 echo $ECHO_N "(cached) $ECHO_C" >&6
27304 else
27305 ac_cv_header_=$ac_header_preproc
27307 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27308 echo "${ECHO_T}$ac_cv_header_" >&6; }
27311 if test $ac_cv_header_ = yes; then
27312 ATAN_HEADER_FOUND=1
27313 else
27314 ATAN_HEADER_FOUND=0
27318 CPPFLAGS="${saved_cppflags}"
27320 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27321 ATAN_LIB=""
27322 ATAN_INCLUDE=""
27323 else
27324 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27325 ATAN_LIB=""
27327 PBX_ATAN=1
27328 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27330 cat >>confdefs.h <<_ACEOF
27331 #define HAVE_ATAN 1
27332 _ACEOF
27335 cat >>confdefs.h <<_ACEOF
27336 #define HAVE_ATAN_VERSION
27337 _ACEOF
27344 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27345 pbxlibdir=""
27346 # if --with-ATAN2=DIR has been specified, use it.
27347 if test "x${ATAN2_DIR}" != "x"; then
27348 if test -d ${ATAN2_DIR}/lib; then
27349 pbxlibdir="-L${ATAN2_DIR}/lib"
27350 else
27351 pbxlibdir="-L${ATAN2_DIR}"
27354 pbxfuncname="atan2"
27355 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27356 AST_ATAN2_FOUND=yes
27357 else
27358 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27359 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27360 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27361 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 else
27364 ac_check_lib_save_LIBS=$LIBS
27365 LIBS="-lm ${pbxlibdir} $LIBS"
27366 cat >conftest.$ac_ext <<_ACEOF
27367 /* confdefs.h. */
27368 _ACEOF
27369 cat confdefs.h >>conftest.$ac_ext
27370 cat >>conftest.$ac_ext <<_ACEOF
27371 /* end confdefs.h. */
27373 /* Override any GCC internal prototype to avoid an error.
27374 Use char because int might match the return type of a GCC
27375 builtin and then its argument prototype would still apply. */
27376 #ifdef __cplusplus
27377 extern "C"
27378 #endif
27379 char ${pbxfuncname} ();
27381 main ()
27383 return ${pbxfuncname} ();
27385 return 0;
27387 _ACEOF
27388 rm -f conftest.$ac_objext conftest$ac_exeext
27389 if { (ac_try="$ac_link"
27390 case "(($ac_try" in
27391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392 *) ac_try_echo=$ac_try;;
27393 esac
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395 (eval "$ac_link") 2>conftest.er1
27396 ac_status=$?
27397 grep -v '^ *+' conftest.er1 >conftest.err
27398 rm -f conftest.er1
27399 cat conftest.err >&5
27400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401 (exit $ac_status); } && {
27402 test -z "$ac_c_werror_flag" ||
27403 test ! -s conftest.err
27404 } && test -s conftest$ac_exeext &&
27405 $as_test_x conftest$ac_exeext; then
27406 eval "$as_ac_Lib=yes"
27407 else
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27411 eval "$as_ac_Lib=no"
27414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27415 conftest$ac_exeext conftest.$ac_ext
27416 LIBS=$ac_check_lib_save_LIBS
27418 ac_res=`eval echo '${'$as_ac_Lib'}'`
27419 { echo "$as_me:$LINENO: result: $ac_res" >&5
27420 echo "${ECHO_T}$ac_res" >&6; }
27421 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27422 AST_ATAN2_FOUND=yes
27423 else
27424 AST_ATAN2_FOUND=no
27429 # now check for the header.
27430 if test "${AST_ATAN2_FOUND}" = "yes"; then
27431 ATAN2_LIB="${pbxlibdir} -lm "
27432 # if --with-ATAN2=DIR has been specified, use it.
27433 if test "x${ATAN2_DIR}" != "x"; then
27434 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27436 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27437 if test "x" = "x" ; then # no header, assume found
27438 ATAN2_HEADER_FOUND="1"
27439 else # check for the header
27440 saved_cppflags="${CPPFLAGS}"
27441 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE} "
27442 if test "${ac_cv_header_+set}" = set; then
27443 { echo "$as_me:$LINENO: checking for " >&5
27444 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27445 if test "${ac_cv_header_+set}" = set; then
27446 echo $ECHO_N "(cached) $ECHO_C" >&6
27448 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27449 echo "${ECHO_T}$ac_cv_header_" >&6; }
27450 else
27451 # Is the header compilable?
27452 { echo "$as_me:$LINENO: checking usability" >&5
27453 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27454 cat >conftest.$ac_ext <<_ACEOF
27455 /* confdefs.h. */
27456 _ACEOF
27457 cat confdefs.h >>conftest.$ac_ext
27458 cat >>conftest.$ac_ext <<_ACEOF
27459 /* end confdefs.h. */
27460 $ac_includes_default
27461 #include <>
27462 _ACEOF
27463 rm -f conftest.$ac_objext
27464 if { (ac_try="$ac_compile"
27465 case "(($ac_try" in
27466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27467 *) ac_try_echo=$ac_try;;
27468 esac
27469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27470 (eval "$ac_compile") 2>conftest.er1
27471 ac_status=$?
27472 grep -v '^ *+' conftest.er1 >conftest.err
27473 rm -f conftest.er1
27474 cat conftest.err >&5
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); } && {
27477 test -z "$ac_c_werror_flag" ||
27478 test ! -s conftest.err
27479 } && test -s conftest.$ac_objext; then
27480 ac_header_compiler=yes
27481 else
27482 echo "$as_me: failed program was:" >&5
27483 sed 's/^/| /' conftest.$ac_ext >&5
27485 ac_header_compiler=no
27488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27490 echo "${ECHO_T}$ac_header_compiler" >&6; }
27492 # Is the header present?
27493 { echo "$as_me:$LINENO: checking presence" >&5
27494 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27495 cat >conftest.$ac_ext <<_ACEOF
27496 /* confdefs.h. */
27497 _ACEOF
27498 cat confdefs.h >>conftest.$ac_ext
27499 cat >>conftest.$ac_ext <<_ACEOF
27500 /* end confdefs.h. */
27501 #include <>
27502 _ACEOF
27503 if { (ac_try="$ac_cpp conftest.$ac_ext"
27504 case "(($ac_try" in
27505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506 *) ac_try_echo=$ac_try;;
27507 esac
27508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27510 ac_status=$?
27511 grep -v '^ *+' conftest.er1 >conftest.err
27512 rm -f conftest.er1
27513 cat conftest.err >&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } >/dev/null && {
27516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27517 test ! -s conftest.err
27518 }; then
27519 ac_header_preproc=yes
27520 else
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 ac_header_preproc=no
27527 rm -f conftest.err conftest.$ac_ext
27528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27529 echo "${ECHO_T}$ac_header_preproc" >&6; }
27531 # So? What about this header?
27532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27533 yes:no: )
27534 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27535 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27536 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27537 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27538 ac_header_preproc=yes
27540 no:yes:* )
27541 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27542 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27543 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27544 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27545 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27546 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27547 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27548 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27549 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27550 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27551 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27552 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27553 ( cat <<\_ASBOX
27554 ## ------------------------------- ##
27555 ## Report this to www.asterisk.org ##
27556 ## ------------------------------- ##
27557 _ASBOX
27558 ) | sed "s/^/$as_me: WARNING: /" >&2
27560 esac
27561 { echo "$as_me:$LINENO: checking for " >&5
27562 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27563 if test "${ac_cv_header_+set}" = set; then
27564 echo $ECHO_N "(cached) $ECHO_C" >&6
27565 else
27566 ac_cv_header_=$ac_header_preproc
27568 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27569 echo "${ECHO_T}$ac_cv_header_" >&6; }
27572 if test $ac_cv_header_ = yes; then
27573 ATAN2_HEADER_FOUND=1
27574 else
27575 ATAN2_HEADER_FOUND=0
27579 CPPFLAGS="${saved_cppflags}"
27581 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
27582 ATAN2_LIB=""
27583 ATAN2_INCLUDE=""
27584 else
27585 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27586 ATAN2_LIB=""
27588 PBX_ATAN2=1
27589 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27591 cat >>confdefs.h <<_ACEOF
27592 #define HAVE_ATAN2 1
27593 _ACEOF
27596 cat >>confdefs.h <<_ACEOF
27597 #define HAVE_ATAN2_VERSION
27598 _ACEOF
27605 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
27606 pbxlibdir=""
27607 # if --with-POW=DIR has been specified, use it.
27608 if test "x${POW_DIR}" != "x"; then
27609 if test -d ${POW_DIR}/lib; then
27610 pbxlibdir="-L${POW_DIR}/lib"
27611 else
27612 pbxlibdir="-L${POW_DIR}"
27615 pbxfuncname="pow"
27616 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27617 AST_POW_FOUND=yes
27618 else
27619 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27620 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27621 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27622 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27623 echo $ECHO_N "(cached) $ECHO_C" >&6
27624 else
27625 ac_check_lib_save_LIBS=$LIBS
27626 LIBS="-lm ${pbxlibdir} $LIBS"
27627 cat >conftest.$ac_ext <<_ACEOF
27628 /* confdefs.h. */
27629 _ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27634 /* Override any GCC internal prototype to avoid an error.
27635 Use char because int might match the return type of a GCC
27636 builtin and then its argument prototype would still apply. */
27637 #ifdef __cplusplus
27638 extern "C"
27639 #endif
27640 char ${pbxfuncname} ();
27642 main ()
27644 return ${pbxfuncname} ();
27646 return 0;
27648 _ACEOF
27649 rm -f conftest.$ac_objext conftest$ac_exeext
27650 if { (ac_try="$ac_link"
27651 case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27654 esac
27655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656 (eval "$ac_link") 2>conftest.er1
27657 ac_status=$?
27658 grep -v '^ *+' conftest.er1 >conftest.err
27659 rm -f conftest.er1
27660 cat conftest.err >&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); } && {
27663 test -z "$ac_c_werror_flag" ||
27664 test ! -s conftest.err
27665 } && test -s conftest$ac_exeext &&
27666 $as_test_x conftest$ac_exeext; then
27667 eval "$as_ac_Lib=yes"
27668 else
27669 echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 eval "$as_ac_Lib=no"
27675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27676 conftest$ac_exeext conftest.$ac_ext
27677 LIBS=$ac_check_lib_save_LIBS
27679 ac_res=`eval echo '${'$as_ac_Lib'}'`
27680 { echo "$as_me:$LINENO: result: $ac_res" >&5
27681 echo "${ECHO_T}$ac_res" >&6; }
27682 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27683 AST_POW_FOUND=yes
27684 else
27685 AST_POW_FOUND=no
27690 # now check for the header.
27691 if test "${AST_POW_FOUND}" = "yes"; then
27692 POW_LIB="${pbxlibdir} -lm "
27693 # if --with-POW=DIR has been specified, use it.
27694 if test "x${POW_DIR}" != "x"; then
27695 POW_INCLUDE="-I${POW_DIR}/include"
27697 POW_INCLUDE="${POW_INCLUDE} "
27698 if test "x" = "x" ; then # no header, assume found
27699 POW_HEADER_FOUND="1"
27700 else # check for the header
27701 saved_cppflags="${CPPFLAGS}"
27702 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE} "
27703 if test "${ac_cv_header_+set}" = set; then
27704 { echo "$as_me:$LINENO: checking for " >&5
27705 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27706 if test "${ac_cv_header_+set}" = set; then
27707 echo $ECHO_N "(cached) $ECHO_C" >&6
27709 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27710 echo "${ECHO_T}$ac_cv_header_" >&6; }
27711 else
27712 # Is the header compilable?
27713 { echo "$as_me:$LINENO: checking usability" >&5
27714 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27715 cat >conftest.$ac_ext <<_ACEOF
27716 /* confdefs.h. */
27717 _ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h. */
27721 $ac_includes_default
27722 #include <>
27723 _ACEOF
27724 rm -f conftest.$ac_objext
27725 if { (ac_try="$ac_compile"
27726 case "(($ac_try" in
27727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27728 *) ac_try_echo=$ac_try;;
27729 esac
27730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27731 (eval "$ac_compile") 2>conftest.er1
27732 ac_status=$?
27733 grep -v '^ *+' conftest.er1 >conftest.err
27734 rm -f conftest.er1
27735 cat conftest.err >&5
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } && {
27738 test -z "$ac_c_werror_flag" ||
27739 test ! -s conftest.err
27740 } && test -s conftest.$ac_objext; then
27741 ac_header_compiler=yes
27742 else
27743 echo "$as_me: failed program was:" >&5
27744 sed 's/^/| /' conftest.$ac_ext >&5
27746 ac_header_compiler=no
27749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27751 echo "${ECHO_T}$ac_header_compiler" >&6; }
27753 # Is the header present?
27754 { echo "$as_me:$LINENO: checking presence" >&5
27755 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27756 cat >conftest.$ac_ext <<_ACEOF
27757 /* confdefs.h. */
27758 _ACEOF
27759 cat confdefs.h >>conftest.$ac_ext
27760 cat >>conftest.$ac_ext <<_ACEOF
27761 /* end confdefs.h. */
27762 #include <>
27763 _ACEOF
27764 if { (ac_try="$ac_cpp conftest.$ac_ext"
27765 case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27768 esac
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27771 ac_status=$?
27772 grep -v '^ *+' conftest.er1 >conftest.err
27773 rm -f conftest.er1
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); } >/dev/null && {
27777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27778 test ! -s conftest.err
27779 }; then
27780 ac_header_preproc=yes
27781 else
27782 echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27785 ac_header_preproc=no
27788 rm -f conftest.err conftest.$ac_ext
27789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27790 echo "${ECHO_T}$ac_header_preproc" >&6; }
27792 # So? What about this header?
27793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27794 yes:no: )
27795 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27796 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27797 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27798 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27799 ac_header_preproc=yes
27801 no:yes:* )
27802 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27803 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27804 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27805 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27806 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27807 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27808 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27809 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27810 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27811 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27812 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27813 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27814 ( cat <<\_ASBOX
27815 ## ------------------------------- ##
27816 ## Report this to www.asterisk.org ##
27817 ## ------------------------------- ##
27818 _ASBOX
27819 ) | sed "s/^/$as_me: WARNING: /" >&2
27821 esac
27822 { echo "$as_me:$LINENO: checking for " >&5
27823 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27824 if test "${ac_cv_header_+set}" = set; then
27825 echo $ECHO_N "(cached) $ECHO_C" >&6
27826 else
27827 ac_cv_header_=$ac_header_preproc
27829 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27830 echo "${ECHO_T}$ac_cv_header_" >&6; }
27833 if test $ac_cv_header_ = yes; then
27834 POW_HEADER_FOUND=1
27835 else
27836 POW_HEADER_FOUND=0
27840 CPPFLAGS="${saved_cppflags}"
27842 if test "x${POW_HEADER_FOUND}" = "x0" ; then
27843 POW_LIB=""
27844 POW_INCLUDE=""
27845 else
27846 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27847 POW_LIB=""
27849 PBX_POW=1
27850 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27852 cat >>confdefs.h <<_ACEOF
27853 #define HAVE_POW 1
27854 _ACEOF
27857 cat >>confdefs.h <<_ACEOF
27858 #define HAVE_POW_VERSION
27859 _ACEOF
27866 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
27867 pbxlibdir=""
27868 # if --with-SQRT=DIR has been specified, use it.
27869 if test "x${SQRT_DIR}" != "x"; then
27870 if test -d ${SQRT_DIR}/lib; then
27871 pbxlibdir="-L${SQRT_DIR}/lib"
27872 else
27873 pbxlibdir="-L${SQRT_DIR}"
27876 pbxfuncname="sqrt"
27877 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27878 AST_SQRT_FOUND=yes
27879 else
27880 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27881 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27882 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27883 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27884 echo $ECHO_N "(cached) $ECHO_C" >&6
27885 else
27886 ac_check_lib_save_LIBS=$LIBS
27887 LIBS="-lm ${pbxlibdir} $LIBS"
27888 cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h. */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h. */
27895 /* Override any GCC internal prototype to avoid an error.
27896 Use char because int might match the return type of a GCC
27897 builtin and then its argument prototype would still apply. */
27898 #ifdef __cplusplus
27899 extern "C"
27900 #endif
27901 char ${pbxfuncname} ();
27903 main ()
27905 return ${pbxfuncname} ();
27907 return 0;
27909 _ACEOF
27910 rm -f conftest.$ac_objext conftest$ac_exeext
27911 if { (ac_try="$ac_link"
27912 case "(($ac_try" in
27913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914 *) ac_try_echo=$ac_try;;
27915 esac
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917 (eval "$ac_link") 2>conftest.er1
27918 ac_status=$?
27919 grep -v '^ *+' conftest.er1 >conftest.err
27920 rm -f conftest.er1
27921 cat conftest.err >&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); } && {
27924 test -z "$ac_c_werror_flag" ||
27925 test ! -s conftest.err
27926 } && test -s conftest$ac_exeext &&
27927 $as_test_x conftest$ac_exeext; then
27928 eval "$as_ac_Lib=yes"
27929 else
27930 echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.$ac_ext >&5
27933 eval "$as_ac_Lib=no"
27936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27937 conftest$ac_exeext conftest.$ac_ext
27938 LIBS=$ac_check_lib_save_LIBS
27940 ac_res=`eval echo '${'$as_ac_Lib'}'`
27941 { echo "$as_me:$LINENO: result: $ac_res" >&5
27942 echo "${ECHO_T}$ac_res" >&6; }
27943 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27944 AST_SQRT_FOUND=yes
27945 else
27946 AST_SQRT_FOUND=no
27951 # now check for the header.
27952 if test "${AST_SQRT_FOUND}" = "yes"; then
27953 SQRT_LIB="${pbxlibdir} -lm "
27954 # if --with-SQRT=DIR has been specified, use it.
27955 if test "x${SQRT_DIR}" != "x"; then
27956 SQRT_INCLUDE="-I${SQRT_DIR}/include"
27958 SQRT_INCLUDE="${SQRT_INCLUDE} "
27959 if test "x" = "x" ; then # no header, assume found
27960 SQRT_HEADER_FOUND="1"
27961 else # check for the header
27962 saved_cppflags="${CPPFLAGS}"
27963 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE} "
27964 if test "${ac_cv_header_+set}" = set; then
27965 { echo "$as_me:$LINENO: checking for " >&5
27966 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27967 if test "${ac_cv_header_+set}" = set; then
27968 echo $ECHO_N "(cached) $ECHO_C" >&6
27970 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27971 echo "${ECHO_T}$ac_cv_header_" >&6; }
27972 else
27973 # Is the header compilable?
27974 { echo "$as_me:$LINENO: checking usability" >&5
27975 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27976 cat >conftest.$ac_ext <<_ACEOF
27977 /* confdefs.h. */
27978 _ACEOF
27979 cat confdefs.h >>conftest.$ac_ext
27980 cat >>conftest.$ac_ext <<_ACEOF
27981 /* end confdefs.h. */
27982 $ac_includes_default
27983 #include <>
27984 _ACEOF
27985 rm -f conftest.$ac_objext
27986 if { (ac_try="$ac_compile"
27987 case "(($ac_try" in
27988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27989 *) ac_try_echo=$ac_try;;
27990 esac
27991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27992 (eval "$ac_compile") 2>conftest.er1
27993 ac_status=$?
27994 grep -v '^ *+' conftest.er1 >conftest.err
27995 rm -f conftest.er1
27996 cat conftest.err >&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); } && {
27999 test -z "$ac_c_werror_flag" ||
28000 test ! -s conftest.err
28001 } && test -s conftest.$ac_objext; then
28002 ac_header_compiler=yes
28003 else
28004 echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28007 ac_header_compiler=no
28010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28012 echo "${ECHO_T}$ac_header_compiler" >&6; }
28014 # Is the header present?
28015 { echo "$as_me:$LINENO: checking presence" >&5
28016 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28017 cat >conftest.$ac_ext <<_ACEOF
28018 /* confdefs.h. */
28019 _ACEOF
28020 cat confdefs.h >>conftest.$ac_ext
28021 cat >>conftest.$ac_ext <<_ACEOF
28022 /* end confdefs.h. */
28023 #include <>
28024 _ACEOF
28025 if { (ac_try="$ac_cpp conftest.$ac_ext"
28026 case "(($ac_try" in
28027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028 *) ac_try_echo=$ac_try;;
28029 esac
28030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28032 ac_status=$?
28033 grep -v '^ *+' conftest.er1 >conftest.err
28034 rm -f conftest.er1
28035 cat conftest.err >&5
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); } >/dev/null && {
28038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28039 test ! -s conftest.err
28040 }; then
28041 ac_header_preproc=yes
28042 else
28043 echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28046 ac_header_preproc=no
28049 rm -f conftest.err conftest.$ac_ext
28050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28051 echo "${ECHO_T}$ac_header_preproc" >&6; }
28053 # So? What about this header?
28054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28055 yes:no: )
28056 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28057 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28058 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28059 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28060 ac_header_preproc=yes
28062 no:yes:* )
28063 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28064 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28065 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28066 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28067 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28068 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28069 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28070 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28071 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28072 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28073 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28074 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28075 ( cat <<\_ASBOX
28076 ## ------------------------------- ##
28077 ## Report this to www.asterisk.org ##
28078 ## ------------------------------- ##
28079 _ASBOX
28080 ) | sed "s/^/$as_me: WARNING: /" >&2
28082 esac
28083 { echo "$as_me:$LINENO: checking for " >&5
28084 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28085 if test "${ac_cv_header_+set}" = set; then
28086 echo $ECHO_N "(cached) $ECHO_C" >&6
28087 else
28088 ac_cv_header_=$ac_header_preproc
28090 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28091 echo "${ECHO_T}$ac_cv_header_" >&6; }
28094 if test $ac_cv_header_ = yes; then
28095 SQRT_HEADER_FOUND=1
28096 else
28097 SQRT_HEADER_FOUND=0
28101 CPPFLAGS="${saved_cppflags}"
28103 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28104 SQRT_LIB=""
28105 SQRT_INCLUDE=""
28106 else
28107 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28108 SQRT_LIB=""
28110 PBX_SQRT=1
28111 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28113 cat >>confdefs.h <<_ACEOF
28114 #define HAVE_SQRT 1
28115 _ACEOF
28118 cat >>confdefs.h <<_ACEOF
28119 #define HAVE_SQRT_VERSION
28120 _ACEOF
28127 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28128 pbxlibdir=""
28129 # if --with-RINT=DIR has been specified, use it.
28130 if test "x${RINT_DIR}" != "x"; then
28131 if test -d ${RINT_DIR}/lib; then
28132 pbxlibdir="-L${RINT_DIR}/lib"
28133 else
28134 pbxlibdir="-L${RINT_DIR}"
28137 pbxfuncname="rint"
28138 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28139 AST_RINT_FOUND=yes
28140 else
28141 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28142 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28143 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28144 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28145 echo $ECHO_N "(cached) $ECHO_C" >&6
28146 else
28147 ac_check_lib_save_LIBS=$LIBS
28148 LIBS="-lm ${pbxlibdir} $LIBS"
28149 cat >conftest.$ac_ext <<_ACEOF
28150 /* confdefs.h. */
28151 _ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h. */
28156 /* Override any GCC internal prototype to avoid an error.
28157 Use char because int might match the return type of a GCC
28158 builtin and then its argument prototype would still apply. */
28159 #ifdef __cplusplus
28160 extern "C"
28161 #endif
28162 char ${pbxfuncname} ();
28164 main ()
28166 return ${pbxfuncname} ();
28168 return 0;
28170 _ACEOF
28171 rm -f conftest.$ac_objext conftest$ac_exeext
28172 if { (ac_try="$ac_link"
28173 case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28176 esac
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_link") 2>conftest.er1
28179 ac_status=$?
28180 grep -v '^ *+' conftest.er1 >conftest.err
28181 rm -f conftest.er1
28182 cat conftest.err >&5
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); } && {
28185 test -z "$ac_c_werror_flag" ||
28186 test ! -s conftest.err
28187 } && test -s conftest$ac_exeext &&
28188 $as_test_x conftest$ac_exeext; then
28189 eval "$as_ac_Lib=yes"
28190 else
28191 echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28194 eval "$as_ac_Lib=no"
28197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28198 conftest$ac_exeext conftest.$ac_ext
28199 LIBS=$ac_check_lib_save_LIBS
28201 ac_res=`eval echo '${'$as_ac_Lib'}'`
28202 { echo "$as_me:$LINENO: result: $ac_res" >&5
28203 echo "${ECHO_T}$ac_res" >&6; }
28204 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28205 AST_RINT_FOUND=yes
28206 else
28207 AST_RINT_FOUND=no
28212 # now check for the header.
28213 if test "${AST_RINT_FOUND}" = "yes"; then
28214 RINT_LIB="${pbxlibdir} -lm "
28215 # if --with-RINT=DIR has been specified, use it.
28216 if test "x${RINT_DIR}" != "x"; then
28217 RINT_INCLUDE="-I${RINT_DIR}/include"
28219 RINT_INCLUDE="${RINT_INCLUDE} "
28220 if test "x" = "x" ; then # no header, assume found
28221 RINT_HEADER_FOUND="1"
28222 else # check for the header
28223 saved_cppflags="${CPPFLAGS}"
28224 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE} "
28225 if test "${ac_cv_header_+set}" = set; then
28226 { echo "$as_me:$LINENO: checking for " >&5
28227 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28228 if test "${ac_cv_header_+set}" = set; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28231 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28232 echo "${ECHO_T}$ac_cv_header_" >&6; }
28233 else
28234 # Is the header compilable?
28235 { echo "$as_me:$LINENO: checking usability" >&5
28236 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28237 cat >conftest.$ac_ext <<_ACEOF
28238 /* confdefs.h. */
28239 _ACEOF
28240 cat confdefs.h >>conftest.$ac_ext
28241 cat >>conftest.$ac_ext <<_ACEOF
28242 /* end confdefs.h. */
28243 $ac_includes_default
28244 #include <>
28245 _ACEOF
28246 rm -f conftest.$ac_objext
28247 if { (ac_try="$ac_compile"
28248 case "(($ac_try" in
28249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250 *) ac_try_echo=$ac_try;;
28251 esac
28252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28253 (eval "$ac_compile") 2>conftest.er1
28254 ac_status=$?
28255 grep -v '^ *+' conftest.er1 >conftest.err
28256 rm -f conftest.er1
28257 cat conftest.err >&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); } && {
28260 test -z "$ac_c_werror_flag" ||
28261 test ! -s conftest.err
28262 } && test -s conftest.$ac_objext; then
28263 ac_header_compiler=yes
28264 else
28265 echo "$as_me: failed program was:" >&5
28266 sed 's/^/| /' conftest.$ac_ext >&5
28268 ac_header_compiler=no
28271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28273 echo "${ECHO_T}$ac_header_compiler" >&6; }
28275 # Is the header present?
28276 { echo "$as_me:$LINENO: checking presence" >&5
28277 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28278 cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h. */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 #include <>
28285 _ACEOF
28286 if { (ac_try="$ac_cpp conftest.$ac_ext"
28287 case "(($ac_try" in
28288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289 *) ac_try_echo=$ac_try;;
28290 esac
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28293 ac_status=$?
28294 grep -v '^ *+' conftest.er1 >conftest.err
28295 rm -f conftest.er1
28296 cat conftest.err >&5
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } >/dev/null && {
28299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28300 test ! -s conftest.err
28301 }; then
28302 ac_header_preproc=yes
28303 else
28304 echo "$as_me: failed program was:" >&5
28305 sed 's/^/| /' conftest.$ac_ext >&5
28307 ac_header_preproc=no
28310 rm -f conftest.err conftest.$ac_ext
28311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28312 echo "${ECHO_T}$ac_header_preproc" >&6; }
28314 # So? What about this header?
28315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28316 yes:no: )
28317 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28318 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28319 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28320 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28321 ac_header_preproc=yes
28323 no:yes:* )
28324 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28325 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28326 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28327 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28328 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28329 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28330 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28331 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28332 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28333 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28334 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28335 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28336 ( cat <<\_ASBOX
28337 ## ------------------------------- ##
28338 ## Report this to www.asterisk.org ##
28339 ## ------------------------------- ##
28340 _ASBOX
28341 ) | sed "s/^/$as_me: WARNING: /" >&2
28343 esac
28344 { echo "$as_me:$LINENO: checking for " >&5
28345 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28346 if test "${ac_cv_header_+set}" = set; then
28347 echo $ECHO_N "(cached) $ECHO_C" >&6
28348 else
28349 ac_cv_header_=$ac_header_preproc
28351 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28352 echo "${ECHO_T}$ac_cv_header_" >&6; }
28355 if test $ac_cv_header_ = yes; then
28356 RINT_HEADER_FOUND=1
28357 else
28358 RINT_HEADER_FOUND=0
28362 CPPFLAGS="${saved_cppflags}"
28364 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28365 RINT_LIB=""
28366 RINT_INCLUDE=""
28367 else
28368 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28369 RINT_LIB=""
28371 PBX_RINT=1
28372 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28374 cat >>confdefs.h <<_ACEOF
28375 #define HAVE_RINT 1
28376 _ACEOF
28379 cat >>confdefs.h <<_ACEOF
28380 #define HAVE_RINT_VERSION
28381 _ACEOF
28388 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28389 pbxlibdir=""
28390 # if --with-EXP=DIR has been specified, use it.
28391 if test "x${EXP_DIR}" != "x"; then
28392 if test -d ${EXP_DIR}/lib; then
28393 pbxlibdir="-L${EXP_DIR}/lib"
28394 else
28395 pbxlibdir="-L${EXP_DIR}"
28398 pbxfuncname="exp"
28399 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28400 AST_EXP_FOUND=yes
28401 else
28402 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28403 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28404 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28405 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28406 echo $ECHO_N "(cached) $ECHO_C" >&6
28407 else
28408 ac_check_lib_save_LIBS=$LIBS
28409 LIBS="-lm ${pbxlibdir} $LIBS"
28410 cat >conftest.$ac_ext <<_ACEOF
28411 /* confdefs.h. */
28412 _ACEOF
28413 cat confdefs.h >>conftest.$ac_ext
28414 cat >>conftest.$ac_ext <<_ACEOF
28415 /* end confdefs.h. */
28417 /* Override any GCC internal prototype to avoid an error.
28418 Use char because int might match the return type of a GCC
28419 builtin and then its argument prototype would still apply. */
28420 #ifdef __cplusplus
28421 extern "C"
28422 #endif
28423 char ${pbxfuncname} ();
28425 main ()
28427 return ${pbxfuncname} ();
28429 return 0;
28431 _ACEOF
28432 rm -f conftest.$ac_objext conftest$ac_exeext
28433 if { (ac_try="$ac_link"
28434 case "(($ac_try" in
28435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436 *) ac_try_echo=$ac_try;;
28437 esac
28438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439 (eval "$ac_link") 2>conftest.er1
28440 ac_status=$?
28441 grep -v '^ *+' conftest.er1 >conftest.err
28442 rm -f conftest.er1
28443 cat conftest.err >&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } && {
28446 test -z "$ac_c_werror_flag" ||
28447 test ! -s conftest.err
28448 } && test -s conftest$ac_exeext &&
28449 $as_test_x conftest$ac_exeext; then
28450 eval "$as_ac_Lib=yes"
28451 else
28452 echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28455 eval "$as_ac_Lib=no"
28458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28459 conftest$ac_exeext conftest.$ac_ext
28460 LIBS=$ac_check_lib_save_LIBS
28462 ac_res=`eval echo '${'$as_ac_Lib'}'`
28463 { echo "$as_me:$LINENO: result: $ac_res" >&5
28464 echo "${ECHO_T}$ac_res" >&6; }
28465 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28466 AST_EXP_FOUND=yes
28467 else
28468 AST_EXP_FOUND=no
28473 # now check for the header.
28474 if test "${AST_EXP_FOUND}" = "yes"; then
28475 EXP_LIB="${pbxlibdir} -lm "
28476 # if --with-EXP=DIR has been specified, use it.
28477 if test "x${EXP_DIR}" != "x"; then
28478 EXP_INCLUDE="-I${EXP_DIR}/include"
28480 EXP_INCLUDE="${EXP_INCLUDE} "
28481 if test "x" = "x" ; then # no header, assume found
28482 EXP_HEADER_FOUND="1"
28483 else # check for the header
28484 saved_cppflags="${CPPFLAGS}"
28485 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE} "
28486 if test "${ac_cv_header_+set}" = set; then
28487 { echo "$as_me:$LINENO: checking for " >&5
28488 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28489 if test "${ac_cv_header_+set}" = set; then
28490 echo $ECHO_N "(cached) $ECHO_C" >&6
28492 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28493 echo "${ECHO_T}$ac_cv_header_" >&6; }
28494 else
28495 # Is the header compilable?
28496 { echo "$as_me:$LINENO: checking usability" >&5
28497 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28498 cat >conftest.$ac_ext <<_ACEOF
28499 /* confdefs.h. */
28500 _ACEOF
28501 cat confdefs.h >>conftest.$ac_ext
28502 cat >>conftest.$ac_ext <<_ACEOF
28503 /* end confdefs.h. */
28504 $ac_includes_default
28505 #include <>
28506 _ACEOF
28507 rm -f conftest.$ac_objext
28508 if { (ac_try="$ac_compile"
28509 case "(($ac_try" in
28510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511 *) ac_try_echo=$ac_try;;
28512 esac
28513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28514 (eval "$ac_compile") 2>conftest.er1
28515 ac_status=$?
28516 grep -v '^ *+' conftest.er1 >conftest.err
28517 rm -f conftest.er1
28518 cat conftest.err >&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } && {
28521 test -z "$ac_c_werror_flag" ||
28522 test ! -s conftest.err
28523 } && test -s conftest.$ac_objext; then
28524 ac_header_compiler=yes
28525 else
28526 echo "$as_me: failed program was:" >&5
28527 sed 's/^/| /' conftest.$ac_ext >&5
28529 ac_header_compiler=no
28532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28534 echo "${ECHO_T}$ac_header_compiler" >&6; }
28536 # Is the header present?
28537 { echo "$as_me:$LINENO: checking presence" >&5
28538 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28539 cat >conftest.$ac_ext <<_ACEOF
28540 /* confdefs.h. */
28541 _ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h. */
28545 #include <>
28546 _ACEOF
28547 if { (ac_try="$ac_cpp conftest.$ac_ext"
28548 case "(($ac_try" in
28549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550 *) ac_try_echo=$ac_try;;
28551 esac
28552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28554 ac_status=$?
28555 grep -v '^ *+' conftest.er1 >conftest.err
28556 rm -f conftest.er1
28557 cat conftest.err >&5
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); } >/dev/null && {
28560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28561 test ! -s conftest.err
28562 }; then
28563 ac_header_preproc=yes
28564 else
28565 echo "$as_me: failed program was:" >&5
28566 sed 's/^/| /' conftest.$ac_ext >&5
28568 ac_header_preproc=no
28571 rm -f conftest.err conftest.$ac_ext
28572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28573 echo "${ECHO_T}$ac_header_preproc" >&6; }
28575 # So? What about this header?
28576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28577 yes:no: )
28578 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28579 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28580 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28581 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28582 ac_header_preproc=yes
28584 no:yes:* )
28585 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28586 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28587 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28588 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28589 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28590 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28591 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28592 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28593 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28594 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28595 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28596 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28597 ( cat <<\_ASBOX
28598 ## ------------------------------- ##
28599 ## Report this to www.asterisk.org ##
28600 ## ------------------------------- ##
28601 _ASBOX
28602 ) | sed "s/^/$as_me: WARNING: /" >&2
28604 esac
28605 { echo "$as_me:$LINENO: checking for " >&5
28606 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28607 if test "${ac_cv_header_+set}" = set; then
28608 echo $ECHO_N "(cached) $ECHO_C" >&6
28609 else
28610 ac_cv_header_=$ac_header_preproc
28612 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28613 echo "${ECHO_T}$ac_cv_header_" >&6; }
28616 if test $ac_cv_header_ = yes; then
28617 EXP_HEADER_FOUND=1
28618 else
28619 EXP_HEADER_FOUND=0
28623 CPPFLAGS="${saved_cppflags}"
28625 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
28626 EXP_LIB=""
28627 EXP_INCLUDE=""
28628 else
28629 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28630 EXP_LIB=""
28632 PBX_EXP=1
28633 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28635 cat >>confdefs.h <<_ACEOF
28636 #define HAVE_EXP 1
28637 _ACEOF
28640 cat >>confdefs.h <<_ACEOF
28641 #define HAVE_EXP_VERSION
28642 _ACEOF
28649 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
28650 pbxlibdir=""
28651 # if --with-LOG=DIR has been specified, use it.
28652 if test "x${LOG_DIR}" != "x"; then
28653 if test -d ${LOG_DIR}/lib; then
28654 pbxlibdir="-L${LOG_DIR}/lib"
28655 else
28656 pbxlibdir="-L${LOG_DIR}"
28659 pbxfuncname="log"
28660 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28661 AST_LOG_FOUND=yes
28662 else
28663 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28664 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28665 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28666 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28667 echo $ECHO_N "(cached) $ECHO_C" >&6
28668 else
28669 ac_check_lib_save_LIBS=$LIBS
28670 LIBS="-lm ${pbxlibdir} $LIBS"
28671 cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h. */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h. */
28678 /* Override any GCC internal prototype to avoid an error.
28679 Use char because int might match the return type of a GCC
28680 builtin and then its argument prototype would still apply. */
28681 #ifdef __cplusplus
28682 extern "C"
28683 #endif
28684 char ${pbxfuncname} ();
28686 main ()
28688 return ${pbxfuncname} ();
28690 return 0;
28692 _ACEOF
28693 rm -f conftest.$ac_objext conftest$ac_exeext
28694 if { (ac_try="$ac_link"
28695 case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_link") 2>conftest.er1
28701 ac_status=$?
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } && {
28707 test -z "$ac_c_werror_flag" ||
28708 test ! -s conftest.err
28709 } && test -s conftest$ac_exeext &&
28710 $as_test_x conftest$ac_exeext; then
28711 eval "$as_ac_Lib=yes"
28712 else
28713 echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28716 eval "$as_ac_Lib=no"
28719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28720 conftest$ac_exeext conftest.$ac_ext
28721 LIBS=$ac_check_lib_save_LIBS
28723 ac_res=`eval echo '${'$as_ac_Lib'}'`
28724 { echo "$as_me:$LINENO: result: $ac_res" >&5
28725 echo "${ECHO_T}$ac_res" >&6; }
28726 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28727 AST_LOG_FOUND=yes
28728 else
28729 AST_LOG_FOUND=no
28734 # now check for the header.
28735 if test "${AST_LOG_FOUND}" = "yes"; then
28736 LOG_LIB="${pbxlibdir} -lm "
28737 # if --with-LOG=DIR has been specified, use it.
28738 if test "x${LOG_DIR}" != "x"; then
28739 LOG_INCLUDE="-I${LOG_DIR}/include"
28741 LOG_INCLUDE="${LOG_INCLUDE} "
28742 if test "x" = "x" ; then # no header, assume found
28743 LOG_HEADER_FOUND="1"
28744 else # check for the header
28745 saved_cppflags="${CPPFLAGS}"
28746 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE} "
28747 if test "${ac_cv_header_+set}" = set; then
28748 { echo "$as_me:$LINENO: checking for " >&5
28749 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28750 if test "${ac_cv_header_+set}" = set; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28753 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28754 echo "${ECHO_T}$ac_cv_header_" >&6; }
28755 else
28756 # Is the header compilable?
28757 { echo "$as_me:$LINENO: checking usability" >&5
28758 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28759 cat >conftest.$ac_ext <<_ACEOF
28760 /* confdefs.h. */
28761 _ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h. */
28765 $ac_includes_default
28766 #include <>
28767 _ACEOF
28768 rm -f conftest.$ac_objext
28769 if { (ac_try="$ac_compile"
28770 case "(($ac_try" in
28771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28772 *) ac_try_echo=$ac_try;;
28773 esac
28774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28775 (eval "$ac_compile") 2>conftest.er1
28776 ac_status=$?
28777 grep -v '^ *+' conftest.er1 >conftest.err
28778 rm -f conftest.er1
28779 cat conftest.err >&5
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); } && {
28782 test -z "$ac_c_werror_flag" ||
28783 test ! -s conftest.err
28784 } && test -s conftest.$ac_objext; then
28785 ac_header_compiler=yes
28786 else
28787 echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28790 ac_header_compiler=no
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28795 echo "${ECHO_T}$ac_header_compiler" >&6; }
28797 # Is the header present?
28798 { echo "$as_me:$LINENO: checking presence" >&5
28799 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28800 cat >conftest.$ac_ext <<_ACEOF
28801 /* confdefs.h. */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28806 #include <>
28807 _ACEOF
28808 if { (ac_try="$ac_cpp conftest.$ac_ext"
28809 case "(($ac_try" in
28810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811 *) ac_try_echo=$ac_try;;
28812 esac
28813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28815 ac_status=$?
28816 grep -v '^ *+' conftest.er1 >conftest.err
28817 rm -f conftest.er1
28818 cat conftest.err >&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } >/dev/null && {
28821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28822 test ! -s conftest.err
28823 }; then
28824 ac_header_preproc=yes
28825 else
28826 echo "$as_me: failed program was:" >&5
28827 sed 's/^/| /' conftest.$ac_ext >&5
28829 ac_header_preproc=no
28832 rm -f conftest.err conftest.$ac_ext
28833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28834 echo "${ECHO_T}$ac_header_preproc" >&6; }
28836 # So? What about this header?
28837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28838 yes:no: )
28839 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28840 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28841 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28842 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28843 ac_header_preproc=yes
28845 no:yes:* )
28846 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28847 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28849 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28850 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28851 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28852 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28853 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28855 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28857 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28858 ( cat <<\_ASBOX
28859 ## ------------------------------- ##
28860 ## Report this to www.asterisk.org ##
28861 ## ------------------------------- ##
28862 _ASBOX
28863 ) | sed "s/^/$as_me: WARNING: /" >&2
28865 esac
28866 { echo "$as_me:$LINENO: checking for " >&5
28867 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28868 if test "${ac_cv_header_+set}" = set; then
28869 echo $ECHO_N "(cached) $ECHO_C" >&6
28870 else
28871 ac_cv_header_=$ac_header_preproc
28873 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28874 echo "${ECHO_T}$ac_cv_header_" >&6; }
28877 if test $ac_cv_header_ = yes; then
28878 LOG_HEADER_FOUND=1
28879 else
28880 LOG_HEADER_FOUND=0
28884 CPPFLAGS="${saved_cppflags}"
28886 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
28887 LOG_LIB=""
28888 LOG_INCLUDE=""
28889 else
28890 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28891 LOG_LIB=""
28893 PBX_LOG=1
28894 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28896 cat >>confdefs.h <<_ACEOF
28897 #define HAVE_LOG 1
28898 _ACEOF
28901 cat >>confdefs.h <<_ACEOF
28902 #define HAVE_LOG_VERSION
28903 _ACEOF
28910 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
28911 pbxlibdir=""
28912 # if --with-REMAINDER=DIR has been specified, use it.
28913 if test "x${REMAINDER_DIR}" != "x"; then
28914 if test -d ${REMAINDER_DIR}/lib; then
28915 pbxlibdir="-L${REMAINDER_DIR}/lib"
28916 else
28917 pbxlibdir="-L${REMAINDER_DIR}"
28920 pbxfuncname="remainder"
28921 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28922 AST_REMAINDER_FOUND=yes
28923 else
28924 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28925 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28926 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28927 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28928 echo $ECHO_N "(cached) $ECHO_C" >&6
28929 else
28930 ac_check_lib_save_LIBS=$LIBS
28931 LIBS="-lm ${pbxlibdir} $LIBS"
28932 cat >conftest.$ac_ext <<_ACEOF
28933 /* confdefs.h. */
28934 _ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h. */
28939 /* Override any GCC internal prototype to avoid an error.
28940 Use char because int might match the return type of a GCC
28941 builtin and then its argument prototype would still apply. */
28942 #ifdef __cplusplus
28943 extern "C"
28944 #endif
28945 char ${pbxfuncname} ();
28947 main ()
28949 return ${pbxfuncname} ();
28951 return 0;
28953 _ACEOF
28954 rm -f conftest.$ac_objext conftest$ac_exeext
28955 if { (ac_try="$ac_link"
28956 case "(($ac_try" in
28957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28958 *) ac_try_echo=$ac_try;;
28959 esac
28960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28961 (eval "$ac_link") 2>conftest.er1
28962 ac_status=$?
28963 grep -v '^ *+' conftest.er1 >conftest.err
28964 rm -f conftest.er1
28965 cat conftest.err >&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } && {
28968 test -z "$ac_c_werror_flag" ||
28969 test ! -s conftest.err
28970 } && test -s conftest$ac_exeext &&
28971 $as_test_x conftest$ac_exeext; then
28972 eval "$as_ac_Lib=yes"
28973 else
28974 echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 eval "$as_ac_Lib=no"
28980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28981 conftest$ac_exeext conftest.$ac_ext
28982 LIBS=$ac_check_lib_save_LIBS
28984 ac_res=`eval echo '${'$as_ac_Lib'}'`
28985 { echo "$as_me:$LINENO: result: $ac_res" >&5
28986 echo "${ECHO_T}$ac_res" >&6; }
28987 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28988 AST_REMAINDER_FOUND=yes
28989 else
28990 AST_REMAINDER_FOUND=no
28995 # now check for the header.
28996 if test "${AST_REMAINDER_FOUND}" = "yes"; then
28997 REMAINDER_LIB="${pbxlibdir} -lm "
28998 # if --with-REMAINDER=DIR has been specified, use it.
28999 if test "x${REMAINDER_DIR}" != "x"; then
29000 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
29002 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
29003 if test "x" = "x" ; then # no header, assume found
29004 REMAINDER_HEADER_FOUND="1"
29005 else # check for the header
29006 saved_cppflags="${CPPFLAGS}"
29007 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE} "
29008 if test "${ac_cv_header_+set}" = set; then
29009 { echo "$as_me:$LINENO: checking for " >&5
29010 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29011 if test "${ac_cv_header_+set}" = set; then
29012 echo $ECHO_N "(cached) $ECHO_C" >&6
29014 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29015 echo "${ECHO_T}$ac_cv_header_" >&6; }
29016 else
29017 # Is the header compilable?
29018 { echo "$as_me:$LINENO: checking usability" >&5
29019 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29020 cat >conftest.$ac_ext <<_ACEOF
29021 /* confdefs.h. */
29022 _ACEOF
29023 cat confdefs.h >>conftest.$ac_ext
29024 cat >>conftest.$ac_ext <<_ACEOF
29025 /* end confdefs.h. */
29026 $ac_includes_default
29027 #include <>
29028 _ACEOF
29029 rm -f conftest.$ac_objext
29030 if { (ac_try="$ac_compile"
29031 case "(($ac_try" in
29032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033 *) ac_try_echo=$ac_try;;
29034 esac
29035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29036 (eval "$ac_compile") 2>conftest.er1
29037 ac_status=$?
29038 grep -v '^ *+' conftest.er1 >conftest.err
29039 rm -f conftest.er1
29040 cat conftest.err >&5
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } && {
29043 test -z "$ac_c_werror_flag" ||
29044 test ! -s conftest.err
29045 } && test -s conftest.$ac_objext; then
29046 ac_header_compiler=yes
29047 else
29048 echo "$as_me: failed program was:" >&5
29049 sed 's/^/| /' conftest.$ac_ext >&5
29051 ac_header_compiler=no
29054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29056 echo "${ECHO_T}$ac_header_compiler" >&6; }
29058 # Is the header present?
29059 { echo "$as_me:$LINENO: checking presence" >&5
29060 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29061 cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h. */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h. */
29067 #include <>
29068 _ACEOF
29069 if { (ac_try="$ac_cpp conftest.$ac_ext"
29070 case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29073 esac
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29076 ac_status=$?
29077 grep -v '^ *+' conftest.er1 >conftest.err
29078 rm -f conftest.er1
29079 cat conftest.err >&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } >/dev/null && {
29082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29083 test ! -s conftest.err
29084 }; then
29085 ac_header_preproc=yes
29086 else
29087 echo "$as_me: failed program was:" >&5
29088 sed 's/^/| /' conftest.$ac_ext >&5
29090 ac_header_preproc=no
29093 rm -f conftest.err conftest.$ac_ext
29094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29095 echo "${ECHO_T}$ac_header_preproc" >&6; }
29097 # So? What about this header?
29098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29099 yes:no: )
29100 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29101 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29102 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29103 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29104 ac_header_preproc=yes
29106 no:yes:* )
29107 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29108 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29109 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29110 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29111 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29112 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29113 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29114 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29115 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29116 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29117 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29118 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29119 ( cat <<\_ASBOX
29120 ## ------------------------------- ##
29121 ## Report this to www.asterisk.org ##
29122 ## ------------------------------- ##
29123 _ASBOX
29124 ) | sed "s/^/$as_me: WARNING: /" >&2
29126 esac
29127 { echo "$as_me:$LINENO: checking for " >&5
29128 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29129 if test "${ac_cv_header_+set}" = set; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29131 else
29132 ac_cv_header_=$ac_header_preproc
29134 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29135 echo "${ECHO_T}$ac_cv_header_" >&6; }
29138 if test $ac_cv_header_ = yes; then
29139 REMAINDER_HEADER_FOUND=1
29140 else
29141 REMAINDER_HEADER_FOUND=0
29145 CPPFLAGS="${saved_cppflags}"
29147 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29148 REMAINDER_LIB=""
29149 REMAINDER_INCLUDE=""
29150 else
29151 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29152 REMAINDER_LIB=""
29154 PBX_REMAINDER=1
29155 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29157 cat >>confdefs.h <<_ACEOF
29158 #define HAVE_REMAINDER 1
29159 _ACEOF
29162 cat >>confdefs.h <<_ACEOF
29163 #define HAVE_REMAINDER_VERSION
29164 _ACEOF
29171 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29172 pbxlibdir=""
29173 # if --with-FMOD=DIR has been specified, use it.
29174 if test "x${FMOD_DIR}" != "x"; then
29175 if test -d ${FMOD_DIR}/lib; then
29176 pbxlibdir="-L${FMOD_DIR}/lib"
29177 else
29178 pbxlibdir="-L${FMOD_DIR}"
29181 pbxfuncname="fmod"
29182 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29183 AST_FMOD_FOUND=yes
29184 else
29185 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29186 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29187 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29188 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29189 echo $ECHO_N "(cached) $ECHO_C" >&6
29190 else
29191 ac_check_lib_save_LIBS=$LIBS
29192 LIBS="-lm ${pbxlibdir} $LIBS"
29193 cat >conftest.$ac_ext <<_ACEOF
29194 /* confdefs.h. */
29195 _ACEOF
29196 cat confdefs.h >>conftest.$ac_ext
29197 cat >>conftest.$ac_ext <<_ACEOF
29198 /* end confdefs.h. */
29200 /* Override any GCC internal prototype to avoid an error.
29201 Use char because int might match the return type of a GCC
29202 builtin and then its argument prototype would still apply. */
29203 #ifdef __cplusplus
29204 extern "C"
29205 #endif
29206 char ${pbxfuncname} ();
29208 main ()
29210 return ${pbxfuncname} ();
29212 return 0;
29214 _ACEOF
29215 rm -f conftest.$ac_objext conftest$ac_exeext
29216 if { (ac_try="$ac_link"
29217 case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29220 esac
29221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_link") 2>conftest.er1
29223 ac_status=$?
29224 grep -v '^ *+' conftest.er1 >conftest.err
29225 rm -f conftest.er1
29226 cat conftest.err >&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } && {
29229 test -z "$ac_c_werror_flag" ||
29230 test ! -s conftest.err
29231 } && test -s conftest$ac_exeext &&
29232 $as_test_x conftest$ac_exeext; then
29233 eval "$as_ac_Lib=yes"
29234 else
29235 echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29238 eval "$as_ac_Lib=no"
29241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29242 conftest$ac_exeext conftest.$ac_ext
29243 LIBS=$ac_check_lib_save_LIBS
29245 ac_res=`eval echo '${'$as_ac_Lib'}'`
29246 { echo "$as_me:$LINENO: result: $ac_res" >&5
29247 echo "${ECHO_T}$ac_res" >&6; }
29248 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29249 AST_FMOD_FOUND=yes
29250 else
29251 AST_FMOD_FOUND=no
29256 # now check for the header.
29257 if test "${AST_FMOD_FOUND}" = "yes"; then
29258 FMOD_LIB="${pbxlibdir} -lm "
29259 # if --with-FMOD=DIR has been specified, use it.
29260 if test "x${FMOD_DIR}" != "x"; then
29261 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29263 FMOD_INCLUDE="${FMOD_INCLUDE} "
29264 if test "x" = "x" ; then # no header, assume found
29265 FMOD_HEADER_FOUND="1"
29266 else # check for the header
29267 saved_cppflags="${CPPFLAGS}"
29268 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE} "
29269 if test "${ac_cv_header_+set}" = set; then
29270 { echo "$as_me:$LINENO: checking for " >&5
29271 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29272 if test "${ac_cv_header_+set}" = set; then
29273 echo $ECHO_N "(cached) $ECHO_C" >&6
29275 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29276 echo "${ECHO_T}$ac_cv_header_" >&6; }
29277 else
29278 # Is the header compilable?
29279 { echo "$as_me:$LINENO: checking usability" >&5
29280 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29281 cat >conftest.$ac_ext <<_ACEOF
29282 /* confdefs.h. */
29283 _ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h. */
29287 $ac_includes_default
29288 #include <>
29289 _ACEOF
29290 rm -f conftest.$ac_objext
29291 if { (ac_try="$ac_compile"
29292 case "(($ac_try" in
29293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29294 *) ac_try_echo=$ac_try;;
29295 esac
29296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29297 (eval "$ac_compile") 2>conftest.er1
29298 ac_status=$?
29299 grep -v '^ *+' conftest.er1 >conftest.err
29300 rm -f conftest.er1
29301 cat conftest.err >&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } && {
29304 test -z "$ac_c_werror_flag" ||
29305 test ! -s conftest.err
29306 } && test -s conftest.$ac_objext; then
29307 ac_header_compiler=yes
29308 else
29309 echo "$as_me: failed program was:" >&5
29310 sed 's/^/| /' conftest.$ac_ext >&5
29312 ac_header_compiler=no
29315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29317 echo "${ECHO_T}$ac_header_compiler" >&6; }
29319 # Is the header present?
29320 { echo "$as_me:$LINENO: checking presence" >&5
29321 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29322 cat >conftest.$ac_ext <<_ACEOF
29323 /* confdefs.h. */
29324 _ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29328 #include <>
29329 _ACEOF
29330 if { (ac_try="$ac_cpp conftest.$ac_ext"
29331 case "(($ac_try" in
29332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29333 *) ac_try_echo=$ac_try;;
29334 esac
29335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29337 ac_status=$?
29338 grep -v '^ *+' conftest.er1 >conftest.err
29339 rm -f conftest.er1
29340 cat conftest.err >&5
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); } >/dev/null && {
29343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29344 test ! -s conftest.err
29345 }; then
29346 ac_header_preproc=yes
29347 else
29348 echo "$as_me: failed program was:" >&5
29349 sed 's/^/| /' conftest.$ac_ext >&5
29351 ac_header_preproc=no
29354 rm -f conftest.err conftest.$ac_ext
29355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29356 echo "${ECHO_T}$ac_header_preproc" >&6; }
29358 # So? What about this header?
29359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29360 yes:no: )
29361 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29362 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29363 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29364 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29365 ac_header_preproc=yes
29367 no:yes:* )
29368 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29369 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29370 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29371 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29372 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29373 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29375 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29376 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29377 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29379 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29380 ( cat <<\_ASBOX
29381 ## ------------------------------- ##
29382 ## Report this to www.asterisk.org ##
29383 ## ------------------------------- ##
29384 _ASBOX
29385 ) | sed "s/^/$as_me: WARNING: /" >&2
29387 esac
29388 { echo "$as_me:$LINENO: checking for " >&5
29389 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29390 if test "${ac_cv_header_+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29392 else
29393 ac_cv_header_=$ac_header_preproc
29395 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29396 echo "${ECHO_T}$ac_cv_header_" >&6; }
29399 if test $ac_cv_header_ = yes; then
29400 FMOD_HEADER_FOUND=1
29401 else
29402 FMOD_HEADER_FOUND=0
29406 CPPFLAGS="${saved_cppflags}"
29408 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29409 FMOD_LIB=""
29410 FMOD_INCLUDE=""
29411 else
29412 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29413 FMOD_LIB=""
29415 PBX_FMOD=1
29416 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29418 cat >>confdefs.h <<_ACEOF
29419 #define HAVE_FMOD 1
29420 _ACEOF
29423 cat >>confdefs.h <<_ACEOF
29424 #define HAVE_FMOD_VERSION
29425 _ACEOF
29432 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29433 pbxlibdir=""
29434 # if --with-ROUND=DIR has been specified, use it.
29435 if test "x${ROUND_DIR}" != "x"; then
29436 if test -d ${ROUND_DIR}/lib; then
29437 pbxlibdir="-L${ROUND_DIR}/lib"
29438 else
29439 pbxlibdir="-L${ROUND_DIR}"
29442 pbxfuncname="round"
29443 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29444 AST_ROUND_FOUND=yes
29445 else
29446 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29447 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29448 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29449 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29450 echo $ECHO_N "(cached) $ECHO_C" >&6
29451 else
29452 ac_check_lib_save_LIBS=$LIBS
29453 LIBS="-lm ${pbxlibdir} $LIBS"
29454 cat >conftest.$ac_ext <<_ACEOF
29455 /* confdefs.h. */
29456 _ACEOF
29457 cat confdefs.h >>conftest.$ac_ext
29458 cat >>conftest.$ac_ext <<_ACEOF
29459 /* end confdefs.h. */
29461 /* Override any GCC internal prototype to avoid an error.
29462 Use char because int might match the return type of a GCC
29463 builtin and then its argument prototype would still apply. */
29464 #ifdef __cplusplus
29465 extern "C"
29466 #endif
29467 char ${pbxfuncname} ();
29469 main ()
29471 return ${pbxfuncname} ();
29473 return 0;
29475 _ACEOF
29476 rm -f conftest.$ac_objext conftest$ac_exeext
29477 if { (ac_try="$ac_link"
29478 case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29481 esac
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_link") 2>conftest.er1
29484 ac_status=$?
29485 grep -v '^ *+' conftest.er1 >conftest.err
29486 rm -f conftest.er1
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } && {
29490 test -z "$ac_c_werror_flag" ||
29491 test ! -s conftest.err
29492 } && test -s conftest$ac_exeext &&
29493 $as_test_x conftest$ac_exeext; then
29494 eval "$as_ac_Lib=yes"
29495 else
29496 echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29499 eval "$as_ac_Lib=no"
29502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29503 conftest$ac_exeext conftest.$ac_ext
29504 LIBS=$ac_check_lib_save_LIBS
29506 ac_res=`eval echo '${'$as_ac_Lib'}'`
29507 { echo "$as_me:$LINENO: result: $ac_res" >&5
29508 echo "${ECHO_T}$ac_res" >&6; }
29509 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29510 AST_ROUND_FOUND=yes
29511 else
29512 AST_ROUND_FOUND=no
29517 # now check for the header.
29518 if test "${AST_ROUND_FOUND}" = "yes"; then
29519 ROUND_LIB="${pbxlibdir} -lm "
29520 # if --with-ROUND=DIR has been specified, use it.
29521 if test "x${ROUND_DIR}" != "x"; then
29522 ROUND_INCLUDE="-I${ROUND_DIR}/include"
29524 ROUND_INCLUDE="${ROUND_INCLUDE} "
29525 if test "x" = "x" ; then # no header, assume found
29526 ROUND_HEADER_FOUND="1"
29527 else # check for the header
29528 saved_cppflags="${CPPFLAGS}"
29529 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE} "
29530 if test "${ac_cv_header_+set}" = set; then
29531 { echo "$as_me:$LINENO: checking for " >&5
29532 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29533 if test "${ac_cv_header_+set}" = set; then
29534 echo $ECHO_N "(cached) $ECHO_C" >&6
29536 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29537 echo "${ECHO_T}$ac_cv_header_" >&6; }
29538 else
29539 # Is the header compilable?
29540 { echo "$as_me:$LINENO: checking usability" >&5
29541 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29542 cat >conftest.$ac_ext <<_ACEOF
29543 /* confdefs.h. */
29544 _ACEOF
29545 cat confdefs.h >>conftest.$ac_ext
29546 cat >>conftest.$ac_ext <<_ACEOF
29547 /* end confdefs.h. */
29548 $ac_includes_default
29549 #include <>
29550 _ACEOF
29551 rm -f conftest.$ac_objext
29552 if { (ac_try="$ac_compile"
29553 case "(($ac_try" in
29554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29555 *) ac_try_echo=$ac_try;;
29556 esac
29557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29558 (eval "$ac_compile") 2>conftest.er1
29559 ac_status=$?
29560 grep -v '^ *+' conftest.er1 >conftest.err
29561 rm -f conftest.er1
29562 cat conftest.err >&5
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); } && {
29565 test -z "$ac_c_werror_flag" ||
29566 test ! -s conftest.err
29567 } && test -s conftest.$ac_objext; then
29568 ac_header_compiler=yes
29569 else
29570 echo "$as_me: failed program was:" >&5
29571 sed 's/^/| /' conftest.$ac_ext >&5
29573 ac_header_compiler=no
29576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29578 echo "${ECHO_T}$ac_header_compiler" >&6; }
29580 # Is the header present?
29581 { echo "$as_me:$LINENO: checking presence" >&5
29582 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29583 cat >conftest.$ac_ext <<_ACEOF
29584 /* confdefs.h. */
29585 _ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h. */
29589 #include <>
29590 _ACEOF
29591 if { (ac_try="$ac_cpp conftest.$ac_ext"
29592 case "(($ac_try" in
29593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29594 *) ac_try_echo=$ac_try;;
29595 esac
29596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29598 ac_status=$?
29599 grep -v '^ *+' conftest.er1 >conftest.err
29600 rm -f conftest.er1
29601 cat conftest.err >&5
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); } >/dev/null && {
29604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29605 test ! -s conftest.err
29606 }; then
29607 ac_header_preproc=yes
29608 else
29609 echo "$as_me: failed program was:" >&5
29610 sed 's/^/| /' conftest.$ac_ext >&5
29612 ac_header_preproc=no
29615 rm -f conftest.err conftest.$ac_ext
29616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29617 echo "${ECHO_T}$ac_header_preproc" >&6; }
29619 # So? What about this header?
29620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29621 yes:no: )
29622 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29623 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29624 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29625 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29626 ac_header_preproc=yes
29628 no:yes:* )
29629 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29630 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29631 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29632 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29633 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29634 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29635 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29636 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29637 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29638 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29639 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29640 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29641 ( cat <<\_ASBOX
29642 ## ------------------------------- ##
29643 ## Report this to www.asterisk.org ##
29644 ## ------------------------------- ##
29645 _ASBOX
29646 ) | sed "s/^/$as_me: WARNING: /" >&2
29648 esac
29649 { echo "$as_me:$LINENO: checking for " >&5
29650 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29651 if test "${ac_cv_header_+set}" = set; then
29652 echo $ECHO_N "(cached) $ECHO_C" >&6
29653 else
29654 ac_cv_header_=$ac_header_preproc
29656 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29657 echo "${ECHO_T}$ac_cv_header_" >&6; }
29660 if test $ac_cv_header_ = yes; then
29661 ROUND_HEADER_FOUND=1
29662 else
29663 ROUND_HEADER_FOUND=0
29667 CPPFLAGS="${saved_cppflags}"
29669 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
29670 ROUND_LIB=""
29671 ROUND_INCLUDE=""
29672 else
29673 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29674 ROUND_LIB=""
29676 PBX_ROUND=1
29677 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29679 cat >>confdefs.h <<_ACEOF
29680 #define HAVE_ROUND 1
29681 _ACEOF
29684 cat >>confdefs.h <<_ACEOF
29685 #define HAVE_ROUND_VERSION
29686 _ACEOF
29693 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
29694 pbxlibdir=""
29695 # if --with-TRUNC=DIR has been specified, use it.
29696 if test "x${TRUNC_DIR}" != "x"; then
29697 if test -d ${TRUNC_DIR}/lib; then
29698 pbxlibdir="-L${TRUNC_DIR}/lib"
29699 else
29700 pbxlibdir="-L${TRUNC_DIR}"
29703 pbxfuncname="trunc"
29704 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29705 AST_TRUNC_FOUND=yes
29706 else
29707 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29708 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29709 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29710 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29711 echo $ECHO_N "(cached) $ECHO_C" >&6
29712 else
29713 ac_check_lib_save_LIBS=$LIBS
29714 LIBS="-lm ${pbxlibdir} $LIBS"
29715 cat >conftest.$ac_ext <<_ACEOF
29716 /* confdefs.h. */
29717 _ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h. */
29722 /* Override any GCC internal prototype to avoid an error.
29723 Use char because int might match the return type of a GCC
29724 builtin and then its argument prototype would still apply. */
29725 #ifdef __cplusplus
29726 extern "C"
29727 #endif
29728 char ${pbxfuncname} ();
29730 main ()
29732 return ${pbxfuncname} ();
29734 return 0;
29736 _ACEOF
29737 rm -f conftest.$ac_objext conftest$ac_exeext
29738 if { (ac_try="$ac_link"
29739 case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744 (eval "$ac_link") 2>conftest.er1
29745 ac_status=$?
29746 grep -v '^ *+' conftest.er1 >conftest.err
29747 rm -f conftest.er1
29748 cat conftest.err >&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); } && {
29751 test -z "$ac_c_werror_flag" ||
29752 test ! -s conftest.err
29753 } && test -s conftest$ac_exeext &&
29754 $as_test_x conftest$ac_exeext; then
29755 eval "$as_ac_Lib=yes"
29756 else
29757 echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29760 eval "$as_ac_Lib=no"
29763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29764 conftest$ac_exeext conftest.$ac_ext
29765 LIBS=$ac_check_lib_save_LIBS
29767 ac_res=`eval echo '${'$as_ac_Lib'}'`
29768 { echo "$as_me:$LINENO: result: $ac_res" >&5
29769 echo "${ECHO_T}$ac_res" >&6; }
29770 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29771 AST_TRUNC_FOUND=yes
29772 else
29773 AST_TRUNC_FOUND=no
29778 # now check for the header.
29779 if test "${AST_TRUNC_FOUND}" = "yes"; then
29780 TRUNC_LIB="${pbxlibdir} -lm "
29781 # if --with-TRUNC=DIR has been specified, use it.
29782 if test "x${TRUNC_DIR}" != "x"; then
29783 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
29785 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
29786 if test "x" = "x" ; then # no header, assume found
29787 TRUNC_HEADER_FOUND="1"
29788 else # check for the header
29789 saved_cppflags="${CPPFLAGS}"
29790 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE} "
29791 if test "${ac_cv_header_+set}" = set; then
29792 { echo "$as_me:$LINENO: checking for " >&5
29793 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29794 if test "${ac_cv_header_+set}" = set; then
29795 echo $ECHO_N "(cached) $ECHO_C" >&6
29797 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29798 echo "${ECHO_T}$ac_cv_header_" >&6; }
29799 else
29800 # Is the header compilable?
29801 { echo "$as_me:$LINENO: checking usability" >&5
29802 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29803 cat >conftest.$ac_ext <<_ACEOF
29804 /* confdefs.h. */
29805 _ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h. */
29809 $ac_includes_default
29810 #include <>
29811 _ACEOF
29812 rm -f conftest.$ac_objext
29813 if { (ac_try="$ac_compile"
29814 case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29817 esac
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_compile") 2>conftest.er1
29820 ac_status=$?
29821 grep -v '^ *+' conftest.er1 >conftest.err
29822 rm -f conftest.er1
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } && {
29826 test -z "$ac_c_werror_flag" ||
29827 test ! -s conftest.err
29828 } && test -s conftest.$ac_objext; then
29829 ac_header_compiler=yes
29830 else
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 ac_header_compiler=no
29837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29839 echo "${ECHO_T}$ac_header_compiler" >&6; }
29841 # Is the header present?
29842 { echo "$as_me:$LINENO: checking presence" >&5
29843 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29844 cat >conftest.$ac_ext <<_ACEOF
29845 /* confdefs.h. */
29846 _ACEOF
29847 cat confdefs.h >>conftest.$ac_ext
29848 cat >>conftest.$ac_ext <<_ACEOF
29849 /* end confdefs.h. */
29850 #include <>
29851 _ACEOF
29852 if { (ac_try="$ac_cpp conftest.$ac_ext"
29853 case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856 esac
29857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29859 ac_status=$?
29860 grep -v '^ *+' conftest.er1 >conftest.err
29861 rm -f conftest.er1
29862 cat conftest.err >&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); } >/dev/null && {
29865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29866 test ! -s conftest.err
29867 }; then
29868 ac_header_preproc=yes
29869 else
29870 echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.$ac_ext >&5
29873 ac_header_preproc=no
29876 rm -f conftest.err conftest.$ac_ext
29877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29878 echo "${ECHO_T}$ac_header_preproc" >&6; }
29880 # So? What about this header?
29881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29882 yes:no: )
29883 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29884 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29885 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29886 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29887 ac_header_preproc=yes
29889 no:yes:* )
29890 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29891 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29892 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29893 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29894 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29895 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29896 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29897 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29898 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29899 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29900 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29901 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29902 ( cat <<\_ASBOX
29903 ## ------------------------------- ##
29904 ## Report this to www.asterisk.org ##
29905 ## ------------------------------- ##
29906 _ASBOX
29907 ) | sed "s/^/$as_me: WARNING: /" >&2
29909 esac
29910 { echo "$as_me:$LINENO: checking for " >&5
29911 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29912 if test "${ac_cv_header_+set}" = set; then
29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 else
29915 ac_cv_header_=$ac_header_preproc
29917 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29918 echo "${ECHO_T}$ac_cv_header_" >&6; }
29921 if test $ac_cv_header_ = yes; then
29922 TRUNC_HEADER_FOUND=1
29923 else
29924 TRUNC_HEADER_FOUND=0
29928 CPPFLAGS="${saved_cppflags}"
29930 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
29931 TRUNC_LIB=""
29932 TRUNC_INCLUDE=""
29933 else
29934 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29935 TRUNC_LIB=""
29937 PBX_TRUNC=1
29938 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29940 cat >>confdefs.h <<_ACEOF
29941 #define HAVE_TRUNC 1
29942 _ACEOF
29945 cat >>confdefs.h <<_ACEOF
29946 #define HAVE_TRUNC_VERSION
29947 _ACEOF
29954 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
29955 pbxlibdir=""
29956 # if --with-STRTOD=DIR has been specified, use it.
29957 if test "x${STRTOD_DIR}" != "x"; then
29958 if test -d ${STRTOD_DIR}/lib; then
29959 pbxlibdir="-L${STRTOD_DIR}/lib"
29960 else
29961 pbxlibdir="-L${STRTOD_DIR}"
29964 pbxfuncname="strtod"
29965 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29966 AST_STRTOD_FOUND=yes
29967 else
29968 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
29969 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
29970 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
29971 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29972 echo $ECHO_N "(cached) $ECHO_C" >&6
29973 else
29974 ac_check_lib_save_LIBS=$LIBS
29975 LIBS="-lc ${pbxlibdir} $LIBS"
29976 cat >conftest.$ac_ext <<_ACEOF
29977 /* confdefs.h. */
29978 _ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h. */
29983 /* Override any GCC internal prototype to avoid an error.
29984 Use char because int might match the return type of a GCC
29985 builtin and then its argument prototype would still apply. */
29986 #ifdef __cplusplus
29987 extern "C"
29988 #endif
29989 char ${pbxfuncname} ();
29991 main ()
29993 return ${pbxfuncname} ();
29995 return 0;
29997 _ACEOF
29998 rm -f conftest.$ac_objext conftest$ac_exeext
29999 if { (ac_try="$ac_link"
30000 case "(($ac_try" in
30001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30002 *) ac_try_echo=$ac_try;;
30003 esac
30004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30005 (eval "$ac_link") 2>conftest.er1
30006 ac_status=$?
30007 grep -v '^ *+' conftest.er1 >conftest.err
30008 rm -f conftest.er1
30009 cat conftest.err >&5
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); } && {
30012 test -z "$ac_c_werror_flag" ||
30013 test ! -s conftest.err
30014 } && test -s conftest$ac_exeext &&
30015 $as_test_x conftest$ac_exeext; then
30016 eval "$as_ac_Lib=yes"
30017 else
30018 echo "$as_me: failed program was:" >&5
30019 sed 's/^/| /' conftest.$ac_ext >&5
30021 eval "$as_ac_Lib=no"
30024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30025 conftest$ac_exeext conftest.$ac_ext
30026 LIBS=$ac_check_lib_save_LIBS
30028 ac_res=`eval echo '${'$as_ac_Lib'}'`
30029 { echo "$as_me:$LINENO: result: $ac_res" >&5
30030 echo "${ECHO_T}$ac_res" >&6; }
30031 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30032 AST_STRTOD_FOUND=yes
30033 else
30034 AST_STRTOD_FOUND=no
30039 # now check for the header.
30040 if test "${AST_STRTOD_FOUND}" = "yes"; then
30041 STRTOD_LIB="${pbxlibdir} -lc "
30042 # if --with-STRTOD=DIR has been specified, use it.
30043 if test "x${STRTOD_DIR}" != "x"; then
30044 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
30046 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
30047 if test "xstdlib.h" = "x" ; then # no header, assume found
30048 STRTOD_HEADER_FOUND="1"
30049 else # check for the header
30050 saved_cppflags="${CPPFLAGS}"
30051 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE} "
30052 if test "${ac_cv_header_stdlib_h+set}" = set; then
30053 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30054 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30055 if test "${ac_cv_header_stdlib_h+set}" = set; then
30056 echo $ECHO_N "(cached) $ECHO_C" >&6
30058 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30059 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30060 else
30061 # Is the header compilable?
30062 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
30063 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
30064 cat >conftest.$ac_ext <<_ACEOF
30065 /* confdefs.h. */
30066 _ACEOF
30067 cat confdefs.h >>conftest.$ac_ext
30068 cat >>conftest.$ac_ext <<_ACEOF
30069 /* end confdefs.h. */
30070 $ac_includes_default
30071 #include <stdlib.h>
30072 _ACEOF
30073 rm -f conftest.$ac_objext
30074 if { (ac_try="$ac_compile"
30075 case "(($ac_try" in
30076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30077 *) ac_try_echo=$ac_try;;
30078 esac
30079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30080 (eval "$ac_compile") 2>conftest.er1
30081 ac_status=$?
30082 grep -v '^ *+' conftest.er1 >conftest.err
30083 rm -f conftest.er1
30084 cat conftest.err >&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } && {
30087 test -z "$ac_c_werror_flag" ||
30088 test ! -s conftest.err
30089 } && test -s conftest.$ac_objext; then
30090 ac_header_compiler=yes
30091 else
30092 echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30095 ac_header_compiler=no
30098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30100 echo "${ECHO_T}$ac_header_compiler" >&6; }
30102 # Is the header present?
30103 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30104 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30105 cat >conftest.$ac_ext <<_ACEOF
30106 /* confdefs.h. */
30107 _ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h. */
30111 #include <stdlib.h>
30112 _ACEOF
30113 if { (ac_try="$ac_cpp conftest.$ac_ext"
30114 case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30117 esac
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30120 ac_status=$?
30121 grep -v '^ *+' conftest.er1 >conftest.err
30122 rm -f conftest.er1
30123 cat conftest.err >&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } >/dev/null && {
30126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30127 test ! -s conftest.err
30128 }; then
30129 ac_header_preproc=yes
30130 else
30131 echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30134 ac_header_preproc=no
30137 rm -f conftest.err conftest.$ac_ext
30138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30139 echo "${ECHO_T}$ac_header_preproc" >&6; }
30141 # So? What about this header?
30142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30143 yes:no: )
30144 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30145 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30146 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30147 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30148 ac_header_preproc=yes
30150 no:yes:* )
30151 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30152 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30153 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30154 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30156 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30157 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30158 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30159 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30160 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30161 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30162 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30163 ( cat <<\_ASBOX
30164 ## ------------------------------- ##
30165 ## Report this to www.asterisk.org ##
30166 ## ------------------------------- ##
30167 _ASBOX
30168 ) | sed "s/^/$as_me: WARNING: /" >&2
30170 esac
30171 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30172 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30173 if test "${ac_cv_header_stdlib_h+set}" = set; then
30174 echo $ECHO_N "(cached) $ECHO_C" >&6
30175 else
30176 ac_cv_header_stdlib_h=$ac_header_preproc
30178 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30179 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30182 if test $ac_cv_header_stdlib_h = yes; then
30183 STRTOD_HEADER_FOUND=1
30184 else
30185 STRTOD_HEADER_FOUND=0
30189 CPPFLAGS="${saved_cppflags}"
30191 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30192 STRTOD_LIB=""
30193 STRTOD_INCLUDE=""
30194 else
30195 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30196 STRTOD_LIB=""
30198 PBX_STRTOD=1
30199 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30201 cat >>confdefs.h <<_ACEOF
30202 #define HAVE_STRTOD 1
30203 _ACEOF
30206 cat >>confdefs.h <<_ACEOF
30207 #define HAVE_STRTOD_VERSION
30208 _ACEOF
30215 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30216 pbxlibdir=""
30217 # if --with-FLOOR=DIR has been specified, use it.
30218 if test "x${FLOOR_DIR}" != "x"; then
30219 if test -d ${FLOOR_DIR}/lib; then
30220 pbxlibdir="-L${FLOOR_DIR}/lib"
30221 else
30222 pbxlibdir="-L${FLOOR_DIR}"
30225 pbxfuncname="floor"
30226 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30227 AST_FLOOR_FOUND=yes
30228 else
30229 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30230 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30231 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30232 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30234 else
30235 ac_check_lib_save_LIBS=$LIBS
30236 LIBS="-lm ${pbxlibdir} $LIBS"
30237 cat >conftest.$ac_ext <<_ACEOF
30238 /* confdefs.h. */
30239 _ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30244 /* Override any GCC internal prototype to avoid an error.
30245 Use char because int might match the return type of a GCC
30246 builtin and then its argument prototype would still apply. */
30247 #ifdef __cplusplus
30248 extern "C"
30249 #endif
30250 char ${pbxfuncname} ();
30252 main ()
30254 return ${pbxfuncname} ();
30256 return 0;
30258 _ACEOF
30259 rm -f conftest.$ac_objext conftest$ac_exeext
30260 if { (ac_try="$ac_link"
30261 case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30264 esac
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_link") 2>conftest.er1
30267 ac_status=$?
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } && {
30273 test -z "$ac_c_werror_flag" ||
30274 test ! -s conftest.err
30275 } && test -s conftest$ac_exeext &&
30276 $as_test_x conftest$ac_exeext; then
30277 eval "$as_ac_Lib=yes"
30278 else
30279 echo "$as_me: failed program was:" >&5
30280 sed 's/^/| /' conftest.$ac_ext >&5
30282 eval "$as_ac_Lib=no"
30285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30286 conftest$ac_exeext conftest.$ac_ext
30287 LIBS=$ac_check_lib_save_LIBS
30289 ac_res=`eval echo '${'$as_ac_Lib'}'`
30290 { echo "$as_me:$LINENO: result: $ac_res" >&5
30291 echo "${ECHO_T}$ac_res" >&6; }
30292 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30293 AST_FLOOR_FOUND=yes
30294 else
30295 AST_FLOOR_FOUND=no
30300 # now check for the header.
30301 if test "${AST_FLOOR_FOUND}" = "yes"; then
30302 FLOOR_LIB="${pbxlibdir} -lm "
30303 # if --with-FLOOR=DIR has been specified, use it.
30304 if test "x${FLOOR_DIR}" != "x"; then
30305 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30307 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30308 if test "x" = "x" ; then # no header, assume found
30309 FLOOR_HEADER_FOUND="1"
30310 else # check for the header
30311 saved_cppflags="${CPPFLAGS}"
30312 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE} "
30313 if test "${ac_cv_header_+set}" = set; then
30314 { echo "$as_me:$LINENO: checking for " >&5
30315 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30316 if test "${ac_cv_header_+set}" = set; then
30317 echo $ECHO_N "(cached) $ECHO_C" >&6
30319 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30320 echo "${ECHO_T}$ac_cv_header_" >&6; }
30321 else
30322 # Is the header compilable?
30323 { echo "$as_me:$LINENO: checking usability" >&5
30324 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30325 cat >conftest.$ac_ext <<_ACEOF
30326 /* confdefs.h. */
30327 _ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h. */
30331 $ac_includes_default
30332 #include <>
30333 _ACEOF
30334 rm -f conftest.$ac_objext
30335 if { (ac_try="$ac_compile"
30336 case "(($ac_try" in
30337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30339 esac
30340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341 (eval "$ac_compile") 2>conftest.er1
30342 ac_status=$?
30343 grep -v '^ *+' conftest.er1 >conftest.err
30344 rm -f conftest.er1
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } && {
30348 test -z "$ac_c_werror_flag" ||
30349 test ! -s conftest.err
30350 } && test -s conftest.$ac_objext; then
30351 ac_header_compiler=yes
30352 else
30353 echo "$as_me: failed program was:" >&5
30354 sed 's/^/| /' conftest.$ac_ext >&5
30356 ac_header_compiler=no
30359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30361 echo "${ECHO_T}$ac_header_compiler" >&6; }
30363 # Is the header present?
30364 { echo "$as_me:$LINENO: checking presence" >&5
30365 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30366 cat >conftest.$ac_ext <<_ACEOF
30367 /* confdefs.h. */
30368 _ACEOF
30369 cat confdefs.h >>conftest.$ac_ext
30370 cat >>conftest.$ac_ext <<_ACEOF
30371 /* end confdefs.h. */
30372 #include <>
30373 _ACEOF
30374 if { (ac_try="$ac_cpp conftest.$ac_ext"
30375 case "(($ac_try" in
30376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377 *) ac_try_echo=$ac_try;;
30378 esac
30379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30381 ac_status=$?
30382 grep -v '^ *+' conftest.er1 >conftest.err
30383 rm -f conftest.er1
30384 cat conftest.err >&5
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); } >/dev/null && {
30387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30388 test ! -s conftest.err
30389 }; then
30390 ac_header_preproc=yes
30391 else
30392 echo "$as_me: failed program was:" >&5
30393 sed 's/^/| /' conftest.$ac_ext >&5
30395 ac_header_preproc=no
30398 rm -f conftest.err conftest.$ac_ext
30399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30400 echo "${ECHO_T}$ac_header_preproc" >&6; }
30402 # So? What about this header?
30403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30404 yes:no: )
30405 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30406 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30407 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30408 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30409 ac_header_preproc=yes
30411 no:yes:* )
30412 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30413 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30414 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30415 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30416 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30417 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30418 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30419 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30420 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30421 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30422 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30423 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30424 ( cat <<\_ASBOX
30425 ## ------------------------------- ##
30426 ## Report this to www.asterisk.org ##
30427 ## ------------------------------- ##
30428 _ASBOX
30429 ) | sed "s/^/$as_me: WARNING: /" >&2
30431 esac
30432 { echo "$as_me:$LINENO: checking for " >&5
30433 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30434 if test "${ac_cv_header_+set}" = set; then
30435 echo $ECHO_N "(cached) $ECHO_C" >&6
30436 else
30437 ac_cv_header_=$ac_header_preproc
30439 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30440 echo "${ECHO_T}$ac_cv_header_" >&6; }
30443 if test $ac_cv_header_ = yes; then
30444 FLOOR_HEADER_FOUND=1
30445 else
30446 FLOOR_HEADER_FOUND=0
30450 CPPFLAGS="${saved_cppflags}"
30452 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30453 FLOOR_LIB=""
30454 FLOOR_INCLUDE=""
30455 else
30456 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30457 FLOOR_LIB=""
30459 PBX_FLOOR=1
30460 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30462 cat >>confdefs.h <<_ACEOF
30463 #define HAVE_FLOOR 1
30464 _ACEOF
30467 cat >>confdefs.h <<_ACEOF
30468 #define HAVE_FLOOR_VERSION
30469 _ACEOF
30476 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30477 pbxlibdir=""
30478 # if --with-CEIL=DIR has been specified, use it.
30479 if test "x${CEIL_DIR}" != "x"; then
30480 if test -d ${CEIL_DIR}/lib; then
30481 pbxlibdir="-L${CEIL_DIR}/lib"
30482 else
30483 pbxlibdir="-L${CEIL_DIR}"
30486 pbxfuncname="ceil"
30487 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30488 AST_CEIL_FOUND=yes
30489 else
30490 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30491 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30492 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30493 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30495 else
30496 ac_check_lib_save_LIBS=$LIBS
30497 LIBS="-lm ${pbxlibdir} $LIBS"
30498 cat >conftest.$ac_ext <<_ACEOF
30499 /* confdefs.h. */
30500 _ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h. */
30505 /* Override any GCC internal prototype to avoid an error.
30506 Use char because int might match the return type of a GCC
30507 builtin and then its argument prototype would still apply. */
30508 #ifdef __cplusplus
30509 extern "C"
30510 #endif
30511 char ${pbxfuncname} ();
30513 main ()
30515 return ${pbxfuncname} ();
30517 return 0;
30519 _ACEOF
30520 rm -f conftest.$ac_objext conftest$ac_exeext
30521 if { (ac_try="$ac_link"
30522 case "(($ac_try" in
30523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524 *) ac_try_echo=$ac_try;;
30525 esac
30526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30527 (eval "$ac_link") 2>conftest.er1
30528 ac_status=$?
30529 grep -v '^ *+' conftest.er1 >conftest.err
30530 rm -f conftest.er1
30531 cat conftest.err >&5
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); } && {
30534 test -z "$ac_c_werror_flag" ||
30535 test ! -s conftest.err
30536 } && test -s conftest$ac_exeext &&
30537 $as_test_x conftest$ac_exeext; then
30538 eval "$as_ac_Lib=yes"
30539 else
30540 echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30543 eval "$as_ac_Lib=no"
30546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30547 conftest$ac_exeext conftest.$ac_ext
30548 LIBS=$ac_check_lib_save_LIBS
30550 ac_res=`eval echo '${'$as_ac_Lib'}'`
30551 { echo "$as_me:$LINENO: result: $ac_res" >&5
30552 echo "${ECHO_T}$ac_res" >&6; }
30553 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30554 AST_CEIL_FOUND=yes
30555 else
30556 AST_CEIL_FOUND=no
30561 # now check for the header.
30562 if test "${AST_CEIL_FOUND}" = "yes"; then
30563 CEIL_LIB="${pbxlibdir} -lm "
30564 # if --with-CEIL=DIR has been specified, use it.
30565 if test "x${CEIL_DIR}" != "x"; then
30566 CEIL_INCLUDE="-I${CEIL_DIR}/include"
30568 CEIL_INCLUDE="${CEIL_INCLUDE} "
30569 if test "x" = "x" ; then # no header, assume found
30570 CEIL_HEADER_FOUND="1"
30571 else # check for the header
30572 saved_cppflags="${CPPFLAGS}"
30573 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE} "
30574 if test "${ac_cv_header_+set}" = set; then
30575 { echo "$as_me:$LINENO: checking for " >&5
30576 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30577 if test "${ac_cv_header_+set}" = set; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30580 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30581 echo "${ECHO_T}$ac_cv_header_" >&6; }
30582 else
30583 # Is the header compilable?
30584 { echo "$as_me:$LINENO: checking usability" >&5
30585 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30586 cat >conftest.$ac_ext <<_ACEOF
30587 /* confdefs.h. */
30588 _ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h. */
30592 $ac_includes_default
30593 #include <>
30594 _ACEOF
30595 rm -f conftest.$ac_objext
30596 if { (ac_try="$ac_compile"
30597 case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30600 esac
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_compile") 2>conftest.er1
30603 ac_status=$?
30604 grep -v '^ *+' conftest.er1 >conftest.err
30605 rm -f conftest.er1
30606 cat conftest.err >&5
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); } && {
30609 test -z "$ac_c_werror_flag" ||
30610 test ! -s conftest.err
30611 } && test -s conftest.$ac_objext; then
30612 ac_header_compiler=yes
30613 else
30614 echo "$as_me: failed program was:" >&5
30615 sed 's/^/| /' conftest.$ac_ext >&5
30617 ac_header_compiler=no
30620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30622 echo "${ECHO_T}$ac_header_compiler" >&6; }
30624 # Is the header present?
30625 { echo "$as_me:$LINENO: checking presence" >&5
30626 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30627 cat >conftest.$ac_ext <<_ACEOF
30628 /* confdefs.h. */
30629 _ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h. */
30633 #include <>
30634 _ACEOF
30635 if { (ac_try="$ac_cpp conftest.$ac_ext"
30636 case "(($ac_try" in
30637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30638 *) ac_try_echo=$ac_try;;
30639 esac
30640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30642 ac_status=$?
30643 grep -v '^ *+' conftest.er1 >conftest.err
30644 rm -f conftest.er1
30645 cat conftest.err >&5
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } >/dev/null && {
30648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30649 test ! -s conftest.err
30650 }; then
30651 ac_header_preproc=yes
30652 else
30653 echo "$as_me: failed program was:" >&5
30654 sed 's/^/| /' conftest.$ac_ext >&5
30656 ac_header_preproc=no
30659 rm -f conftest.err conftest.$ac_ext
30660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30661 echo "${ECHO_T}$ac_header_preproc" >&6; }
30663 # So? What about this header?
30664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30665 yes:no: )
30666 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30667 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30668 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30669 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30670 ac_header_preproc=yes
30672 no:yes:* )
30673 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30674 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30675 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30676 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30677 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30678 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30679 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30680 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30681 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30682 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30683 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30684 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30685 ( cat <<\_ASBOX
30686 ## ------------------------------- ##
30687 ## Report this to www.asterisk.org ##
30688 ## ------------------------------- ##
30689 _ASBOX
30690 ) | sed "s/^/$as_me: WARNING: /" >&2
30692 esac
30693 { echo "$as_me:$LINENO: checking for " >&5
30694 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30695 if test "${ac_cv_header_+set}" = set; then
30696 echo $ECHO_N "(cached) $ECHO_C" >&6
30697 else
30698 ac_cv_header_=$ac_header_preproc
30700 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30701 echo "${ECHO_T}$ac_cv_header_" >&6; }
30704 if test $ac_cv_header_ = yes; then
30705 CEIL_HEADER_FOUND=1
30706 else
30707 CEIL_HEADER_FOUND=0
30711 CPPFLAGS="${saved_cppflags}"
30713 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
30714 CEIL_LIB=""
30715 CEIL_INCLUDE=""
30716 else
30717 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30718 CEIL_LIB=""
30720 PBX_CEIL=1
30721 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30723 cat >>confdefs.h <<_ACEOF
30724 #define HAVE_CEIL 1
30725 _ACEOF
30728 cat >>confdefs.h <<_ACEOF
30729 #define HAVE_CEIL_VERSION
30730 _ACEOF
30738 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
30739 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
30740 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
30741 saved_cppflags="${CPPFLAGS}"
30742 if test "x${GETIFADDRS_DIR}" != "x"; then
30743 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
30745 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
30747 cat >conftest.$ac_ext <<_ACEOF
30748 /* confdefs.h. */
30749 _ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h. */
30753 #include <ifaddrs.h>
30755 main ()
30757 struct ifaddrs *p; getifaddrs(&p);
30760 return 0;
30762 _ACEOF
30763 rm -f conftest.$ac_objext
30764 if { (ac_try="$ac_compile"
30765 case "(($ac_try" in
30766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30767 *) ac_try_echo=$ac_try;;
30768 esac
30769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30770 (eval "$ac_compile") 2>conftest.er1
30771 ac_status=$?
30772 grep -v '^ *+' conftest.er1 >conftest.err
30773 rm -f conftest.er1
30774 cat conftest.err >&5
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); } && {
30777 test -z "$ac_c_werror_flag" ||
30778 test ! -s conftest.err
30779 } && test -s conftest.$ac_objext; then
30780 { echo "$as_me:$LINENO: result: yes" >&5
30781 echo "${ECHO_T}yes" >&6; }
30782 PBX_GETIFADDRS=1
30784 cat >>confdefs.h <<\_ACEOF
30785 #define HAVE_GETIFADDRS 1
30786 _ACEOF
30789 cat >>confdefs.h <<\_ACEOF
30790 #define HAVE_GETIFADDRS_VERSION
30791 _ACEOF
30794 else
30795 echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30798 { echo "$as_me:$LINENO: result: no" >&5
30799 echo "${ECHO_T}no" >&6; }
30803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30804 CPPFLAGS="${saved_cppflags}"
30808 GSM_INTERNAL="yes"
30810 GSM_SYSTEM="yes"
30811 if test "${USE_GSM}" != "no"; then
30812 if test "${GSM_DIR}" = "internal"; then
30813 GSM_SYSTEM="no"
30814 elif test "${GSM_DIR}" != ""; then
30815 GSM_INTERNAL="no"
30817 if test "${GSM_SYSTEM}" = "yes"; then
30818 gsmlibdir=""
30819 if test "x${GSM_DIR}" != "x"; then
30820 if test -d ${GSM_DIR}/lib; then
30821 gsmlibdir="-L${GSM_DIR}/lib"
30822 else
30823 gsmlibdir="-L${GSM_DIR}"
30826 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
30827 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
30828 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
30829 echo $ECHO_N "(cached) $ECHO_C" >&6
30830 else
30831 ac_check_lib_save_LIBS=$LIBS
30832 LIBS="-lgsm ${gsmlibdir} $LIBS"
30833 cat >conftest.$ac_ext <<_ACEOF
30834 /* confdefs.h. */
30835 _ACEOF
30836 cat confdefs.h >>conftest.$ac_ext
30837 cat >>conftest.$ac_ext <<_ACEOF
30838 /* end confdefs.h. */
30840 /* Override any GCC internal prototype to avoid an error.
30841 Use char because int might match the return type of a GCC
30842 builtin and then its argument prototype would still apply. */
30843 #ifdef __cplusplus
30844 extern "C"
30845 #endif
30846 char gsm_create ();
30848 main ()
30850 return gsm_create ();
30852 return 0;
30854 _ACEOF
30855 rm -f conftest.$ac_objext conftest$ac_exeext
30856 if { (ac_try="$ac_link"
30857 case "(($ac_try" in
30858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859 *) ac_try_echo=$ac_try;;
30860 esac
30861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862 (eval "$ac_link") 2>conftest.er1
30863 ac_status=$?
30864 grep -v '^ *+' conftest.er1 >conftest.err
30865 rm -f conftest.er1
30866 cat conftest.err >&5
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868 (exit $ac_status); } && {
30869 test -z "$ac_c_werror_flag" ||
30870 test ! -s conftest.err
30871 } && test -s conftest$ac_exeext &&
30872 $as_test_x conftest$ac_exeext; then
30873 ac_cv_lib_gsm_gsm_create=yes
30874 else
30875 echo "$as_me: failed program was:" >&5
30876 sed 's/^/| /' conftest.$ac_ext >&5
30878 ac_cv_lib_gsm_gsm_create=no
30881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30882 conftest$ac_exeext conftest.$ac_ext
30883 LIBS=$ac_check_lib_save_LIBS
30885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
30886 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
30887 if test $ac_cv_lib_gsm_gsm_create = yes; then
30889 cat >>confdefs.h <<_ACEOF
30890 #define HAVE_GSM 1
30891 _ACEOF
30895 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
30896 if test "x${GSM_DIR}" != "x" ; then
30897 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
30898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30899 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
30900 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
30901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30902 echo $ECHO_N "(cached) $ECHO_C" >&6
30904 ac_res=`eval echo '${'$as_ac_Header'}'`
30905 { echo "$as_me:$LINENO: result: $ac_res" >&5
30906 echo "${ECHO_T}$ac_res" >&6; }
30907 else
30908 # Is the header compilable?
30909 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
30910 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
30911 cat >conftest.$ac_ext <<_ACEOF
30912 /* confdefs.h. */
30913 _ACEOF
30914 cat confdefs.h >>conftest.$ac_ext
30915 cat >>conftest.$ac_ext <<_ACEOF
30916 /* end confdefs.h. */
30917 $ac_includes_default
30918 #include <${GSM_DIR}/include/gsm.h>
30919 _ACEOF
30920 rm -f conftest.$ac_objext
30921 if { (ac_try="$ac_compile"
30922 case "(($ac_try" in
30923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30924 *) ac_try_echo=$ac_try;;
30925 esac
30926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30927 (eval "$ac_compile") 2>conftest.er1
30928 ac_status=$?
30929 grep -v '^ *+' conftest.er1 >conftest.err
30930 rm -f conftest.er1
30931 cat conftest.err >&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); } && {
30934 test -z "$ac_c_werror_flag" ||
30935 test ! -s conftest.err
30936 } && test -s conftest.$ac_objext; then
30937 ac_header_compiler=yes
30938 else
30939 echo "$as_me: failed program was:" >&5
30940 sed 's/^/| /' conftest.$ac_ext >&5
30942 ac_header_compiler=no
30945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30947 echo "${ECHO_T}$ac_header_compiler" >&6; }
30949 # Is the header present?
30950 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
30951 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
30952 cat >conftest.$ac_ext <<_ACEOF
30953 /* confdefs.h. */
30954 _ACEOF
30955 cat confdefs.h >>conftest.$ac_ext
30956 cat >>conftest.$ac_ext <<_ACEOF
30957 /* end confdefs.h. */
30958 #include <${GSM_DIR}/include/gsm.h>
30959 _ACEOF
30960 if { (ac_try="$ac_cpp conftest.$ac_ext"
30961 case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30964 esac
30965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30967 ac_status=$?
30968 grep -v '^ *+' conftest.er1 >conftest.err
30969 rm -f conftest.er1
30970 cat conftest.err >&5
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); } >/dev/null && {
30973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30974 test ! -s conftest.err
30975 }; then
30976 ac_header_preproc=yes
30977 else
30978 echo "$as_me: failed program was:" >&5
30979 sed 's/^/| /' conftest.$ac_ext >&5
30981 ac_header_preproc=no
30984 rm -f conftest.err conftest.$ac_ext
30985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30986 echo "${ECHO_T}$ac_header_preproc" >&6; }
30988 # So? What about this header?
30989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30990 yes:no: )
30991 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
30992 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30993 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
30994 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
30995 ac_header_preproc=yes
30997 no:yes:* )
30998 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
30999 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
31000 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
31001 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
31002 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
31003 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
31004 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31005 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31006 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
31007 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
31008 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
31009 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
31010 ( cat <<\_ASBOX
31011 ## ------------------------------- ##
31012 ## Report this to www.asterisk.org ##
31013 ## ------------------------------- ##
31014 _ASBOX
31015 ) | sed "s/^/$as_me: WARNING: /" >&2
31017 esac
31018 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31019 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31021 echo $ECHO_N "(cached) $ECHO_C" >&6
31022 else
31023 eval "$as_ac_Header=\$ac_header_preproc"
31025 ac_res=`eval echo '${'$as_ac_Header'}'`
31026 { echo "$as_me:$LINENO: result: $ac_res" >&5
31027 echo "${ECHO_T}$ac_res" >&6; }
31030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31031 GSM_HEADER_FOUND=1
31032 else
31033 GSM_HEADER_FOUND=0
31037 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
31038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31039 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31040 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31042 echo $ECHO_N "(cached) $ECHO_C" >&6
31044 ac_res=`eval echo '${'$as_ac_Header'}'`
31045 { echo "$as_me:$LINENO: result: $ac_res" >&5
31046 echo "${ECHO_T}$ac_res" >&6; }
31047 else
31048 # Is the header compilable?
31049 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
31050 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
31051 cat >conftest.$ac_ext <<_ACEOF
31052 /* confdefs.h. */
31053 _ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31057 $ac_includes_default
31058 #include <${GSM_DIR}/include/gsm/gsm.h>
31059 _ACEOF
31060 rm -f conftest.$ac_objext
31061 if { (ac_try="$ac_compile"
31062 case "(($ac_try" in
31063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31064 *) ac_try_echo=$ac_try;;
31065 esac
31066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31067 (eval "$ac_compile") 2>conftest.er1
31068 ac_status=$?
31069 grep -v '^ *+' conftest.er1 >conftest.err
31070 rm -f conftest.er1
31071 cat conftest.err >&5
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); } && {
31074 test -z "$ac_c_werror_flag" ||
31075 test ! -s conftest.err
31076 } && test -s conftest.$ac_objext; then
31077 ac_header_compiler=yes
31078 else
31079 echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31082 ac_header_compiler=no
31085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31087 echo "${ECHO_T}$ac_header_compiler" >&6; }
31089 # Is the header present?
31090 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31091 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31092 cat >conftest.$ac_ext <<_ACEOF
31093 /* confdefs.h. */
31094 _ACEOF
31095 cat confdefs.h >>conftest.$ac_ext
31096 cat >>conftest.$ac_ext <<_ACEOF
31097 /* end confdefs.h. */
31098 #include <${GSM_DIR}/include/gsm/gsm.h>
31099 _ACEOF
31100 if { (ac_try="$ac_cpp conftest.$ac_ext"
31101 case "(($ac_try" in
31102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31103 *) ac_try_echo=$ac_try;;
31104 esac
31105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31107 ac_status=$?
31108 grep -v '^ *+' conftest.er1 >conftest.err
31109 rm -f conftest.er1
31110 cat conftest.err >&5
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); } >/dev/null && {
31113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31114 test ! -s conftest.err
31115 }; then
31116 ac_header_preproc=yes
31117 else
31118 echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31121 ac_header_preproc=no
31124 rm -f conftest.err conftest.$ac_ext
31125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31126 echo "${ECHO_T}$ac_header_preproc" >&6; }
31128 # So? What about this header?
31129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31130 yes:no: )
31131 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31132 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31133 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31134 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31135 ac_header_preproc=yes
31137 no:yes:* )
31138 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31139 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31140 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31141 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31142 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31143 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31144 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31145 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31146 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31147 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31148 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31149 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31150 ( cat <<\_ASBOX
31151 ## ------------------------------- ##
31152 ## Report this to www.asterisk.org ##
31153 ## ------------------------------- ##
31154 _ASBOX
31155 ) | sed "s/^/$as_me: WARNING: /" >&2
31157 esac
31158 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31159 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31161 echo $ECHO_N "(cached) $ECHO_C" >&6
31162 else
31163 eval "$as_ac_Header=\$ac_header_preproc"
31165 ac_res=`eval echo '${'$as_ac_Header'}'`
31166 { echo "$as_me:$LINENO: result: $ac_res" >&5
31167 echo "${ECHO_T}$ac_res" >&6; }
31170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31171 GSM_GSM_HEADER_FOUND=1
31172 else
31173 GSM_GSM_HEADER_FOUND=0
31177 else
31178 if test "${ac_cv_header_gsm_h+set}" = set; then
31179 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31180 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31181 if test "${ac_cv_header_gsm_h+set}" = set; then
31182 echo $ECHO_N "(cached) $ECHO_C" >&6
31184 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31185 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31186 else
31187 # Is the header compilable?
31188 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31189 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31190 cat >conftest.$ac_ext <<_ACEOF
31191 /* confdefs.h. */
31192 _ACEOF
31193 cat confdefs.h >>conftest.$ac_ext
31194 cat >>conftest.$ac_ext <<_ACEOF
31195 /* end confdefs.h. */
31196 $ac_includes_default
31197 #include <gsm.h>
31198 _ACEOF
31199 rm -f conftest.$ac_objext
31200 if { (ac_try="$ac_compile"
31201 case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31204 esac
31205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_compile") 2>conftest.er1
31207 ac_status=$?
31208 grep -v '^ *+' conftest.er1 >conftest.err
31209 rm -f conftest.er1
31210 cat conftest.err >&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } && {
31213 test -z "$ac_c_werror_flag" ||
31214 test ! -s conftest.err
31215 } && test -s conftest.$ac_objext; then
31216 ac_header_compiler=yes
31217 else
31218 echo "$as_me: failed program was:" >&5
31219 sed 's/^/| /' conftest.$ac_ext >&5
31221 ac_header_compiler=no
31224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31226 echo "${ECHO_T}$ac_header_compiler" >&6; }
31228 # Is the header present?
31229 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31230 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31231 cat >conftest.$ac_ext <<_ACEOF
31232 /* confdefs.h. */
31233 _ACEOF
31234 cat confdefs.h >>conftest.$ac_ext
31235 cat >>conftest.$ac_ext <<_ACEOF
31236 /* end confdefs.h. */
31237 #include <gsm.h>
31238 _ACEOF
31239 if { (ac_try="$ac_cpp conftest.$ac_ext"
31240 case "(($ac_try" in
31241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31242 *) ac_try_echo=$ac_try;;
31243 esac
31244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31246 ac_status=$?
31247 grep -v '^ *+' conftest.er1 >conftest.err
31248 rm -f conftest.er1
31249 cat conftest.err >&5
31250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251 (exit $ac_status); } >/dev/null && {
31252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31253 test ! -s conftest.err
31254 }; then
31255 ac_header_preproc=yes
31256 else
31257 echo "$as_me: failed program was:" >&5
31258 sed 's/^/| /' conftest.$ac_ext >&5
31260 ac_header_preproc=no
31263 rm -f conftest.err conftest.$ac_ext
31264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31265 echo "${ECHO_T}$ac_header_preproc" >&6; }
31267 # So? What about this header?
31268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31269 yes:no: )
31270 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31271 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31272 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31273 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31274 ac_header_preproc=yes
31276 no:yes:* )
31277 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31278 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31279 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31280 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31281 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31282 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31283 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31284 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31285 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31286 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31287 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31288 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31289 ( cat <<\_ASBOX
31290 ## ------------------------------- ##
31291 ## Report this to www.asterisk.org ##
31292 ## ------------------------------- ##
31293 _ASBOX
31294 ) | sed "s/^/$as_me: WARNING: /" >&2
31296 esac
31297 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31298 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31299 if test "${ac_cv_header_gsm_h+set}" = set; then
31300 echo $ECHO_N "(cached) $ECHO_C" >&6
31301 else
31302 ac_cv_header_gsm_h=$ac_header_preproc
31304 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31305 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31308 if test $ac_cv_header_gsm_h = yes; then
31309 GSM_HEADER_FOUND=1
31310 else
31311 GSM_HEADER_FOUND=0
31315 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31316 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31317 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31318 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31319 echo $ECHO_N "(cached) $ECHO_C" >&6
31321 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31322 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31323 else
31324 # Is the header compilable?
31325 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31326 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31327 cat >conftest.$ac_ext <<_ACEOF
31328 /* confdefs.h. */
31329 _ACEOF
31330 cat confdefs.h >>conftest.$ac_ext
31331 cat >>conftest.$ac_ext <<_ACEOF
31332 /* end confdefs.h. */
31333 $ac_includes_default
31334 #include <gsm/gsm.h>
31335 _ACEOF
31336 rm -f conftest.$ac_objext
31337 if { (ac_try="$ac_compile"
31338 case "(($ac_try" in
31339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340 *) ac_try_echo=$ac_try;;
31341 esac
31342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343 (eval "$ac_compile") 2>conftest.er1
31344 ac_status=$?
31345 grep -v '^ *+' conftest.er1 >conftest.err
31346 rm -f conftest.er1
31347 cat conftest.err >&5
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); } && {
31350 test -z "$ac_c_werror_flag" ||
31351 test ! -s conftest.err
31352 } && test -s conftest.$ac_objext; then
31353 ac_header_compiler=yes
31354 else
31355 echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31358 ac_header_compiler=no
31361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31363 echo "${ECHO_T}$ac_header_compiler" >&6; }
31365 # Is the header present?
31366 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31367 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31368 cat >conftest.$ac_ext <<_ACEOF
31369 /* confdefs.h. */
31370 _ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h. */
31374 #include <gsm/gsm.h>
31375 _ACEOF
31376 if { (ac_try="$ac_cpp conftest.$ac_ext"
31377 case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31380 esac
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31383 ac_status=$?
31384 grep -v '^ *+' conftest.er1 >conftest.err
31385 rm -f conftest.er1
31386 cat conftest.err >&5
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } >/dev/null && {
31389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31390 test ! -s conftest.err
31391 }; then
31392 ac_header_preproc=yes
31393 else
31394 echo "$as_me: failed program was:" >&5
31395 sed 's/^/| /' conftest.$ac_ext >&5
31397 ac_header_preproc=no
31400 rm -f conftest.err conftest.$ac_ext
31401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31402 echo "${ECHO_T}$ac_header_preproc" >&6; }
31404 # So? What about this header?
31405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31406 yes:no: )
31407 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31408 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31409 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31410 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31411 ac_header_preproc=yes
31413 no:yes:* )
31414 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31415 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31416 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31417 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31418 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31419 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31420 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31421 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31422 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31423 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31424 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31425 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31426 ( cat <<\_ASBOX
31427 ## ------------------------------- ##
31428 ## Report this to www.asterisk.org ##
31429 ## ------------------------------- ##
31430 _ASBOX
31431 ) | sed "s/^/$as_me: WARNING: /" >&2
31433 esac
31434 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31435 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31436 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31439 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31441 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31442 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31445 if test $ac_cv_header_gsm_gsm_h = yes; then
31446 GSM_GSM_HEADER_FOUND=1
31447 else
31448 GSM_GSM_HEADER_FOUND=0
31453 if test "${GSM_HEADER_FOUND}" = "0" ; then
31454 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31455 if test "x${GSM_MANDATORY}" = "xyes" ; then
31456 { echo "$as_me:$LINENO: ***" >&5
31457 echo "$as_me: ***" >&6;}
31458 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31459 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31460 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31461 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31462 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31463 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31464 exit 1
31468 GSM_OK=0
31469 if test "${GSM_HEADER_FOUND}" = "1" ; then
31471 cat >>confdefs.h <<_ACEOF
31472 #define HAVE_GSM_HEADER 1
31473 _ACEOF
31475 GSM_OK=1
31476 else
31477 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31479 cat >>confdefs.h <<_ACEOF
31480 #define HAVE_GSM_GSM_HEADER 1
31481 _ACEOF
31483 GSM_OK=1
31486 if test "${GSM_OK}" = "1" ; then
31487 GSM_LIB="-lgsm"
31488 if test "x${GSM_DIR}" != "x"; then
31489 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31490 GSM_INCLUDE="-I${GSM_DIR}/include"
31492 PBX_GSM=1
31493 GSM_INTERNAL="no"
31497 if test "${GSM_INTERNAL}" = "yes"; then
31498 PBX_GSM=1
31500 cat >>confdefs.h <<_ACEOF
31501 #define HAVE_GSM_HEADER 1
31502 _ACEOF
31507 if test "${host_os}" != "linux-gnu" ; then
31509 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31510 pbxlibdir=""
31511 # if --with-ICONV=DIR has been specified, use it.
31512 if test "x${ICONV_DIR}" != "x"; then
31513 if test -d ${ICONV_DIR}/lib; then
31514 pbxlibdir="-L${ICONV_DIR}/lib"
31515 else
31516 pbxlibdir="-L${ICONV_DIR}"
31519 pbxfuncname="iconv_open"
31520 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31521 AST_ICONV_FOUND=yes
31522 else
31523 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
31524 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
31525 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
31526 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31527 echo $ECHO_N "(cached) $ECHO_C" >&6
31528 else
31529 ac_check_lib_save_LIBS=$LIBS
31530 LIBS="-liconv ${pbxlibdir} $LIBS"
31531 cat >conftest.$ac_ext <<_ACEOF
31532 /* confdefs.h. */
31533 _ACEOF
31534 cat confdefs.h >>conftest.$ac_ext
31535 cat >>conftest.$ac_ext <<_ACEOF
31536 /* end confdefs.h. */
31538 /* Override any GCC internal prototype to avoid an error.
31539 Use char because int might match the return type of a GCC
31540 builtin and then its argument prototype would still apply. */
31541 #ifdef __cplusplus
31542 extern "C"
31543 #endif
31544 char ${pbxfuncname} ();
31546 main ()
31548 return ${pbxfuncname} ();
31550 return 0;
31552 _ACEOF
31553 rm -f conftest.$ac_objext conftest$ac_exeext
31554 if { (ac_try="$ac_link"
31555 case "(($ac_try" in
31556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31558 esac
31559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_link") 2>conftest.er1
31561 ac_status=$?
31562 grep -v '^ *+' conftest.er1 >conftest.err
31563 rm -f conftest.er1
31564 cat conftest.err >&5
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); } && {
31567 test -z "$ac_c_werror_flag" ||
31568 test ! -s conftest.err
31569 } && test -s conftest$ac_exeext &&
31570 $as_test_x conftest$ac_exeext; then
31571 eval "$as_ac_Lib=yes"
31572 else
31573 echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31576 eval "$as_ac_Lib=no"
31579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31580 conftest$ac_exeext conftest.$ac_ext
31581 LIBS=$ac_check_lib_save_LIBS
31583 ac_res=`eval echo '${'$as_ac_Lib'}'`
31584 { echo "$as_me:$LINENO: result: $ac_res" >&5
31585 echo "${ECHO_T}$ac_res" >&6; }
31586 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31587 AST_ICONV_FOUND=yes
31588 else
31589 AST_ICONV_FOUND=no
31594 # now check for the header.
31595 if test "${AST_ICONV_FOUND}" = "yes"; then
31596 ICONV_LIB="${pbxlibdir} -liconv "
31597 # if --with-ICONV=DIR has been specified, use it.
31598 if test "x${ICONV_DIR}" != "x"; then
31599 ICONV_INCLUDE="-I${ICONV_DIR}/include"
31601 ICONV_INCLUDE="${ICONV_INCLUDE} "
31602 if test "xiconv.h" = "x" ; then # no header, assume found
31603 ICONV_HEADER_FOUND="1"
31604 else # check for the header
31605 saved_cppflags="${CPPFLAGS}"
31606 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE} "
31607 if test "${ac_cv_header_iconv_h+set}" = set; then
31608 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31609 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31610 if test "${ac_cv_header_iconv_h+set}" = set; then
31611 echo $ECHO_N "(cached) $ECHO_C" >&6
31613 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31614 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31615 else
31616 # Is the header compilable?
31617 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
31618 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
31619 cat >conftest.$ac_ext <<_ACEOF
31620 /* confdefs.h. */
31621 _ACEOF
31622 cat confdefs.h >>conftest.$ac_ext
31623 cat >>conftest.$ac_ext <<_ACEOF
31624 /* end confdefs.h. */
31625 $ac_includes_default
31626 #include <iconv.h>
31627 _ACEOF
31628 rm -f conftest.$ac_objext
31629 if { (ac_try="$ac_compile"
31630 case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31633 esac
31634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_compile") 2>conftest.er1
31636 ac_status=$?
31637 grep -v '^ *+' conftest.er1 >conftest.err
31638 rm -f conftest.er1
31639 cat conftest.err >&5
31640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); } && {
31642 test -z "$ac_c_werror_flag" ||
31643 test ! -s conftest.err
31644 } && test -s conftest.$ac_objext; then
31645 ac_header_compiler=yes
31646 else
31647 echo "$as_me: failed program was:" >&5
31648 sed 's/^/| /' conftest.$ac_ext >&5
31650 ac_header_compiler=no
31653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31655 echo "${ECHO_T}$ac_header_compiler" >&6; }
31657 # Is the header present?
31658 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
31659 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
31660 cat >conftest.$ac_ext <<_ACEOF
31661 /* confdefs.h. */
31662 _ACEOF
31663 cat confdefs.h >>conftest.$ac_ext
31664 cat >>conftest.$ac_ext <<_ACEOF
31665 /* end confdefs.h. */
31666 #include <iconv.h>
31667 _ACEOF
31668 if { (ac_try="$ac_cpp conftest.$ac_ext"
31669 case "(($ac_try" in
31670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671 *) ac_try_echo=$ac_try;;
31672 esac
31673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31675 ac_status=$?
31676 grep -v '^ *+' conftest.er1 >conftest.err
31677 rm -f conftest.er1
31678 cat conftest.err >&5
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); } >/dev/null && {
31681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31682 test ! -s conftest.err
31683 }; then
31684 ac_header_preproc=yes
31685 else
31686 echo "$as_me: failed program was:" >&5
31687 sed 's/^/| /' conftest.$ac_ext >&5
31689 ac_header_preproc=no
31692 rm -f conftest.err conftest.$ac_ext
31693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31694 echo "${ECHO_T}$ac_header_preproc" >&6; }
31696 # So? What about this header?
31697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31698 yes:no: )
31699 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
31700 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31701 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
31702 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
31703 ac_header_preproc=yes
31705 no:yes:* )
31706 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
31707 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
31708 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
31709 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
31710 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
31711 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
31712 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
31713 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
31714 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
31715 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
31716 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
31717 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
31718 ( cat <<\_ASBOX
31719 ## ------------------------------- ##
31720 ## Report this to www.asterisk.org ##
31721 ## ------------------------------- ##
31722 _ASBOX
31723 ) | sed "s/^/$as_me: WARNING: /" >&2
31725 esac
31726 { echo "$as_me:$LINENO: checking for iconv.h" >&5
31727 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
31728 if test "${ac_cv_header_iconv_h+set}" = set; then
31729 echo $ECHO_N "(cached) $ECHO_C" >&6
31730 else
31731 ac_cv_header_iconv_h=$ac_header_preproc
31733 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
31734 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
31737 if test $ac_cv_header_iconv_h = yes; then
31738 ICONV_HEADER_FOUND=1
31739 else
31740 ICONV_HEADER_FOUND=0
31744 CPPFLAGS="${saved_cppflags}"
31746 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
31747 ICONV_LIB=""
31748 ICONV_INCLUDE=""
31749 else
31750 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31751 ICONV_LIB=""
31753 PBX_ICONV=1
31754 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31756 cat >>confdefs.h <<_ACEOF
31757 #define HAVE_ICONV 1
31758 _ACEOF
31761 cat >>confdefs.h <<_ACEOF
31762 #define HAVE_ICONV_VERSION
31763 _ACEOF
31769 else
31770 PBX_ICONV=1
31774 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
31775 pbxlibdir=""
31776 # if --with-IKSEMEL=DIR has been specified, use it.
31777 if test "x${IKSEMEL_DIR}" != "x"; then
31778 if test -d ${IKSEMEL_DIR}/lib; then
31779 pbxlibdir="-L${IKSEMEL_DIR}/lib"
31780 else
31781 pbxlibdir="-L${IKSEMEL_DIR}"
31784 pbxfuncname="iks_start_sasl"
31785 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31786 AST_IKSEMEL_FOUND=yes
31787 else
31788 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
31789 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
31790 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
31791 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793 else
31794 ac_check_lib_save_LIBS=$LIBS
31795 LIBS="-liksemel ${pbxlibdir} $LIBS"
31796 cat >conftest.$ac_ext <<_ACEOF
31797 /* confdefs.h. */
31798 _ACEOF
31799 cat confdefs.h >>conftest.$ac_ext
31800 cat >>conftest.$ac_ext <<_ACEOF
31801 /* end confdefs.h. */
31803 /* Override any GCC internal prototype to avoid an error.
31804 Use char because int might match the return type of a GCC
31805 builtin and then its argument prototype would still apply. */
31806 #ifdef __cplusplus
31807 extern "C"
31808 #endif
31809 char ${pbxfuncname} ();
31811 main ()
31813 return ${pbxfuncname} ();
31815 return 0;
31817 _ACEOF
31818 rm -f conftest.$ac_objext conftest$ac_exeext
31819 if { (ac_try="$ac_link"
31820 case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31823 esac
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_link") 2>conftest.er1
31826 ac_status=$?
31827 grep -v '^ *+' conftest.er1 >conftest.err
31828 rm -f conftest.er1
31829 cat conftest.err >&5
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); } && {
31832 test -z "$ac_c_werror_flag" ||
31833 test ! -s conftest.err
31834 } && test -s conftest$ac_exeext &&
31835 $as_test_x conftest$ac_exeext; then
31836 eval "$as_ac_Lib=yes"
31837 else
31838 echo "$as_me: failed program was:" >&5
31839 sed 's/^/| /' conftest.$ac_ext >&5
31841 eval "$as_ac_Lib=no"
31844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31845 conftest$ac_exeext conftest.$ac_ext
31846 LIBS=$ac_check_lib_save_LIBS
31848 ac_res=`eval echo '${'$as_ac_Lib'}'`
31849 { echo "$as_me:$LINENO: result: $ac_res" >&5
31850 echo "${ECHO_T}$ac_res" >&6; }
31851 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31852 AST_IKSEMEL_FOUND=yes
31853 else
31854 AST_IKSEMEL_FOUND=no
31859 # now check for the header.
31860 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
31861 IKSEMEL_LIB="${pbxlibdir} -liksemel "
31862 # if --with-IKSEMEL=DIR has been specified, use it.
31863 if test "x${IKSEMEL_DIR}" != "x"; then
31864 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
31866 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
31867 if test "xiksemel.h" = "x" ; then # no header, assume found
31868 IKSEMEL_HEADER_FOUND="1"
31869 else # check for the header
31870 saved_cppflags="${CPPFLAGS}"
31871 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE} "
31872 if test "${ac_cv_header_iksemel_h+set}" = set; then
31873 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
31874 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
31875 if test "${ac_cv_header_iksemel_h+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31878 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
31879 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
31880 else
31881 # Is the header compilable?
31882 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
31883 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
31884 cat >conftest.$ac_ext <<_ACEOF
31885 /* confdefs.h. */
31886 _ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h. */
31890 $ac_includes_default
31891 #include <iksemel.h>
31892 _ACEOF
31893 rm -f conftest.$ac_objext
31894 if { (ac_try="$ac_compile"
31895 case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31898 esac
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_compile") 2>conftest.er1
31901 ac_status=$?
31902 grep -v '^ *+' conftest.er1 >conftest.err
31903 rm -f conftest.er1
31904 cat conftest.err >&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } && {
31907 test -z "$ac_c_werror_flag" ||
31908 test ! -s conftest.err
31909 } && test -s conftest.$ac_objext; then
31910 ac_header_compiler=yes
31911 else
31912 echo "$as_me: failed program was:" >&5
31913 sed 's/^/| /' conftest.$ac_ext >&5
31915 ac_header_compiler=no
31918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31920 echo "${ECHO_T}$ac_header_compiler" >&6; }
31922 # Is the header present?
31923 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
31924 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
31925 cat >conftest.$ac_ext <<_ACEOF
31926 /* confdefs.h. */
31927 _ACEOF
31928 cat confdefs.h >>conftest.$ac_ext
31929 cat >>conftest.$ac_ext <<_ACEOF
31930 /* end confdefs.h. */
31931 #include <iksemel.h>
31932 _ACEOF
31933 if { (ac_try="$ac_cpp conftest.$ac_ext"
31934 case "(($ac_try" in
31935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31936 *) ac_try_echo=$ac_try;;
31937 esac
31938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31940 ac_status=$?
31941 grep -v '^ *+' conftest.er1 >conftest.err
31942 rm -f conftest.er1
31943 cat conftest.err >&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); } >/dev/null && {
31946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31947 test ! -s conftest.err
31948 }; then
31949 ac_header_preproc=yes
31950 else
31951 echo "$as_me: failed program was:" >&5
31952 sed 's/^/| /' conftest.$ac_ext >&5
31954 ac_header_preproc=no
31957 rm -f conftest.err conftest.$ac_ext
31958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31959 echo "${ECHO_T}$ac_header_preproc" >&6; }
31961 # So? What about this header?
31962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31963 yes:no: )
31964 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
31965 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31966 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
31967 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
31968 ac_header_preproc=yes
31970 no:yes:* )
31971 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
31972 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
31973 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
31974 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
31975 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
31976 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
31977 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
31978 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
31979 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
31980 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
31981 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
31982 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
31983 ( cat <<\_ASBOX
31984 ## ------------------------------- ##
31985 ## Report this to www.asterisk.org ##
31986 ## ------------------------------- ##
31987 _ASBOX
31988 ) | sed "s/^/$as_me: WARNING: /" >&2
31990 esac
31991 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
31992 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
31993 if test "${ac_cv_header_iksemel_h+set}" = set; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31995 else
31996 ac_cv_header_iksemel_h=$ac_header_preproc
31998 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
31999 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32002 if test $ac_cv_header_iksemel_h = yes; then
32003 IKSEMEL_HEADER_FOUND=1
32004 else
32005 IKSEMEL_HEADER_FOUND=0
32009 CPPFLAGS="${saved_cppflags}"
32011 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
32012 IKSEMEL_LIB=""
32013 IKSEMEL_INCLUDE=""
32014 else
32015 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32016 IKSEMEL_LIB=""
32018 PBX_IKSEMEL=1
32019 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32021 cat >>confdefs.h <<_ACEOF
32022 #define HAVE_IKSEMEL 1
32023 _ACEOF
32026 cat >>confdefs.h <<_ACEOF
32027 #define HAVE_IKSEMEL_VERSION
32028 _ACEOF
32035 if test "${USE_IMAP_TK}" != "no"; then
32036 saved_cppflags="${CPPFLAGS}"
32037 saved_libs="${LIBS}"
32038 switch_to_system_on_failure="no"
32039 if test "${IMAP_TK_DIR}" = ""; then
32040 IMAP_TK_DIR=`pwd`"/../imap-2004g"
32041 switch_to_system_on_failure="yes"
32043 if test "${IMAP_TK_DIR}" != "system"; then
32044 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
32045 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
32046 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
32047 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
32049 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
32050 imap_include="-I${IMAP_TK_DIR}/c-client"
32051 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32052 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32053 cat >conftest.$ac_ext <<_ACEOF
32054 /* confdefs.h. */
32055 _ACEOF
32056 cat confdefs.h >>conftest.$ac_ext
32057 cat >>conftest.$ac_ext <<_ACEOF
32058 /* end confdefs.h. */
32059 #include "c-client.h"
32060 void mm_searched (MAILSTREAM *stream,unsigned long number)
32063 void mm_exists (MAILSTREAM *stream,unsigned long number)
32066 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32069 void mm_flags (MAILSTREAM *stream,unsigned long number)
32072 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32075 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32078 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32081 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32084 void mm_log (char *string,long errflg)
32087 void mm_dlog (char *string)
32090 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32093 void mm_critical (MAILSTREAM *stream)
32096 void mm_nocritical (MAILSTREAM *stream)
32099 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32102 void mm_fatal (char *string)
32106 main ()
32109 MAILSTREAM *foo = mail_open(NULL, "", 0);
32113 return 0;
32115 _ACEOF
32116 rm -f conftest.$ac_objext conftest$ac_exeext
32117 if { (ac_try="$ac_link"
32118 case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32121 esac
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123 (eval "$ac_link") 2>conftest.er1
32124 ac_status=$?
32125 grep -v '^ *+' conftest.er1 >conftest.err
32126 rm -f conftest.er1
32127 cat conftest.err >&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); } && {
32130 test -z "$ac_c_werror_flag" ||
32131 test ! -s conftest.err
32132 } && test -s conftest$ac_exeext &&
32133 $as_test_x conftest$ac_exeext; then
32134 ac_cv_imap_tk="yes"
32135 else
32136 echo "$as_me: failed program was:" >&5
32137 sed 's/^/| /' conftest.$ac_ext >&5
32139 ac_cv_imap_tk="no"
32143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32144 conftest$ac_exeext conftest.$ac_ext
32145 if test "${ac_cv_imap_tk}" = "yes"; then
32146 cat >conftest.$ac_ext <<_ACEOF
32147 /* confdefs.h. */
32148 _ACEOF
32149 cat confdefs.h >>conftest.$ac_ext
32150 cat >>conftest.$ac_ext <<_ACEOF
32151 /* end confdefs.h. */
32152 #include "c-client.h"
32153 void mm_searched (MAILSTREAM *stream,unsigned long number)
32156 void mm_exists (MAILSTREAM *stream,unsigned long number)
32159 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32162 void mm_flags (MAILSTREAM *stream,unsigned long number)
32165 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32168 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32171 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32174 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32177 void mm_log (char *string,long errflg)
32180 void mm_dlog (char *string)
32183 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32186 void mm_critical (MAILSTREAM *stream)
32189 void mm_nocritical (MAILSTREAM *stream)
32192 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32195 void mm_fatal (char *string)
32199 main ()
32202 long check = mail_expunge_full(NULL, "", 0);
32206 return 0;
32208 _ACEOF
32209 rm -f conftest.$ac_objext conftest$ac_exeext
32210 if { (ac_try="$ac_link"
32211 case "(($ac_try" in
32212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213 *) ac_try_echo=$ac_try;;
32214 esac
32215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216 (eval "$ac_link") 2>conftest.er1
32217 ac_status=$?
32218 grep -v '^ *+' conftest.er1 >conftest.err
32219 rm -f conftest.er1
32220 cat conftest.err >&5
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); } && {
32223 test -z "$ac_c_werror_flag" ||
32224 test ! -s conftest.err
32225 } && test -s conftest$ac_exeext &&
32226 $as_test_x conftest$ac_exeext; then
32227 ac_cv_imap_tk2006="yes"
32228 else
32229 echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32232 ac_cv_imap_tk2006="no"
32236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32237 conftest$ac_exeext conftest.$ac_ext
32239 CPPFLAGS="${saved_cppflags}"
32240 LIBS="${saved_libs}"
32241 if test "${ac_cv_imap_tk}" = "no"; then
32242 { echo "$as_me:$LINENO: result: no" >&5
32243 echo "${ECHO_T}no" >&6; }
32244 if test "${switch_to_system_on_failure}" = "yes"; then
32245 IMAP_TK_DIR="system"
32246 else #This means they specified a directory. Search for a package installation there too
32247 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32248 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32249 CPPFLAGS="${saved_cppflags}"
32250 LIBS="${saved_libs}"
32251 imap_include="-I${IMAP_TK_DIR}/include"
32252 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32253 imap_libs="-lc-client"
32254 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32255 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32256 cat >conftest.$ac_ext <<_ACEOF
32257 /* confdefs.h. */
32258 _ACEOF
32259 cat confdefs.h >>conftest.$ac_ext
32260 cat >>conftest.$ac_ext <<_ACEOF
32261 /* end confdefs.h. */
32262 #include "c-client.h"
32263 void mm_searched (MAILSTREAM *stream,unsigned long number)
32266 void mm_exists (MAILSTREAM *stream,unsigned long number)
32269 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32272 void mm_flags (MAILSTREAM *stream,unsigned long number)
32275 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32278 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32281 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32284 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32287 void mm_log (char *string,long errflg)
32290 void mm_dlog (char *string)
32293 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32296 void mm_critical (MAILSTREAM *stream)
32299 void mm_nocritical (MAILSTREAM *stream)
32302 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32305 void mm_fatal (char *string)
32309 main ()
32312 MAILSTREAM *foo = mail_open(NULL, "", 0);
32316 return 0;
32318 _ACEOF
32319 rm -f conftest.$ac_objext conftest$ac_exeext
32320 if { (ac_try="$ac_link"
32321 case "(($ac_try" in
32322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323 *) ac_try_echo=$ac_try;;
32324 esac
32325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32326 (eval "$ac_link") 2>conftest.er1
32327 ac_status=$?
32328 grep -v '^ *+' conftest.er1 >conftest.err
32329 rm -f conftest.er1
32330 cat conftest.err >&5
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); } && {
32333 test -z "$ac_c_werror_flag" ||
32334 test ! -s conftest.err
32335 } && test -s conftest$ac_exeext &&
32336 $as_test_x conftest$ac_exeext; then
32337 ac_cv_imap_tk="yes"
32338 else
32339 echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ac_cv_imap_tk="no"
32346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32347 conftest$ac_exeext conftest.$ac_ext
32348 if test "${ac_cv_imap_tk}" = "yes"; then
32349 cat >conftest.$ac_ext <<_ACEOF
32350 /* confdefs.h. */
32351 _ACEOF
32352 cat confdefs.h >>conftest.$ac_ext
32353 cat >>conftest.$ac_ext <<_ACEOF
32354 /* end confdefs.h. */
32355 #include "c-client.h"
32356 void mm_searched (MAILSTREAM *stream,unsigned long number)
32359 void mm_exists (MAILSTREAM *stream,unsigned long number)
32362 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32365 void mm_flags (MAILSTREAM *stream,unsigned long number)
32368 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32371 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32374 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32377 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32380 void mm_log (char *string,long errflg)
32383 void mm_dlog (char *string)
32386 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32389 void mm_critical (MAILSTREAM *stream)
32392 void mm_nocritical (MAILSTREAM *stream)
32395 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32398 void mm_fatal (char *string)
32402 main ()
32405 long check = mail_expunge_full(NULL, "", 0);
32409 return 0;
32411 _ACEOF
32412 rm -f conftest.$ac_objext conftest$ac_exeext
32413 if { (ac_try="$ac_link"
32414 case "(($ac_try" in
32415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416 *) ac_try_echo=$ac_try;;
32417 esac
32418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419 (eval "$ac_link") 2>conftest.er1
32420 ac_status=$?
32421 grep -v '^ *+' conftest.er1 >conftest.err
32422 rm -f conftest.er1
32423 cat conftest.err >&5
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); } && {
32426 test -z "$ac_c_werror_flag" ||
32427 test ! -s conftest.err
32428 } && test -s conftest$ac_exeext &&
32429 $as_test_x conftest$ac_exeext; then
32430 ac_cv_imap_tk2006="yes"
32431 else
32432 echo "$as_me: failed program was:" >&5
32433 sed 's/^/| /' conftest.$ac_ext >&5
32435 ac_cv_imap_tk2006="no"
32439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32440 conftest$ac_exeext conftest.$ac_ext
32445 if test "${IMAP_TK_DIR}" = "system"; then
32446 #We will enter here if user specified "system" or if any of above checks failed
32447 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32448 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32449 CPPFLAGS="${saved_cppflags}"
32450 LIBS="${saved_libs}"
32451 imap_ldflags=""
32452 imap_libs="-lc-client"
32453 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32454 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32455 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32456 cat >conftest.$ac_ext <<_ACEOF
32457 /* confdefs.h. */
32458 _ACEOF
32459 cat confdefs.h >>conftest.$ac_ext
32460 cat >>conftest.$ac_ext <<_ACEOF
32461 /* end confdefs.h. */
32462 #include <stdio.h>
32463 #include <imap/c-client.h>
32464 void mm_searched (MAILSTREAM *stream,unsigned long number)
32467 void mm_exists (MAILSTREAM *stream,unsigned long number)
32470 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32473 void mm_flags (MAILSTREAM *stream,unsigned long number)
32476 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32479 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32482 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32485 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32488 void mm_log (char *string,long errflg)
32491 void mm_dlog (char *string)
32494 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32497 void mm_critical (MAILSTREAM *stream)
32500 void mm_nocritical (MAILSTREAM *stream)
32503 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32506 void mm_fatal (char *string)
32510 main ()
32513 MAILSTREAM *foo = mail_open(NULL, "", 0);
32517 return 0;
32519 _ACEOF
32520 rm -f conftest.$ac_objext conftest$ac_exeext
32521 if { (ac_try="$ac_link"
32522 case "(($ac_try" in
32523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32524 *) ac_try_echo=$ac_try;;
32525 esac
32526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32527 (eval "$ac_link") 2>conftest.er1
32528 ac_status=$?
32529 grep -v '^ *+' conftest.er1 >conftest.err
32530 rm -f conftest.er1
32531 cat conftest.err >&5
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); } && {
32534 test -z "$ac_c_werror_flag" ||
32535 test ! -s conftest.err
32536 } && test -s conftest$ac_exeext &&
32537 $as_test_x conftest$ac_exeext; then
32538 ac_cv_imap_tk="yes"
32539 else
32540 echo "$as_me: failed program was:" >&5
32541 sed 's/^/| /' conftest.$ac_ext >&5
32543 ac_cv_imap_tk="no"
32547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32548 conftest$ac_exeext conftest.$ac_ext
32549 if test "${ac_cv_imap_tk}" = "yes"; then
32550 cat >conftest.$ac_ext <<_ACEOF
32551 /* confdefs.h. */
32552 _ACEOF
32553 cat confdefs.h >>conftest.$ac_ext
32554 cat >>conftest.$ac_ext <<_ACEOF
32555 /* end confdefs.h. */
32556 #include <stdio.h>
32557 #include <imap/c-client.h>
32558 void mm_searched (MAILSTREAM *stream,unsigned long number)
32561 void mm_exists (MAILSTREAM *stream,unsigned long number)
32564 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32567 void mm_flags (MAILSTREAM *stream,unsigned long number)
32570 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32573 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32576 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32579 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32582 void mm_log (char *string,long errflg)
32585 void mm_dlog (char *string)
32588 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32591 void mm_critical (MAILSTREAM *stream)
32594 void mm_nocritical (MAILSTREAM *stream)
32597 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32600 void mm_fatal (char *string)
32604 main ()
32607 long check = mail_expunge_full(NULL, "", 0);
32611 return 0;
32613 _ACEOF
32614 rm -f conftest.$ac_objext conftest$ac_exeext
32615 if { (ac_try="$ac_link"
32616 case "(($ac_try" in
32617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32618 *) ac_try_echo=$ac_try;;
32619 esac
32620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32621 (eval "$ac_link") 2>conftest.er1
32622 ac_status=$?
32623 grep -v '^ *+' conftest.er1 >conftest.err
32624 rm -f conftest.er1
32625 cat conftest.err >&5
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); } && {
32628 test -z "$ac_c_werror_flag" ||
32629 test ! -s conftest.err
32630 } && test -s conftest$ac_exeext &&
32631 $as_test_x conftest$ac_exeext; then
32632 ac_cv_imap_tk2006="yes"
32633 else
32634 echo "$as_me: failed program was:" >&5
32635 sed 's/^/| /' conftest.$ac_ext >&5
32637 ac_cv_imap_tk2006="no"
32641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32642 conftest$ac_exeext conftest.$ac_ext
32643 else #looking in imap directory didn't work, try c-client
32644 imap_ldflags=""
32645 imap_libs="-lc-client"
32646 imap_include="-DUSE_SYSTEM_CCLIENT"
32647 CPPFLAGS="${saved_cppflags}"
32648 LIBS="${saved_libs}"
32649 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32650 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32651 cat >conftest.$ac_ext <<_ACEOF
32652 /* confdefs.h. */
32653 _ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h. */
32657 #include <stdio.h>
32658 #include <c-client/c-client.h>
32659 void mm_searched (MAILSTREAM *stream,unsigned long number)
32662 void mm_exists (MAILSTREAM *stream,unsigned long number)
32665 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32668 void mm_flags (MAILSTREAM *stream,unsigned long number)
32671 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32674 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32677 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32680 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32683 void mm_log (char *string,long errflg)
32686 void mm_dlog (char *string)
32689 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32692 void mm_critical (MAILSTREAM *stream)
32695 void mm_nocritical (MAILSTREAM *stream)
32698 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32701 void mm_fatal (char *string)
32705 main ()
32708 MAILSTREAM *foo = mail_open(NULL, "", 0);
32712 return 0;
32714 _ACEOF
32715 rm -f conftest.$ac_objext conftest$ac_exeext
32716 if { (ac_try="$ac_link"
32717 case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32720 esac
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_link") 2>conftest.er1
32723 ac_status=$?
32724 grep -v '^ *+' conftest.er1 >conftest.err
32725 rm -f conftest.er1
32726 cat conftest.err >&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); } && {
32729 test -z "$ac_c_werror_flag" ||
32730 test ! -s conftest.err
32731 } && test -s conftest$ac_exeext &&
32732 $as_test_x conftest$ac_exeext; then
32733 ac_cv_imap_tk="yes"
32734 else
32735 echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32738 ac_cv_imap_tk="no"
32742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32743 conftest$ac_exeext conftest.$ac_ext
32744 if test "${ac_cv_imap_tk}" = "yes"; then
32745 cat >conftest.$ac_ext <<_ACEOF
32746 /* confdefs.h. */
32747 _ACEOF
32748 cat confdefs.h >>conftest.$ac_ext
32749 cat >>conftest.$ac_ext <<_ACEOF
32750 /* end confdefs.h. */
32751 #include <stdio.h>
32752 #include <c-client/c-client.h>
32753 void mm_searched (MAILSTREAM *stream,unsigned long number)
32756 void mm_exists (MAILSTREAM *stream,unsigned long number)
32759 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32762 void mm_flags (MAILSTREAM *stream,unsigned long number)
32765 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32768 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32771 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32774 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32777 void mm_log (char *string,long errflg)
32780 void mm_dlog (char *string)
32783 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32786 void mm_critical (MAILSTREAM *stream)
32789 void mm_nocritical (MAILSTREAM *stream)
32792 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32795 void mm_fatal (char *string)
32799 main ()
32802 long check = mail_expunge_full(NULL, "", 0);
32806 return 0;
32808 _ACEOF
32809 rm -f conftest.$ac_objext conftest$ac_exeext
32810 if { (ac_try="$ac_link"
32811 case "(($ac_try" in
32812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32813 *) ac_try_echo=$ac_try;;
32814 esac
32815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32816 (eval "$ac_link") 2>conftest.er1
32817 ac_status=$?
32818 grep -v '^ *+' conftest.er1 >conftest.err
32819 rm -f conftest.er1
32820 cat conftest.err >&5
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); } && {
32823 test -z "$ac_c_werror_flag" ||
32824 test ! -s conftest.err
32825 } && test -s conftest$ac_exeext &&
32826 $as_test_x conftest$ac_exeext; then
32827 ac_cv_imap_tk2006="yes"
32828 else
32829 echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32832 ac_cv_imap_tk2006="no"
32836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32837 conftest$ac_exeext conftest.$ac_ext
32841 if test "${ac_cv_imap_tk}" = "yes"; then
32842 { echo "$as_me:$LINENO: result: yes" >&5
32843 echo "${ECHO_T}yes" >&6; }
32844 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
32845 IMAP_TK_INCLUDE="${imap_include}"
32846 PBX_IMAP_TK=1
32848 cat >>confdefs.h <<\_ACEOF
32849 #define HAVE_IMAP_TK 1
32850 _ACEOF
32852 if test "${ac_cv_imap_tk2006}" = "yes"; then
32854 cat >>confdefs.h <<\_ACEOF
32855 #define HAVE_IMAP_TK2006 1
32856 _ACEOF
32859 else
32860 { echo "$as_me:$LINENO: result: no" >&5
32861 echo "${ECHO_T}no" >&6; }
32863 CPPFLAGS="${saved_cppflags}"
32864 LIBS="${saved_libs}"
32868 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
32869 pbxlibdir=""
32870 # if --with-JACK=DIR has been specified, use it.
32871 if test "x${JACK_DIR}" != "x"; then
32872 if test -d ${JACK_DIR}/lib; then
32873 pbxlibdir="-L${JACK_DIR}/lib"
32874 else
32875 pbxlibdir="-L${JACK_DIR}"
32878 pbxfuncname="jack_activate"
32879 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32880 AST_JACK_FOUND=yes
32881 else
32882 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
32883 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
32884 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
32885 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32886 echo $ECHO_N "(cached) $ECHO_C" >&6
32887 else
32888 ac_check_lib_save_LIBS=$LIBS
32889 LIBS="-ljack ${pbxlibdir} $LIBS"
32890 cat >conftest.$ac_ext <<_ACEOF
32891 /* confdefs.h. */
32892 _ACEOF
32893 cat confdefs.h >>conftest.$ac_ext
32894 cat >>conftest.$ac_ext <<_ACEOF
32895 /* end confdefs.h. */
32897 /* Override any GCC internal prototype to avoid an error.
32898 Use char because int might match the return type of a GCC
32899 builtin and then its argument prototype would still apply. */
32900 #ifdef __cplusplus
32901 extern "C"
32902 #endif
32903 char ${pbxfuncname} ();
32905 main ()
32907 return ${pbxfuncname} ();
32909 return 0;
32911 _ACEOF
32912 rm -f conftest.$ac_objext conftest$ac_exeext
32913 if { (ac_try="$ac_link"
32914 case "(($ac_try" in
32915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916 *) ac_try_echo=$ac_try;;
32917 esac
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919 (eval "$ac_link") 2>conftest.er1
32920 ac_status=$?
32921 grep -v '^ *+' conftest.er1 >conftest.err
32922 rm -f conftest.er1
32923 cat conftest.err >&5
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); } && {
32926 test -z "$ac_c_werror_flag" ||
32927 test ! -s conftest.err
32928 } && test -s conftest$ac_exeext &&
32929 $as_test_x conftest$ac_exeext; then
32930 eval "$as_ac_Lib=yes"
32931 else
32932 echo "$as_me: failed program was:" >&5
32933 sed 's/^/| /' conftest.$ac_ext >&5
32935 eval "$as_ac_Lib=no"
32938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32939 conftest$ac_exeext conftest.$ac_ext
32940 LIBS=$ac_check_lib_save_LIBS
32942 ac_res=`eval echo '${'$as_ac_Lib'}'`
32943 { echo "$as_me:$LINENO: result: $ac_res" >&5
32944 echo "${ECHO_T}$ac_res" >&6; }
32945 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32946 AST_JACK_FOUND=yes
32947 else
32948 AST_JACK_FOUND=no
32953 # now check for the header.
32954 if test "${AST_JACK_FOUND}" = "yes"; then
32955 JACK_LIB="${pbxlibdir} -ljack "
32956 # if --with-JACK=DIR has been specified, use it.
32957 if test "x${JACK_DIR}" != "x"; then
32958 JACK_INCLUDE="-I${JACK_DIR}/include"
32960 JACK_INCLUDE="${JACK_INCLUDE} "
32961 if test "xjack/jack.h" = "x" ; then # no header, assume found
32962 JACK_HEADER_FOUND="1"
32963 else # check for the header
32964 saved_cppflags="${CPPFLAGS}"
32965 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE} "
32966 if test "${ac_cv_header_jack_jack_h+set}" = set; then
32967 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
32968 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
32969 if test "${ac_cv_header_jack_jack_h+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32972 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
32973 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
32974 else
32975 # Is the header compilable?
32976 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
32977 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
32978 cat >conftest.$ac_ext <<_ACEOF
32979 /* confdefs.h. */
32980 _ACEOF
32981 cat confdefs.h >>conftest.$ac_ext
32982 cat >>conftest.$ac_ext <<_ACEOF
32983 /* end confdefs.h. */
32984 $ac_includes_default
32985 #include <jack/jack.h>
32986 _ACEOF
32987 rm -f conftest.$ac_objext
32988 if { (ac_try="$ac_compile"
32989 case "(($ac_try" in
32990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32991 *) ac_try_echo=$ac_try;;
32992 esac
32993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32994 (eval "$ac_compile") 2>conftest.er1
32995 ac_status=$?
32996 grep -v '^ *+' conftest.er1 >conftest.err
32997 rm -f conftest.er1
32998 cat conftest.err >&5
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); } && {
33001 test -z "$ac_c_werror_flag" ||
33002 test ! -s conftest.err
33003 } && test -s conftest.$ac_objext; then
33004 ac_header_compiler=yes
33005 else
33006 echo "$as_me: failed program was:" >&5
33007 sed 's/^/| /' conftest.$ac_ext >&5
33009 ac_header_compiler=no
33012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33014 echo "${ECHO_T}$ac_header_compiler" >&6; }
33016 # Is the header present?
33017 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
33018 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
33019 cat >conftest.$ac_ext <<_ACEOF
33020 /* confdefs.h. */
33021 _ACEOF
33022 cat confdefs.h >>conftest.$ac_ext
33023 cat >>conftest.$ac_ext <<_ACEOF
33024 /* end confdefs.h. */
33025 #include <jack/jack.h>
33026 _ACEOF
33027 if { (ac_try="$ac_cpp conftest.$ac_ext"
33028 case "(($ac_try" in
33029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030 *) ac_try_echo=$ac_try;;
33031 esac
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33034 ac_status=$?
33035 grep -v '^ *+' conftest.er1 >conftest.err
33036 rm -f conftest.er1
33037 cat conftest.err >&5
33038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039 (exit $ac_status); } >/dev/null && {
33040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33041 test ! -s conftest.err
33042 }; then
33043 ac_header_preproc=yes
33044 else
33045 echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33048 ac_header_preproc=no
33051 rm -f conftest.err conftest.$ac_ext
33052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33053 echo "${ECHO_T}$ac_header_preproc" >&6; }
33055 # So? What about this header?
33056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33057 yes:no: )
33058 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
33059 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33060 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
33061 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
33062 ac_header_preproc=yes
33064 no:yes:* )
33065 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
33066 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
33067 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
33068 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
33069 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
33070 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
33071 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
33072 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
33073 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
33074 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
33075 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
33076 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
33077 ( cat <<\_ASBOX
33078 ## ------------------------------- ##
33079 ## Report this to www.asterisk.org ##
33080 ## ------------------------------- ##
33081 _ASBOX
33082 ) | sed "s/^/$as_me: WARNING: /" >&2
33084 esac
33085 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33086 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33087 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33088 echo $ECHO_N "(cached) $ECHO_C" >&6
33089 else
33090 ac_cv_header_jack_jack_h=$ac_header_preproc
33092 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33093 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33096 if test $ac_cv_header_jack_jack_h = yes; then
33097 JACK_HEADER_FOUND=1
33098 else
33099 JACK_HEADER_FOUND=0
33103 CPPFLAGS="${saved_cppflags}"
33105 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33106 JACK_LIB=""
33107 JACK_INCLUDE=""
33108 else
33109 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33110 JACK_LIB=""
33112 PBX_JACK=1
33113 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33115 cat >>confdefs.h <<_ACEOF
33116 #define HAVE_JACK 1
33117 _ACEOF
33120 cat >>confdefs.h <<_ACEOF
33121 #define HAVE_JACK_VERSION
33122 _ACEOF
33129 # Needed by unixodbc
33131 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33132 pbxlibdir=""
33133 # if --with-LTDL=DIR has been specified, use it.
33134 if test "x${LTDL_DIR}" != "x"; then
33135 if test -d ${LTDL_DIR}/lib; then
33136 pbxlibdir="-L${LTDL_DIR}/lib"
33137 else
33138 pbxlibdir="-L${LTDL_DIR}"
33141 pbxfuncname="lt_dlinit"
33142 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33143 AST_LTDL_FOUND=yes
33144 else
33145 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33146 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33147 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33148 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33149 echo $ECHO_N "(cached) $ECHO_C" >&6
33150 else
33151 ac_check_lib_save_LIBS=$LIBS
33152 LIBS="-lltdl ${pbxlibdir} $LIBS"
33153 cat >conftest.$ac_ext <<_ACEOF
33154 /* confdefs.h. */
33155 _ACEOF
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h. */
33160 /* Override any GCC internal prototype to avoid an error.
33161 Use char because int might match the return type of a GCC
33162 builtin and then its argument prototype would still apply. */
33163 #ifdef __cplusplus
33164 extern "C"
33165 #endif
33166 char ${pbxfuncname} ();
33168 main ()
33170 return ${pbxfuncname} ();
33172 return 0;
33174 _ACEOF
33175 rm -f conftest.$ac_objext conftest$ac_exeext
33176 if { (ac_try="$ac_link"
33177 case "(($ac_try" in
33178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179 *) ac_try_echo=$ac_try;;
33180 esac
33181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182 (eval "$ac_link") 2>conftest.er1
33183 ac_status=$?
33184 grep -v '^ *+' conftest.er1 >conftest.err
33185 rm -f conftest.er1
33186 cat conftest.err >&5
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); } && {
33189 test -z "$ac_c_werror_flag" ||
33190 test ! -s conftest.err
33191 } && test -s conftest$ac_exeext &&
33192 $as_test_x conftest$ac_exeext; then
33193 eval "$as_ac_Lib=yes"
33194 else
33195 echo "$as_me: failed program was:" >&5
33196 sed 's/^/| /' conftest.$ac_ext >&5
33198 eval "$as_ac_Lib=no"
33201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33202 conftest$ac_exeext conftest.$ac_ext
33203 LIBS=$ac_check_lib_save_LIBS
33205 ac_res=`eval echo '${'$as_ac_Lib'}'`
33206 { echo "$as_me:$LINENO: result: $ac_res" >&5
33207 echo "${ECHO_T}$ac_res" >&6; }
33208 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33209 AST_LTDL_FOUND=yes
33210 else
33211 AST_LTDL_FOUND=no
33216 # now check for the header.
33217 if test "${AST_LTDL_FOUND}" = "yes"; then
33218 LTDL_LIB="${pbxlibdir} -lltdl "
33219 # if --with-LTDL=DIR has been specified, use it.
33220 if test "x${LTDL_DIR}" != "x"; then
33221 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33223 LTDL_INCLUDE="${LTDL_INCLUDE} "
33224 if test "xltdl.h" = "x" ; then # no header, assume found
33225 LTDL_HEADER_FOUND="1"
33226 else # check for the header
33227 saved_cppflags="${CPPFLAGS}"
33228 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE} "
33229 if test "${ac_cv_header_ltdl_h+set}" = set; then
33230 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33231 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33232 if test "${ac_cv_header_ltdl_h+set}" = set; then
33233 echo $ECHO_N "(cached) $ECHO_C" >&6
33235 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33236 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33237 else
33238 # Is the header compilable?
33239 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33240 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33241 cat >conftest.$ac_ext <<_ACEOF
33242 /* confdefs.h. */
33243 _ACEOF
33244 cat confdefs.h >>conftest.$ac_ext
33245 cat >>conftest.$ac_ext <<_ACEOF
33246 /* end confdefs.h. */
33247 $ac_includes_default
33248 #include <ltdl.h>
33249 _ACEOF
33250 rm -f conftest.$ac_objext
33251 if { (ac_try="$ac_compile"
33252 case "(($ac_try" in
33253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33254 *) ac_try_echo=$ac_try;;
33255 esac
33256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33257 (eval "$ac_compile") 2>conftest.er1
33258 ac_status=$?
33259 grep -v '^ *+' conftest.er1 >conftest.err
33260 rm -f conftest.er1
33261 cat conftest.err >&5
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); } && {
33264 test -z "$ac_c_werror_flag" ||
33265 test ! -s conftest.err
33266 } && test -s conftest.$ac_objext; then
33267 ac_header_compiler=yes
33268 else
33269 echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.$ac_ext >&5
33272 ac_header_compiler=no
33275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33277 echo "${ECHO_T}$ac_header_compiler" >&6; }
33279 # Is the header present?
33280 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33281 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33282 cat >conftest.$ac_ext <<_ACEOF
33283 /* confdefs.h. */
33284 _ACEOF
33285 cat confdefs.h >>conftest.$ac_ext
33286 cat >>conftest.$ac_ext <<_ACEOF
33287 /* end confdefs.h. */
33288 #include <ltdl.h>
33289 _ACEOF
33290 if { (ac_try="$ac_cpp conftest.$ac_ext"
33291 case "(($ac_try" in
33292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293 *) ac_try_echo=$ac_try;;
33294 esac
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33297 ac_status=$?
33298 grep -v '^ *+' conftest.er1 >conftest.err
33299 rm -f conftest.er1
33300 cat conftest.err >&5
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); } >/dev/null && {
33303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33304 test ! -s conftest.err
33305 }; then
33306 ac_header_preproc=yes
33307 else
33308 echo "$as_me: failed program was:" >&5
33309 sed 's/^/| /' conftest.$ac_ext >&5
33311 ac_header_preproc=no
33314 rm -f conftest.err conftest.$ac_ext
33315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33316 echo "${ECHO_T}$ac_header_preproc" >&6; }
33318 # So? What about this header?
33319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33320 yes:no: )
33321 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33322 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33323 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33324 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33325 ac_header_preproc=yes
33327 no:yes:* )
33328 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33329 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33330 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33331 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33332 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33333 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33334 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33335 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33336 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33337 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33338 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33339 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33340 ( cat <<\_ASBOX
33341 ## ------------------------------- ##
33342 ## Report this to www.asterisk.org ##
33343 ## ------------------------------- ##
33344 _ASBOX
33345 ) | sed "s/^/$as_me: WARNING: /" >&2
33347 esac
33348 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33349 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33350 if test "${ac_cv_header_ltdl_h+set}" = set; then
33351 echo $ECHO_N "(cached) $ECHO_C" >&6
33352 else
33353 ac_cv_header_ltdl_h=$ac_header_preproc
33355 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33356 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33359 if test $ac_cv_header_ltdl_h = yes; then
33360 LTDL_HEADER_FOUND=1
33361 else
33362 LTDL_HEADER_FOUND=0
33366 CPPFLAGS="${saved_cppflags}"
33368 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33369 LTDL_LIB=""
33370 LTDL_INCLUDE=""
33371 else
33372 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33373 LTDL_LIB=""
33375 PBX_LTDL=1
33376 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33378 cat >>confdefs.h <<_ACEOF
33379 #define HAVE_LTDL 1
33380 _ACEOF
33383 cat >>confdefs.h <<_ACEOF
33384 #define HAVE_LTDL_VERSION
33385 _ACEOF
33393 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33394 pbxlibdir=""
33395 # if --with-LDAP=DIR has been specified, use it.
33396 if test "x${LDAP_DIR}" != "x"; then
33397 if test -d ${LDAP_DIR}/lib; then
33398 pbxlibdir="-L${LDAP_DIR}/lib"
33399 else
33400 pbxlibdir="-L${LDAP_DIR}"
33403 pbxfuncname="ldap_initialize"
33404 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33405 AST_LDAP_FOUND=yes
33406 else
33407 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33408 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33409 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33410 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33411 echo $ECHO_N "(cached) $ECHO_C" >&6
33412 else
33413 ac_check_lib_save_LIBS=$LIBS
33414 LIBS="-lldap ${pbxlibdir} $LIBS"
33415 cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h. */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h. */
33422 /* Override any GCC internal prototype to avoid an error.
33423 Use char because int might match the return type of a GCC
33424 builtin and then its argument prototype would still apply. */
33425 #ifdef __cplusplus
33426 extern "C"
33427 #endif
33428 char ${pbxfuncname} ();
33430 main ()
33432 return ${pbxfuncname} ();
33434 return 0;
33436 _ACEOF
33437 rm -f conftest.$ac_objext conftest$ac_exeext
33438 if { (ac_try="$ac_link"
33439 case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33442 esac
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_link") 2>conftest.er1
33445 ac_status=$?
33446 grep -v '^ *+' conftest.er1 >conftest.err
33447 rm -f conftest.er1
33448 cat conftest.err >&5
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); } && {
33451 test -z "$ac_c_werror_flag" ||
33452 test ! -s conftest.err
33453 } && test -s conftest$ac_exeext &&
33454 $as_test_x conftest$ac_exeext; then
33455 eval "$as_ac_Lib=yes"
33456 else
33457 echo "$as_me: failed program was:" >&5
33458 sed 's/^/| /' conftest.$ac_ext >&5
33460 eval "$as_ac_Lib=no"
33463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33464 conftest$ac_exeext conftest.$ac_ext
33465 LIBS=$ac_check_lib_save_LIBS
33467 ac_res=`eval echo '${'$as_ac_Lib'}'`
33468 { echo "$as_me:$LINENO: result: $ac_res" >&5
33469 echo "${ECHO_T}$ac_res" >&6; }
33470 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33471 AST_LDAP_FOUND=yes
33472 else
33473 AST_LDAP_FOUND=no
33478 # now check for the header.
33479 if test "${AST_LDAP_FOUND}" = "yes"; then
33480 LDAP_LIB="${pbxlibdir} -lldap "
33481 # if --with-LDAP=DIR has been specified, use it.
33482 if test "x${LDAP_DIR}" != "x"; then
33483 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33485 LDAP_INCLUDE="${LDAP_INCLUDE} "
33486 if test "xldap.h" = "x" ; then # no header, assume found
33487 LDAP_HEADER_FOUND="1"
33488 else # check for the header
33489 saved_cppflags="${CPPFLAGS}"
33490 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE} "
33491 if test "${ac_cv_header_ldap_h+set}" = set; then
33492 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33493 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33494 if test "${ac_cv_header_ldap_h+set}" = set; then
33495 echo $ECHO_N "(cached) $ECHO_C" >&6
33497 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33498 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33499 else
33500 # Is the header compilable?
33501 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33502 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33503 cat >conftest.$ac_ext <<_ACEOF
33504 /* confdefs.h. */
33505 _ACEOF
33506 cat confdefs.h >>conftest.$ac_ext
33507 cat >>conftest.$ac_ext <<_ACEOF
33508 /* end confdefs.h. */
33509 $ac_includes_default
33510 #include <ldap.h>
33511 _ACEOF
33512 rm -f conftest.$ac_objext
33513 if { (ac_try="$ac_compile"
33514 case "(($ac_try" in
33515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33516 *) ac_try_echo=$ac_try;;
33517 esac
33518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33519 (eval "$ac_compile") 2>conftest.er1
33520 ac_status=$?
33521 grep -v '^ *+' conftest.er1 >conftest.err
33522 rm -f conftest.er1
33523 cat conftest.err >&5
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); } && {
33526 test -z "$ac_c_werror_flag" ||
33527 test ! -s conftest.err
33528 } && test -s conftest.$ac_objext; then
33529 ac_header_compiler=yes
33530 else
33531 echo "$as_me: failed program was:" >&5
33532 sed 's/^/| /' conftest.$ac_ext >&5
33534 ac_header_compiler=no
33537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33539 echo "${ECHO_T}$ac_header_compiler" >&6; }
33541 # Is the header present?
33542 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
33543 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
33544 cat >conftest.$ac_ext <<_ACEOF
33545 /* confdefs.h. */
33546 _ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h. */
33550 #include <ldap.h>
33551 _ACEOF
33552 if { (ac_try="$ac_cpp conftest.$ac_ext"
33553 case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556 esac
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33559 ac_status=$?
33560 grep -v '^ *+' conftest.er1 >conftest.err
33561 rm -f conftest.er1
33562 cat conftest.err >&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); } >/dev/null && {
33565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33566 test ! -s conftest.err
33567 }; then
33568 ac_header_preproc=yes
33569 else
33570 echo "$as_me: failed program was:" >&5
33571 sed 's/^/| /' conftest.$ac_ext >&5
33573 ac_header_preproc=no
33576 rm -f conftest.err conftest.$ac_ext
33577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33578 echo "${ECHO_T}$ac_header_preproc" >&6; }
33580 # So? What about this header?
33581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33582 yes:no: )
33583 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
33584 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33585 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
33586 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
33587 ac_header_preproc=yes
33589 no:yes:* )
33590 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
33591 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
33592 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
33593 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
33594 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
33595 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
33596 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
33597 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
33598 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
33599 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
33600 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
33601 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
33602 ( cat <<\_ASBOX
33603 ## ------------------------------- ##
33604 ## Report this to www.asterisk.org ##
33605 ## ------------------------------- ##
33606 _ASBOX
33607 ) | sed "s/^/$as_me: WARNING: /" >&2
33609 esac
33610 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33611 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33612 if test "${ac_cv_header_ldap_h+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614 else
33615 ac_cv_header_ldap_h=$ac_header_preproc
33617 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33618 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33621 if test $ac_cv_header_ldap_h = yes; then
33622 LDAP_HEADER_FOUND=1
33623 else
33624 LDAP_HEADER_FOUND=0
33628 CPPFLAGS="${saved_cppflags}"
33630 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
33631 LDAP_LIB=""
33632 LDAP_INCLUDE=""
33633 else
33634 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33635 LDAP_LIB=""
33637 PBX_LDAP=1
33638 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33640 cat >>confdefs.h <<_ACEOF
33641 #define HAVE_LDAP 1
33642 _ACEOF
33645 cat >>confdefs.h <<_ACEOF
33646 #define HAVE_LDAP_VERSION
33647 _ACEOF
33655 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
33656 pbxlibdir=""
33657 # if --with-MISDN=DIR has been specified, use it.
33658 if test "x${MISDN_DIR}" != "x"; then
33659 if test -d ${MISDN_DIR}/lib; then
33660 pbxlibdir="-L${MISDN_DIR}/lib"
33661 else
33662 pbxlibdir="-L${MISDN_DIR}"
33665 pbxfuncname="mISDN_open"
33666 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33667 AST_MISDN_FOUND=yes
33668 else
33669 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
33670 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
33671 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
33672 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33673 echo $ECHO_N "(cached) $ECHO_C" >&6
33674 else
33675 ac_check_lib_save_LIBS=$LIBS
33676 LIBS="-lmISDN ${pbxlibdir} $LIBS"
33677 cat >conftest.$ac_ext <<_ACEOF
33678 /* confdefs.h. */
33679 _ACEOF
33680 cat confdefs.h >>conftest.$ac_ext
33681 cat >>conftest.$ac_ext <<_ACEOF
33682 /* end confdefs.h. */
33684 /* Override any GCC internal prototype to avoid an error.
33685 Use char because int might match the return type of a GCC
33686 builtin and then its argument prototype would still apply. */
33687 #ifdef __cplusplus
33688 extern "C"
33689 #endif
33690 char ${pbxfuncname} ();
33692 main ()
33694 return ${pbxfuncname} ();
33696 return 0;
33698 _ACEOF
33699 rm -f conftest.$ac_objext conftest$ac_exeext
33700 if { (ac_try="$ac_link"
33701 case "(($ac_try" in
33702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33703 *) ac_try_echo=$ac_try;;
33704 esac
33705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33706 (eval "$ac_link") 2>conftest.er1
33707 ac_status=$?
33708 grep -v '^ *+' conftest.er1 >conftest.err
33709 rm -f conftest.er1
33710 cat conftest.err >&5
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); } && {
33713 test -z "$ac_c_werror_flag" ||
33714 test ! -s conftest.err
33715 } && test -s conftest$ac_exeext &&
33716 $as_test_x conftest$ac_exeext; then
33717 eval "$as_ac_Lib=yes"
33718 else
33719 echo "$as_me: failed program was:" >&5
33720 sed 's/^/| /' conftest.$ac_ext >&5
33722 eval "$as_ac_Lib=no"
33725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33726 conftest$ac_exeext conftest.$ac_ext
33727 LIBS=$ac_check_lib_save_LIBS
33729 ac_res=`eval echo '${'$as_ac_Lib'}'`
33730 { echo "$as_me:$LINENO: result: $ac_res" >&5
33731 echo "${ECHO_T}$ac_res" >&6; }
33732 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33733 AST_MISDN_FOUND=yes
33734 else
33735 AST_MISDN_FOUND=no
33740 # now check for the header.
33741 if test "${AST_MISDN_FOUND}" = "yes"; then
33742 MISDN_LIB="${pbxlibdir} -lmISDN "
33743 # if --with-MISDN=DIR has been specified, use it.
33744 if test "x${MISDN_DIR}" != "x"; then
33745 MISDN_INCLUDE="-I${MISDN_DIR}/include"
33747 MISDN_INCLUDE="${MISDN_INCLUDE} "
33748 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
33749 MISDN_HEADER_FOUND="1"
33750 else # check for the header
33751 saved_cppflags="${CPPFLAGS}"
33752 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE} "
33753 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
33754 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
33755 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
33756 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
33757 echo $ECHO_N "(cached) $ECHO_C" >&6
33759 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
33760 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
33761 else
33762 # Is the header compilable?
33763 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
33764 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
33765 cat >conftest.$ac_ext <<_ACEOF
33766 /* confdefs.h. */
33767 _ACEOF
33768 cat confdefs.h >>conftest.$ac_ext
33769 cat >>conftest.$ac_ext <<_ACEOF
33770 /* end confdefs.h. */
33771 $ac_includes_default
33772 #include <mISDNuser/mISDNlib.h>
33773 _ACEOF
33774 rm -f conftest.$ac_objext
33775 if { (ac_try="$ac_compile"
33776 case "(($ac_try" in
33777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33778 *) ac_try_echo=$ac_try;;
33779 esac
33780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33781 (eval "$ac_compile") 2>conftest.er1
33782 ac_status=$?
33783 grep -v '^ *+' conftest.er1 >conftest.err
33784 rm -f conftest.er1
33785 cat conftest.err >&5
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); } && {
33788 test -z "$ac_c_werror_flag" ||
33789 test ! -s conftest.err
33790 } && test -s conftest.$ac_objext; then
33791 ac_header_compiler=yes
33792 else
33793 echo "$as_me: failed program was:" >&5
33794 sed 's/^/| /' conftest.$ac_ext >&5
33796 ac_header_compiler=no
33799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33801 echo "${ECHO_T}$ac_header_compiler" >&6; }
33803 # Is the header present?
33804 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
33805 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
33806 cat >conftest.$ac_ext <<_ACEOF
33807 /* confdefs.h. */
33808 _ACEOF
33809 cat confdefs.h >>conftest.$ac_ext
33810 cat >>conftest.$ac_ext <<_ACEOF
33811 /* end confdefs.h. */
33812 #include <mISDNuser/mISDNlib.h>
33813 _ACEOF
33814 if { (ac_try="$ac_cpp conftest.$ac_ext"
33815 case "(($ac_try" in
33816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817 *) ac_try_echo=$ac_try;;
33818 esac
33819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33821 ac_status=$?
33822 grep -v '^ *+' conftest.er1 >conftest.err
33823 rm -f conftest.er1
33824 cat conftest.err >&5
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); } >/dev/null && {
33827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33828 test ! -s conftest.err
33829 }; then
33830 ac_header_preproc=yes
33831 else
33832 echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33835 ac_header_preproc=no
33838 rm -f conftest.err conftest.$ac_ext
33839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33840 echo "${ECHO_T}$ac_header_preproc" >&6; }
33842 # So? What about this header?
33843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33844 yes:no: )
33845 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33846 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33847 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
33848 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
33849 ac_header_preproc=yes
33851 no:yes:* )
33852 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
33853 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
33854 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
33855 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
33856 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
33857 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
33858 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
33859 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33860 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
33861 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
33862 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
33863 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
33864 ( cat <<\_ASBOX
33865 ## ------------------------------- ##
33866 ## Report this to www.asterisk.org ##
33867 ## ------------------------------- ##
33868 _ASBOX
33869 ) | sed "s/^/$as_me: WARNING: /" >&2
33871 esac
33872 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
33873 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
33874 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
33879 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
33880 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
33883 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
33884 MISDN_HEADER_FOUND=1
33885 else
33886 MISDN_HEADER_FOUND=0
33890 CPPFLAGS="${saved_cppflags}"
33892 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
33893 MISDN_LIB=""
33894 MISDN_INCLUDE=""
33895 else
33896 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33897 MISDN_LIB=""
33899 PBX_MISDN=1
33900 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33902 cat >>confdefs.h <<_ACEOF
33903 #define HAVE_MISDN 1
33904 _ACEOF
33907 cat >>confdefs.h <<_ACEOF
33908 #define HAVE_MISDN_VERSION
33909 _ACEOF
33916 if test "${PBX_MISDN}" = 1; then
33918 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
33919 pbxlibdir=""
33920 # if --with-ISDNNET=DIR has been specified, use it.
33921 if test "x${ISDNNET_DIR}" != "x"; then
33922 if test -d ${ISDNNET_DIR}/lib; then
33923 pbxlibdir="-L${ISDNNET_DIR}/lib"
33924 else
33925 pbxlibdir="-L${ISDNNET_DIR}"
33928 pbxfuncname="init_manager"
33929 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33930 AST_ISDNNET_FOUND=yes
33931 else
33932 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
33933 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
33934 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
33935 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33936 echo $ECHO_N "(cached) $ECHO_C" >&6
33937 else
33938 ac_check_lib_save_LIBS=$LIBS
33939 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
33940 cat >conftest.$ac_ext <<_ACEOF
33941 /* confdefs.h. */
33942 _ACEOF
33943 cat confdefs.h >>conftest.$ac_ext
33944 cat >>conftest.$ac_ext <<_ACEOF
33945 /* end confdefs.h. */
33947 /* Override any GCC internal prototype to avoid an error.
33948 Use char because int might match the return type of a GCC
33949 builtin and then its argument prototype would still apply. */
33950 #ifdef __cplusplus
33951 extern "C"
33952 #endif
33953 char ${pbxfuncname} ();
33955 main ()
33957 return ${pbxfuncname} ();
33959 return 0;
33961 _ACEOF
33962 rm -f conftest.$ac_objext conftest$ac_exeext
33963 if { (ac_try="$ac_link"
33964 case "(($ac_try" in
33965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33966 *) ac_try_echo=$ac_try;;
33967 esac
33968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33969 (eval "$ac_link") 2>conftest.er1
33970 ac_status=$?
33971 grep -v '^ *+' conftest.er1 >conftest.err
33972 rm -f conftest.er1
33973 cat conftest.err >&5
33974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975 (exit $ac_status); } && {
33976 test -z "$ac_c_werror_flag" ||
33977 test ! -s conftest.err
33978 } && test -s conftest$ac_exeext &&
33979 $as_test_x conftest$ac_exeext; then
33980 eval "$as_ac_Lib=yes"
33981 else
33982 echo "$as_me: failed program was:" >&5
33983 sed 's/^/| /' conftest.$ac_ext >&5
33985 eval "$as_ac_Lib=no"
33988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33989 conftest$ac_exeext conftest.$ac_ext
33990 LIBS=$ac_check_lib_save_LIBS
33992 ac_res=`eval echo '${'$as_ac_Lib'}'`
33993 { echo "$as_me:$LINENO: result: $ac_res" >&5
33994 echo "${ECHO_T}$ac_res" >&6; }
33995 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33996 AST_ISDNNET_FOUND=yes
33997 else
33998 AST_ISDNNET_FOUND=no
34003 # now check for the header.
34004 if test "${AST_ISDNNET_FOUND}" = "yes"; then
34005 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
34006 # if --with-ISDNNET=DIR has been specified, use it.
34007 if test "x${ISDNNET_DIR}" != "x"; then
34008 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
34010 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
34011 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
34012 ISDNNET_HEADER_FOUND="1"
34013 else # check for the header
34014 saved_cppflags="${CPPFLAGS}"
34015 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE} "
34016 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34017 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34018 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34019 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34020 echo $ECHO_N "(cached) $ECHO_C" >&6
34022 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34023 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34024 else
34025 # Is the header compilable?
34026 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
34027 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
34028 cat >conftest.$ac_ext <<_ACEOF
34029 /* confdefs.h. */
34030 _ACEOF
34031 cat confdefs.h >>conftest.$ac_ext
34032 cat >>conftest.$ac_ext <<_ACEOF
34033 /* end confdefs.h. */
34034 $ac_includes_default
34035 #include <mISDNuser/isdn_net.h>
34036 _ACEOF
34037 rm -f conftest.$ac_objext
34038 if { (ac_try="$ac_compile"
34039 case "(($ac_try" in
34040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34041 *) ac_try_echo=$ac_try;;
34042 esac
34043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34044 (eval "$ac_compile") 2>conftest.er1
34045 ac_status=$?
34046 grep -v '^ *+' conftest.er1 >conftest.err
34047 rm -f conftest.er1
34048 cat conftest.err >&5
34049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050 (exit $ac_status); } && {
34051 test -z "$ac_c_werror_flag" ||
34052 test ! -s conftest.err
34053 } && test -s conftest.$ac_objext; then
34054 ac_header_compiler=yes
34055 else
34056 echo "$as_me: failed program was:" >&5
34057 sed 's/^/| /' conftest.$ac_ext >&5
34059 ac_header_compiler=no
34062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34064 echo "${ECHO_T}$ac_header_compiler" >&6; }
34066 # Is the header present?
34067 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
34068 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
34069 cat >conftest.$ac_ext <<_ACEOF
34070 /* confdefs.h. */
34071 _ACEOF
34072 cat confdefs.h >>conftest.$ac_ext
34073 cat >>conftest.$ac_ext <<_ACEOF
34074 /* end confdefs.h. */
34075 #include <mISDNuser/isdn_net.h>
34076 _ACEOF
34077 if { (ac_try="$ac_cpp conftest.$ac_ext"
34078 case "(($ac_try" in
34079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34080 *) ac_try_echo=$ac_try;;
34081 esac
34082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34084 ac_status=$?
34085 grep -v '^ *+' conftest.er1 >conftest.err
34086 rm -f conftest.er1
34087 cat conftest.err >&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); } >/dev/null && {
34090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34091 test ! -s conftest.err
34092 }; then
34093 ac_header_preproc=yes
34094 else
34095 echo "$as_me: failed program was:" >&5
34096 sed 's/^/| /' conftest.$ac_ext >&5
34098 ac_header_preproc=no
34101 rm -f conftest.err conftest.$ac_ext
34102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34103 echo "${ECHO_T}$ac_header_preproc" >&6; }
34105 # So? What about this header?
34106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34107 yes:no: )
34108 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34109 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34110 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34111 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34112 ac_header_preproc=yes
34114 no:yes:* )
34115 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34116 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34117 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34118 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34119 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34120 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34121 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34122 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34123 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34124 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34125 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34126 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34127 ( cat <<\_ASBOX
34128 ## ------------------------------- ##
34129 ## Report this to www.asterisk.org ##
34130 ## ------------------------------- ##
34131 _ASBOX
34132 ) | sed "s/^/$as_me: WARNING: /" >&2
34134 esac
34135 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34136 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34137 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34138 echo $ECHO_N "(cached) $ECHO_C" >&6
34139 else
34140 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34142 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34143 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34146 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34147 ISDNNET_HEADER_FOUND=1
34148 else
34149 ISDNNET_HEADER_FOUND=0
34153 CPPFLAGS="${saved_cppflags}"
34155 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34156 ISDNNET_LIB=""
34157 ISDNNET_INCLUDE=""
34158 else
34159 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34160 ISDNNET_LIB=""
34162 PBX_ISDNNET=1
34163 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34165 cat >>confdefs.h <<_ACEOF
34166 #define HAVE_ISDNNET 1
34167 _ACEOF
34170 cat >>confdefs.h <<_ACEOF
34171 #define HAVE_ISDNNET_VERSION
34172 _ACEOF
34179 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34180 pbxlibdir=""
34181 # if --with-SUPPSERV=DIR has been specified, use it.
34182 if test "x${SUPPSERV_DIR}" != "x"; then
34183 if test -d ${SUPPSERV_DIR}/lib; then
34184 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34185 else
34186 pbxlibdir="-L${SUPPSERV_DIR}"
34189 pbxfuncname="encodeFac"
34190 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34191 AST_SUPPSERV_FOUND=yes
34192 else
34193 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34194 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34195 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34196 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34197 echo $ECHO_N "(cached) $ECHO_C" >&6
34198 else
34199 ac_check_lib_save_LIBS=$LIBS
34200 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34201 cat >conftest.$ac_ext <<_ACEOF
34202 /* confdefs.h. */
34203 _ACEOF
34204 cat confdefs.h >>conftest.$ac_ext
34205 cat >>conftest.$ac_ext <<_ACEOF
34206 /* end confdefs.h. */
34208 /* Override any GCC internal prototype to avoid an error.
34209 Use char because int might match the return type of a GCC
34210 builtin and then its argument prototype would still apply. */
34211 #ifdef __cplusplus
34212 extern "C"
34213 #endif
34214 char ${pbxfuncname} ();
34216 main ()
34218 return ${pbxfuncname} ();
34220 return 0;
34222 _ACEOF
34223 rm -f conftest.$ac_objext conftest$ac_exeext
34224 if { (ac_try="$ac_link"
34225 case "(($ac_try" in
34226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34227 *) ac_try_echo=$ac_try;;
34228 esac
34229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34230 (eval "$ac_link") 2>conftest.er1
34231 ac_status=$?
34232 grep -v '^ *+' conftest.er1 >conftest.err
34233 rm -f conftest.er1
34234 cat conftest.err >&5
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); } && {
34237 test -z "$ac_c_werror_flag" ||
34238 test ! -s conftest.err
34239 } && test -s conftest$ac_exeext &&
34240 $as_test_x conftest$ac_exeext; then
34241 eval "$as_ac_Lib=yes"
34242 else
34243 echo "$as_me: failed program was:" >&5
34244 sed 's/^/| /' conftest.$ac_ext >&5
34246 eval "$as_ac_Lib=no"
34249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34250 conftest$ac_exeext conftest.$ac_ext
34251 LIBS=$ac_check_lib_save_LIBS
34253 ac_res=`eval echo '${'$as_ac_Lib'}'`
34254 { echo "$as_me:$LINENO: result: $ac_res" >&5
34255 echo "${ECHO_T}$ac_res" >&6; }
34256 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34257 AST_SUPPSERV_FOUND=yes
34258 else
34259 AST_SUPPSERV_FOUND=no
34264 # now check for the header.
34265 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34266 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34267 # if --with-SUPPSERV=DIR has been specified, use it.
34268 if test "x${SUPPSERV_DIR}" != "x"; then
34269 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34271 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34272 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34273 SUPPSERV_HEADER_FOUND="1"
34274 else # check for the header
34275 saved_cppflags="${CPPFLAGS}"
34276 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE} "
34277 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34278 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34279 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34280 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34281 echo $ECHO_N "(cached) $ECHO_C" >&6
34283 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34284 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34285 else
34286 # Is the header compilable?
34287 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34288 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34289 cat >conftest.$ac_ext <<_ACEOF
34290 /* confdefs.h. */
34291 _ACEOF
34292 cat confdefs.h >>conftest.$ac_ext
34293 cat >>conftest.$ac_ext <<_ACEOF
34294 /* end confdefs.h. */
34295 $ac_includes_default
34296 #include <mISDNuser/suppserv.h>
34297 _ACEOF
34298 rm -f conftest.$ac_objext
34299 if { (ac_try="$ac_compile"
34300 case "(($ac_try" in
34301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302 *) ac_try_echo=$ac_try;;
34303 esac
34304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34305 (eval "$ac_compile") 2>conftest.er1
34306 ac_status=$?
34307 grep -v '^ *+' conftest.er1 >conftest.err
34308 rm -f conftest.er1
34309 cat conftest.err >&5
34310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); } && {
34312 test -z "$ac_c_werror_flag" ||
34313 test ! -s conftest.err
34314 } && test -s conftest.$ac_objext; then
34315 ac_header_compiler=yes
34316 else
34317 echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34320 ac_header_compiler=no
34323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34325 echo "${ECHO_T}$ac_header_compiler" >&6; }
34327 # Is the header present?
34328 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34329 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34330 cat >conftest.$ac_ext <<_ACEOF
34331 /* confdefs.h. */
34332 _ACEOF
34333 cat confdefs.h >>conftest.$ac_ext
34334 cat >>conftest.$ac_ext <<_ACEOF
34335 /* end confdefs.h. */
34336 #include <mISDNuser/suppserv.h>
34337 _ACEOF
34338 if { (ac_try="$ac_cpp conftest.$ac_ext"
34339 case "(($ac_try" in
34340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34341 *) ac_try_echo=$ac_try;;
34342 esac
34343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34345 ac_status=$?
34346 grep -v '^ *+' conftest.er1 >conftest.err
34347 rm -f conftest.er1
34348 cat conftest.err >&5
34349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34350 (exit $ac_status); } >/dev/null && {
34351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34352 test ! -s conftest.err
34353 }; then
34354 ac_header_preproc=yes
34355 else
34356 echo "$as_me: failed program was:" >&5
34357 sed 's/^/| /' conftest.$ac_ext >&5
34359 ac_header_preproc=no
34362 rm -f conftest.err conftest.$ac_ext
34363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34364 echo "${ECHO_T}$ac_header_preproc" >&6; }
34366 # So? What about this header?
34367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34368 yes:no: )
34369 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34370 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34371 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34372 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34373 ac_header_preproc=yes
34375 no:yes:* )
34376 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34377 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34378 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34379 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34380 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34381 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34382 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34383 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34384 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34385 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34386 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34387 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34388 ( cat <<\_ASBOX
34389 ## ------------------------------- ##
34390 ## Report this to www.asterisk.org ##
34391 ## ------------------------------- ##
34392 _ASBOX
34393 ) | sed "s/^/$as_me: WARNING: /" >&2
34395 esac
34396 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34397 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34398 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34399 echo $ECHO_N "(cached) $ECHO_C" >&6
34400 else
34401 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34403 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34404 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34407 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34408 SUPPSERV_HEADER_FOUND=1
34409 else
34410 SUPPSERV_HEADER_FOUND=0
34414 CPPFLAGS="${saved_cppflags}"
34416 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34417 SUPPSERV_LIB=""
34418 SUPPSERV_INCLUDE=""
34419 else
34420 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34421 SUPPSERV_LIB=""
34423 PBX_SUPPSERV=1
34424 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34426 cat >>confdefs.h <<_ACEOF
34427 #define HAVE_SUPPSERV 1
34428 _ACEOF
34431 cat >>confdefs.h <<_ACEOF
34432 #define HAVE_SUPPSERV_VERSION
34433 _ACEOF
34440 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34441 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34442 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34443 saved_cppflags="${CPPFLAGS}"
34444 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34445 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34447 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34449 cat >conftest.$ac_ext <<_ACEOF
34450 /* confdefs.h. */
34451 _ACEOF
34452 cat confdefs.h >>conftest.$ac_ext
34453 cat >>conftest.$ac_ext <<_ACEOF
34454 /* end confdefs.h. */
34455 #include <mISDNuser/suppserv.h>
34457 main ()
34459 #if defined(Fac_RESULT)
34460 int foo = 0;
34461 #else
34462 int foo = bar;
34463 #endif
34467 return 0;
34469 _ACEOF
34470 rm -f conftest.$ac_objext
34471 if { (ac_try="$ac_compile"
34472 case "(($ac_try" in
34473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34474 *) ac_try_echo=$ac_try;;
34475 esac
34476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34477 (eval "$ac_compile") 2>conftest.er1
34478 ac_status=$?
34479 grep -v '^ *+' conftest.er1 >conftest.err
34480 rm -f conftest.er1
34481 cat conftest.err >&5
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); } && {
34484 test -z "$ac_c_werror_flag" ||
34485 test ! -s conftest.err
34486 } && test -s conftest.$ac_objext; then
34487 { echo "$as_me:$LINENO: result: yes" >&5
34488 echo "${ECHO_T}yes" >&6; }
34489 PBX_MISDN_FAC_RESULT=1
34491 cat >>confdefs.h <<\_ACEOF
34492 #define HAVE_MISDN_FAC_RESULT 1
34493 _ACEOF
34496 cat >>confdefs.h <<\_ACEOF
34497 #define HAVE_MISDN_FAC_RESULT_VERSION
34498 _ACEOF
34501 else
34502 echo "$as_me: failed program was:" >&5
34503 sed 's/^/| /' conftest.$ac_ext >&5
34505 { echo "$as_me:$LINENO: result: no" >&5
34506 echo "${ECHO_T}no" >&6; }
34510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34511 CPPFLAGS="${saved_cppflags}"
34516 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34517 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
34518 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34519 saved_cppflags="${CPPFLAGS}"
34520 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
34521 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
34523 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
34525 cat >conftest.$ac_ext <<_ACEOF
34526 /* confdefs.h. */
34527 _ACEOF
34528 cat confdefs.h >>conftest.$ac_ext
34529 cat >>conftest.$ac_ext <<_ACEOF
34530 /* end confdefs.h. */
34531 #include <mISDNuser/suppserv.h>
34533 main ()
34535 #if defined(Fac_ERROR)
34536 int foo = 0;
34537 #else
34538 int foo = bar;
34539 #endif
34543 return 0;
34545 _ACEOF
34546 rm -f conftest.$ac_objext
34547 if { (ac_try="$ac_compile"
34548 case "(($ac_try" in
34549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34550 *) ac_try_echo=$ac_try;;
34551 esac
34552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34553 (eval "$ac_compile") 2>conftest.er1
34554 ac_status=$?
34555 grep -v '^ *+' conftest.er1 >conftest.err
34556 rm -f conftest.er1
34557 cat conftest.err >&5
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); } && {
34560 test -z "$ac_c_werror_flag" ||
34561 test ! -s conftest.err
34562 } && test -s conftest.$ac_objext; then
34563 { echo "$as_me:$LINENO: result: yes" >&5
34564 echo "${ECHO_T}yes" >&6; }
34565 PBX_MISDN_FAC_ERROR=1
34567 cat >>confdefs.h <<\_ACEOF
34568 #define HAVE_MISDN_FAC_ERROR 1
34569 _ACEOF
34572 cat >>confdefs.h <<\_ACEOF
34573 #define HAVE_MISDN_FAC_ERROR_VERSION
34574 _ACEOF
34577 else
34578 echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34581 { echo "$as_me:$LINENO: result: no" >&5
34582 echo "${ECHO_T}no" >&6; }
34586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34587 CPPFLAGS="${saved_cppflags}"
34591 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34592 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34593 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34594 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34595 echo $ECHO_N "(cached) $ECHO_C" >&6
34597 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34598 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34599 else
34600 # Is the header compilable?
34601 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
34602 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
34603 cat >conftest.$ac_ext <<_ACEOF
34604 /* confdefs.h. */
34605 _ACEOF
34606 cat confdefs.h >>conftest.$ac_ext
34607 cat >>conftest.$ac_ext <<_ACEOF
34608 /* end confdefs.h. */
34609 $ac_includes_default
34610 #include <linux/mISDNdsp.h>
34611 _ACEOF
34612 rm -f conftest.$ac_objext
34613 if { (ac_try="$ac_compile"
34614 case "(($ac_try" in
34615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34616 *) ac_try_echo=$ac_try;;
34617 esac
34618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34619 (eval "$ac_compile") 2>conftest.er1
34620 ac_status=$?
34621 grep -v '^ *+' conftest.er1 >conftest.err
34622 rm -f conftest.er1
34623 cat conftest.err >&5
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); } && {
34626 test -z "$ac_c_werror_flag" ||
34627 test ! -s conftest.err
34628 } && test -s conftest.$ac_objext; then
34629 ac_header_compiler=yes
34630 else
34631 echo "$as_me: failed program was:" >&5
34632 sed 's/^/| /' conftest.$ac_ext >&5
34634 ac_header_compiler=no
34637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34639 echo "${ECHO_T}$ac_header_compiler" >&6; }
34641 # Is the header present?
34642 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
34643 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
34644 cat >conftest.$ac_ext <<_ACEOF
34645 /* confdefs.h. */
34646 _ACEOF
34647 cat confdefs.h >>conftest.$ac_ext
34648 cat >>conftest.$ac_ext <<_ACEOF
34649 /* end confdefs.h. */
34650 #include <linux/mISDNdsp.h>
34651 _ACEOF
34652 if { (ac_try="$ac_cpp conftest.$ac_ext"
34653 case "(($ac_try" in
34654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34655 *) ac_try_echo=$ac_try;;
34656 esac
34657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34659 ac_status=$?
34660 grep -v '^ *+' conftest.er1 >conftest.err
34661 rm -f conftest.er1
34662 cat conftest.err >&5
34663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664 (exit $ac_status); } >/dev/null && {
34665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34666 test ! -s conftest.err
34667 }; then
34668 ac_header_preproc=yes
34669 else
34670 echo "$as_me: failed program was:" >&5
34671 sed 's/^/| /' conftest.$ac_ext >&5
34673 ac_header_preproc=no
34676 rm -f conftest.err conftest.$ac_ext
34677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34678 echo "${ECHO_T}$ac_header_preproc" >&6; }
34680 # So? What about this header?
34681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34682 yes:no: )
34683 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
34684 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34685 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
34686 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
34687 ac_header_preproc=yes
34689 no:yes:* )
34690 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
34691 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
34692 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
34693 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
34694 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
34695 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
34696 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
34697 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
34698 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
34699 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
34700 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
34701 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
34702 ( cat <<\_ASBOX
34703 ## ------------------------------- ##
34704 ## Report this to www.asterisk.org ##
34705 ## ------------------------------- ##
34706 _ASBOX
34707 ) | sed "s/^/$as_me: WARNING: /" >&2
34709 esac
34710 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
34711 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
34712 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
34713 echo $ECHO_N "(cached) $ECHO_C" >&6
34714 else
34715 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
34717 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
34718 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
34721 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
34723 cat >>confdefs.h <<_ACEOF
34724 #define MISDN_1_2 1
34725 _ACEOF
34733 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
34734 pbxlibdir=""
34735 # if --with-NBS=DIR has been specified, use it.
34736 if test "x${NBS_DIR}" != "x"; then
34737 if test -d ${NBS_DIR}/lib; then
34738 pbxlibdir="-L${NBS_DIR}/lib"
34739 else
34740 pbxlibdir="-L${NBS_DIR}"
34743 pbxfuncname="nbs_connect"
34744 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34745 AST_NBS_FOUND=yes
34746 else
34747 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
34748 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
34749 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
34750 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34751 echo $ECHO_N "(cached) $ECHO_C" >&6
34752 else
34753 ac_check_lib_save_LIBS=$LIBS
34754 LIBS="-lnbs ${pbxlibdir} $LIBS"
34755 cat >conftest.$ac_ext <<_ACEOF
34756 /* confdefs.h. */
34757 _ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h. */
34762 /* Override any GCC internal prototype to avoid an error.
34763 Use char because int might match the return type of a GCC
34764 builtin and then its argument prototype would still apply. */
34765 #ifdef __cplusplus
34766 extern "C"
34767 #endif
34768 char ${pbxfuncname} ();
34770 main ()
34772 return ${pbxfuncname} ();
34774 return 0;
34776 _ACEOF
34777 rm -f conftest.$ac_objext conftest$ac_exeext
34778 if { (ac_try="$ac_link"
34779 case "(($ac_try" in
34780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34781 *) ac_try_echo=$ac_try;;
34782 esac
34783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34784 (eval "$ac_link") 2>conftest.er1
34785 ac_status=$?
34786 grep -v '^ *+' conftest.er1 >conftest.err
34787 rm -f conftest.er1
34788 cat conftest.err >&5
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); } && {
34791 test -z "$ac_c_werror_flag" ||
34792 test ! -s conftest.err
34793 } && test -s conftest$ac_exeext &&
34794 $as_test_x conftest$ac_exeext; then
34795 eval "$as_ac_Lib=yes"
34796 else
34797 echo "$as_me: failed program was:" >&5
34798 sed 's/^/| /' conftest.$ac_ext >&5
34800 eval "$as_ac_Lib=no"
34803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34804 conftest$ac_exeext conftest.$ac_ext
34805 LIBS=$ac_check_lib_save_LIBS
34807 ac_res=`eval echo '${'$as_ac_Lib'}'`
34808 { echo "$as_me:$LINENO: result: $ac_res" >&5
34809 echo "${ECHO_T}$ac_res" >&6; }
34810 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34811 AST_NBS_FOUND=yes
34812 else
34813 AST_NBS_FOUND=no
34818 # now check for the header.
34819 if test "${AST_NBS_FOUND}" = "yes"; then
34820 NBS_LIB="${pbxlibdir} -lnbs "
34821 # if --with-NBS=DIR has been specified, use it.
34822 if test "x${NBS_DIR}" != "x"; then
34823 NBS_INCLUDE="-I${NBS_DIR}/include"
34825 NBS_INCLUDE="${NBS_INCLUDE} "
34826 if test "xnbs.h" = "x" ; then # no header, assume found
34827 NBS_HEADER_FOUND="1"
34828 else # check for the header
34829 saved_cppflags="${CPPFLAGS}"
34830 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE} "
34831 if test "${ac_cv_header_nbs_h+set}" = set; then
34832 { echo "$as_me:$LINENO: checking for nbs.h" >&5
34833 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
34834 if test "${ac_cv_header_nbs_h+set}" = set; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
34837 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
34838 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
34839 else
34840 # Is the header compilable?
34841 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
34842 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
34843 cat >conftest.$ac_ext <<_ACEOF
34844 /* confdefs.h. */
34845 _ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h. */
34849 $ac_includes_default
34850 #include <nbs.h>
34851 _ACEOF
34852 rm -f conftest.$ac_objext
34853 if { (ac_try="$ac_compile"
34854 case "(($ac_try" in
34855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34856 *) ac_try_echo=$ac_try;;
34857 esac
34858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34859 (eval "$ac_compile") 2>conftest.er1
34860 ac_status=$?
34861 grep -v '^ *+' conftest.er1 >conftest.err
34862 rm -f conftest.er1
34863 cat conftest.err >&5
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); } && {
34866 test -z "$ac_c_werror_flag" ||
34867 test ! -s conftest.err
34868 } && test -s conftest.$ac_objext; then
34869 ac_header_compiler=yes
34870 else
34871 echo "$as_me: failed program was:" >&5
34872 sed 's/^/| /' conftest.$ac_ext >&5
34874 ac_header_compiler=no
34877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34879 echo "${ECHO_T}$ac_header_compiler" >&6; }
34881 # Is the header present?
34882 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
34883 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
34884 cat >conftest.$ac_ext <<_ACEOF
34885 /* confdefs.h. */
34886 _ACEOF
34887 cat confdefs.h >>conftest.$ac_ext
34888 cat >>conftest.$ac_ext <<_ACEOF
34889 /* end confdefs.h. */
34890 #include <nbs.h>
34891 _ACEOF
34892 if { (ac_try="$ac_cpp conftest.$ac_ext"
34893 case "(($ac_try" in
34894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34895 *) ac_try_echo=$ac_try;;
34896 esac
34897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34899 ac_status=$?
34900 grep -v '^ *+' conftest.er1 >conftest.err
34901 rm -f conftest.er1
34902 cat conftest.err >&5
34903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34904 (exit $ac_status); } >/dev/null && {
34905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34906 test ! -s conftest.err
34907 }; then
34908 ac_header_preproc=yes
34909 else
34910 echo "$as_me: failed program was:" >&5
34911 sed 's/^/| /' conftest.$ac_ext >&5
34913 ac_header_preproc=no
34916 rm -f conftest.err conftest.$ac_ext
34917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34918 echo "${ECHO_T}$ac_header_preproc" >&6; }
34920 # So? What about this header?
34921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34922 yes:no: )
34923 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
34924 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34925 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
34926 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
34927 ac_header_preproc=yes
34929 no:yes:* )
34930 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
34931 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
34932 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
34933 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
34934 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
34935 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
34936 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
34937 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
34938 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
34939 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
34940 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
34941 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
34942 ( cat <<\_ASBOX
34943 ## ------------------------------- ##
34944 ## Report this to www.asterisk.org ##
34945 ## ------------------------------- ##
34946 _ASBOX
34947 ) | sed "s/^/$as_me: WARNING: /" >&2
34949 esac
34950 { echo "$as_me:$LINENO: checking for nbs.h" >&5
34951 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
34952 if test "${ac_cv_header_nbs_h+set}" = set; then
34953 echo $ECHO_N "(cached) $ECHO_C" >&6
34954 else
34955 ac_cv_header_nbs_h=$ac_header_preproc
34957 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
34958 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
34961 if test $ac_cv_header_nbs_h = yes; then
34962 NBS_HEADER_FOUND=1
34963 else
34964 NBS_HEADER_FOUND=0
34968 CPPFLAGS="${saved_cppflags}"
34970 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
34971 NBS_LIB=""
34972 NBS_INCLUDE=""
34973 else
34974 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34975 NBS_LIB=""
34977 PBX_NBS=1
34978 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34980 cat >>confdefs.h <<_ACEOF
34981 #define HAVE_NBS 1
34982 _ACEOF
34985 cat >>confdefs.h <<_ACEOF
34986 #define HAVE_NBS_VERSION
34987 _ACEOF
34995 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
34996 pbxlibdir=""
34997 # if --with-NCURSES=DIR has been specified, use it.
34998 if test "x${NCURSES_DIR}" != "x"; then
34999 if test -d ${NCURSES_DIR}/lib; then
35000 pbxlibdir="-L${NCURSES_DIR}/lib"
35001 else
35002 pbxlibdir="-L${NCURSES_DIR}"
35005 pbxfuncname="initscr"
35006 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35007 AST_NCURSES_FOUND=yes
35008 else
35009 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
35010 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
35011 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
35012 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35013 echo $ECHO_N "(cached) $ECHO_C" >&6
35014 else
35015 ac_check_lib_save_LIBS=$LIBS
35016 LIBS="-lncurses ${pbxlibdir} $LIBS"
35017 cat >conftest.$ac_ext <<_ACEOF
35018 /* confdefs.h. */
35019 _ACEOF
35020 cat confdefs.h >>conftest.$ac_ext
35021 cat >>conftest.$ac_ext <<_ACEOF
35022 /* end confdefs.h. */
35024 /* Override any GCC internal prototype to avoid an error.
35025 Use char because int might match the return type of a GCC
35026 builtin and then its argument prototype would still apply. */
35027 #ifdef __cplusplus
35028 extern "C"
35029 #endif
35030 char ${pbxfuncname} ();
35032 main ()
35034 return ${pbxfuncname} ();
35036 return 0;
35038 _ACEOF
35039 rm -f conftest.$ac_objext conftest$ac_exeext
35040 if { (ac_try="$ac_link"
35041 case "(($ac_try" in
35042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35043 *) ac_try_echo=$ac_try;;
35044 esac
35045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35046 (eval "$ac_link") 2>conftest.er1
35047 ac_status=$?
35048 grep -v '^ *+' conftest.er1 >conftest.err
35049 rm -f conftest.er1
35050 cat conftest.err >&5
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); } && {
35053 test -z "$ac_c_werror_flag" ||
35054 test ! -s conftest.err
35055 } && test -s conftest$ac_exeext &&
35056 $as_test_x conftest$ac_exeext; then
35057 eval "$as_ac_Lib=yes"
35058 else
35059 echo "$as_me: failed program was:" >&5
35060 sed 's/^/| /' conftest.$ac_ext >&5
35062 eval "$as_ac_Lib=no"
35065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35066 conftest$ac_exeext conftest.$ac_ext
35067 LIBS=$ac_check_lib_save_LIBS
35069 ac_res=`eval echo '${'$as_ac_Lib'}'`
35070 { echo "$as_me:$LINENO: result: $ac_res" >&5
35071 echo "${ECHO_T}$ac_res" >&6; }
35072 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35073 AST_NCURSES_FOUND=yes
35074 else
35075 AST_NCURSES_FOUND=no
35080 # now check for the header.
35081 if test "${AST_NCURSES_FOUND}" = "yes"; then
35082 NCURSES_LIB="${pbxlibdir} -lncurses "
35083 # if --with-NCURSES=DIR has been specified, use it.
35084 if test "x${NCURSES_DIR}" != "x"; then
35085 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35087 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35088 if test "xcurses.h" = "x" ; then # no header, assume found
35089 NCURSES_HEADER_FOUND="1"
35090 else # check for the header
35091 saved_cppflags="${CPPFLAGS}"
35092 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE} "
35093 if test "${ac_cv_header_curses_h+set}" = set; then
35094 { echo "$as_me:$LINENO: checking for curses.h" >&5
35095 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35096 if test "${ac_cv_header_curses_h+set}" = set; then
35097 echo $ECHO_N "(cached) $ECHO_C" >&6
35099 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35100 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35101 else
35102 # Is the header compilable?
35103 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35104 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35105 cat >conftest.$ac_ext <<_ACEOF
35106 /* confdefs.h. */
35107 _ACEOF
35108 cat confdefs.h >>conftest.$ac_ext
35109 cat >>conftest.$ac_ext <<_ACEOF
35110 /* end confdefs.h. */
35111 $ac_includes_default
35112 #include <curses.h>
35113 _ACEOF
35114 rm -f conftest.$ac_objext
35115 if { (ac_try="$ac_compile"
35116 case "(($ac_try" in
35117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35118 *) ac_try_echo=$ac_try;;
35119 esac
35120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35121 (eval "$ac_compile") 2>conftest.er1
35122 ac_status=$?
35123 grep -v '^ *+' conftest.er1 >conftest.err
35124 rm -f conftest.er1
35125 cat conftest.err >&5
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); } && {
35128 test -z "$ac_c_werror_flag" ||
35129 test ! -s conftest.err
35130 } && test -s conftest.$ac_objext; then
35131 ac_header_compiler=yes
35132 else
35133 echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35136 ac_header_compiler=no
35139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35141 echo "${ECHO_T}$ac_header_compiler" >&6; }
35143 # Is the header present?
35144 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35145 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35146 cat >conftest.$ac_ext <<_ACEOF
35147 /* confdefs.h. */
35148 _ACEOF
35149 cat confdefs.h >>conftest.$ac_ext
35150 cat >>conftest.$ac_ext <<_ACEOF
35151 /* end confdefs.h. */
35152 #include <curses.h>
35153 _ACEOF
35154 if { (ac_try="$ac_cpp conftest.$ac_ext"
35155 case "(($ac_try" in
35156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35157 *) ac_try_echo=$ac_try;;
35158 esac
35159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35161 ac_status=$?
35162 grep -v '^ *+' conftest.er1 >conftest.err
35163 rm -f conftest.er1
35164 cat conftest.err >&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } >/dev/null && {
35167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35168 test ! -s conftest.err
35169 }; then
35170 ac_header_preproc=yes
35171 else
35172 echo "$as_me: failed program was:" >&5
35173 sed 's/^/| /' conftest.$ac_ext >&5
35175 ac_header_preproc=no
35178 rm -f conftest.err conftest.$ac_ext
35179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35180 echo "${ECHO_T}$ac_header_preproc" >&6; }
35182 # So? What about this header?
35183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35184 yes:no: )
35185 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35186 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35187 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35188 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35189 ac_header_preproc=yes
35191 no:yes:* )
35192 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35193 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35194 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35195 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35196 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35197 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35198 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35199 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35200 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35201 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35202 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35203 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35204 ( cat <<\_ASBOX
35205 ## ------------------------------- ##
35206 ## Report this to www.asterisk.org ##
35207 ## ------------------------------- ##
35208 _ASBOX
35209 ) | sed "s/^/$as_me: WARNING: /" >&2
35211 esac
35212 { echo "$as_me:$LINENO: checking for curses.h" >&5
35213 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35214 if test "${ac_cv_header_curses_h+set}" = set; then
35215 echo $ECHO_N "(cached) $ECHO_C" >&6
35216 else
35217 ac_cv_header_curses_h=$ac_header_preproc
35219 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35220 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35223 if test $ac_cv_header_curses_h = yes; then
35224 NCURSES_HEADER_FOUND=1
35225 else
35226 NCURSES_HEADER_FOUND=0
35230 CPPFLAGS="${saved_cppflags}"
35232 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35233 NCURSES_LIB=""
35234 NCURSES_INCLUDE=""
35235 else
35236 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35237 NCURSES_LIB=""
35239 PBX_NCURSES=1
35240 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35242 cat >>confdefs.h <<_ACEOF
35243 #define HAVE_NCURSES 1
35244 _ACEOF
35247 cat >>confdefs.h <<_ACEOF
35248 #define HAVE_NCURSES_VERSION
35249 _ACEOF
35257 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35258 PBX_NETSNMP=0
35259 if test -n "$ac_tool_prefix"; then
35260 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35261 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35264 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35265 echo $ECHO_N "(cached) $ECHO_C" >&6
35266 else
35267 if test -n "$CONFIG_NETSNMP"; then
35268 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35269 else
35270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35271 for as_dir in $PATH
35273 IFS=$as_save_IFS
35274 test -z "$as_dir" && as_dir=.
35275 for ac_exec_ext in '' $ac_executable_extensions; do
35276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35277 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35279 break 2
35281 done
35282 done
35283 IFS=$as_save_IFS
35287 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35288 if test -n "$CONFIG_NETSNMP"; then
35289 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35290 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35291 else
35292 { echo "$as_me:$LINENO: result: no" >&5
35293 echo "${ECHO_T}no" >&6; }
35298 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35299 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35300 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35301 set dummy net-snmp-config; ac_word=$2
35302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35304 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35305 echo $ECHO_N "(cached) $ECHO_C" >&6
35306 else
35307 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35308 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35309 else
35310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35311 for as_dir in $PATH
35313 IFS=$as_save_IFS
35314 test -z "$as_dir" && as_dir=.
35315 for ac_exec_ext in '' $ac_executable_extensions; do
35316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35317 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35319 break 2
35321 done
35322 done
35323 IFS=$as_save_IFS
35327 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35328 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35329 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35330 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35331 else
35332 { echo "$as_me:$LINENO: result: no" >&5
35333 echo "${ECHO_T}no" >&6; }
35336 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35337 CONFIG_NETSNMP="No"
35338 else
35339 case $cross_compiling:$ac_tool_warned in
35340 yes:)
35341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35342 whose name does not start with the host triplet. If you think this
35343 configuration is useful to you, please write to autoconf@gnu.org." >&5
35344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35345 whose name does not start with the host triplet. If you think this
35346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35347 ac_tool_warned=yes ;;
35348 esac
35349 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35351 else
35352 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35355 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35356 if test x"" = x ; then A=--cflags ; else A="" ; fi
35357 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35358 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35359 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35360 if test x"#include <net-snmp/net-snmp-config.h>
35361 #include <net-snmp/net-snmp-includes.h>
35362 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35363 saved_cppflags="${CPPFLAGS}"
35364 if test "x${NETSNMP_DIR}" != "x"; then
35365 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35367 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35369 saved_ldflags="${LDFLAGS}"
35370 LDFLAGS="${NETSNMP_LIB}"
35372 cat >conftest.$ac_ext <<_ACEOF
35373 /* confdefs.h. */
35374 _ACEOF
35375 cat confdefs.h >>conftest.$ac_ext
35376 cat >>conftest.$ac_ext <<_ACEOF
35377 /* end confdefs.h. */
35378 #include <net-snmp/net-snmp-config.h>
35379 #include <net-snmp/net-snmp-includes.h>
35380 #include <net-snmp/agent/net-snmp-agent-includes.h>
35382 main ()
35384 int callback = snmp_register_callback(0, 0, NULL, NULL);
35387 return 0;
35389 _ACEOF
35390 rm -f conftest.$ac_objext conftest$ac_exeext
35391 if { (ac_try="$ac_link"
35392 case "(($ac_try" in
35393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35394 *) ac_try_echo=$ac_try;;
35395 esac
35396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35397 (eval "$ac_link") 2>conftest.er1
35398 ac_status=$?
35399 grep -v '^ *+' conftest.er1 >conftest.err
35400 rm -f conftest.er1
35401 cat conftest.err >&5
35402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403 (exit $ac_status); } && {
35404 test -z "$ac_c_werror_flag" ||
35405 test ! -s conftest.err
35406 } && test -s conftest$ac_exeext &&
35407 $as_test_x conftest$ac_exeext; then
35408 PBX_NETSNMP=1
35410 cat >>confdefs.h <<\_ACEOF
35411 #define HAVE_NETSNMP 1
35412 _ACEOF
35415 else
35416 echo "$as_me: failed program was:" >&5
35417 sed 's/^/| /' conftest.$ac_ext >&5
35423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35424 conftest$ac_exeext conftest.$ac_ext
35425 CPPFLAGS="${saved_cppflags}"
35426 LDFLAGS="${saved_ldflags}"
35427 else
35428 PBX_NETSNMP=1
35430 cat >>confdefs.h <<\_ACEOF
35431 #define HAVE_NETSNMP 1
35432 _ACEOF
35440 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35441 pbxlibdir=""
35442 # if --with-NEWT=DIR has been specified, use it.
35443 if test "x${NEWT_DIR}" != "x"; then
35444 if test -d ${NEWT_DIR}/lib; then
35445 pbxlibdir="-L${NEWT_DIR}/lib"
35446 else
35447 pbxlibdir="-L${NEWT_DIR}"
35450 pbxfuncname="newtBell"
35451 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35452 AST_NEWT_FOUND=yes
35453 else
35454 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35455 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35456 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35457 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35458 echo $ECHO_N "(cached) $ECHO_C" >&6
35459 else
35460 ac_check_lib_save_LIBS=$LIBS
35461 LIBS="-lnewt ${pbxlibdir} $LIBS"
35462 cat >conftest.$ac_ext <<_ACEOF
35463 /* confdefs.h. */
35464 _ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h. */
35469 /* Override any GCC internal prototype to avoid an error.
35470 Use char because int might match the return type of a GCC
35471 builtin and then its argument prototype would still apply. */
35472 #ifdef __cplusplus
35473 extern "C"
35474 #endif
35475 char ${pbxfuncname} ();
35477 main ()
35479 return ${pbxfuncname} ();
35481 return 0;
35483 _ACEOF
35484 rm -f conftest.$ac_objext conftest$ac_exeext
35485 if { (ac_try="$ac_link"
35486 case "(($ac_try" in
35487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35488 *) ac_try_echo=$ac_try;;
35489 esac
35490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35491 (eval "$ac_link") 2>conftest.er1
35492 ac_status=$?
35493 grep -v '^ *+' conftest.er1 >conftest.err
35494 rm -f conftest.er1
35495 cat conftest.err >&5
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); } && {
35498 test -z "$ac_c_werror_flag" ||
35499 test ! -s conftest.err
35500 } && test -s conftest$ac_exeext &&
35501 $as_test_x conftest$ac_exeext; then
35502 eval "$as_ac_Lib=yes"
35503 else
35504 echo "$as_me: failed program was:" >&5
35505 sed 's/^/| /' conftest.$ac_ext >&5
35507 eval "$as_ac_Lib=no"
35510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35511 conftest$ac_exeext conftest.$ac_ext
35512 LIBS=$ac_check_lib_save_LIBS
35514 ac_res=`eval echo '${'$as_ac_Lib'}'`
35515 { echo "$as_me:$LINENO: result: $ac_res" >&5
35516 echo "${ECHO_T}$ac_res" >&6; }
35517 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35518 AST_NEWT_FOUND=yes
35519 else
35520 AST_NEWT_FOUND=no
35525 # now check for the header.
35526 if test "${AST_NEWT_FOUND}" = "yes"; then
35527 NEWT_LIB="${pbxlibdir} -lnewt "
35528 # if --with-NEWT=DIR has been specified, use it.
35529 if test "x${NEWT_DIR}" != "x"; then
35530 NEWT_INCLUDE="-I${NEWT_DIR}/include"
35532 NEWT_INCLUDE="${NEWT_INCLUDE} "
35533 if test "xnewt.h" = "x" ; then # no header, assume found
35534 NEWT_HEADER_FOUND="1"
35535 else # check for the header
35536 saved_cppflags="${CPPFLAGS}"
35537 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} "
35538 if test "${ac_cv_header_newt_h+set}" = set; then
35539 { echo "$as_me:$LINENO: checking for newt.h" >&5
35540 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35541 if test "${ac_cv_header_newt_h+set}" = set; then
35542 echo $ECHO_N "(cached) $ECHO_C" >&6
35544 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35545 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35546 else
35547 # Is the header compilable?
35548 { echo "$as_me:$LINENO: checking newt.h usability" >&5
35549 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
35550 cat >conftest.$ac_ext <<_ACEOF
35551 /* confdefs.h. */
35552 _ACEOF
35553 cat confdefs.h >>conftest.$ac_ext
35554 cat >>conftest.$ac_ext <<_ACEOF
35555 /* end confdefs.h. */
35556 $ac_includes_default
35557 #include <newt.h>
35558 _ACEOF
35559 rm -f conftest.$ac_objext
35560 if { (ac_try="$ac_compile"
35561 case "(($ac_try" in
35562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35563 *) ac_try_echo=$ac_try;;
35564 esac
35565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35566 (eval "$ac_compile") 2>conftest.er1
35567 ac_status=$?
35568 grep -v '^ *+' conftest.er1 >conftest.err
35569 rm -f conftest.er1
35570 cat conftest.err >&5
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); } && {
35573 test -z "$ac_c_werror_flag" ||
35574 test ! -s conftest.err
35575 } && test -s conftest.$ac_objext; then
35576 ac_header_compiler=yes
35577 else
35578 echo "$as_me: failed program was:" >&5
35579 sed 's/^/| /' conftest.$ac_ext >&5
35581 ac_header_compiler=no
35584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35586 echo "${ECHO_T}$ac_header_compiler" >&6; }
35588 # Is the header present?
35589 { echo "$as_me:$LINENO: checking newt.h presence" >&5
35590 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
35591 cat >conftest.$ac_ext <<_ACEOF
35592 /* confdefs.h. */
35593 _ACEOF
35594 cat confdefs.h >>conftest.$ac_ext
35595 cat >>conftest.$ac_ext <<_ACEOF
35596 /* end confdefs.h. */
35597 #include <newt.h>
35598 _ACEOF
35599 if { (ac_try="$ac_cpp conftest.$ac_ext"
35600 case "(($ac_try" in
35601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35602 *) ac_try_echo=$ac_try;;
35603 esac
35604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35606 ac_status=$?
35607 grep -v '^ *+' conftest.er1 >conftest.err
35608 rm -f conftest.er1
35609 cat conftest.err >&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } >/dev/null && {
35612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35613 test ! -s conftest.err
35614 }; then
35615 ac_header_preproc=yes
35616 else
35617 echo "$as_me: failed program was:" >&5
35618 sed 's/^/| /' conftest.$ac_ext >&5
35620 ac_header_preproc=no
35623 rm -f conftest.err conftest.$ac_ext
35624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35625 echo "${ECHO_T}$ac_header_preproc" >&6; }
35627 # So? What about this header?
35628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35629 yes:no: )
35630 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
35631 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35632 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
35633 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
35634 ac_header_preproc=yes
35636 no:yes:* )
35637 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
35638 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
35639 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
35640 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
35641 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
35642 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
35643 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
35644 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
35645 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
35646 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
35647 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
35648 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
35649 ( cat <<\_ASBOX
35650 ## ------------------------------- ##
35651 ## Report this to www.asterisk.org ##
35652 ## ------------------------------- ##
35653 _ASBOX
35654 ) | sed "s/^/$as_me: WARNING: /" >&2
35656 esac
35657 { echo "$as_me:$LINENO: checking for newt.h" >&5
35658 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35659 if test "${ac_cv_header_newt_h+set}" = set; then
35660 echo $ECHO_N "(cached) $ECHO_C" >&6
35661 else
35662 ac_cv_header_newt_h=$ac_header_preproc
35664 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35665 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35668 if test $ac_cv_header_newt_h = yes; then
35669 NEWT_HEADER_FOUND=1
35670 else
35671 NEWT_HEADER_FOUND=0
35675 CPPFLAGS="${saved_cppflags}"
35677 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
35678 NEWT_LIB=""
35679 NEWT_INCLUDE=""
35680 else
35681 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35682 NEWT_LIB=""
35684 PBX_NEWT=1
35685 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35687 cat >>confdefs.h <<_ACEOF
35688 #define HAVE_NEWT 1
35689 _ACEOF
35692 cat >>confdefs.h <<_ACEOF
35693 #define HAVE_NEWT_VERSION
35694 _ACEOF
35702 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
35703 pbxlibdir=""
35704 # if --with-UNIXODBC=DIR has been specified, use it.
35705 if test "x${UNIXODBC_DIR}" != "x"; then
35706 if test -d ${UNIXODBC_DIR}/lib; then
35707 pbxlibdir="-L${UNIXODBC_DIR}/lib"
35708 else
35709 pbxlibdir="-L${UNIXODBC_DIR}"
35712 pbxfuncname="SQLConnect"
35713 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35714 AST_UNIXODBC_FOUND=yes
35715 else
35716 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
35717 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
35718 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
35719 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35720 echo $ECHO_N "(cached) $ECHO_C" >&6
35721 else
35722 ac_check_lib_save_LIBS=$LIBS
35723 LIBS="-lodbc ${pbxlibdir} $LIBS"
35724 cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h. */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h. */
35731 /* Override any GCC internal prototype to avoid an error.
35732 Use char because int might match the return type of a GCC
35733 builtin and then its argument prototype would still apply. */
35734 #ifdef __cplusplus
35735 extern "C"
35736 #endif
35737 char ${pbxfuncname} ();
35739 main ()
35741 return ${pbxfuncname} ();
35743 return 0;
35745 _ACEOF
35746 rm -f conftest.$ac_objext conftest$ac_exeext
35747 if { (ac_try="$ac_link"
35748 case "(($ac_try" in
35749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750 *) ac_try_echo=$ac_try;;
35751 esac
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753 (eval "$ac_link") 2>conftest.er1
35754 ac_status=$?
35755 grep -v '^ *+' conftest.er1 >conftest.err
35756 rm -f conftest.er1
35757 cat conftest.err >&5
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); } && {
35760 test -z "$ac_c_werror_flag" ||
35761 test ! -s conftest.err
35762 } && test -s conftest$ac_exeext &&
35763 $as_test_x conftest$ac_exeext; then
35764 eval "$as_ac_Lib=yes"
35765 else
35766 echo "$as_me: failed program was:" >&5
35767 sed 's/^/| /' conftest.$ac_ext >&5
35769 eval "$as_ac_Lib=no"
35772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35773 conftest$ac_exeext conftest.$ac_ext
35774 LIBS=$ac_check_lib_save_LIBS
35776 ac_res=`eval echo '${'$as_ac_Lib'}'`
35777 { echo "$as_me:$LINENO: result: $ac_res" >&5
35778 echo "${ECHO_T}$ac_res" >&6; }
35779 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35780 AST_UNIXODBC_FOUND=yes
35781 else
35782 AST_UNIXODBC_FOUND=no
35787 # now check for the header.
35788 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
35789 UNIXODBC_LIB="${pbxlibdir} -lodbc "
35790 # if --with-UNIXODBC=DIR has been specified, use it.
35791 if test "x${UNIXODBC_DIR}" != "x"; then
35792 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
35794 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
35795 if test "xsql.h" = "x" ; then # no header, assume found
35796 UNIXODBC_HEADER_FOUND="1"
35797 else # check for the header
35798 saved_cppflags="${CPPFLAGS}"
35799 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE} "
35800 if test "${ac_cv_header_sql_h+set}" = set; then
35801 { echo "$as_me:$LINENO: checking for sql.h" >&5
35802 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35803 if test "${ac_cv_header_sql_h+set}" = set; then
35804 echo $ECHO_N "(cached) $ECHO_C" >&6
35806 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35807 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35808 else
35809 # Is the header compilable?
35810 { echo "$as_me:$LINENO: checking sql.h usability" >&5
35811 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
35812 cat >conftest.$ac_ext <<_ACEOF
35813 /* confdefs.h. */
35814 _ACEOF
35815 cat confdefs.h >>conftest.$ac_ext
35816 cat >>conftest.$ac_ext <<_ACEOF
35817 /* end confdefs.h. */
35818 $ac_includes_default
35819 #include <sql.h>
35820 _ACEOF
35821 rm -f conftest.$ac_objext
35822 if { (ac_try="$ac_compile"
35823 case "(($ac_try" in
35824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35825 *) ac_try_echo=$ac_try;;
35826 esac
35827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35828 (eval "$ac_compile") 2>conftest.er1
35829 ac_status=$?
35830 grep -v '^ *+' conftest.er1 >conftest.err
35831 rm -f conftest.er1
35832 cat conftest.err >&5
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); } && {
35835 test -z "$ac_c_werror_flag" ||
35836 test ! -s conftest.err
35837 } && test -s conftest.$ac_objext; then
35838 ac_header_compiler=yes
35839 else
35840 echo "$as_me: failed program was:" >&5
35841 sed 's/^/| /' conftest.$ac_ext >&5
35843 ac_header_compiler=no
35846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35848 echo "${ECHO_T}$ac_header_compiler" >&6; }
35850 # Is the header present?
35851 { echo "$as_me:$LINENO: checking sql.h presence" >&5
35852 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
35853 cat >conftest.$ac_ext <<_ACEOF
35854 /* confdefs.h. */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h. */
35859 #include <sql.h>
35860 _ACEOF
35861 if { (ac_try="$ac_cpp conftest.$ac_ext"
35862 case "(($ac_try" in
35863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35864 *) ac_try_echo=$ac_try;;
35865 esac
35866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35868 ac_status=$?
35869 grep -v '^ *+' conftest.er1 >conftest.err
35870 rm -f conftest.er1
35871 cat conftest.err >&5
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); } >/dev/null && {
35874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35875 test ! -s conftest.err
35876 }; then
35877 ac_header_preproc=yes
35878 else
35879 echo "$as_me: failed program was:" >&5
35880 sed 's/^/| /' conftest.$ac_ext >&5
35882 ac_header_preproc=no
35885 rm -f conftest.err conftest.$ac_ext
35886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35887 echo "${ECHO_T}$ac_header_preproc" >&6; }
35889 # So? What about this header?
35890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35891 yes:no: )
35892 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
35893 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35894 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
35895 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
35896 ac_header_preproc=yes
35898 no:yes:* )
35899 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
35900 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
35901 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
35902 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
35903 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
35904 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
35905 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
35906 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
35907 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
35908 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
35909 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
35910 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
35911 ( cat <<\_ASBOX
35912 ## ------------------------------- ##
35913 ## Report this to www.asterisk.org ##
35914 ## ------------------------------- ##
35915 _ASBOX
35916 ) | sed "s/^/$as_me: WARNING: /" >&2
35918 esac
35919 { echo "$as_me:$LINENO: checking for sql.h" >&5
35920 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35921 if test "${ac_cv_header_sql_h+set}" = set; then
35922 echo $ECHO_N "(cached) $ECHO_C" >&6
35923 else
35924 ac_cv_header_sql_h=$ac_header_preproc
35926 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35927 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35930 if test $ac_cv_header_sql_h = yes; then
35931 UNIXODBC_HEADER_FOUND=1
35932 else
35933 UNIXODBC_HEADER_FOUND=0
35937 CPPFLAGS="${saved_cppflags}"
35939 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
35940 UNIXODBC_LIB=""
35941 UNIXODBC_INCLUDE=""
35942 else
35943 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35944 UNIXODBC_LIB=""
35946 PBX_UNIXODBC=1
35947 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35949 cat >>confdefs.h <<_ACEOF
35950 #define HAVE_UNIXODBC 1
35951 _ACEOF
35954 cat >>confdefs.h <<_ACEOF
35955 #define HAVE_UNIXODBC_VERSION
35956 _ACEOF
35964 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
35965 pbxlibdir=""
35966 # if --with-OGG=DIR has been specified, use it.
35967 if test "x${OGG_DIR}" != "x"; then
35968 if test -d ${OGG_DIR}/lib; then
35969 pbxlibdir="-L${OGG_DIR}/lib"
35970 else
35971 pbxlibdir="-L${OGG_DIR}"
35974 pbxfuncname="ogg_sync_init"
35975 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35976 AST_OGG_FOUND=yes
35977 else
35978 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
35979 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
35980 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
35981 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35982 echo $ECHO_N "(cached) $ECHO_C" >&6
35983 else
35984 ac_check_lib_save_LIBS=$LIBS
35985 LIBS="-logg ${pbxlibdir} $LIBS"
35986 cat >conftest.$ac_ext <<_ACEOF
35987 /* confdefs.h. */
35988 _ACEOF
35989 cat confdefs.h >>conftest.$ac_ext
35990 cat >>conftest.$ac_ext <<_ACEOF
35991 /* end confdefs.h. */
35993 /* Override any GCC internal prototype to avoid an error.
35994 Use char because int might match the return type of a GCC
35995 builtin and then its argument prototype would still apply. */
35996 #ifdef __cplusplus
35997 extern "C"
35998 #endif
35999 char ${pbxfuncname} ();
36001 main ()
36003 return ${pbxfuncname} ();
36005 return 0;
36007 _ACEOF
36008 rm -f conftest.$ac_objext conftest$ac_exeext
36009 if { (ac_try="$ac_link"
36010 case "(($ac_try" in
36011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36012 *) ac_try_echo=$ac_try;;
36013 esac
36014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36015 (eval "$ac_link") 2>conftest.er1
36016 ac_status=$?
36017 grep -v '^ *+' conftest.er1 >conftest.err
36018 rm -f conftest.er1
36019 cat conftest.err >&5
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); } && {
36022 test -z "$ac_c_werror_flag" ||
36023 test ! -s conftest.err
36024 } && test -s conftest$ac_exeext &&
36025 $as_test_x conftest$ac_exeext; then
36026 eval "$as_ac_Lib=yes"
36027 else
36028 echo "$as_me: failed program was:" >&5
36029 sed 's/^/| /' conftest.$ac_ext >&5
36031 eval "$as_ac_Lib=no"
36034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36035 conftest$ac_exeext conftest.$ac_ext
36036 LIBS=$ac_check_lib_save_LIBS
36038 ac_res=`eval echo '${'$as_ac_Lib'}'`
36039 { echo "$as_me:$LINENO: result: $ac_res" >&5
36040 echo "${ECHO_T}$ac_res" >&6; }
36041 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36042 AST_OGG_FOUND=yes
36043 else
36044 AST_OGG_FOUND=no
36049 # now check for the header.
36050 if test "${AST_OGG_FOUND}" = "yes"; then
36051 OGG_LIB="${pbxlibdir} -logg "
36052 # if --with-OGG=DIR has been specified, use it.
36053 if test "x${OGG_DIR}" != "x"; then
36054 OGG_INCLUDE="-I${OGG_DIR}/include"
36056 OGG_INCLUDE="${OGG_INCLUDE} "
36057 if test "x" = "x" ; then # no header, assume found
36058 OGG_HEADER_FOUND="1"
36059 else # check for the header
36060 saved_cppflags="${CPPFLAGS}"
36061 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE} "
36062 if test "${ac_cv_header_+set}" = set; then
36063 { echo "$as_me:$LINENO: checking for " >&5
36064 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36065 if test "${ac_cv_header_+set}" = set; then
36066 echo $ECHO_N "(cached) $ECHO_C" >&6
36068 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36069 echo "${ECHO_T}$ac_cv_header_" >&6; }
36070 else
36071 # Is the header compilable?
36072 { echo "$as_me:$LINENO: checking usability" >&5
36073 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
36074 cat >conftest.$ac_ext <<_ACEOF
36075 /* confdefs.h. */
36076 _ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h. */
36080 $ac_includes_default
36081 #include <>
36082 _ACEOF
36083 rm -f conftest.$ac_objext
36084 if { (ac_try="$ac_compile"
36085 case "(($ac_try" in
36086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36087 *) ac_try_echo=$ac_try;;
36088 esac
36089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36090 (eval "$ac_compile") 2>conftest.er1
36091 ac_status=$?
36092 grep -v '^ *+' conftest.er1 >conftest.err
36093 rm -f conftest.er1
36094 cat conftest.err >&5
36095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096 (exit $ac_status); } && {
36097 test -z "$ac_c_werror_flag" ||
36098 test ! -s conftest.err
36099 } && test -s conftest.$ac_objext; then
36100 ac_header_compiler=yes
36101 else
36102 echo "$as_me: failed program was:" >&5
36103 sed 's/^/| /' conftest.$ac_ext >&5
36105 ac_header_compiler=no
36108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36110 echo "${ECHO_T}$ac_header_compiler" >&6; }
36112 # Is the header present?
36113 { echo "$as_me:$LINENO: checking presence" >&5
36114 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36115 cat >conftest.$ac_ext <<_ACEOF
36116 /* confdefs.h. */
36117 _ACEOF
36118 cat confdefs.h >>conftest.$ac_ext
36119 cat >>conftest.$ac_ext <<_ACEOF
36120 /* end confdefs.h. */
36121 #include <>
36122 _ACEOF
36123 if { (ac_try="$ac_cpp conftest.$ac_ext"
36124 case "(($ac_try" in
36125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36126 *) ac_try_echo=$ac_try;;
36127 esac
36128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36130 ac_status=$?
36131 grep -v '^ *+' conftest.er1 >conftest.err
36132 rm -f conftest.er1
36133 cat conftest.err >&5
36134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135 (exit $ac_status); } >/dev/null && {
36136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36137 test ! -s conftest.err
36138 }; then
36139 ac_header_preproc=yes
36140 else
36141 echo "$as_me: failed program was:" >&5
36142 sed 's/^/| /' conftest.$ac_ext >&5
36144 ac_header_preproc=no
36147 rm -f conftest.err conftest.$ac_ext
36148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36149 echo "${ECHO_T}$ac_header_preproc" >&6; }
36151 # So? What about this header?
36152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36153 yes:no: )
36154 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36155 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36156 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36157 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36158 ac_header_preproc=yes
36160 no:yes:* )
36161 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36162 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36163 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36164 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36165 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36166 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36167 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36168 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36169 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36170 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36171 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36172 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36173 ( cat <<\_ASBOX
36174 ## ------------------------------- ##
36175 ## Report this to www.asterisk.org ##
36176 ## ------------------------------- ##
36177 _ASBOX
36178 ) | sed "s/^/$as_me: WARNING: /" >&2
36180 esac
36181 { echo "$as_me:$LINENO: checking for " >&5
36182 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36183 if test "${ac_cv_header_+set}" = set; then
36184 echo $ECHO_N "(cached) $ECHO_C" >&6
36185 else
36186 ac_cv_header_=$ac_header_preproc
36188 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36189 echo "${ECHO_T}$ac_cv_header_" >&6; }
36192 if test $ac_cv_header_ = yes; then
36193 OGG_HEADER_FOUND=1
36194 else
36195 OGG_HEADER_FOUND=0
36199 CPPFLAGS="${saved_cppflags}"
36201 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36202 OGG_LIB=""
36203 OGG_INCLUDE=""
36204 else
36205 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36206 OGG_LIB=""
36208 PBX_OGG=1
36209 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36211 cat >>confdefs.h <<_ACEOF
36212 #define HAVE_OGG 1
36213 _ACEOF
36216 cat >>confdefs.h <<_ACEOF
36217 #define HAVE_OGG_VERSION
36218 _ACEOF
36225 # Non-glibc platforms require libexecinfo for backtrace support
36227 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36228 pbxlibdir=""
36229 # if --with-BKTR=DIR has been specified, use it.
36230 if test "x${BKTR_DIR}" != "x"; then
36231 if test -d ${BKTR_DIR}/lib; then
36232 pbxlibdir="-L${BKTR_DIR}/lib"
36233 else
36234 pbxlibdir="-L${BKTR_DIR}"
36237 pbxfuncname="backtrace"
36238 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36239 AST_BKTR_FOUND=yes
36240 else
36241 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36242 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36243 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36244 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36245 echo $ECHO_N "(cached) $ECHO_C" >&6
36246 else
36247 ac_check_lib_save_LIBS=$LIBS
36248 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36249 cat >conftest.$ac_ext <<_ACEOF
36250 /* confdefs.h. */
36251 _ACEOF
36252 cat confdefs.h >>conftest.$ac_ext
36253 cat >>conftest.$ac_ext <<_ACEOF
36254 /* end confdefs.h. */
36256 /* Override any GCC internal prototype to avoid an error.
36257 Use char because int might match the return type of a GCC
36258 builtin and then its argument prototype would still apply. */
36259 #ifdef __cplusplus
36260 extern "C"
36261 #endif
36262 char ${pbxfuncname} ();
36264 main ()
36266 return ${pbxfuncname} ();
36268 return 0;
36270 _ACEOF
36271 rm -f conftest.$ac_objext conftest$ac_exeext
36272 if { (ac_try="$ac_link"
36273 case "(($ac_try" in
36274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36275 *) ac_try_echo=$ac_try;;
36276 esac
36277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36278 (eval "$ac_link") 2>conftest.er1
36279 ac_status=$?
36280 grep -v '^ *+' conftest.er1 >conftest.err
36281 rm -f conftest.er1
36282 cat conftest.err >&5
36283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284 (exit $ac_status); } && {
36285 test -z "$ac_c_werror_flag" ||
36286 test ! -s conftest.err
36287 } && test -s conftest$ac_exeext &&
36288 $as_test_x conftest$ac_exeext; then
36289 eval "$as_ac_Lib=yes"
36290 else
36291 echo "$as_me: failed program was:" >&5
36292 sed 's/^/| /' conftest.$ac_ext >&5
36294 eval "$as_ac_Lib=no"
36297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36298 conftest$ac_exeext conftest.$ac_ext
36299 LIBS=$ac_check_lib_save_LIBS
36301 ac_res=`eval echo '${'$as_ac_Lib'}'`
36302 { echo "$as_me:$LINENO: result: $ac_res" >&5
36303 echo "${ECHO_T}$ac_res" >&6; }
36304 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36305 AST_BKTR_FOUND=yes
36306 else
36307 AST_BKTR_FOUND=no
36312 # now check for the header.
36313 if test "${AST_BKTR_FOUND}" = "yes"; then
36314 BKTR_LIB="${pbxlibdir} -lexecinfo "
36315 # if --with-BKTR=DIR has been specified, use it.
36316 if test "x${BKTR_DIR}" != "x"; then
36317 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36319 BKTR_INCLUDE="${BKTR_INCLUDE} "
36320 if test "xexecinfo.h" = "x" ; then # no header, assume found
36321 BKTR_HEADER_FOUND="1"
36322 else # check for the header
36323 saved_cppflags="${CPPFLAGS}"
36324 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36325 if test "${ac_cv_header_execinfo_h+set}" = set; then
36326 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36327 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36328 if test "${ac_cv_header_execinfo_h+set}" = set; then
36329 echo $ECHO_N "(cached) $ECHO_C" >&6
36331 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36332 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36333 else
36334 # Is the header compilable?
36335 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36336 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36337 cat >conftest.$ac_ext <<_ACEOF
36338 /* confdefs.h. */
36339 _ACEOF
36340 cat confdefs.h >>conftest.$ac_ext
36341 cat >>conftest.$ac_ext <<_ACEOF
36342 /* end confdefs.h. */
36343 $ac_includes_default
36344 #include <execinfo.h>
36345 _ACEOF
36346 rm -f conftest.$ac_objext
36347 if { (ac_try="$ac_compile"
36348 case "(($ac_try" in
36349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36350 *) ac_try_echo=$ac_try;;
36351 esac
36352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36353 (eval "$ac_compile") 2>conftest.er1
36354 ac_status=$?
36355 grep -v '^ *+' conftest.er1 >conftest.err
36356 rm -f conftest.er1
36357 cat conftest.err >&5
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); } && {
36360 test -z "$ac_c_werror_flag" ||
36361 test ! -s conftest.err
36362 } && test -s conftest.$ac_objext; then
36363 ac_header_compiler=yes
36364 else
36365 echo "$as_me: failed program was:" >&5
36366 sed 's/^/| /' conftest.$ac_ext >&5
36368 ac_header_compiler=no
36371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36373 echo "${ECHO_T}$ac_header_compiler" >&6; }
36375 # Is the header present?
36376 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36377 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36378 cat >conftest.$ac_ext <<_ACEOF
36379 /* confdefs.h. */
36380 _ACEOF
36381 cat confdefs.h >>conftest.$ac_ext
36382 cat >>conftest.$ac_ext <<_ACEOF
36383 /* end confdefs.h. */
36384 #include <execinfo.h>
36385 _ACEOF
36386 if { (ac_try="$ac_cpp conftest.$ac_ext"
36387 case "(($ac_try" in
36388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36389 *) ac_try_echo=$ac_try;;
36390 esac
36391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36393 ac_status=$?
36394 grep -v '^ *+' conftest.er1 >conftest.err
36395 rm -f conftest.er1
36396 cat conftest.err >&5
36397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398 (exit $ac_status); } >/dev/null && {
36399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36400 test ! -s conftest.err
36401 }; then
36402 ac_header_preproc=yes
36403 else
36404 echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.$ac_ext >&5
36407 ac_header_preproc=no
36410 rm -f conftest.err conftest.$ac_ext
36411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36412 echo "${ECHO_T}$ac_header_preproc" >&6; }
36414 # So? What about this header?
36415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36416 yes:no: )
36417 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36418 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36419 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36420 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36421 ac_header_preproc=yes
36423 no:yes:* )
36424 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36425 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36426 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36427 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36428 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36429 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36430 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36431 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36432 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36433 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36434 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36435 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36436 ( cat <<\_ASBOX
36437 ## ------------------------------- ##
36438 ## Report this to www.asterisk.org ##
36439 ## ------------------------------- ##
36440 _ASBOX
36441 ) | sed "s/^/$as_me: WARNING: /" >&2
36443 esac
36444 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36445 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36446 if test "${ac_cv_header_execinfo_h+set}" = set; then
36447 echo $ECHO_N "(cached) $ECHO_C" >&6
36448 else
36449 ac_cv_header_execinfo_h=$ac_header_preproc
36451 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36452 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36455 if test $ac_cv_header_execinfo_h = yes; then
36456 BKTR_HEADER_FOUND=1
36457 else
36458 BKTR_HEADER_FOUND=0
36462 CPPFLAGS="${saved_cppflags}"
36464 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36465 BKTR_LIB=""
36466 BKTR_INCLUDE=""
36467 else
36468 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36469 BKTR_LIB=""
36471 PBX_BKTR=1
36472 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36474 cat >>confdefs.h <<_ACEOF
36475 #define HAVE_BKTR 1
36476 _ACEOF
36479 cat >>confdefs.h <<_ACEOF
36480 #define HAVE_BKTR_VERSION
36481 _ACEOF
36487 # Linux, however, has backtrace directly in glibc
36489 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36490 pbxlibdir=""
36491 # if --with-BKTR=DIR has been specified, use it.
36492 if test "x${BKTR_DIR}" != "x"; then
36493 if test -d ${BKTR_DIR}/lib; then
36494 pbxlibdir="-L${BKTR_DIR}/lib"
36495 else
36496 pbxlibdir="-L${BKTR_DIR}"
36499 pbxfuncname="backtrace"
36500 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36501 AST_BKTR_FOUND=yes
36502 else
36503 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36504 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36505 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36506 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36507 echo $ECHO_N "(cached) $ECHO_C" >&6
36508 else
36509 ac_check_lib_save_LIBS=$LIBS
36510 LIBS="-lc ${pbxlibdir} $LIBS"
36511 cat >conftest.$ac_ext <<_ACEOF
36512 /* confdefs.h. */
36513 _ACEOF
36514 cat confdefs.h >>conftest.$ac_ext
36515 cat >>conftest.$ac_ext <<_ACEOF
36516 /* end confdefs.h. */
36518 /* Override any GCC internal prototype to avoid an error.
36519 Use char because int might match the return type of a GCC
36520 builtin and then its argument prototype would still apply. */
36521 #ifdef __cplusplus
36522 extern "C"
36523 #endif
36524 char ${pbxfuncname} ();
36526 main ()
36528 return ${pbxfuncname} ();
36530 return 0;
36532 _ACEOF
36533 rm -f conftest.$ac_objext conftest$ac_exeext
36534 if { (ac_try="$ac_link"
36535 case "(($ac_try" in
36536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36537 *) ac_try_echo=$ac_try;;
36538 esac
36539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36540 (eval "$ac_link") 2>conftest.er1
36541 ac_status=$?
36542 grep -v '^ *+' conftest.er1 >conftest.err
36543 rm -f conftest.er1
36544 cat conftest.err >&5
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); } && {
36547 test -z "$ac_c_werror_flag" ||
36548 test ! -s conftest.err
36549 } && test -s conftest$ac_exeext &&
36550 $as_test_x conftest$ac_exeext; then
36551 eval "$as_ac_Lib=yes"
36552 else
36553 echo "$as_me: failed program was:" >&5
36554 sed 's/^/| /' conftest.$ac_ext >&5
36556 eval "$as_ac_Lib=no"
36559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36560 conftest$ac_exeext conftest.$ac_ext
36561 LIBS=$ac_check_lib_save_LIBS
36563 ac_res=`eval echo '${'$as_ac_Lib'}'`
36564 { echo "$as_me:$LINENO: result: $ac_res" >&5
36565 echo "${ECHO_T}$ac_res" >&6; }
36566 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36567 AST_BKTR_FOUND=yes
36568 else
36569 AST_BKTR_FOUND=no
36574 # now check for the header.
36575 if test "${AST_BKTR_FOUND}" = "yes"; then
36576 BKTR_LIB="${pbxlibdir} -lc "
36577 # if --with-BKTR=DIR has been specified, use it.
36578 if test "x${BKTR_DIR}" != "x"; then
36579 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36581 BKTR_INCLUDE="${BKTR_INCLUDE} "
36582 if test "xexecinfo.h" = "x" ; then # no header, assume found
36583 BKTR_HEADER_FOUND="1"
36584 else # check for the header
36585 saved_cppflags="${CPPFLAGS}"
36586 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36587 if test "${ac_cv_header_execinfo_h+set}" = set; then
36588 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36589 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36590 if test "${ac_cv_header_execinfo_h+set}" = set; then
36591 echo $ECHO_N "(cached) $ECHO_C" >&6
36593 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36594 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36595 else
36596 # Is the header compilable?
36597 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36598 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36599 cat >conftest.$ac_ext <<_ACEOF
36600 /* confdefs.h. */
36601 _ACEOF
36602 cat confdefs.h >>conftest.$ac_ext
36603 cat >>conftest.$ac_ext <<_ACEOF
36604 /* end confdefs.h. */
36605 $ac_includes_default
36606 #include <execinfo.h>
36607 _ACEOF
36608 rm -f conftest.$ac_objext
36609 if { (ac_try="$ac_compile"
36610 case "(($ac_try" in
36611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36612 *) ac_try_echo=$ac_try;;
36613 esac
36614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36615 (eval "$ac_compile") 2>conftest.er1
36616 ac_status=$?
36617 grep -v '^ *+' conftest.er1 >conftest.err
36618 rm -f conftest.er1
36619 cat conftest.err >&5
36620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36621 (exit $ac_status); } && {
36622 test -z "$ac_c_werror_flag" ||
36623 test ! -s conftest.err
36624 } && test -s conftest.$ac_objext; then
36625 ac_header_compiler=yes
36626 else
36627 echo "$as_me: failed program was:" >&5
36628 sed 's/^/| /' conftest.$ac_ext >&5
36630 ac_header_compiler=no
36633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36635 echo "${ECHO_T}$ac_header_compiler" >&6; }
36637 # Is the header present?
36638 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36639 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36640 cat >conftest.$ac_ext <<_ACEOF
36641 /* confdefs.h. */
36642 _ACEOF
36643 cat confdefs.h >>conftest.$ac_ext
36644 cat >>conftest.$ac_ext <<_ACEOF
36645 /* end confdefs.h. */
36646 #include <execinfo.h>
36647 _ACEOF
36648 if { (ac_try="$ac_cpp conftest.$ac_ext"
36649 case "(($ac_try" in
36650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36651 *) ac_try_echo=$ac_try;;
36652 esac
36653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36655 ac_status=$?
36656 grep -v '^ *+' conftest.er1 >conftest.err
36657 rm -f conftest.er1
36658 cat conftest.err >&5
36659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 (exit $ac_status); } >/dev/null && {
36661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36662 test ! -s conftest.err
36663 }; then
36664 ac_header_preproc=yes
36665 else
36666 echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.$ac_ext >&5
36669 ac_header_preproc=no
36672 rm -f conftest.err conftest.$ac_ext
36673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36674 echo "${ECHO_T}$ac_header_preproc" >&6; }
36676 # So? What about this header?
36677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36678 yes:no: )
36679 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36680 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36681 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36682 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36683 ac_header_preproc=yes
36685 no:yes:* )
36686 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36687 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36688 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36689 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36690 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36691 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36692 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36693 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36694 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36695 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36696 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36697 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36698 ( cat <<\_ASBOX
36699 ## ------------------------------- ##
36700 ## Report this to www.asterisk.org ##
36701 ## ------------------------------- ##
36702 _ASBOX
36703 ) | sed "s/^/$as_me: WARNING: /" >&2
36705 esac
36706 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36707 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36708 if test "${ac_cv_header_execinfo_h+set}" = set; then
36709 echo $ECHO_N "(cached) $ECHO_C" >&6
36710 else
36711 ac_cv_header_execinfo_h=$ac_header_preproc
36713 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36714 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36717 if test $ac_cv_header_execinfo_h = yes; then
36718 BKTR_HEADER_FOUND=1
36719 else
36720 BKTR_HEADER_FOUND=0
36724 CPPFLAGS="${saved_cppflags}"
36726 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36727 BKTR_LIB=""
36728 BKTR_INCLUDE=""
36729 else
36730 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36731 BKTR_LIB=""
36733 PBX_BKTR=1
36734 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36736 cat >>confdefs.h <<_ACEOF
36737 #define HAVE_BKTR 1
36738 _ACEOF
36741 cat >>confdefs.h <<_ACEOF
36742 #define HAVE_BKTR_VERSION
36743 _ACEOF
36750 # possible places for oss definitions
36752 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
36753 pbxlibdir=""
36754 # if --with-OSS=DIR has been specified, use it.
36755 if test "x${OSS_DIR}" != "x"; then
36756 if test -d ${OSS_DIR}/lib; then
36757 pbxlibdir="-L${OSS_DIR}/lib"
36758 else
36759 pbxlibdir="-L${OSS_DIR}"
36762 pbxfuncname=""
36763 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36764 AST_OSS_FOUND=yes
36765 else
36766 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
36767 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
36768 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
36769 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36770 echo $ECHO_N "(cached) $ECHO_C" >&6
36771 else
36772 ac_check_lib_save_LIBS=$LIBS
36773 LIBS="-lossaudio ${pbxlibdir} $LIBS"
36774 cat >conftest.$ac_ext <<_ACEOF
36775 /* confdefs.h. */
36776 _ACEOF
36777 cat confdefs.h >>conftest.$ac_ext
36778 cat >>conftest.$ac_ext <<_ACEOF
36779 /* end confdefs.h. */
36781 /* Override any GCC internal prototype to avoid an error.
36782 Use char because int might match the return type of a GCC
36783 builtin and then its argument prototype would still apply. */
36784 #ifdef __cplusplus
36785 extern "C"
36786 #endif
36787 char ${pbxfuncname} ();
36789 main ()
36791 return ${pbxfuncname} ();
36793 return 0;
36795 _ACEOF
36796 rm -f conftest.$ac_objext conftest$ac_exeext
36797 if { (ac_try="$ac_link"
36798 case "(($ac_try" in
36799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36800 *) ac_try_echo=$ac_try;;
36801 esac
36802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36803 (eval "$ac_link") 2>conftest.er1
36804 ac_status=$?
36805 grep -v '^ *+' conftest.er1 >conftest.err
36806 rm -f conftest.er1
36807 cat conftest.err >&5
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } && {
36810 test -z "$ac_c_werror_flag" ||
36811 test ! -s conftest.err
36812 } && test -s conftest$ac_exeext &&
36813 $as_test_x conftest$ac_exeext; then
36814 eval "$as_ac_Lib=yes"
36815 else
36816 echo "$as_me: failed program was:" >&5
36817 sed 's/^/| /' conftest.$ac_ext >&5
36819 eval "$as_ac_Lib=no"
36822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36823 conftest$ac_exeext conftest.$ac_ext
36824 LIBS=$ac_check_lib_save_LIBS
36826 ac_res=`eval echo '${'$as_ac_Lib'}'`
36827 { echo "$as_me:$LINENO: result: $ac_res" >&5
36828 echo "${ECHO_T}$ac_res" >&6; }
36829 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36830 AST_OSS_FOUND=yes
36831 else
36832 AST_OSS_FOUND=no
36837 # now check for the header.
36838 if test "${AST_OSS_FOUND}" = "yes"; then
36839 OSS_LIB="${pbxlibdir} -lossaudio "
36840 # if --with-OSS=DIR has been specified, use it.
36841 if test "x${OSS_DIR}" != "x"; then
36842 OSS_INCLUDE="-I${OSS_DIR}/include"
36844 OSS_INCLUDE="${OSS_INCLUDE} "
36845 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
36846 OSS_HEADER_FOUND="1"
36847 else # check for the header
36848 saved_cppflags="${CPPFLAGS}"
36849 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
36850 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
36851 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
36852 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
36853 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
36854 echo $ECHO_N "(cached) $ECHO_C" >&6
36856 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
36857 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
36858 else
36859 # Is the header compilable?
36860 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
36861 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
36862 cat >conftest.$ac_ext <<_ACEOF
36863 /* confdefs.h. */
36864 _ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h. */
36868 $ac_includes_default
36869 #include <linux/soundcard.h>
36870 _ACEOF
36871 rm -f conftest.$ac_objext
36872 if { (ac_try="$ac_compile"
36873 case "(($ac_try" in
36874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36875 *) ac_try_echo=$ac_try;;
36876 esac
36877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36878 (eval "$ac_compile") 2>conftest.er1
36879 ac_status=$?
36880 grep -v '^ *+' conftest.er1 >conftest.err
36881 rm -f conftest.er1
36882 cat conftest.err >&5
36883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36884 (exit $ac_status); } && {
36885 test -z "$ac_c_werror_flag" ||
36886 test ! -s conftest.err
36887 } && test -s conftest.$ac_objext; then
36888 ac_header_compiler=yes
36889 else
36890 echo "$as_me: failed program was:" >&5
36891 sed 's/^/| /' conftest.$ac_ext >&5
36893 ac_header_compiler=no
36896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36898 echo "${ECHO_T}$ac_header_compiler" >&6; }
36900 # Is the header present?
36901 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
36902 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
36903 cat >conftest.$ac_ext <<_ACEOF
36904 /* confdefs.h. */
36905 _ACEOF
36906 cat confdefs.h >>conftest.$ac_ext
36907 cat >>conftest.$ac_ext <<_ACEOF
36908 /* end confdefs.h. */
36909 #include <linux/soundcard.h>
36910 _ACEOF
36911 if { (ac_try="$ac_cpp conftest.$ac_ext"
36912 case "(($ac_try" in
36913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36914 *) ac_try_echo=$ac_try;;
36915 esac
36916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36918 ac_status=$?
36919 grep -v '^ *+' conftest.er1 >conftest.err
36920 rm -f conftest.er1
36921 cat conftest.err >&5
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); } >/dev/null && {
36924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36925 test ! -s conftest.err
36926 }; then
36927 ac_header_preproc=yes
36928 else
36929 echo "$as_me: failed program was:" >&5
36930 sed 's/^/| /' conftest.$ac_ext >&5
36932 ac_header_preproc=no
36935 rm -f conftest.err conftest.$ac_ext
36936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36937 echo "${ECHO_T}$ac_header_preproc" >&6; }
36939 # So? What about this header?
36940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36941 yes:no: )
36942 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
36943 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36944 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
36945 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
36946 ac_header_preproc=yes
36948 no:yes:* )
36949 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
36950 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
36951 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
36952 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
36953 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
36954 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
36955 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
36956 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
36957 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
36958 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
36959 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
36960 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
36961 ( cat <<\_ASBOX
36962 ## ------------------------------- ##
36963 ## Report this to www.asterisk.org ##
36964 ## ------------------------------- ##
36965 _ASBOX
36966 ) | sed "s/^/$as_me: WARNING: /" >&2
36968 esac
36969 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
36970 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
36971 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
36972 echo $ECHO_N "(cached) $ECHO_C" >&6
36973 else
36974 ac_cv_header_linux_soundcard_h=$ac_header_preproc
36976 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
36977 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
36980 if test $ac_cv_header_linux_soundcard_h = yes; then
36981 OSS_HEADER_FOUND=1
36982 else
36983 OSS_HEADER_FOUND=0
36987 CPPFLAGS="${saved_cppflags}"
36989 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
36990 OSS_LIB=""
36991 OSS_INCLUDE=""
36992 else
36993 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36994 OSS_LIB=""
36996 PBX_OSS=1
36997 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36999 cat >>confdefs.h <<_ACEOF
37000 #define HAVE_OSS 1
37001 _ACEOF
37004 cat >>confdefs.h <<_ACEOF
37005 #define HAVE_OSS_VERSION
37006 _ACEOF
37013 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37014 pbxlibdir=""
37015 # if --with-OSS=DIR has been specified, use it.
37016 if test "x${OSS_DIR}" != "x"; then
37017 if test -d ${OSS_DIR}/lib; then
37018 pbxlibdir="-L${OSS_DIR}/lib"
37019 else
37020 pbxlibdir="-L${OSS_DIR}"
37023 pbxfuncname=""
37024 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37025 AST_OSS_FOUND=yes
37026 else
37027 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37028 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37029 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37030 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37031 echo $ECHO_N "(cached) $ECHO_C" >&6
37032 else
37033 ac_check_lib_save_LIBS=$LIBS
37034 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37035 cat >conftest.$ac_ext <<_ACEOF
37036 /* confdefs.h. */
37037 _ACEOF
37038 cat confdefs.h >>conftest.$ac_ext
37039 cat >>conftest.$ac_ext <<_ACEOF
37040 /* end confdefs.h. */
37042 /* Override any GCC internal prototype to avoid an error.
37043 Use char because int might match the return type of a GCC
37044 builtin and then its argument prototype would still apply. */
37045 #ifdef __cplusplus
37046 extern "C"
37047 #endif
37048 char ${pbxfuncname} ();
37050 main ()
37052 return ${pbxfuncname} ();
37054 return 0;
37056 _ACEOF
37057 rm -f conftest.$ac_objext conftest$ac_exeext
37058 if { (ac_try="$ac_link"
37059 case "(($ac_try" in
37060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37061 *) ac_try_echo=$ac_try;;
37062 esac
37063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37064 (eval "$ac_link") 2>conftest.er1
37065 ac_status=$?
37066 grep -v '^ *+' conftest.er1 >conftest.err
37067 rm -f conftest.er1
37068 cat conftest.err >&5
37069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070 (exit $ac_status); } && {
37071 test -z "$ac_c_werror_flag" ||
37072 test ! -s conftest.err
37073 } && test -s conftest$ac_exeext &&
37074 $as_test_x conftest$ac_exeext; then
37075 eval "$as_ac_Lib=yes"
37076 else
37077 echo "$as_me: failed program was:" >&5
37078 sed 's/^/| /' conftest.$ac_ext >&5
37080 eval "$as_ac_Lib=no"
37083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37084 conftest$ac_exeext conftest.$ac_ext
37085 LIBS=$ac_check_lib_save_LIBS
37087 ac_res=`eval echo '${'$as_ac_Lib'}'`
37088 { echo "$as_me:$LINENO: result: $ac_res" >&5
37089 echo "${ECHO_T}$ac_res" >&6; }
37090 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37091 AST_OSS_FOUND=yes
37092 else
37093 AST_OSS_FOUND=no
37098 # now check for the header.
37099 if test "${AST_OSS_FOUND}" = "yes"; then
37100 OSS_LIB="${pbxlibdir} -lossaudio "
37101 # if --with-OSS=DIR has been specified, use it.
37102 if test "x${OSS_DIR}" != "x"; then
37103 OSS_INCLUDE="-I${OSS_DIR}/include"
37105 OSS_INCLUDE="${OSS_INCLUDE} "
37106 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37107 OSS_HEADER_FOUND="1"
37108 else # check for the header
37109 saved_cppflags="${CPPFLAGS}"
37110 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37111 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37112 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37113 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37114 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37115 echo $ECHO_N "(cached) $ECHO_C" >&6
37117 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37118 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37119 else
37120 # Is the header compilable?
37121 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37122 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37123 cat >conftest.$ac_ext <<_ACEOF
37124 /* confdefs.h. */
37125 _ACEOF
37126 cat confdefs.h >>conftest.$ac_ext
37127 cat >>conftest.$ac_ext <<_ACEOF
37128 /* end confdefs.h. */
37129 $ac_includes_default
37130 #include <sys/soundcard.h>
37131 _ACEOF
37132 rm -f conftest.$ac_objext
37133 if { (ac_try="$ac_compile"
37134 case "(($ac_try" in
37135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37136 *) ac_try_echo=$ac_try;;
37137 esac
37138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37139 (eval "$ac_compile") 2>conftest.er1
37140 ac_status=$?
37141 grep -v '^ *+' conftest.er1 >conftest.err
37142 rm -f conftest.er1
37143 cat conftest.err >&5
37144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145 (exit $ac_status); } && {
37146 test -z "$ac_c_werror_flag" ||
37147 test ! -s conftest.err
37148 } && test -s conftest.$ac_objext; then
37149 ac_header_compiler=yes
37150 else
37151 echo "$as_me: failed program was:" >&5
37152 sed 's/^/| /' conftest.$ac_ext >&5
37154 ac_header_compiler=no
37157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37159 echo "${ECHO_T}$ac_header_compiler" >&6; }
37161 # Is the header present?
37162 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37163 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37164 cat >conftest.$ac_ext <<_ACEOF
37165 /* confdefs.h. */
37166 _ACEOF
37167 cat confdefs.h >>conftest.$ac_ext
37168 cat >>conftest.$ac_ext <<_ACEOF
37169 /* end confdefs.h. */
37170 #include <sys/soundcard.h>
37171 _ACEOF
37172 if { (ac_try="$ac_cpp conftest.$ac_ext"
37173 case "(($ac_try" in
37174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37175 *) ac_try_echo=$ac_try;;
37176 esac
37177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37179 ac_status=$?
37180 grep -v '^ *+' conftest.er1 >conftest.err
37181 rm -f conftest.er1
37182 cat conftest.err >&5
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); } >/dev/null && {
37185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37186 test ! -s conftest.err
37187 }; then
37188 ac_header_preproc=yes
37189 else
37190 echo "$as_me: failed program was:" >&5
37191 sed 's/^/| /' conftest.$ac_ext >&5
37193 ac_header_preproc=no
37196 rm -f conftest.err conftest.$ac_ext
37197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37198 echo "${ECHO_T}$ac_header_preproc" >&6; }
37200 # So? What about this header?
37201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37202 yes:no: )
37203 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37204 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37205 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37206 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37207 ac_header_preproc=yes
37209 no:yes:* )
37210 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37211 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37212 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37213 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37214 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37215 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37216 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37217 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37218 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37219 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37220 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37221 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37222 ( cat <<\_ASBOX
37223 ## ------------------------------- ##
37224 ## Report this to www.asterisk.org ##
37225 ## ------------------------------- ##
37226 _ASBOX
37227 ) | sed "s/^/$as_me: WARNING: /" >&2
37229 esac
37230 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37231 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37232 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37233 echo $ECHO_N "(cached) $ECHO_C" >&6
37234 else
37235 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37238 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37241 if test $ac_cv_header_sys_soundcard_h = yes; then
37242 OSS_HEADER_FOUND=1
37243 else
37244 OSS_HEADER_FOUND=0
37248 CPPFLAGS="${saved_cppflags}"
37250 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37251 OSS_LIB=""
37252 OSS_INCLUDE=""
37253 else
37254 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37255 OSS_LIB=""
37257 PBX_OSS=1
37258 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37260 cat >>confdefs.h <<_ACEOF
37261 #define HAVE_OSS 1
37262 _ACEOF
37265 cat >>confdefs.h <<_ACEOF
37266 #define HAVE_OSS_VERSION
37267 _ACEOF
37274 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37275 pbxlibdir=""
37276 # if --with-OSS=DIR has been specified, use it.
37277 if test "x${OSS_DIR}" != "x"; then
37278 if test -d ${OSS_DIR}/lib; then
37279 pbxlibdir="-L${OSS_DIR}/lib"
37280 else
37281 pbxlibdir="-L${OSS_DIR}"
37284 pbxfuncname="oss_ioctl_mixer"
37285 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37286 AST_OSS_FOUND=yes
37287 else
37288 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37289 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37290 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37291 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37292 echo $ECHO_N "(cached) $ECHO_C" >&6
37293 else
37294 ac_check_lib_save_LIBS=$LIBS
37295 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37296 cat >conftest.$ac_ext <<_ACEOF
37297 /* confdefs.h. */
37298 _ACEOF
37299 cat confdefs.h >>conftest.$ac_ext
37300 cat >>conftest.$ac_ext <<_ACEOF
37301 /* end confdefs.h. */
37303 /* Override any GCC internal prototype to avoid an error.
37304 Use char because int might match the return type of a GCC
37305 builtin and then its argument prototype would still apply. */
37306 #ifdef __cplusplus
37307 extern "C"
37308 #endif
37309 char ${pbxfuncname} ();
37311 main ()
37313 return ${pbxfuncname} ();
37315 return 0;
37317 _ACEOF
37318 rm -f conftest.$ac_objext conftest$ac_exeext
37319 if { (ac_try="$ac_link"
37320 case "(($ac_try" in
37321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37322 *) ac_try_echo=$ac_try;;
37323 esac
37324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37325 (eval "$ac_link") 2>conftest.er1
37326 ac_status=$?
37327 grep -v '^ *+' conftest.er1 >conftest.err
37328 rm -f conftest.er1
37329 cat conftest.err >&5
37330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331 (exit $ac_status); } && {
37332 test -z "$ac_c_werror_flag" ||
37333 test ! -s conftest.err
37334 } && test -s conftest$ac_exeext &&
37335 $as_test_x conftest$ac_exeext; then
37336 eval "$as_ac_Lib=yes"
37337 else
37338 echo "$as_me: failed program was:" >&5
37339 sed 's/^/| /' conftest.$ac_ext >&5
37341 eval "$as_ac_Lib=no"
37344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37345 conftest$ac_exeext conftest.$ac_ext
37346 LIBS=$ac_check_lib_save_LIBS
37348 ac_res=`eval echo '${'$as_ac_Lib'}'`
37349 { echo "$as_me:$LINENO: result: $ac_res" >&5
37350 echo "${ECHO_T}$ac_res" >&6; }
37351 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37352 AST_OSS_FOUND=yes
37353 else
37354 AST_OSS_FOUND=no
37359 # now check for the header.
37360 if test "${AST_OSS_FOUND}" = "yes"; then
37361 OSS_LIB="${pbxlibdir} -lossaudio "
37362 # if --with-OSS=DIR has been specified, use it.
37363 if test "x${OSS_DIR}" != "x"; then
37364 OSS_INCLUDE="-I${OSS_DIR}/include"
37366 OSS_INCLUDE="${OSS_INCLUDE} "
37367 if test "xsoundcard.h" = "x" ; then # no header, assume found
37368 OSS_HEADER_FOUND="1"
37369 else # check for the header
37370 saved_cppflags="${CPPFLAGS}"
37371 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37372 if test "${ac_cv_header_soundcard_h+set}" = set; then
37373 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37374 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37375 if test "${ac_cv_header_soundcard_h+set}" = set; then
37376 echo $ECHO_N "(cached) $ECHO_C" >&6
37378 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37379 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37380 else
37381 # Is the header compilable?
37382 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37383 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37384 cat >conftest.$ac_ext <<_ACEOF
37385 /* confdefs.h. */
37386 _ACEOF
37387 cat confdefs.h >>conftest.$ac_ext
37388 cat >>conftest.$ac_ext <<_ACEOF
37389 /* end confdefs.h. */
37390 $ac_includes_default
37391 #include <soundcard.h>
37392 _ACEOF
37393 rm -f conftest.$ac_objext
37394 if { (ac_try="$ac_compile"
37395 case "(($ac_try" in
37396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37397 *) ac_try_echo=$ac_try;;
37398 esac
37399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37400 (eval "$ac_compile") 2>conftest.er1
37401 ac_status=$?
37402 grep -v '^ *+' conftest.er1 >conftest.err
37403 rm -f conftest.er1
37404 cat conftest.err >&5
37405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37406 (exit $ac_status); } && {
37407 test -z "$ac_c_werror_flag" ||
37408 test ! -s conftest.err
37409 } && test -s conftest.$ac_objext; then
37410 ac_header_compiler=yes
37411 else
37412 echo "$as_me: failed program was:" >&5
37413 sed 's/^/| /' conftest.$ac_ext >&5
37415 ac_header_compiler=no
37418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37420 echo "${ECHO_T}$ac_header_compiler" >&6; }
37422 # Is the header present?
37423 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37424 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37425 cat >conftest.$ac_ext <<_ACEOF
37426 /* confdefs.h. */
37427 _ACEOF
37428 cat confdefs.h >>conftest.$ac_ext
37429 cat >>conftest.$ac_ext <<_ACEOF
37430 /* end confdefs.h. */
37431 #include <soundcard.h>
37432 _ACEOF
37433 if { (ac_try="$ac_cpp conftest.$ac_ext"
37434 case "(($ac_try" in
37435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37436 *) ac_try_echo=$ac_try;;
37437 esac
37438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37440 ac_status=$?
37441 grep -v '^ *+' conftest.er1 >conftest.err
37442 rm -f conftest.er1
37443 cat conftest.err >&5
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); } >/dev/null && {
37446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37447 test ! -s conftest.err
37448 }; then
37449 ac_header_preproc=yes
37450 else
37451 echo "$as_me: failed program was:" >&5
37452 sed 's/^/| /' conftest.$ac_ext >&5
37454 ac_header_preproc=no
37457 rm -f conftest.err conftest.$ac_ext
37458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37459 echo "${ECHO_T}$ac_header_preproc" >&6; }
37461 # So? What about this header?
37462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37463 yes:no: )
37464 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37465 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37466 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37467 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37468 ac_header_preproc=yes
37470 no:yes:* )
37471 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37472 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37473 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37474 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37475 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37476 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37477 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37478 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37479 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37480 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37481 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37482 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37483 ( cat <<\_ASBOX
37484 ## ------------------------------- ##
37485 ## Report this to www.asterisk.org ##
37486 ## ------------------------------- ##
37487 _ASBOX
37488 ) | sed "s/^/$as_me: WARNING: /" >&2
37490 esac
37491 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37492 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37493 if test "${ac_cv_header_soundcard_h+set}" = set; then
37494 echo $ECHO_N "(cached) $ECHO_C" >&6
37495 else
37496 ac_cv_header_soundcard_h=$ac_header_preproc
37498 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37499 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37502 if test $ac_cv_header_soundcard_h = yes; then
37503 OSS_HEADER_FOUND=1
37504 else
37505 OSS_HEADER_FOUND=0
37509 CPPFLAGS="${saved_cppflags}"
37511 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37512 OSS_LIB=""
37513 OSS_INCLUDE=""
37514 else
37515 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37516 OSS_LIB=""
37518 PBX_OSS=1
37519 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37521 cat >>confdefs.h <<_ACEOF
37522 #define HAVE_OSS 1
37523 _ACEOF
37526 cat >>confdefs.h <<_ACEOF
37527 #define HAVE_OSS_VERSION
37528 _ACEOF
37535 PG_CONFIG=No
37536 if test "${USE_PGSQL}" != "no"; then
37537 if test "x${PGSQL_DIR}" != "x"; then
37538 if test -n "$ac_tool_prefix"; then
37539 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37540 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37543 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37544 echo $ECHO_N "(cached) $ECHO_C" >&6
37545 else
37546 case $PG_CONFIG in
37547 [\\/]* | ?:[\\/]*)
37548 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37552 for as_dir in ${PGSQL_DIR}/bin
37554 IFS=$as_save_IFS
37555 test -z "$as_dir" && as_dir=.
37556 for ac_exec_ext in '' $ac_executable_extensions; do
37557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37558 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37560 break 2
37562 done
37563 done
37564 IFS=$as_save_IFS
37567 esac
37569 PG_CONFIG=$ac_cv_path_PG_CONFIG
37570 if test -n "$PG_CONFIG"; then
37571 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37572 echo "${ECHO_T}$PG_CONFIG" >&6; }
37573 else
37574 { echo "$as_me:$LINENO: result: no" >&5
37575 echo "${ECHO_T}no" >&6; }
37580 if test -z "$ac_cv_path_PG_CONFIG"; then
37581 ac_pt_PG_CONFIG=$PG_CONFIG
37582 # Extract the first word of "pg_config", so it can be a program name with args.
37583 set dummy pg_config; ac_word=$2
37584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37586 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37587 echo $ECHO_N "(cached) $ECHO_C" >&6
37588 else
37589 case $ac_pt_PG_CONFIG in
37590 [\\/]* | ?:[\\/]*)
37591 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37595 for as_dir in ${PGSQL_DIR}/bin
37597 IFS=$as_save_IFS
37598 test -z "$as_dir" && as_dir=.
37599 for ac_exec_ext in '' $ac_executable_extensions; do
37600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37601 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37603 break 2
37605 done
37606 done
37607 IFS=$as_save_IFS
37610 esac
37612 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37613 if test -n "$ac_pt_PG_CONFIG"; then
37614 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37615 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37616 else
37617 { echo "$as_me:$LINENO: result: no" >&5
37618 echo "${ECHO_T}no" >&6; }
37621 if test "x$ac_pt_PG_CONFIG" = x; then
37622 PG_CONFIG="No"
37623 else
37624 case $cross_compiling:$ac_tool_warned in
37625 yes:)
37626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37627 whose name does not start with the host triplet. If you think this
37628 configuration is useful to you, please write to autoconf@gnu.org." >&5
37629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37630 whose name does not start with the host triplet. If you think this
37631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37632 ac_tool_warned=yes ;;
37633 esac
37634 PG_CONFIG=$ac_pt_PG_CONFIG
37636 else
37637 PG_CONFIG="$ac_cv_path_PG_CONFIG"
37640 if test x"${PG_CONFIG}" = xNo; then
37641 { echo "$as_me:$LINENO: ***" >&5
37642 echo "$as_me: ***" >&6;}
37643 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
37644 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
37645 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
37646 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
37647 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37648 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37649 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37650 echo "$as_me: *** including --without-postgres" >&6;}
37651 exit 1
37653 else
37654 if test -n "$ac_tool_prefix"; then
37655 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37656 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37659 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37660 echo $ECHO_N "(cached) $ECHO_C" >&6
37661 else
37662 case $PG_CONFIG in
37663 [\\/]* | ?:[\\/]*)
37664 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37668 for as_dir in $PATH
37670 IFS=$as_save_IFS
37671 test -z "$as_dir" && as_dir=.
37672 for ac_exec_ext in '' $ac_executable_extensions; do
37673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37674 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37676 break 2
37678 done
37679 done
37680 IFS=$as_save_IFS
37683 esac
37685 PG_CONFIG=$ac_cv_path_PG_CONFIG
37686 if test -n "$PG_CONFIG"; then
37687 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37688 echo "${ECHO_T}$PG_CONFIG" >&6; }
37689 else
37690 { echo "$as_me:$LINENO: result: no" >&5
37691 echo "${ECHO_T}no" >&6; }
37696 if test -z "$ac_cv_path_PG_CONFIG"; then
37697 ac_pt_PG_CONFIG=$PG_CONFIG
37698 # Extract the first word of "pg_config", so it can be a program name with args.
37699 set dummy pg_config; ac_word=$2
37700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37702 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
37703 echo $ECHO_N "(cached) $ECHO_C" >&6
37704 else
37705 case $ac_pt_PG_CONFIG in
37706 [\\/]* | ?:[\\/]*)
37707 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
37710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37711 for as_dir in $PATH
37713 IFS=$as_save_IFS
37714 test -z "$as_dir" && as_dir=.
37715 for ac_exec_ext in '' $ac_executable_extensions; do
37716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37717 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37719 break 2
37721 done
37722 done
37723 IFS=$as_save_IFS
37726 esac
37728 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
37729 if test -n "$ac_pt_PG_CONFIG"; then
37730 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
37731 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
37732 else
37733 { echo "$as_me:$LINENO: result: no" >&5
37734 echo "${ECHO_T}no" >&6; }
37737 if test "x$ac_pt_PG_CONFIG" = x; then
37738 PG_CONFIG="No"
37739 else
37740 case $cross_compiling:$ac_tool_warned in
37741 yes:)
37742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37743 whose name does not start with the host triplet. If you think this
37744 configuration is useful to you, please write to autoconf@gnu.org." >&5
37745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37746 whose name does not start with the host triplet. If you think this
37747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37748 ac_tool_warned=yes ;;
37749 esac
37750 PG_CONFIG=$ac_pt_PG_CONFIG
37752 else
37753 PG_CONFIG="$ac_cv_path_PG_CONFIG"
37758 if test "${PG_CONFIG}" != No; then
37759 PGSQL_libdir=`${PG_CONFIG} --libdir`
37760 PGSQL_includedir=`${PG_CONFIG} --includedir`
37761 if test "x$?" != "x0" ; then
37762 if test -n "${PGSQL_MANDATORY}" ; then
37763 { echo "$as_me:$LINENO: ***" >&5
37764 echo "$as_me: ***" >&6;}
37765 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
37766 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
37767 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37768 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37769 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37770 echo "$as_me: *** including --without-postgres" >&6;}
37771 exit 1
37773 else
37774 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
37775 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
37776 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
37777 echo $ECHO_N "(cached) $ECHO_C" >&6
37778 else
37779 ac_check_lib_save_LIBS=$LIBS
37780 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
37781 cat >conftest.$ac_ext <<_ACEOF
37782 /* confdefs.h. */
37783 _ACEOF
37784 cat confdefs.h >>conftest.$ac_ext
37785 cat >>conftest.$ac_ext <<_ACEOF
37786 /* end confdefs.h. */
37788 /* Override any GCC internal prototype to avoid an error.
37789 Use char because int might match the return type of a GCC
37790 builtin and then its argument prototype would still apply. */
37791 #ifdef __cplusplus
37792 extern "C"
37793 #endif
37794 char PQescapeStringConn ();
37796 main ()
37798 return PQescapeStringConn ();
37800 return 0;
37802 _ACEOF
37803 rm -f conftest.$ac_objext conftest$ac_exeext
37804 if { (ac_try="$ac_link"
37805 case "(($ac_try" in
37806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37807 *) ac_try_echo=$ac_try;;
37808 esac
37809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37810 (eval "$ac_link") 2>conftest.er1
37811 ac_status=$?
37812 grep -v '^ *+' conftest.er1 >conftest.err
37813 rm -f conftest.er1
37814 cat conftest.err >&5
37815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37816 (exit $ac_status); } && {
37817 test -z "$ac_c_werror_flag" ||
37818 test ! -s conftest.err
37819 } && test -s conftest$ac_exeext &&
37820 $as_test_x conftest$ac_exeext; then
37821 ac_cv_lib_pq_PQescapeStringConn=yes
37822 else
37823 echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.$ac_ext >&5
37826 ac_cv_lib_pq_PQescapeStringConn=no
37829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37830 conftest$ac_exeext conftest.$ac_ext
37831 LIBS=$ac_check_lib_save_LIBS
37833 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
37834 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
37835 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
37837 cat >>confdefs.h <<_ACEOF
37838 #define HAVE_PGSQL 1
37839 _ACEOF
37844 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
37845 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
37846 PGSQL_INCLUDE="-I${PGSQL_includedir}"
37847 PBX_PGSQL=1
37848 elif test -n "${PGSQL_MANDATORY}";
37849 then
37850 { echo "$as_me:$LINENO: ***" >&5
37851 echo "$as_me: ***" >&6;}
37852 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
37853 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
37854 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
37855 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
37856 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
37857 echo "$as_me: *** including --without-postgres" >&6;}
37858 exit 1
37864 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
37865 pbxlibdir=""
37866 # if --with-POPT=DIR has been specified, use it.
37867 if test "x${POPT_DIR}" != "x"; then
37868 if test -d ${POPT_DIR}/lib; then
37869 pbxlibdir="-L${POPT_DIR}/lib"
37870 else
37871 pbxlibdir="-L${POPT_DIR}"
37874 pbxfuncname="poptStrerror"
37875 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37876 AST_POPT_FOUND=yes
37877 else
37878 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
37879 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
37880 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
37881 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37882 echo $ECHO_N "(cached) $ECHO_C" >&6
37883 else
37884 ac_check_lib_save_LIBS=$LIBS
37885 LIBS="-lpopt ${pbxlibdir} $LIBS"
37886 cat >conftest.$ac_ext <<_ACEOF
37887 /* confdefs.h. */
37888 _ACEOF
37889 cat confdefs.h >>conftest.$ac_ext
37890 cat >>conftest.$ac_ext <<_ACEOF
37891 /* end confdefs.h. */
37893 /* Override any GCC internal prototype to avoid an error.
37894 Use char because int might match the return type of a GCC
37895 builtin and then its argument prototype would still apply. */
37896 #ifdef __cplusplus
37897 extern "C"
37898 #endif
37899 char ${pbxfuncname} ();
37901 main ()
37903 return ${pbxfuncname} ();
37905 return 0;
37907 _ACEOF
37908 rm -f conftest.$ac_objext conftest$ac_exeext
37909 if { (ac_try="$ac_link"
37910 case "(($ac_try" in
37911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37912 *) ac_try_echo=$ac_try;;
37913 esac
37914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37915 (eval "$ac_link") 2>conftest.er1
37916 ac_status=$?
37917 grep -v '^ *+' conftest.er1 >conftest.err
37918 rm -f conftest.er1
37919 cat conftest.err >&5
37920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921 (exit $ac_status); } && {
37922 test -z "$ac_c_werror_flag" ||
37923 test ! -s conftest.err
37924 } && test -s conftest$ac_exeext &&
37925 $as_test_x conftest$ac_exeext; then
37926 eval "$as_ac_Lib=yes"
37927 else
37928 echo "$as_me: failed program was:" >&5
37929 sed 's/^/| /' conftest.$ac_ext >&5
37931 eval "$as_ac_Lib=no"
37934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37935 conftest$ac_exeext conftest.$ac_ext
37936 LIBS=$ac_check_lib_save_LIBS
37938 ac_res=`eval echo '${'$as_ac_Lib'}'`
37939 { echo "$as_me:$LINENO: result: $ac_res" >&5
37940 echo "${ECHO_T}$ac_res" >&6; }
37941 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37942 AST_POPT_FOUND=yes
37943 else
37944 AST_POPT_FOUND=no
37949 # now check for the header.
37950 if test "${AST_POPT_FOUND}" = "yes"; then
37951 POPT_LIB="${pbxlibdir} -lpopt "
37952 # if --with-POPT=DIR has been specified, use it.
37953 if test "x${POPT_DIR}" != "x"; then
37954 POPT_INCLUDE="-I${POPT_DIR}/include"
37956 POPT_INCLUDE="${POPT_INCLUDE} "
37957 if test "xpopt.h" = "x" ; then # no header, assume found
37958 POPT_HEADER_FOUND="1"
37959 else # check for the header
37960 saved_cppflags="${CPPFLAGS}"
37961 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE} "
37962 if test "${ac_cv_header_popt_h+set}" = set; then
37963 { echo "$as_me:$LINENO: checking for popt.h" >&5
37964 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
37965 if test "${ac_cv_header_popt_h+set}" = set; then
37966 echo $ECHO_N "(cached) $ECHO_C" >&6
37968 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
37969 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
37970 else
37971 # Is the header compilable?
37972 { echo "$as_me:$LINENO: checking popt.h usability" >&5
37973 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
37974 cat >conftest.$ac_ext <<_ACEOF
37975 /* confdefs.h. */
37976 _ACEOF
37977 cat confdefs.h >>conftest.$ac_ext
37978 cat >>conftest.$ac_ext <<_ACEOF
37979 /* end confdefs.h. */
37980 $ac_includes_default
37981 #include <popt.h>
37982 _ACEOF
37983 rm -f conftest.$ac_objext
37984 if { (ac_try="$ac_compile"
37985 case "(($ac_try" in
37986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37987 *) ac_try_echo=$ac_try;;
37988 esac
37989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37990 (eval "$ac_compile") 2>conftest.er1
37991 ac_status=$?
37992 grep -v '^ *+' conftest.er1 >conftest.err
37993 rm -f conftest.er1
37994 cat conftest.err >&5
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); } && {
37997 test -z "$ac_c_werror_flag" ||
37998 test ! -s conftest.err
37999 } && test -s conftest.$ac_objext; then
38000 ac_header_compiler=yes
38001 else
38002 echo "$as_me: failed program was:" >&5
38003 sed 's/^/| /' conftest.$ac_ext >&5
38005 ac_header_compiler=no
38008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38010 echo "${ECHO_T}$ac_header_compiler" >&6; }
38012 # Is the header present?
38013 { echo "$as_me:$LINENO: checking popt.h presence" >&5
38014 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
38015 cat >conftest.$ac_ext <<_ACEOF
38016 /* confdefs.h. */
38017 _ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h. */
38021 #include <popt.h>
38022 _ACEOF
38023 if { (ac_try="$ac_cpp conftest.$ac_ext"
38024 case "(($ac_try" in
38025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38026 *) ac_try_echo=$ac_try;;
38027 esac
38028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38030 ac_status=$?
38031 grep -v '^ *+' conftest.er1 >conftest.err
38032 rm -f conftest.er1
38033 cat conftest.err >&5
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); } >/dev/null && {
38036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38037 test ! -s conftest.err
38038 }; then
38039 ac_header_preproc=yes
38040 else
38041 echo "$as_me: failed program was:" >&5
38042 sed 's/^/| /' conftest.$ac_ext >&5
38044 ac_header_preproc=no
38047 rm -f conftest.err conftest.$ac_ext
38048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38049 echo "${ECHO_T}$ac_header_preproc" >&6; }
38051 # So? What about this header?
38052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38053 yes:no: )
38054 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
38055 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38056 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
38057 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
38058 ac_header_preproc=yes
38060 no:yes:* )
38061 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
38062 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
38063 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
38064 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
38065 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
38066 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
38067 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
38068 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
38069 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
38070 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
38071 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
38072 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
38073 ( cat <<\_ASBOX
38074 ## ------------------------------- ##
38075 ## Report this to www.asterisk.org ##
38076 ## ------------------------------- ##
38077 _ASBOX
38078 ) | sed "s/^/$as_me: WARNING: /" >&2
38080 esac
38081 { echo "$as_me:$LINENO: checking for popt.h" >&5
38082 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38083 if test "${ac_cv_header_popt_h+set}" = set; then
38084 echo $ECHO_N "(cached) $ECHO_C" >&6
38085 else
38086 ac_cv_header_popt_h=$ac_header_preproc
38088 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38089 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38092 if test $ac_cv_header_popt_h = yes; then
38093 POPT_HEADER_FOUND=1
38094 else
38095 POPT_HEADER_FOUND=0
38099 CPPFLAGS="${saved_cppflags}"
38101 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38102 POPT_LIB=""
38103 POPT_INCLUDE=""
38104 else
38105 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38106 POPT_LIB=""
38108 PBX_POPT=1
38109 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38111 cat >>confdefs.h <<_ACEOF
38112 #define HAVE_POPT 1
38113 _ACEOF
38116 cat >>confdefs.h <<_ACEOF
38117 #define HAVE_POPT_VERSION
38118 _ACEOF
38126 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38127 pbxlibdir=""
38128 # if --with-PORTAUDIO=DIR has been specified, use it.
38129 if test "x${PORTAUDIO_DIR}" != "x"; then
38130 if test -d ${PORTAUDIO_DIR}/lib; then
38131 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38132 else
38133 pbxlibdir="-L${PORTAUDIO_DIR}"
38136 pbxfuncname="Pa_GetDeviceCount"
38137 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38138 AST_PORTAUDIO_FOUND=yes
38139 else
38140 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38141 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38142 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38143 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38144 echo $ECHO_N "(cached) $ECHO_C" >&6
38145 else
38146 ac_check_lib_save_LIBS=$LIBS
38147 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38148 cat >conftest.$ac_ext <<_ACEOF
38149 /* confdefs.h. */
38150 _ACEOF
38151 cat confdefs.h >>conftest.$ac_ext
38152 cat >>conftest.$ac_ext <<_ACEOF
38153 /* end confdefs.h. */
38155 /* Override any GCC internal prototype to avoid an error.
38156 Use char because int might match the return type of a GCC
38157 builtin and then its argument prototype would still apply. */
38158 #ifdef __cplusplus
38159 extern "C"
38160 #endif
38161 char ${pbxfuncname} ();
38163 main ()
38165 return ${pbxfuncname} ();
38167 return 0;
38169 _ACEOF
38170 rm -f conftest.$ac_objext conftest$ac_exeext
38171 if { (ac_try="$ac_link"
38172 case "(($ac_try" in
38173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38174 *) ac_try_echo=$ac_try;;
38175 esac
38176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38177 (eval "$ac_link") 2>conftest.er1
38178 ac_status=$?
38179 grep -v '^ *+' conftest.er1 >conftest.err
38180 rm -f conftest.er1
38181 cat conftest.err >&5
38182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38183 (exit $ac_status); } && {
38184 test -z "$ac_c_werror_flag" ||
38185 test ! -s conftest.err
38186 } && test -s conftest$ac_exeext &&
38187 $as_test_x conftest$ac_exeext; then
38188 eval "$as_ac_Lib=yes"
38189 else
38190 echo "$as_me: failed program was:" >&5
38191 sed 's/^/| /' conftest.$ac_ext >&5
38193 eval "$as_ac_Lib=no"
38196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38197 conftest$ac_exeext conftest.$ac_ext
38198 LIBS=$ac_check_lib_save_LIBS
38200 ac_res=`eval echo '${'$as_ac_Lib'}'`
38201 { echo "$as_me:$LINENO: result: $ac_res" >&5
38202 echo "${ECHO_T}$ac_res" >&6; }
38203 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38204 AST_PORTAUDIO_FOUND=yes
38205 else
38206 AST_PORTAUDIO_FOUND=no
38211 # now check for the header.
38212 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38213 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38214 # if --with-PORTAUDIO=DIR has been specified, use it.
38215 if test "x${PORTAUDIO_DIR}" != "x"; then
38216 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38218 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38219 if test "xportaudio.h" = "x" ; then # no header, assume found
38220 PORTAUDIO_HEADER_FOUND="1"
38221 else # check for the header
38222 saved_cppflags="${CPPFLAGS}"
38223 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE} "
38224 if test "${ac_cv_header_portaudio_h+set}" = set; then
38225 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38226 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38227 if test "${ac_cv_header_portaudio_h+set}" = set; then
38228 echo $ECHO_N "(cached) $ECHO_C" >&6
38230 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38231 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38232 else
38233 # Is the header compilable?
38234 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38235 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38236 cat >conftest.$ac_ext <<_ACEOF
38237 /* confdefs.h. */
38238 _ACEOF
38239 cat confdefs.h >>conftest.$ac_ext
38240 cat >>conftest.$ac_ext <<_ACEOF
38241 /* end confdefs.h. */
38242 $ac_includes_default
38243 #include <portaudio.h>
38244 _ACEOF
38245 rm -f conftest.$ac_objext
38246 if { (ac_try="$ac_compile"
38247 case "(($ac_try" in
38248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38249 *) ac_try_echo=$ac_try;;
38250 esac
38251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38252 (eval "$ac_compile") 2>conftest.er1
38253 ac_status=$?
38254 grep -v '^ *+' conftest.er1 >conftest.err
38255 rm -f conftest.er1
38256 cat conftest.err >&5
38257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258 (exit $ac_status); } && {
38259 test -z "$ac_c_werror_flag" ||
38260 test ! -s conftest.err
38261 } && test -s conftest.$ac_objext; then
38262 ac_header_compiler=yes
38263 else
38264 echo "$as_me: failed program was:" >&5
38265 sed 's/^/| /' conftest.$ac_ext >&5
38267 ac_header_compiler=no
38270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38272 echo "${ECHO_T}$ac_header_compiler" >&6; }
38274 # Is the header present?
38275 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38276 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38277 cat >conftest.$ac_ext <<_ACEOF
38278 /* confdefs.h. */
38279 _ACEOF
38280 cat confdefs.h >>conftest.$ac_ext
38281 cat >>conftest.$ac_ext <<_ACEOF
38282 /* end confdefs.h. */
38283 #include <portaudio.h>
38284 _ACEOF
38285 if { (ac_try="$ac_cpp conftest.$ac_ext"
38286 case "(($ac_try" in
38287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38288 *) ac_try_echo=$ac_try;;
38289 esac
38290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38292 ac_status=$?
38293 grep -v '^ *+' conftest.er1 >conftest.err
38294 rm -f conftest.er1
38295 cat conftest.err >&5
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); } >/dev/null && {
38298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38299 test ! -s conftest.err
38300 }; then
38301 ac_header_preproc=yes
38302 else
38303 echo "$as_me: failed program was:" >&5
38304 sed 's/^/| /' conftest.$ac_ext >&5
38306 ac_header_preproc=no
38309 rm -f conftest.err conftest.$ac_ext
38310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38311 echo "${ECHO_T}$ac_header_preproc" >&6; }
38313 # So? What about this header?
38314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38315 yes:no: )
38316 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38317 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38318 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38319 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38320 ac_header_preproc=yes
38322 no:yes:* )
38323 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38324 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38325 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38326 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38327 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38328 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38329 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38330 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38331 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38332 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38333 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38334 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38335 ( cat <<\_ASBOX
38336 ## ------------------------------- ##
38337 ## Report this to www.asterisk.org ##
38338 ## ------------------------------- ##
38339 _ASBOX
38340 ) | sed "s/^/$as_me: WARNING: /" >&2
38342 esac
38343 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38344 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38345 if test "${ac_cv_header_portaudio_h+set}" = set; then
38346 echo $ECHO_N "(cached) $ECHO_C" >&6
38347 else
38348 ac_cv_header_portaudio_h=$ac_header_preproc
38350 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38351 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38354 if test $ac_cv_header_portaudio_h = yes; then
38355 PORTAUDIO_HEADER_FOUND=1
38356 else
38357 PORTAUDIO_HEADER_FOUND=0
38361 CPPFLAGS="${saved_cppflags}"
38363 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38364 PORTAUDIO_LIB=""
38365 PORTAUDIO_INCLUDE=""
38366 else
38367 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38368 PORTAUDIO_LIB=""
38370 PBX_PORTAUDIO=1
38371 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38373 cat >>confdefs.h <<_ACEOF
38374 #define HAVE_PORTAUDIO 1
38375 _ACEOF
38378 cat >>confdefs.h <<_ACEOF
38379 #define HAVE_PORTAUDIO_VERSION
38380 _ACEOF
38388 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38389 pbxlibdir=""
38390 # if --with-PRI=DIR has been specified, use it.
38391 if test "x${PRI_DIR}" != "x"; then
38392 if test -d ${PRI_DIR}/lib; then
38393 pbxlibdir="-L${PRI_DIR}/lib"
38394 else
38395 pbxlibdir="-L${PRI_DIR}"
38398 pbxfuncname="pri_get_version"
38399 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38400 AST_PRI_FOUND=yes
38401 else
38402 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38403 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38404 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38405 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38406 echo $ECHO_N "(cached) $ECHO_C" >&6
38407 else
38408 ac_check_lib_save_LIBS=$LIBS
38409 LIBS="-lpri ${pbxlibdir} $LIBS"
38410 cat >conftest.$ac_ext <<_ACEOF
38411 /* confdefs.h. */
38412 _ACEOF
38413 cat confdefs.h >>conftest.$ac_ext
38414 cat >>conftest.$ac_ext <<_ACEOF
38415 /* end confdefs.h. */
38417 /* Override any GCC internal prototype to avoid an error.
38418 Use char because int might match the return type of a GCC
38419 builtin and then its argument prototype would still apply. */
38420 #ifdef __cplusplus
38421 extern "C"
38422 #endif
38423 char ${pbxfuncname} ();
38425 main ()
38427 return ${pbxfuncname} ();
38429 return 0;
38431 _ACEOF
38432 rm -f conftest.$ac_objext conftest$ac_exeext
38433 if { (ac_try="$ac_link"
38434 case "(($ac_try" in
38435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38436 *) ac_try_echo=$ac_try;;
38437 esac
38438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38439 (eval "$ac_link") 2>conftest.er1
38440 ac_status=$?
38441 grep -v '^ *+' conftest.er1 >conftest.err
38442 rm -f conftest.er1
38443 cat conftest.err >&5
38444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445 (exit $ac_status); } && {
38446 test -z "$ac_c_werror_flag" ||
38447 test ! -s conftest.err
38448 } && test -s conftest$ac_exeext &&
38449 $as_test_x conftest$ac_exeext; then
38450 eval "$as_ac_Lib=yes"
38451 else
38452 echo "$as_me: failed program was:" >&5
38453 sed 's/^/| /' conftest.$ac_ext >&5
38455 eval "$as_ac_Lib=no"
38458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38459 conftest$ac_exeext conftest.$ac_ext
38460 LIBS=$ac_check_lib_save_LIBS
38462 ac_res=`eval echo '${'$as_ac_Lib'}'`
38463 { echo "$as_me:$LINENO: result: $ac_res" >&5
38464 echo "${ECHO_T}$ac_res" >&6; }
38465 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38466 AST_PRI_FOUND=yes
38467 else
38468 AST_PRI_FOUND=no
38473 # now check for the header.
38474 if test "${AST_PRI_FOUND}" = "yes"; then
38475 PRI_LIB="${pbxlibdir} -lpri "
38476 # if --with-PRI=DIR has been specified, use it.
38477 if test "x${PRI_DIR}" != "x"; then
38478 PRI_INCLUDE="-I${PRI_DIR}/include"
38480 PRI_INCLUDE="${PRI_INCLUDE} "
38481 if test "xlibpri.h" = "x" ; then # no header, assume found
38482 PRI_HEADER_FOUND="1"
38483 else # check for the header
38484 saved_cppflags="${CPPFLAGS}"
38485 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE} "
38486 if test "${ac_cv_header_libpri_h+set}" = set; then
38487 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38488 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38489 if test "${ac_cv_header_libpri_h+set}" = set; then
38490 echo $ECHO_N "(cached) $ECHO_C" >&6
38492 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38493 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38494 else
38495 # Is the header compilable?
38496 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38497 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38498 cat >conftest.$ac_ext <<_ACEOF
38499 /* confdefs.h. */
38500 _ACEOF
38501 cat confdefs.h >>conftest.$ac_ext
38502 cat >>conftest.$ac_ext <<_ACEOF
38503 /* end confdefs.h. */
38504 $ac_includes_default
38505 #include <libpri.h>
38506 _ACEOF
38507 rm -f conftest.$ac_objext
38508 if { (ac_try="$ac_compile"
38509 case "(($ac_try" in
38510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38511 *) ac_try_echo=$ac_try;;
38512 esac
38513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38514 (eval "$ac_compile") 2>conftest.er1
38515 ac_status=$?
38516 grep -v '^ *+' conftest.er1 >conftest.err
38517 rm -f conftest.er1
38518 cat conftest.err >&5
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); } && {
38521 test -z "$ac_c_werror_flag" ||
38522 test ! -s conftest.err
38523 } && test -s conftest.$ac_objext; then
38524 ac_header_compiler=yes
38525 else
38526 echo "$as_me: failed program was:" >&5
38527 sed 's/^/| /' conftest.$ac_ext >&5
38529 ac_header_compiler=no
38532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38534 echo "${ECHO_T}$ac_header_compiler" >&6; }
38536 # Is the header present?
38537 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
38538 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
38539 cat >conftest.$ac_ext <<_ACEOF
38540 /* confdefs.h. */
38541 _ACEOF
38542 cat confdefs.h >>conftest.$ac_ext
38543 cat >>conftest.$ac_ext <<_ACEOF
38544 /* end confdefs.h. */
38545 #include <libpri.h>
38546 _ACEOF
38547 if { (ac_try="$ac_cpp conftest.$ac_ext"
38548 case "(($ac_try" in
38549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38550 *) ac_try_echo=$ac_try;;
38551 esac
38552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38554 ac_status=$?
38555 grep -v '^ *+' conftest.er1 >conftest.err
38556 rm -f conftest.er1
38557 cat conftest.err >&5
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); } >/dev/null && {
38560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38561 test ! -s conftest.err
38562 }; then
38563 ac_header_preproc=yes
38564 else
38565 echo "$as_me: failed program was:" >&5
38566 sed 's/^/| /' conftest.$ac_ext >&5
38568 ac_header_preproc=no
38571 rm -f conftest.err conftest.$ac_ext
38572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38573 echo "${ECHO_T}$ac_header_preproc" >&6; }
38575 # So? What about this header?
38576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38577 yes:no: )
38578 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
38579 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38580 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
38581 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
38582 ac_header_preproc=yes
38584 no:yes:* )
38585 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
38586 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
38587 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
38588 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
38589 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
38590 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
38591 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
38592 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
38593 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
38594 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
38595 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
38596 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
38597 ( cat <<\_ASBOX
38598 ## ------------------------------- ##
38599 ## Report this to www.asterisk.org ##
38600 ## ------------------------------- ##
38601 _ASBOX
38602 ) | sed "s/^/$as_me: WARNING: /" >&2
38604 esac
38605 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38606 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38607 if test "${ac_cv_header_libpri_h+set}" = set; then
38608 echo $ECHO_N "(cached) $ECHO_C" >&6
38609 else
38610 ac_cv_header_libpri_h=$ac_header_preproc
38612 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38613 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38616 if test $ac_cv_header_libpri_h = yes; then
38617 PRI_HEADER_FOUND=1
38618 else
38619 PRI_HEADER_FOUND=0
38623 CPPFLAGS="${saved_cppflags}"
38625 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
38626 PRI_LIB=""
38627 PRI_INCLUDE=""
38628 else
38629 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38630 PRI_LIB=""
38632 PBX_PRI=1
38633 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38635 cat >>confdefs.h <<_ACEOF
38636 #define HAVE_PRI 1
38637 _ACEOF
38640 cat >>confdefs.h <<_ACEOF
38641 #define HAVE_PRI_VERSION
38642 _ACEOF
38650 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
38651 pbxlibdir=""
38652 # if --with-SS7=DIR has been specified, use it.
38653 if test "x${SS7_DIR}" != "x"; then
38654 if test -d ${SS7_DIR}/lib; then
38655 pbxlibdir="-L${SS7_DIR}/lib"
38656 else
38657 pbxlibdir="-L${SS7_DIR}"
38660 pbxfuncname="ss7_get_version"
38661 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38662 AST_SS7_FOUND=yes
38663 else
38664 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
38665 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
38666 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
38667 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38668 echo $ECHO_N "(cached) $ECHO_C" >&6
38669 else
38670 ac_check_lib_save_LIBS=$LIBS
38671 LIBS="-lss7 ${pbxlibdir} $LIBS"
38672 cat >conftest.$ac_ext <<_ACEOF
38673 /* confdefs.h. */
38674 _ACEOF
38675 cat confdefs.h >>conftest.$ac_ext
38676 cat >>conftest.$ac_ext <<_ACEOF
38677 /* end confdefs.h. */
38679 /* Override any GCC internal prototype to avoid an error.
38680 Use char because int might match the return type of a GCC
38681 builtin and then its argument prototype would still apply. */
38682 #ifdef __cplusplus
38683 extern "C"
38684 #endif
38685 char ${pbxfuncname} ();
38687 main ()
38689 return ${pbxfuncname} ();
38691 return 0;
38693 _ACEOF
38694 rm -f conftest.$ac_objext conftest$ac_exeext
38695 if { (ac_try="$ac_link"
38696 case "(($ac_try" in
38697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38698 *) ac_try_echo=$ac_try;;
38699 esac
38700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38701 (eval "$ac_link") 2>conftest.er1
38702 ac_status=$?
38703 grep -v '^ *+' conftest.er1 >conftest.err
38704 rm -f conftest.er1
38705 cat conftest.err >&5
38706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707 (exit $ac_status); } && {
38708 test -z "$ac_c_werror_flag" ||
38709 test ! -s conftest.err
38710 } && test -s conftest$ac_exeext &&
38711 $as_test_x conftest$ac_exeext; then
38712 eval "$as_ac_Lib=yes"
38713 else
38714 echo "$as_me: failed program was:" >&5
38715 sed 's/^/| /' conftest.$ac_ext >&5
38717 eval "$as_ac_Lib=no"
38720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38721 conftest$ac_exeext conftest.$ac_ext
38722 LIBS=$ac_check_lib_save_LIBS
38724 ac_res=`eval echo '${'$as_ac_Lib'}'`
38725 { echo "$as_me:$LINENO: result: $ac_res" >&5
38726 echo "${ECHO_T}$ac_res" >&6; }
38727 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38728 AST_SS7_FOUND=yes
38729 else
38730 AST_SS7_FOUND=no
38735 # now check for the header.
38736 if test "${AST_SS7_FOUND}" = "yes"; then
38737 SS7_LIB="${pbxlibdir} -lss7 "
38738 # if --with-SS7=DIR has been specified, use it.
38739 if test "x${SS7_DIR}" != "x"; then
38740 SS7_INCLUDE="-I${SS7_DIR}/include"
38742 SS7_INCLUDE="${SS7_INCLUDE} "
38743 if test "xlibss7.h" = "x" ; then # no header, assume found
38744 SS7_HEADER_FOUND="1"
38745 else # check for the header
38746 saved_cppflags="${CPPFLAGS}"
38747 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE} "
38748 if test "${ac_cv_header_libss7_h+set}" = set; then
38749 { echo "$as_me:$LINENO: checking for libss7.h" >&5
38750 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
38751 if test "${ac_cv_header_libss7_h+set}" = set; then
38752 echo $ECHO_N "(cached) $ECHO_C" >&6
38754 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
38755 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
38756 else
38757 # Is the header compilable?
38758 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
38759 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
38760 cat >conftest.$ac_ext <<_ACEOF
38761 /* confdefs.h. */
38762 _ACEOF
38763 cat confdefs.h >>conftest.$ac_ext
38764 cat >>conftest.$ac_ext <<_ACEOF
38765 /* end confdefs.h. */
38766 $ac_includes_default
38767 #include <libss7.h>
38768 _ACEOF
38769 rm -f conftest.$ac_objext
38770 if { (ac_try="$ac_compile"
38771 case "(($ac_try" in
38772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773 *) ac_try_echo=$ac_try;;
38774 esac
38775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38776 (eval "$ac_compile") 2>conftest.er1
38777 ac_status=$?
38778 grep -v '^ *+' conftest.er1 >conftest.err
38779 rm -f conftest.er1
38780 cat conftest.err >&5
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); } && {
38783 test -z "$ac_c_werror_flag" ||
38784 test ! -s conftest.err
38785 } && test -s conftest.$ac_objext; then
38786 ac_header_compiler=yes
38787 else
38788 echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.$ac_ext >&5
38791 ac_header_compiler=no
38794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38796 echo "${ECHO_T}$ac_header_compiler" >&6; }
38798 # Is the header present?
38799 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
38800 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
38801 cat >conftest.$ac_ext <<_ACEOF
38802 /* confdefs.h. */
38803 _ACEOF
38804 cat confdefs.h >>conftest.$ac_ext
38805 cat >>conftest.$ac_ext <<_ACEOF
38806 /* end confdefs.h. */
38807 #include <libss7.h>
38808 _ACEOF
38809 if { (ac_try="$ac_cpp conftest.$ac_ext"
38810 case "(($ac_try" in
38811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38812 *) ac_try_echo=$ac_try;;
38813 esac
38814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38816 ac_status=$?
38817 grep -v '^ *+' conftest.er1 >conftest.err
38818 rm -f conftest.er1
38819 cat conftest.err >&5
38820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); } >/dev/null && {
38822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38823 test ! -s conftest.err
38824 }; then
38825 ac_header_preproc=yes
38826 else
38827 echo "$as_me: failed program was:" >&5
38828 sed 's/^/| /' conftest.$ac_ext >&5
38830 ac_header_preproc=no
38833 rm -f conftest.err conftest.$ac_ext
38834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38835 echo "${ECHO_T}$ac_header_preproc" >&6; }
38837 # So? What about this header?
38838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38839 yes:no: )
38840 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
38841 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38842 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
38843 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
38844 ac_header_preproc=yes
38846 no:yes:* )
38847 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
38848 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
38849 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
38850 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
38851 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
38852 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
38853 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
38854 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
38855 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
38856 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
38857 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
38858 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
38859 ( cat <<\_ASBOX
38860 ## ------------------------------- ##
38861 ## Report this to www.asterisk.org ##
38862 ## ------------------------------- ##
38863 _ASBOX
38864 ) | sed "s/^/$as_me: WARNING: /" >&2
38866 esac
38867 { echo "$as_me:$LINENO: checking for libss7.h" >&5
38868 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
38869 if test "${ac_cv_header_libss7_h+set}" = set; then
38870 echo $ECHO_N "(cached) $ECHO_C" >&6
38871 else
38872 ac_cv_header_libss7_h=$ac_header_preproc
38874 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
38875 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
38878 if test $ac_cv_header_libss7_h = yes; then
38879 SS7_HEADER_FOUND=1
38880 else
38881 SS7_HEADER_FOUND=0
38885 CPPFLAGS="${saved_cppflags}"
38887 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
38888 SS7_LIB=""
38889 SS7_INCLUDE=""
38890 else
38891 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38892 SS7_LIB=""
38894 PBX_SS7=1
38895 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38897 cat >>confdefs.h <<_ACEOF
38898 #define HAVE_SS7 1
38899 _ACEOF
38902 cat >>confdefs.h <<_ACEOF
38903 #define HAVE_SS7_VERSION
38904 _ACEOF
38911 if test "${USE_PWLIB}" != "no"; then
38912 if test -n "${PWLIB_DIR}"; then
38913 PWLIBDIR="${PWLIB_DIR}"
38918 PWLIB_INCDIR=
38919 PWLIB_LIBDIR=
38920 ac_ext=cpp
38921 ac_cpp='$CXXCPP $CPPFLAGS'
38922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38926 if test "${PWLIBDIR:-unset}" != "unset" ; then
38927 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
38928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38929 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
38930 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
38931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38932 echo $ECHO_N "(cached) $ECHO_C" >&6
38934 ac_res=`eval echo '${'$as_ac_Header'}'`
38935 { echo "$as_me:$LINENO: result: $ac_res" >&5
38936 echo "${ECHO_T}$ac_res" >&6; }
38937 else
38938 # Is the header compilable?
38939 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
38940 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
38941 cat >conftest.$ac_ext <<_ACEOF
38942 /* confdefs.h. */
38943 _ACEOF
38944 cat confdefs.h >>conftest.$ac_ext
38945 cat >>conftest.$ac_ext <<_ACEOF
38946 /* end confdefs.h. */
38947 $ac_includes_default
38948 #include <${PWLIBDIR}/version.h>
38949 _ACEOF
38950 rm -f conftest.$ac_objext
38951 if { (ac_try="$ac_compile"
38952 case "(($ac_try" in
38953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38954 *) ac_try_echo=$ac_try;;
38955 esac
38956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38957 (eval "$ac_compile") 2>conftest.er1
38958 ac_status=$?
38959 grep -v '^ *+' conftest.er1 >conftest.err
38960 rm -f conftest.er1
38961 cat conftest.err >&5
38962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963 (exit $ac_status); } && {
38964 test -z "$ac_cxx_werror_flag" ||
38965 test ! -s conftest.err
38966 } && test -s conftest.$ac_objext; then
38967 ac_header_compiler=yes
38968 else
38969 echo "$as_me: failed program was:" >&5
38970 sed 's/^/| /' conftest.$ac_ext >&5
38972 ac_header_compiler=no
38975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38977 echo "${ECHO_T}$ac_header_compiler" >&6; }
38979 # Is the header present?
38980 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
38981 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
38982 cat >conftest.$ac_ext <<_ACEOF
38983 /* confdefs.h. */
38984 _ACEOF
38985 cat confdefs.h >>conftest.$ac_ext
38986 cat >>conftest.$ac_ext <<_ACEOF
38987 /* end confdefs.h. */
38988 #include <${PWLIBDIR}/version.h>
38989 _ACEOF
38990 if { (ac_try="$ac_cpp conftest.$ac_ext"
38991 case "(($ac_try" in
38992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38993 *) ac_try_echo=$ac_try;;
38994 esac
38995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38997 ac_status=$?
38998 grep -v '^ *+' conftest.er1 >conftest.err
38999 rm -f conftest.er1
39000 cat conftest.err >&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); } >/dev/null && {
39003 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39004 test ! -s conftest.err
39005 }; then
39006 ac_header_preproc=yes
39007 else
39008 echo "$as_me: failed program was:" >&5
39009 sed 's/^/| /' conftest.$ac_ext >&5
39011 ac_header_preproc=no
39014 rm -f conftest.err conftest.$ac_ext
39015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39016 echo "${ECHO_T}$ac_header_preproc" >&6; }
39018 # So? What about this header?
39019 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39020 yes:no: )
39021 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39022 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39023 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
39024 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
39025 ac_header_preproc=yes
39027 no:yes:* )
39028 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
39029 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
39030 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
39031 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
39032 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
39033 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
39034 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
39035 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39036 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
39037 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
39038 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
39039 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
39040 ( cat <<\_ASBOX
39041 ## ------------------------------- ##
39042 ## Report this to www.asterisk.org ##
39043 ## ------------------------------- ##
39044 _ASBOX
39045 ) | sed "s/^/$as_me: WARNING: /" >&2
39047 esac
39048 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39049 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39051 echo $ECHO_N "(cached) $ECHO_C" >&6
39052 else
39053 eval "$as_ac_Header=\$ac_header_preproc"
39055 ac_res=`eval echo '${'$as_ac_Header'}'`
39056 { echo "$as_me:$LINENO: result: $ac_res" >&5
39057 echo "${ECHO_T}$ac_res" >&6; }
39060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39061 HAS_PWLIB=1
39066 if test "${HAS_PWLIB:-unset}" = "unset" ; then
39067 if test "${OPENH323DIR:-unset}" != "unset"; then
39068 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
39069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39070 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39071 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39073 echo $ECHO_N "(cached) $ECHO_C" >&6
39075 ac_res=`eval echo '${'$as_ac_Header'}'`
39076 { echo "$as_me:$LINENO: result: $ac_res" >&5
39077 echo "${ECHO_T}$ac_res" >&6; }
39078 else
39079 # Is the header compilable?
39080 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
39081 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
39082 cat >conftest.$ac_ext <<_ACEOF
39083 /* confdefs.h. */
39084 _ACEOF
39085 cat confdefs.h >>conftest.$ac_ext
39086 cat >>conftest.$ac_ext <<_ACEOF
39087 /* end confdefs.h. */
39088 $ac_includes_default
39089 #include <${OPENH323DIR}/../pwlib/version.h>
39090 _ACEOF
39091 rm -f conftest.$ac_objext
39092 if { (ac_try="$ac_compile"
39093 case "(($ac_try" in
39094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39095 *) ac_try_echo=$ac_try;;
39096 esac
39097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39098 (eval "$ac_compile") 2>conftest.er1
39099 ac_status=$?
39100 grep -v '^ *+' conftest.er1 >conftest.err
39101 rm -f conftest.er1
39102 cat conftest.err >&5
39103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104 (exit $ac_status); } && {
39105 test -z "$ac_cxx_werror_flag" ||
39106 test ! -s conftest.err
39107 } && test -s conftest.$ac_objext; then
39108 ac_header_compiler=yes
39109 else
39110 echo "$as_me: failed program was:" >&5
39111 sed 's/^/| /' conftest.$ac_ext >&5
39113 ac_header_compiler=no
39116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39118 echo "${ECHO_T}$ac_header_compiler" >&6; }
39120 # Is the header present?
39121 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
39122 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
39123 cat >conftest.$ac_ext <<_ACEOF
39124 /* confdefs.h. */
39125 _ACEOF
39126 cat confdefs.h >>conftest.$ac_ext
39127 cat >>conftest.$ac_ext <<_ACEOF
39128 /* end confdefs.h. */
39129 #include <${OPENH323DIR}/../pwlib/version.h>
39130 _ACEOF
39131 if { (ac_try="$ac_cpp conftest.$ac_ext"
39132 case "(($ac_try" in
39133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39134 *) ac_try_echo=$ac_try;;
39135 esac
39136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39138 ac_status=$?
39139 grep -v '^ *+' conftest.er1 >conftest.err
39140 rm -f conftest.er1
39141 cat conftest.err >&5
39142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143 (exit $ac_status); } >/dev/null && {
39144 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39145 test ! -s conftest.err
39146 }; then
39147 ac_header_preproc=yes
39148 else
39149 echo "$as_me: failed program was:" >&5
39150 sed 's/^/| /' conftest.$ac_ext >&5
39152 ac_header_preproc=no
39155 rm -f conftest.err conftest.$ac_ext
39156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39157 echo "${ECHO_T}$ac_header_preproc" >&6; }
39159 # So? What about this header?
39160 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39161 yes:no: )
39162 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39163 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39164 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
39165 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
39166 ac_header_preproc=yes
39168 no:yes:* )
39169 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
39170 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
39171 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
39172 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
39173 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
39174 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
39175 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
39176 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39177 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
39178 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
39179 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
39180 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
39181 ( cat <<\_ASBOX
39182 ## ------------------------------- ##
39183 ## Report this to www.asterisk.org ##
39184 ## ------------------------------- ##
39185 _ASBOX
39186 ) | sed "s/^/$as_me: WARNING: /" >&2
39188 esac
39189 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39190 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39192 echo $ECHO_N "(cached) $ECHO_C" >&6
39193 else
39194 eval "$as_ac_Header=\$ac_header_preproc"
39196 ac_res=`eval echo '${'$as_ac_Header'}'`
39197 { echo "$as_me:$LINENO: result: $ac_res" >&5
39198 echo "${ECHO_T}$ac_res" >&6; }
39201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39202 HAS_PWLIB=1
39207 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39208 PWLIBDIR="${OPENH323DIR}/../pwlib"
39209 else
39210 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
39211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39212 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39213 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39215 echo $ECHO_N "(cached) $ECHO_C" >&6
39217 ac_res=`eval echo '${'$as_ac_Header'}'`
39218 { echo "$as_me:$LINENO: result: $ac_res" >&5
39219 echo "${ECHO_T}$ac_res" >&6; }
39220 else
39221 # Is the header compilable?
39222 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
39223 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
39224 cat >conftest.$ac_ext <<_ACEOF
39225 /* confdefs.h. */
39226 _ACEOF
39227 cat confdefs.h >>conftest.$ac_ext
39228 cat >>conftest.$ac_ext <<_ACEOF
39229 /* end confdefs.h. */
39230 $ac_includes_default
39231 #include <${HOME}/pwlib/include/ptlib.h>
39232 _ACEOF
39233 rm -f conftest.$ac_objext
39234 if { (ac_try="$ac_compile"
39235 case "(($ac_try" in
39236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39237 *) ac_try_echo=$ac_try;;
39238 esac
39239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39240 (eval "$ac_compile") 2>conftest.er1
39241 ac_status=$?
39242 grep -v '^ *+' conftest.er1 >conftest.err
39243 rm -f conftest.er1
39244 cat conftest.err >&5
39245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246 (exit $ac_status); } && {
39247 test -z "$ac_cxx_werror_flag" ||
39248 test ! -s conftest.err
39249 } && test -s conftest.$ac_objext; then
39250 ac_header_compiler=yes
39251 else
39252 echo "$as_me: failed program was:" >&5
39253 sed 's/^/| /' conftest.$ac_ext >&5
39255 ac_header_compiler=no
39258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39260 echo "${ECHO_T}$ac_header_compiler" >&6; }
39262 # Is the header present?
39263 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
39264 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
39265 cat >conftest.$ac_ext <<_ACEOF
39266 /* confdefs.h. */
39267 _ACEOF
39268 cat confdefs.h >>conftest.$ac_ext
39269 cat >>conftest.$ac_ext <<_ACEOF
39270 /* end confdefs.h. */
39271 #include <${HOME}/pwlib/include/ptlib.h>
39272 _ACEOF
39273 if { (ac_try="$ac_cpp conftest.$ac_ext"
39274 case "(($ac_try" in
39275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39276 *) ac_try_echo=$ac_try;;
39277 esac
39278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39280 ac_status=$?
39281 grep -v '^ *+' conftest.er1 >conftest.err
39282 rm -f conftest.er1
39283 cat conftest.err >&5
39284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 (exit $ac_status); } >/dev/null && {
39286 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39287 test ! -s conftest.err
39288 }; then
39289 ac_header_preproc=yes
39290 else
39291 echo "$as_me: failed program was:" >&5
39292 sed 's/^/| /' conftest.$ac_ext >&5
39294 ac_header_preproc=no
39297 rm -f conftest.err conftest.$ac_ext
39298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39299 echo "${ECHO_T}$ac_header_preproc" >&6; }
39301 # So? What about this header?
39302 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39303 yes:no: )
39304 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39305 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39306 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
39307 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
39308 ac_header_preproc=yes
39310 no:yes:* )
39311 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
39312 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
39313 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
39314 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39315 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
39316 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
39317 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39318 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39319 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
39320 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39321 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
39322 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39323 ( cat <<\_ASBOX
39324 ## ------------------------------- ##
39325 ## Report this to www.asterisk.org ##
39326 ## ------------------------------- ##
39327 _ASBOX
39328 ) | sed "s/^/$as_me: WARNING: /" >&2
39330 esac
39331 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39332 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39334 echo $ECHO_N "(cached) $ECHO_C" >&6
39335 else
39336 eval "$as_ac_Header=\$ac_header_preproc"
39338 ac_res=`eval echo '${'$as_ac_Header'}'`
39339 { echo "$as_me:$LINENO: result: $ac_res" >&5
39340 echo "${ECHO_T}$ac_res" >&6; }
39343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39344 HAS_PWLIB=1
39348 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39349 PWLIBDIR="${HOME}/pwlib"
39350 else
39351 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39352 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
39353 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
39354 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39355 echo $ECHO_N "(cached) $ECHO_C" >&6
39357 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
39358 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
39359 else
39360 # Is the header compilable?
39361 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
39362 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
39363 cat >conftest.$ac_ext <<_ACEOF
39364 /* confdefs.h. */
39365 _ACEOF
39366 cat confdefs.h >>conftest.$ac_ext
39367 cat >>conftest.$ac_ext <<_ACEOF
39368 /* end confdefs.h. */
39369 $ac_includes_default
39370 #include </usr/local/include/ptlib.h>
39371 _ACEOF
39372 rm -f conftest.$ac_objext
39373 if { (ac_try="$ac_compile"
39374 case "(($ac_try" in
39375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39376 *) ac_try_echo=$ac_try;;
39377 esac
39378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39379 (eval "$ac_compile") 2>conftest.er1
39380 ac_status=$?
39381 grep -v '^ *+' conftest.er1 >conftest.err
39382 rm -f conftest.er1
39383 cat conftest.err >&5
39384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); } && {
39386 test -z "$ac_cxx_werror_flag" ||
39387 test ! -s conftest.err
39388 } && test -s conftest.$ac_objext; then
39389 ac_header_compiler=yes
39390 else
39391 echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39394 ac_header_compiler=no
39397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39399 echo "${ECHO_T}$ac_header_compiler" >&6; }
39401 # Is the header present?
39402 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
39403 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
39404 cat >conftest.$ac_ext <<_ACEOF
39405 /* confdefs.h. */
39406 _ACEOF
39407 cat confdefs.h >>conftest.$ac_ext
39408 cat >>conftest.$ac_ext <<_ACEOF
39409 /* end confdefs.h. */
39410 #include </usr/local/include/ptlib.h>
39411 _ACEOF
39412 if { (ac_try="$ac_cpp conftest.$ac_ext"
39413 case "(($ac_try" in
39414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39415 *) ac_try_echo=$ac_try;;
39416 esac
39417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39419 ac_status=$?
39420 grep -v '^ *+' conftest.er1 >conftest.err
39421 rm -f conftest.er1
39422 cat conftest.err >&5
39423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424 (exit $ac_status); } >/dev/null && {
39425 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39426 test ! -s conftest.err
39427 }; then
39428 ac_header_preproc=yes
39429 else
39430 echo "$as_me: failed program was:" >&5
39431 sed 's/^/| /' conftest.$ac_ext >&5
39433 ac_header_preproc=no
39436 rm -f conftest.err conftest.$ac_ext
39437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39438 echo "${ECHO_T}$ac_header_preproc" >&6; }
39440 # So? What about this header?
39441 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39442 yes:no: )
39443 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39444 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39445 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
39446 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
39447 ac_header_preproc=yes
39449 no:yes:* )
39450 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
39451 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
39452 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
39453 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39454 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
39455 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
39456 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39457 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39458 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
39459 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39460 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
39461 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39462 ( cat <<\_ASBOX
39463 ## ------------------------------- ##
39464 ## Report this to www.asterisk.org ##
39465 ## ------------------------------- ##
39466 _ASBOX
39467 ) | sed "s/^/$as_me: WARNING: /" >&2
39469 esac
39470 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
39471 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
39472 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
39473 echo $ECHO_N "(cached) $ECHO_C" >&6
39474 else
39475 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
39477 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
39478 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
39481 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
39482 HAS_PWLIB=1
39486 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39487 # Extract the first word of "ptlib-config", so it can be a program name with args.
39488 set dummy ptlib-config; ac_word=$2
39489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39491 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39492 echo $ECHO_N "(cached) $ECHO_C" >&6
39493 else
39494 case $PTLIB_CONFIG in
39495 [\\/]* | ?:[\\/]*)
39496 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39500 for as_dir in /usr/local/bin
39502 IFS=$as_save_IFS
39503 test -z "$as_dir" && as_dir=.
39504 for ac_exec_ext in '' $ac_executable_extensions; do
39505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39506 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39508 break 2
39510 done
39511 done
39512 IFS=$as_save_IFS
39515 esac
39517 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
39518 if test -n "$PTLIB_CONFIG"; then
39519 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
39520 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
39521 else
39522 { echo "$as_me:$LINENO: result: no" >&5
39523 echo "${ECHO_T}no" >&6; }
39527 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
39528 # Extract the first word of "ptlib-config", so it can be a program name with args.
39529 set dummy ptlib-config; ac_word=$2
39530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39532 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39533 echo $ECHO_N "(cached) $ECHO_C" >&6
39534 else
39535 case $PTLIB_CONFIG in
39536 [\\/]* | ?:[\\/]*)
39537 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39541 for as_dir in /usr/local/share/pwlib/make
39543 IFS=$as_save_IFS
39544 test -z "$as_dir" && as_dir=.
39545 for ac_exec_ext in '' $ac_executable_extensions; do
39546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39547 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39549 break 2
39551 done
39552 done
39553 IFS=$as_save_IFS
39556 esac
39558 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
39559 if test -n "$PTLIB_CONFIG"; then
39560 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
39561 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
39562 else
39563 { echo "$as_me:$LINENO: result: no" >&5
39564 echo "${ECHO_T}no" >&6; }
39569 PWLIB_INCDIR="/usr/local/include"
39570 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
39571 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
39572 if test "x$LIB64" != "x"; then
39573 PWLIB_LIBDIR="/usr/local/lib64"
39574 else
39575 PWLIB_LIBDIR="/usr/local/lib"
39578 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
39579 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
39580 else
39581 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39582 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
39583 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
39584 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39585 echo $ECHO_N "(cached) $ECHO_C" >&6
39587 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
39588 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
39589 else
39590 # Is the header compilable?
39591 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
39592 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
39593 cat >conftest.$ac_ext <<_ACEOF
39594 /* confdefs.h. */
39595 _ACEOF
39596 cat confdefs.h >>conftest.$ac_ext
39597 cat >>conftest.$ac_ext <<_ACEOF
39598 /* end confdefs.h. */
39599 $ac_includes_default
39600 #include </usr/include/ptlib.h>
39601 _ACEOF
39602 rm -f conftest.$ac_objext
39603 if { (ac_try="$ac_compile"
39604 case "(($ac_try" in
39605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39606 *) ac_try_echo=$ac_try;;
39607 esac
39608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39609 (eval "$ac_compile") 2>conftest.er1
39610 ac_status=$?
39611 grep -v '^ *+' conftest.er1 >conftest.err
39612 rm -f conftest.er1
39613 cat conftest.err >&5
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } && {
39616 test -z "$ac_cxx_werror_flag" ||
39617 test ! -s conftest.err
39618 } && test -s conftest.$ac_objext; then
39619 ac_header_compiler=yes
39620 else
39621 echo "$as_me: failed program was:" >&5
39622 sed 's/^/| /' conftest.$ac_ext >&5
39624 ac_header_compiler=no
39627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39629 echo "${ECHO_T}$ac_header_compiler" >&6; }
39631 # Is the header present?
39632 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
39633 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
39634 cat >conftest.$ac_ext <<_ACEOF
39635 /* confdefs.h. */
39636 _ACEOF
39637 cat confdefs.h >>conftest.$ac_ext
39638 cat >>conftest.$ac_ext <<_ACEOF
39639 /* end confdefs.h. */
39640 #include </usr/include/ptlib.h>
39641 _ACEOF
39642 if { (ac_try="$ac_cpp conftest.$ac_ext"
39643 case "(($ac_try" in
39644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39645 *) ac_try_echo=$ac_try;;
39646 esac
39647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39649 ac_status=$?
39650 grep -v '^ *+' conftest.er1 >conftest.err
39651 rm -f conftest.er1
39652 cat conftest.err >&5
39653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654 (exit $ac_status); } >/dev/null && {
39655 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39656 test ! -s conftest.err
39657 }; then
39658 ac_header_preproc=yes
39659 else
39660 echo "$as_me: failed program was:" >&5
39661 sed 's/^/| /' conftest.$ac_ext >&5
39663 ac_header_preproc=no
39666 rm -f conftest.err conftest.$ac_ext
39667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39668 echo "${ECHO_T}$ac_header_preproc" >&6; }
39670 # So? What about this header?
39671 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39672 yes:no: )
39673 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39674 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39675 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
39676 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
39677 ac_header_preproc=yes
39679 no:yes:* )
39680 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
39681 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
39682 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
39683 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
39684 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
39685 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
39686 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
39687 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39688 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
39689 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
39690 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
39691 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
39692 ( cat <<\_ASBOX
39693 ## ------------------------------- ##
39694 ## Report this to www.asterisk.org ##
39695 ## ------------------------------- ##
39696 _ASBOX
39697 ) | sed "s/^/$as_me: WARNING: /" >&2
39699 esac
39700 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
39701 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
39702 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
39703 echo $ECHO_N "(cached) $ECHO_C" >&6
39704 else
39705 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
39707 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
39708 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
39711 if test $ac_cv_header__usr_include_ptlib_h = yes; then
39712 HAS_PWLIB=1
39716 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39717 # Extract the first word of "ptlib-config", so it can be a program name with args.
39718 set dummy ptlib-config; ac_word=$2
39719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39721 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
39722 echo $ECHO_N "(cached) $ECHO_C" >&6
39723 else
39724 case $PTLIB_CONFIG in
39725 [\\/]* | ?:[\\/]*)
39726 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
39729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39730 for as_dir in /usr/share/pwlib/make
39732 IFS=$as_save_IFS
39733 test -z "$as_dir" && as_dir=.
39734 for ac_exec_ext in '' $ac_executable_extensions; do
39735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39736 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39738 break 2
39740 done
39741 done
39742 IFS=$as_save_IFS
39745 esac
39747 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
39748 if test -n "$PTLIB_CONFIG"; then
39749 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
39750 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
39751 else
39752 { echo "$as_me:$LINENO: result: no" >&5
39753 echo "${ECHO_T}no" >&6; }
39757 PWLIB_INCDIR="/usr/include"
39758 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
39759 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
39760 if test "x$LIB64" != "x"; then
39761 PWLIB_LIBDIR="/usr/lib64"
39762 else
39763 PWLIB_LIBDIR="/usr/lib"
39766 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
39767 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
39774 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
39775 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
39776 # exit
39779 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39780 if test "${PWLIBDIR:-unset}" = "unset" ; then
39781 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
39782 PWLIBDIR=`$PTLIB_CONFIG --prefix`
39783 else
39784 echo "Cannot find ptlib-config - please install and try again"
39785 exit
39789 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
39790 PWLIBDIR="/usr/share/pwlib"
39791 PWLIB_INCDIR="/usr/include"
39792 if test "x$LIB64" != "x"; then
39793 PWLIB_LIBDIR="/usr/lib64"
39794 else
39795 PWLIB_LIBDIR="/usr/lib"
39798 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
39799 PWLIBDIR="/usr/local/share/pwlib"
39800 PWLIB_INCDIR="/usr/local/include"
39801 if test "x$LIB64" != "x"; then
39802 PWLIB_LIBDIR="/usr/local/lib64"
39803 else
39804 PWLIB_LIBDIR="/usr/local/lib"
39808 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
39809 PWLIB_INCDIR="${PWLIBDIR}/include"
39811 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
39812 PWLIB_LIBDIR="${PWLIBDIR}/lib"
39819 ac_ext=c
39820 ac_cpp='$CPP $CPPFLAGS'
39821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39827 if test "${HAS_PWLIB:-unset}" != "unset"; then
39828 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
39829 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
39830 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
39831 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
39832 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
39833 let PWLIB_REQ=1*10000+9*100+2
39835 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
39836 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
39837 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
39838 { echo "$as_me:$LINENO: result: no" >&5
39839 echo "${ECHO_T}no" >&6; }
39840 unset HAS_PWLIB
39841 else
39842 { echo "$as_me:$LINENO: result: yes" >&5
39843 echo "${ECHO_T}yes" >&6; }
39848 if test "${HAS_PWLIB:-unset}" != "unset"; then
39850 PWLIB_OSTYPE=
39851 case "$host_os" in
39852 linux*) PWLIB_OSTYPE=linux ;
39854 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
39856 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
39857 ENDLDLIBS="-lossaudio" ;
39859 netbsd* ) PWLIB_OSTYPE=NetBSD ;
39860 ENDLDLIBS="-lossaudio" ;
39862 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
39864 darwin* ) PWLIB_OSTYPE=Darwin ;
39866 beos*) PWLIB_OSTYPE=beos ;
39867 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
39869 cygwin*) PWLIB_OSTYPE=cygwin ;
39871 mingw*) PWLIB_OSTYPE=mingw ;
39872 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
39873 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
39875 * ) PWLIB_OSTYPE="$host_os" ;
39876 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
39877 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
39879 esac
39881 PWLIB_MACHTYPE=
39882 case "$host_cpu" in
39883 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
39886 x86_64) PWLIB_MACHTYPE=x86_64 ;
39887 P_64BIT=1 ;
39888 LIB64=1 ;
39891 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
39892 P_64BIT=1 ;
39895 sparc ) PWLIB_MACHTYPE=sparc ;
39898 powerpc ) PWLIB_MACHTYPE=ppc ;
39901 ppc ) PWLIB_MACHTYPE=ppc ;
39904 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
39905 P_64BIT=1 ;
39906 LIB64=1 ;
39909 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
39910 P_64BIT=1 ;
39911 LIB64=1 ;
39914 ia64) PWLIB_MACHTYPE=ia64 ;
39915 P_64BIT=1 ;
39918 s390x) PWLIB_MACHTYPE=s390x ;
39919 P_64BIT=1 ;
39920 LIB64=1 ;
39923 s390) PWLIB_MACHTYPE=s390 ;
39926 * ) PWLIB_MACHTYPE="$host_cpu";
39927 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
39928 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
39929 esac
39931 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
39936 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
39939 if test "${HAS_PWLIB:-unset}" != "unset"; then
39940 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
39941 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
39943 saved_cppflags="${CPPFLAGS}"
39944 saved_libs="${LIBS}"
39945 if test "${PWLIB_LIB:-unset}" != "unset"; then
39946 LIBS="${LIBS} ${PWLIB_LIB} "
39947 else
39948 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
39950 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
39952 ac_ext=cpp
39953 ac_cpp='$CXXCPP $CPPFLAGS'
39954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39959 cat >conftest.$ac_ext <<_ACEOF
39960 /* confdefs.h. */
39961 _ACEOF
39962 cat confdefs.h >>conftest.$ac_ext
39963 cat >>conftest.$ac_ext <<_ACEOF
39964 /* end confdefs.h. */
39965 #include "ptlib.h"
39967 main ()
39969 BOOL q = PTime::IsDaylightSavings();
39971 return 0;
39973 _ACEOF
39974 rm -f conftest.$ac_objext conftest$ac_exeext
39975 if { (ac_try="$ac_link"
39976 case "(($ac_try" in
39977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39978 *) ac_try_echo=$ac_try;;
39979 esac
39980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39981 (eval "$ac_link") 2>conftest.er1
39982 ac_status=$?
39983 grep -v '^ *+' conftest.er1 >conftest.err
39984 rm -f conftest.er1
39985 cat conftest.err >&5
39986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39987 (exit $ac_status); } && {
39988 test -z "$ac_cxx_werror_flag" ||
39989 test ! -s conftest.err
39990 } && test -s conftest$ac_exeext &&
39991 $as_test_x conftest$ac_exeext; then
39992 { echo "$as_me:$LINENO: result: yes" >&5
39993 echo "${ECHO_T}yes" >&6; }
39994 ac_cv_lib_PWLIB="yes"
39996 else
39997 echo "$as_me: failed program was:" >&5
39998 sed 's/^/| /' conftest.$ac_ext >&5
40000 { echo "$as_me:$LINENO: result: no" >&5
40001 echo "${ECHO_T}no" >&6; }
40002 ac_cv_lib_PWLIB="no"
40007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40008 conftest$ac_exeext conftest.$ac_ext
40010 ac_ext=c
40011 ac_cpp='$CPP $CPPFLAGS'
40012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40017 LIBS="${saved_libs}"
40018 CPPFLAGS="${saved_cppflags}"
40020 if test "${ac_cv_lib_PWLIB}" = "yes"; then
40021 if test "${PWLIB_LIB:-undef}" = "undef"; then
40022 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
40023 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
40024 else
40025 PWLIB_LIB="-l${PLATFORM_PWLIB}"
40028 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
40029 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
40031 PBX_PWLIB=1
40033 cat >>confdefs.h <<\_ACEOF
40034 #define HAVE_PWLIB 1
40035 _ACEOF
40043 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
40044 if test -n "${OPENH323_DIR}"; then
40045 OPENH323DIR="${OPENH323_DIR}"
40048 OPENH323_INCDIR=
40049 OPENH323_LIBDIR=
40050 ac_ext=cpp
40051 ac_cpp='$CXXCPP $CPPFLAGS'
40052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40056 if test "${OPENH323DIR:-unset}" != "unset" ; then
40057 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
40058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40059 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40060 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40062 echo $ECHO_N "(cached) $ECHO_C" >&6
40064 ac_res=`eval echo '${'$as_ac_Header'}'`
40065 { echo "$as_me:$LINENO: result: $ac_res" >&5
40066 echo "${ECHO_T}$ac_res" >&6; }
40067 else
40068 # Is the header compilable?
40069 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
40070 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
40071 cat >conftest.$ac_ext <<_ACEOF
40072 /* confdefs.h. */
40073 _ACEOF
40074 cat confdefs.h >>conftest.$ac_ext
40075 cat >>conftest.$ac_ext <<_ACEOF
40076 /* end confdefs.h. */
40077 $ac_includes_default
40078 #include <${OPENH323DIR}/version.h>
40079 _ACEOF
40080 rm -f conftest.$ac_objext
40081 if { (ac_try="$ac_compile"
40082 case "(($ac_try" in
40083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40084 *) ac_try_echo=$ac_try;;
40085 esac
40086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40087 (eval "$ac_compile") 2>conftest.er1
40088 ac_status=$?
40089 grep -v '^ *+' conftest.er1 >conftest.err
40090 rm -f conftest.er1
40091 cat conftest.err >&5
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); } && {
40094 test -z "$ac_cxx_werror_flag" ||
40095 test ! -s conftest.err
40096 } && test -s conftest.$ac_objext; then
40097 ac_header_compiler=yes
40098 else
40099 echo "$as_me: failed program was:" >&5
40100 sed 's/^/| /' conftest.$ac_ext >&5
40102 ac_header_compiler=no
40105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40107 echo "${ECHO_T}$ac_header_compiler" >&6; }
40109 # Is the header present?
40110 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
40111 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
40112 cat >conftest.$ac_ext <<_ACEOF
40113 /* confdefs.h. */
40114 _ACEOF
40115 cat confdefs.h >>conftest.$ac_ext
40116 cat >>conftest.$ac_ext <<_ACEOF
40117 /* end confdefs.h. */
40118 #include <${OPENH323DIR}/version.h>
40119 _ACEOF
40120 if { (ac_try="$ac_cpp conftest.$ac_ext"
40121 case "(($ac_try" in
40122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40123 *) ac_try_echo=$ac_try;;
40124 esac
40125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40127 ac_status=$?
40128 grep -v '^ *+' conftest.er1 >conftest.err
40129 rm -f conftest.er1
40130 cat conftest.err >&5
40131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132 (exit $ac_status); } >/dev/null && {
40133 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40134 test ! -s conftest.err
40135 }; then
40136 ac_header_preproc=yes
40137 else
40138 echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40141 ac_header_preproc=no
40144 rm -f conftest.err conftest.$ac_ext
40145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40146 echo "${ECHO_T}$ac_header_preproc" >&6; }
40148 # So? What about this header?
40149 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40150 yes:no: )
40151 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40152 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40153 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
40154 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
40155 ac_header_preproc=yes
40157 no:yes:* )
40158 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
40159 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
40160 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
40161 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
40162 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
40163 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
40164 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40165 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40166 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
40167 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
40168 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
40169 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
40170 ( cat <<\_ASBOX
40171 ## ------------------------------- ##
40172 ## Report this to www.asterisk.org ##
40173 ## ------------------------------- ##
40174 _ASBOX
40175 ) | sed "s/^/$as_me: WARNING: /" >&2
40177 esac
40178 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40179 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40181 echo $ECHO_N "(cached) $ECHO_C" >&6
40182 else
40183 eval "$as_ac_Header=\$ac_header_preproc"
40185 ac_res=`eval echo '${'$as_ac_Header'}'`
40186 { echo "$as_me:$LINENO: result: $ac_res" >&5
40187 echo "${ECHO_T}$ac_res" >&6; }
40190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40191 HAS_OPENH323=1
40196 if test "${HAS_OPENH323:-unset}" = "unset" ; then
40197 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
40198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40199 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40200 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40202 echo $ECHO_N "(cached) $ECHO_C" >&6
40204 ac_res=`eval echo '${'$as_ac_Header'}'`
40205 { echo "$as_me:$LINENO: result: $ac_res" >&5
40206 echo "${ECHO_T}$ac_res" >&6; }
40207 else
40208 # Is the header compilable?
40209 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
40210 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
40211 cat >conftest.$ac_ext <<_ACEOF
40212 /* confdefs.h. */
40213 _ACEOF
40214 cat confdefs.h >>conftest.$ac_ext
40215 cat >>conftest.$ac_ext <<_ACEOF
40216 /* end confdefs.h. */
40217 $ac_includes_default
40218 #include <${PWLIBDIR}/../openh323/version.h>
40219 _ACEOF
40220 rm -f conftest.$ac_objext
40221 if { (ac_try="$ac_compile"
40222 case "(($ac_try" in
40223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40224 *) ac_try_echo=$ac_try;;
40225 esac
40226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40227 (eval "$ac_compile") 2>conftest.er1
40228 ac_status=$?
40229 grep -v '^ *+' conftest.er1 >conftest.err
40230 rm -f conftest.er1
40231 cat conftest.err >&5
40232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233 (exit $ac_status); } && {
40234 test -z "$ac_cxx_werror_flag" ||
40235 test ! -s conftest.err
40236 } && test -s conftest.$ac_objext; then
40237 ac_header_compiler=yes
40238 else
40239 echo "$as_me: failed program was:" >&5
40240 sed 's/^/| /' conftest.$ac_ext >&5
40242 ac_header_compiler=no
40245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40247 echo "${ECHO_T}$ac_header_compiler" >&6; }
40249 # Is the header present?
40250 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
40251 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
40252 cat >conftest.$ac_ext <<_ACEOF
40253 /* confdefs.h. */
40254 _ACEOF
40255 cat confdefs.h >>conftest.$ac_ext
40256 cat >>conftest.$ac_ext <<_ACEOF
40257 /* end confdefs.h. */
40258 #include <${PWLIBDIR}/../openh323/version.h>
40259 _ACEOF
40260 if { (ac_try="$ac_cpp conftest.$ac_ext"
40261 case "(($ac_try" in
40262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40263 *) ac_try_echo=$ac_try;;
40264 esac
40265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40267 ac_status=$?
40268 grep -v '^ *+' conftest.er1 >conftest.err
40269 rm -f conftest.er1
40270 cat conftest.err >&5
40271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40272 (exit $ac_status); } >/dev/null && {
40273 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40274 test ! -s conftest.err
40275 }; then
40276 ac_header_preproc=yes
40277 else
40278 echo "$as_me: failed program was:" >&5
40279 sed 's/^/| /' conftest.$ac_ext >&5
40281 ac_header_preproc=no
40284 rm -f conftest.err conftest.$ac_ext
40285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40286 echo "${ECHO_T}$ac_header_preproc" >&6; }
40288 # So? What about this header?
40289 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40290 yes:no: )
40291 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40292 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40293 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
40294 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
40295 ac_header_preproc=yes
40297 no:yes:* )
40298 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
40299 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
40300 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
40301 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
40302 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
40303 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
40304 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
40305 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40306 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
40307 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
40308 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
40309 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
40310 ( cat <<\_ASBOX
40311 ## ------------------------------- ##
40312 ## Report this to www.asterisk.org ##
40313 ## ------------------------------- ##
40314 _ASBOX
40315 ) | sed "s/^/$as_me: WARNING: /" >&2
40317 esac
40318 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40319 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40321 echo $ECHO_N "(cached) $ECHO_C" >&6
40322 else
40323 eval "$as_ac_Header=\$ac_header_preproc"
40325 ac_res=`eval echo '${'$as_ac_Header'}'`
40326 { echo "$as_me:$LINENO: result: $ac_res" >&5
40327 echo "${ECHO_T}$ac_res" >&6; }
40330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40331 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
40335 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40336 OPENH323DIR="${PWLIBDIR}/../openh323"
40337 saved_cppflags="${CPPFLAGS}"
40338 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
40339 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
40340 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
40341 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
40342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40343 echo $ECHO_N "(cached) $ECHO_C" >&6
40344 else
40345 cat >conftest.$ac_ext <<_ACEOF
40346 /* confdefs.h. */
40347 _ACEOF
40348 cat confdefs.h >>conftest.$ac_ext
40349 cat >>conftest.$ac_ext <<_ACEOF
40350 /* end confdefs.h. */
40351 #include <ptlib.h>
40353 #include <${OPENH323DIR}/include/h323.h>
40354 _ACEOF
40355 rm -f conftest.$ac_objext
40356 if { (ac_try="$ac_compile"
40357 case "(($ac_try" in
40358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40359 *) ac_try_echo=$ac_try;;
40360 esac
40361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40362 (eval "$ac_compile") 2>conftest.er1
40363 ac_status=$?
40364 grep -v '^ *+' conftest.er1 >conftest.err
40365 rm -f conftest.er1
40366 cat conftest.err >&5
40367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368 (exit $ac_status); } && {
40369 test -z "$ac_cxx_werror_flag" ||
40370 test ! -s conftest.err
40371 } && test -s conftest.$ac_objext; then
40372 eval "$as_ac_Header=yes"
40373 else
40374 echo "$as_me: failed program was:" >&5
40375 sed 's/^/| /' conftest.$ac_ext >&5
40377 eval "$as_ac_Header=no"
40380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40382 ac_res=`eval echo '${'$as_ac_Header'}'`
40383 { echo "$as_me:$LINENO: result: $ac_res" >&5
40384 echo "${ECHO_T}$ac_res" >&6; }
40385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40387 else
40388 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
40392 CPPFLAGS="${saved_cppflags}"
40393 else
40394 saved_cppflags="${CPPFLAGS}"
40395 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
40396 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
40397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40398 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
40399 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
40400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40401 echo $ECHO_N "(cached) $ECHO_C" >&6
40403 ac_res=`eval echo '${'$as_ac_Header'}'`
40404 { echo "$as_me:$LINENO: result: $ac_res" >&5
40405 echo "${ECHO_T}$ac_res" >&6; }
40406 else
40407 # Is the header compilable?
40408 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
40409 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
40410 cat >conftest.$ac_ext <<_ACEOF
40411 /* confdefs.h. */
40412 _ACEOF
40413 cat confdefs.h >>conftest.$ac_ext
40414 cat >>conftest.$ac_ext <<_ACEOF
40415 /* end confdefs.h. */
40416 $ac_includes_default
40417 #include <${HOME}/openh323/include/h323.h>
40418 _ACEOF
40419 rm -f conftest.$ac_objext
40420 if { (ac_try="$ac_compile"
40421 case "(($ac_try" in
40422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40423 *) ac_try_echo=$ac_try;;
40424 esac
40425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40426 (eval "$ac_compile") 2>conftest.er1
40427 ac_status=$?
40428 grep -v '^ *+' conftest.er1 >conftest.err
40429 rm -f conftest.er1
40430 cat conftest.err >&5
40431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40432 (exit $ac_status); } && {
40433 test -z "$ac_cxx_werror_flag" ||
40434 test ! -s conftest.err
40435 } && test -s conftest.$ac_objext; then
40436 ac_header_compiler=yes
40437 else
40438 echo "$as_me: failed program was:" >&5
40439 sed 's/^/| /' conftest.$ac_ext >&5
40441 ac_header_compiler=no
40444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40446 echo "${ECHO_T}$ac_header_compiler" >&6; }
40448 # Is the header present?
40449 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
40450 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
40451 cat >conftest.$ac_ext <<_ACEOF
40452 /* confdefs.h. */
40453 _ACEOF
40454 cat confdefs.h >>conftest.$ac_ext
40455 cat >>conftest.$ac_ext <<_ACEOF
40456 /* end confdefs.h. */
40457 #include <${HOME}/openh323/include/h323.h>
40458 _ACEOF
40459 if { (ac_try="$ac_cpp conftest.$ac_ext"
40460 case "(($ac_try" in
40461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40462 *) ac_try_echo=$ac_try;;
40463 esac
40464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40466 ac_status=$?
40467 grep -v '^ *+' conftest.er1 >conftest.err
40468 rm -f conftest.er1
40469 cat conftest.err >&5
40470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471 (exit $ac_status); } >/dev/null && {
40472 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40473 test ! -s conftest.err
40474 }; then
40475 ac_header_preproc=yes
40476 else
40477 echo "$as_me: failed program was:" >&5
40478 sed 's/^/| /' conftest.$ac_ext >&5
40480 ac_header_preproc=no
40483 rm -f conftest.err conftest.$ac_ext
40484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40485 echo "${ECHO_T}$ac_header_preproc" >&6; }
40487 # So? What about this header?
40488 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40489 yes:no: )
40490 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
40491 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40492 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
40493 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
40494 ac_header_preproc=yes
40496 no:yes:* )
40497 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
40498 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
40499 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
40500 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
40501 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
40502 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
40503 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
40504 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
40505 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
40506 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
40507 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
40508 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
40509 ( cat <<\_ASBOX
40510 ## ------------------------------- ##
40511 ## Report this to www.asterisk.org ##
40512 ## ------------------------------- ##
40513 _ASBOX
40514 ) | sed "s/^/$as_me: WARNING: /" >&2
40516 esac
40517 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
40518 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
40519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40520 echo $ECHO_N "(cached) $ECHO_C" >&6
40521 else
40522 eval "$as_ac_Header=\$ac_header_preproc"
40524 ac_res=`eval echo '${'$as_ac_Header'}'`
40525 { echo "$as_me:$LINENO: result: $ac_res" >&5
40526 echo "${ECHO_T}$ac_res" >&6; }
40529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40530 HAS_OPENH323=1
40534 CPPFLAGS="${saved_cppflags}"
40535 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40536 OPENH323DIR="${HOME}/openh323"
40537 else
40538 saved_cppflags="${CPPFLAGS}"
40539 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
40540 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40541 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
40542 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
40543 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40544 echo $ECHO_N "(cached) $ECHO_C" >&6
40546 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
40547 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
40548 else
40549 # Is the header compilable?
40550 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
40551 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
40552 cat >conftest.$ac_ext <<_ACEOF
40553 /* confdefs.h. */
40554 _ACEOF
40555 cat confdefs.h >>conftest.$ac_ext
40556 cat >>conftest.$ac_ext <<_ACEOF
40557 /* end confdefs.h. */
40558 $ac_includes_default
40559 #include </usr/local/include/openh323/h323.h>
40560 _ACEOF
40561 rm -f conftest.$ac_objext
40562 if { (ac_try="$ac_compile"
40563 case "(($ac_try" in
40564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40565 *) ac_try_echo=$ac_try;;
40566 esac
40567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40568 (eval "$ac_compile") 2>conftest.er1
40569 ac_status=$?
40570 grep -v '^ *+' conftest.er1 >conftest.err
40571 rm -f conftest.er1
40572 cat conftest.err >&5
40573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); } && {
40575 test -z "$ac_cxx_werror_flag" ||
40576 test ! -s conftest.err
40577 } && test -s conftest.$ac_objext; then
40578 ac_header_compiler=yes
40579 else
40580 echo "$as_me: failed program was:" >&5
40581 sed 's/^/| /' conftest.$ac_ext >&5
40583 ac_header_compiler=no
40586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40588 echo "${ECHO_T}$ac_header_compiler" >&6; }
40590 # Is the header present?
40591 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
40592 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
40593 cat >conftest.$ac_ext <<_ACEOF
40594 /* confdefs.h. */
40595 _ACEOF
40596 cat confdefs.h >>conftest.$ac_ext
40597 cat >>conftest.$ac_ext <<_ACEOF
40598 /* end confdefs.h. */
40599 #include </usr/local/include/openh323/h323.h>
40600 _ACEOF
40601 if { (ac_try="$ac_cpp conftest.$ac_ext"
40602 case "(($ac_try" in
40603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40604 *) ac_try_echo=$ac_try;;
40605 esac
40606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40608 ac_status=$?
40609 grep -v '^ *+' conftest.er1 >conftest.err
40610 rm -f conftest.er1
40611 cat conftest.err >&5
40612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40613 (exit $ac_status); } >/dev/null && {
40614 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40615 test ! -s conftest.err
40616 }; then
40617 ac_header_preproc=yes
40618 else
40619 echo "$as_me: failed program was:" >&5
40620 sed 's/^/| /' conftest.$ac_ext >&5
40622 ac_header_preproc=no
40625 rm -f conftest.err conftest.$ac_ext
40626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40627 echo "${ECHO_T}$ac_header_preproc" >&6; }
40629 # So? What about this header?
40630 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40631 yes:no: )
40632 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
40633 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40634 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
40635 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
40636 ac_header_preproc=yes
40638 no:yes:* )
40639 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
40640 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
40641 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
40642 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
40643 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
40644 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
40645 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
40646 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
40647 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
40648 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
40649 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
40650 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
40651 ( cat <<\_ASBOX
40652 ## ------------------------------- ##
40653 ## Report this to www.asterisk.org ##
40654 ## ------------------------------- ##
40655 _ASBOX
40656 ) | sed "s/^/$as_me: WARNING: /" >&2
40658 esac
40659 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
40660 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
40661 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
40662 echo $ECHO_N "(cached) $ECHO_C" >&6
40663 else
40664 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
40666 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
40667 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
40670 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
40671 HAS_OPENH323=1
40675 CPPFLAGS="${saved_cppflags}"
40676 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40677 OPENH323DIR="/usr/local/share/openh323"
40678 OPENH323_INCDIR="/usr/local/include/openh323"
40679 if test "x$LIB64" != "x"; then
40680 OPENH323_LIBDIR="/usr/local/lib64"
40681 else
40682 OPENH323_LIBDIR="/usr/local/lib"
40684 else
40685 saved_cppflags="${CPPFLAGS}"
40686 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
40687 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
40688 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
40689 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
40690 echo $ECHO_N "(cached) $ECHO_C" >&6
40691 else
40692 cat >conftest.$ac_ext <<_ACEOF
40693 /* confdefs.h. */
40694 _ACEOF
40695 cat confdefs.h >>conftest.$ac_ext
40696 cat >>conftest.$ac_ext <<_ACEOF
40697 /* end confdefs.h. */
40698 #include <ptlib.h>
40700 #include </usr/include/openh323/h323.h>
40701 _ACEOF
40702 rm -f conftest.$ac_objext
40703 if { (ac_try="$ac_compile"
40704 case "(($ac_try" in
40705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40706 *) ac_try_echo=$ac_try;;
40707 esac
40708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40709 (eval "$ac_compile") 2>conftest.er1
40710 ac_status=$?
40711 grep -v '^ *+' conftest.er1 >conftest.err
40712 rm -f conftest.er1
40713 cat conftest.err >&5
40714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40715 (exit $ac_status); } && {
40716 test -z "$ac_cxx_werror_flag" ||
40717 test ! -s conftest.err
40718 } && test -s conftest.$ac_objext; then
40719 ac_cv_header__usr_include_openh323_h323_h=yes
40720 else
40721 echo "$as_me: failed program was:" >&5
40722 sed 's/^/| /' conftest.$ac_ext >&5
40724 ac_cv_header__usr_include_openh323_h323_h=no
40727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40729 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
40730 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
40731 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
40732 HAS_OPENH323=1
40736 CPPFLAGS="${saved_cppflags}"
40737 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40738 OPENH323DIR="/usr/share/openh323"
40739 OPENH323_INCDIR="/usr/include/openh323"
40740 if test "x$LIB64" != "x"; then
40741 OPENH323_LIBDIR="/usr/lib64"
40742 else
40743 OPENH323_LIBDIR="/usr/lib"
40751 if test "${HAS_OPENH323:-unset}" != "unset" ; then
40752 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
40753 OPENH323_INCDIR="${OPENH323DIR}/include"
40755 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
40756 OPENH323_LIBDIR="${OPENH323DIR}/lib"
40759 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
40760 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
40761 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
40767 ac_ext=c
40768 ac_cpp='$CPP $CPPFLAGS'
40769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40775 if test "${HAS_OPENH323:-unset}" != "unset"; then
40776 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
40777 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
40778 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
40779 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
40780 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
40781 let OPENH323_REQ=1*10000+17*100+3
40783 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
40784 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
40785 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
40786 { echo "$as_me:$LINENO: result: no" >&5
40787 echo "${ECHO_T}no" >&6; }
40788 unset HAS_OPENH323
40789 else
40790 { echo "$as_me:$LINENO: result: yes" >&5
40791 echo "${ECHO_T}yes" >&6; }
40796 if test "${HAS_OPENH323:-unset}" != "unset"; then
40797 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
40798 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
40799 OPENH323_SUFFIX=
40800 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
40801 for pfx in $prefixes; do
40802 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
40803 libfile=
40804 if test -n "$files"; then
40805 for f in $files; do
40806 if test -f $f -a ! -L $f; then
40807 libfile=`basename $f`
40808 break;
40810 done
40812 if test -n "$libfile"; then
40813 OPENH323_PREFIX=$pfx
40814 break;
40816 done
40817 if test "${libfile:-unset}" != "unset"; then
40818 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
40820 case "${OPENH323_SUFFIX}" in
40822 OPENH323_BUILD="notrace";;
40824 OPENH323_BUILD="opt";;
40826 OPENH323_BUILD="debug";;
40828 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
40829 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
40830 if test "x$notrace" = "x"; then
40831 notrace="0"
40833 if test "$notrace" -ne 0; then
40834 OPENH323_BUILD="notrace"
40835 else
40836 OPENH323_BUILD="opt"
40838 OPENH323_LIB="-l${OPENH323_PREFIX}"
40839 else
40840 OPENH323_BUILD="notrace"
40843 esac
40844 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
40845 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
40851 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
40853 if test "${HAS_OPENH323:-unset}" != "unset"; then
40854 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
40855 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
40857 saved_cppflags="${CPPFLAGS}"
40858 saved_libs="${LIBS}"
40859 if test "${OPENH323_LIB:-unset}" != "unset"; then
40860 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
40861 else
40862 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
40864 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
40866 ac_ext=cpp
40867 ac_cpp='$CXXCPP $CPPFLAGS'
40868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40873 cat >conftest.$ac_ext <<_ACEOF
40874 /* confdefs.h. */
40875 _ACEOF
40876 cat confdefs.h >>conftest.$ac_ext
40877 cat >>conftest.$ac_ext <<_ACEOF
40878 /* end confdefs.h. */
40879 #include "ptlib.h"
40880 #include "h323.h"
40881 #include "h323ep.h"
40883 main ()
40885 H323EndPoint ep = H323EndPoint();
40887 return 0;
40889 _ACEOF
40890 rm -f conftest.$ac_objext conftest$ac_exeext
40891 if { (ac_try="$ac_link"
40892 case "(($ac_try" in
40893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40894 *) ac_try_echo=$ac_try;;
40895 esac
40896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40897 (eval "$ac_link") 2>conftest.er1
40898 ac_status=$?
40899 grep -v '^ *+' conftest.er1 >conftest.err
40900 rm -f conftest.er1
40901 cat conftest.err >&5
40902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903 (exit $ac_status); } && {
40904 test -z "$ac_cxx_werror_flag" ||
40905 test ! -s conftest.err
40906 } && test -s conftest$ac_exeext &&
40907 $as_test_x conftest$ac_exeext; then
40908 { echo "$as_me:$LINENO: result: yes" >&5
40909 echo "${ECHO_T}yes" >&6; }
40910 ac_cv_lib_OPENH323="yes"
40912 else
40913 echo "$as_me: failed program was:" >&5
40914 sed 's/^/| /' conftest.$ac_ext >&5
40916 { echo "$as_me:$LINENO: result: no" >&5
40917 echo "${ECHO_T}no" >&6; }
40918 ac_cv_lib_OPENH323="no"
40923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40924 conftest$ac_exeext conftest.$ac_ext
40926 ac_ext=c
40927 ac_cpp='$CPP $CPPFLAGS'
40928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40933 LIBS="${saved_libs}"
40934 CPPFLAGS="${saved_cppflags}"
40936 if test "${ac_cv_lib_OPENH323}" = "yes"; then
40937 if test "${OPENH323_LIB:-undef}" = "undef"; then
40938 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
40939 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
40940 else
40941 OPENH323_LIB="-l${PLATFORM_OPENH323}"
40944 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
40945 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
40947 PBX_OPENH323=1
40949 cat >>confdefs.h <<\_ACEOF
40950 #define HAVE_OPENH323 1
40951 _ACEOF
40958 LUA_INCLUDE="-I/usr/include/lua5.1"
40959 LUA_LIB="-llua5.1"
40961 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
40962 pbxlibdir=""
40963 # if --with-LUA=DIR has been specified, use it.
40964 if test "x${LUA_DIR}" != "x"; then
40965 if test -d ${LUA_DIR}/lib; then
40966 pbxlibdir="-L${LUA_DIR}/lib"
40967 else
40968 pbxlibdir="-L${LUA_DIR}"
40971 pbxfuncname="luaL_newstate"
40972 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
40973 AST_LUA_FOUND=yes
40974 else
40975 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
40976 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
40977 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
40978 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40979 echo $ECHO_N "(cached) $ECHO_C" >&6
40980 else
40981 ac_check_lib_save_LIBS=$LIBS
40982 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
40983 cat >conftest.$ac_ext <<_ACEOF
40984 /* confdefs.h. */
40985 _ACEOF
40986 cat confdefs.h >>conftest.$ac_ext
40987 cat >>conftest.$ac_ext <<_ACEOF
40988 /* end confdefs.h. */
40990 /* Override any GCC internal prototype to avoid an error.
40991 Use char because int might match the return type of a GCC
40992 builtin and then its argument prototype would still apply. */
40993 #ifdef __cplusplus
40994 extern "C"
40995 #endif
40996 char ${pbxfuncname} ();
40998 main ()
41000 return ${pbxfuncname} ();
41002 return 0;
41004 _ACEOF
41005 rm -f conftest.$ac_objext conftest$ac_exeext
41006 if { (ac_try="$ac_link"
41007 case "(($ac_try" in
41008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41009 *) ac_try_echo=$ac_try;;
41010 esac
41011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41012 (eval "$ac_link") 2>conftest.er1
41013 ac_status=$?
41014 grep -v '^ *+' conftest.er1 >conftest.err
41015 rm -f conftest.er1
41016 cat conftest.err >&5
41017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41018 (exit $ac_status); } && {
41019 test -z "$ac_c_werror_flag" ||
41020 test ! -s conftest.err
41021 } && test -s conftest$ac_exeext &&
41022 $as_test_x conftest$ac_exeext; then
41023 eval "$as_ac_Lib=yes"
41024 else
41025 echo "$as_me: failed program was:" >&5
41026 sed 's/^/| /' conftest.$ac_ext >&5
41028 eval "$as_ac_Lib=no"
41031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41032 conftest$ac_exeext conftest.$ac_ext
41033 LIBS=$ac_check_lib_save_LIBS
41035 ac_res=`eval echo '${'$as_ac_Lib'}'`
41036 { echo "$as_me:$LINENO: result: $ac_res" >&5
41037 echo "${ECHO_T}$ac_res" >&6; }
41038 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41039 AST_LUA_FOUND=yes
41040 else
41041 AST_LUA_FOUND=no
41046 # now check for the header.
41047 if test "${AST_LUA_FOUND}" = "yes"; then
41048 LUA_LIB="${pbxlibdir} -llua5.1 "
41049 # if --with-LUA=DIR has been specified, use it.
41050 if test "x${LUA_DIR}" != "x"; then
41051 LUA_INCLUDE="-I${LUA_DIR}/include"
41053 LUA_INCLUDE="${LUA_INCLUDE} "
41054 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
41055 LUA_HEADER_FOUND="1"
41056 else # check for the header
41057 saved_cppflags="${CPPFLAGS}"
41058 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE} "
41059 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41060 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41061 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41062 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41063 echo $ECHO_N "(cached) $ECHO_C" >&6
41065 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41066 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41067 else
41068 # Is the header compilable?
41069 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
41070 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
41071 cat >conftest.$ac_ext <<_ACEOF
41072 /* confdefs.h. */
41073 _ACEOF
41074 cat confdefs.h >>conftest.$ac_ext
41075 cat >>conftest.$ac_ext <<_ACEOF
41076 /* end confdefs.h. */
41077 $ac_includes_default
41078 #include <lua5.1/lua.h>
41079 _ACEOF
41080 rm -f conftest.$ac_objext
41081 if { (ac_try="$ac_compile"
41082 case "(($ac_try" in
41083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41084 *) ac_try_echo=$ac_try;;
41085 esac
41086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41087 (eval "$ac_compile") 2>conftest.er1
41088 ac_status=$?
41089 grep -v '^ *+' conftest.er1 >conftest.err
41090 rm -f conftest.er1
41091 cat conftest.err >&5
41092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093 (exit $ac_status); } && {
41094 test -z "$ac_c_werror_flag" ||
41095 test ! -s conftest.err
41096 } && test -s conftest.$ac_objext; then
41097 ac_header_compiler=yes
41098 else
41099 echo "$as_me: failed program was:" >&5
41100 sed 's/^/| /' conftest.$ac_ext >&5
41102 ac_header_compiler=no
41105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41107 echo "${ECHO_T}$ac_header_compiler" >&6; }
41109 # Is the header present?
41110 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
41111 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
41112 cat >conftest.$ac_ext <<_ACEOF
41113 /* confdefs.h. */
41114 _ACEOF
41115 cat confdefs.h >>conftest.$ac_ext
41116 cat >>conftest.$ac_ext <<_ACEOF
41117 /* end confdefs.h. */
41118 #include <lua5.1/lua.h>
41119 _ACEOF
41120 if { (ac_try="$ac_cpp conftest.$ac_ext"
41121 case "(($ac_try" in
41122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41123 *) ac_try_echo=$ac_try;;
41124 esac
41125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41127 ac_status=$?
41128 grep -v '^ *+' conftest.er1 >conftest.err
41129 rm -f conftest.er1
41130 cat conftest.err >&5
41131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132 (exit $ac_status); } >/dev/null && {
41133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41134 test ! -s conftest.err
41135 }; then
41136 ac_header_preproc=yes
41137 else
41138 echo "$as_me: failed program was:" >&5
41139 sed 's/^/| /' conftest.$ac_ext >&5
41141 ac_header_preproc=no
41144 rm -f conftest.err conftest.$ac_ext
41145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41146 echo "${ECHO_T}$ac_header_preproc" >&6; }
41148 # So? What about this header?
41149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41150 yes:no: )
41151 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
41152 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41153 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
41154 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
41155 ac_header_preproc=yes
41157 no:yes:* )
41158 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
41159 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
41160 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
41161 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
41162 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
41163 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
41164 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
41165 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
41166 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
41167 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
41168 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
41169 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
41170 ( cat <<\_ASBOX
41171 ## ------------------------------- ##
41172 ## Report this to www.asterisk.org ##
41173 ## ------------------------------- ##
41174 _ASBOX
41175 ) | sed "s/^/$as_me: WARNING: /" >&2
41177 esac
41178 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41179 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41180 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41181 echo $ECHO_N "(cached) $ECHO_C" >&6
41182 else
41183 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
41185 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41186 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41189 if test $ac_cv_header_lua5_1_lua_h = yes; then
41190 LUA_HEADER_FOUND=1
41191 else
41192 LUA_HEADER_FOUND=0
41196 CPPFLAGS="${saved_cppflags}"
41198 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
41199 LUA_LIB=""
41200 LUA_INCLUDE=""
41201 else
41202 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41203 LUA_LIB=""
41205 PBX_LUA=1
41206 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41208 cat >>confdefs.h <<_ACEOF
41209 #define HAVE_LUA 1
41210 _ACEOF
41213 cat >>confdefs.h <<_ACEOF
41214 #define HAVE_LUA_VERSION
41215 _ACEOF
41223 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
41224 pbxlibdir=""
41225 # if --with-RADIUS=DIR has been specified, use it.
41226 if test "x${RADIUS_DIR}" != "x"; then
41227 if test -d ${RADIUS_DIR}/lib; then
41228 pbxlibdir="-L${RADIUS_DIR}/lib"
41229 else
41230 pbxlibdir="-L${RADIUS_DIR}"
41233 pbxfuncname="rc_read_config"
41234 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41235 AST_RADIUS_FOUND=yes
41236 else
41237 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
41238 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
41239 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
41240 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41241 echo $ECHO_N "(cached) $ECHO_C" >&6
41242 else
41243 ac_check_lib_save_LIBS=$LIBS
41244 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
41245 cat >conftest.$ac_ext <<_ACEOF
41246 /* confdefs.h. */
41247 _ACEOF
41248 cat confdefs.h >>conftest.$ac_ext
41249 cat >>conftest.$ac_ext <<_ACEOF
41250 /* end confdefs.h. */
41252 /* Override any GCC internal prototype to avoid an error.
41253 Use char because int might match the return type of a GCC
41254 builtin and then its argument prototype would still apply. */
41255 #ifdef __cplusplus
41256 extern "C"
41257 #endif
41258 char ${pbxfuncname} ();
41260 main ()
41262 return ${pbxfuncname} ();
41264 return 0;
41266 _ACEOF
41267 rm -f conftest.$ac_objext conftest$ac_exeext
41268 if { (ac_try="$ac_link"
41269 case "(($ac_try" in
41270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41271 *) ac_try_echo=$ac_try;;
41272 esac
41273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41274 (eval "$ac_link") 2>conftest.er1
41275 ac_status=$?
41276 grep -v '^ *+' conftest.er1 >conftest.err
41277 rm -f conftest.er1
41278 cat conftest.err >&5
41279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280 (exit $ac_status); } && {
41281 test -z "$ac_c_werror_flag" ||
41282 test ! -s conftest.err
41283 } && test -s conftest$ac_exeext &&
41284 $as_test_x conftest$ac_exeext; then
41285 eval "$as_ac_Lib=yes"
41286 else
41287 echo "$as_me: failed program was:" >&5
41288 sed 's/^/| /' conftest.$ac_ext >&5
41290 eval "$as_ac_Lib=no"
41293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41294 conftest$ac_exeext conftest.$ac_ext
41295 LIBS=$ac_check_lib_save_LIBS
41297 ac_res=`eval echo '${'$as_ac_Lib'}'`
41298 { echo "$as_me:$LINENO: result: $ac_res" >&5
41299 echo "${ECHO_T}$ac_res" >&6; }
41300 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41301 AST_RADIUS_FOUND=yes
41302 else
41303 AST_RADIUS_FOUND=no
41308 # now check for the header.
41309 if test "${AST_RADIUS_FOUND}" = "yes"; then
41310 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
41311 # if --with-RADIUS=DIR has been specified, use it.
41312 if test "x${RADIUS_DIR}" != "x"; then
41313 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
41315 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
41316 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
41317 RADIUS_HEADER_FOUND="1"
41318 else # check for the header
41319 saved_cppflags="${CPPFLAGS}"
41320 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE} "
41321 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41322 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
41323 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
41324 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41325 echo $ECHO_N "(cached) $ECHO_C" >&6
41327 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
41328 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
41329 else
41330 # Is the header compilable?
41331 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
41332 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
41333 cat >conftest.$ac_ext <<_ACEOF
41334 /* confdefs.h. */
41335 _ACEOF
41336 cat confdefs.h >>conftest.$ac_ext
41337 cat >>conftest.$ac_ext <<_ACEOF
41338 /* end confdefs.h. */
41339 $ac_includes_default
41340 #include <radiusclient-ng.h>
41341 _ACEOF
41342 rm -f conftest.$ac_objext
41343 if { (ac_try="$ac_compile"
41344 case "(($ac_try" in
41345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41346 *) ac_try_echo=$ac_try;;
41347 esac
41348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41349 (eval "$ac_compile") 2>conftest.er1
41350 ac_status=$?
41351 grep -v '^ *+' conftest.er1 >conftest.err
41352 rm -f conftest.er1
41353 cat conftest.err >&5
41354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355 (exit $ac_status); } && {
41356 test -z "$ac_c_werror_flag" ||
41357 test ! -s conftest.err
41358 } && test -s conftest.$ac_objext; then
41359 ac_header_compiler=yes
41360 else
41361 echo "$as_me: failed program was:" >&5
41362 sed 's/^/| /' conftest.$ac_ext >&5
41364 ac_header_compiler=no
41367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41369 echo "${ECHO_T}$ac_header_compiler" >&6; }
41371 # Is the header present?
41372 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
41373 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
41374 cat >conftest.$ac_ext <<_ACEOF
41375 /* confdefs.h. */
41376 _ACEOF
41377 cat confdefs.h >>conftest.$ac_ext
41378 cat >>conftest.$ac_ext <<_ACEOF
41379 /* end confdefs.h. */
41380 #include <radiusclient-ng.h>
41381 _ACEOF
41382 if { (ac_try="$ac_cpp conftest.$ac_ext"
41383 case "(($ac_try" in
41384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41385 *) ac_try_echo=$ac_try;;
41386 esac
41387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41389 ac_status=$?
41390 grep -v '^ *+' conftest.er1 >conftest.err
41391 rm -f conftest.er1
41392 cat conftest.err >&5
41393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41394 (exit $ac_status); } >/dev/null && {
41395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41396 test ! -s conftest.err
41397 }; then
41398 ac_header_preproc=yes
41399 else
41400 echo "$as_me: failed program was:" >&5
41401 sed 's/^/| /' conftest.$ac_ext >&5
41403 ac_header_preproc=no
41406 rm -f conftest.err conftest.$ac_ext
41407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41408 echo "${ECHO_T}$ac_header_preproc" >&6; }
41410 # So? What about this header?
41411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41412 yes:no: )
41413 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
41414 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41415 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
41416 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
41417 ac_header_preproc=yes
41419 no:yes:* )
41420 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
41421 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
41422 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
41423 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
41424 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
41425 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
41426 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
41427 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
41428 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
41429 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
41430 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
41431 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
41432 ( cat <<\_ASBOX
41433 ## ------------------------------- ##
41434 ## Report this to www.asterisk.org ##
41435 ## ------------------------------- ##
41436 _ASBOX
41437 ) | sed "s/^/$as_me: WARNING: /" >&2
41439 esac
41440 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
41441 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
41442 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
41443 echo $ECHO_N "(cached) $ECHO_C" >&6
41444 else
41445 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
41447 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
41448 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
41451 if test $ac_cv_header_radiusclient_ng_h = yes; then
41452 RADIUS_HEADER_FOUND=1
41453 else
41454 RADIUS_HEADER_FOUND=0
41458 CPPFLAGS="${saved_cppflags}"
41460 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
41461 RADIUS_LIB=""
41462 RADIUS_INCLUDE=""
41463 else
41464 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41465 RADIUS_LIB=""
41467 PBX_RADIUS=1
41468 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41470 cat >>confdefs.h <<_ACEOF
41471 #define HAVE_RADIUS 1
41472 _ACEOF
41475 cat >>confdefs.h <<_ACEOF
41476 #define HAVE_RADIUS_VERSION
41477 _ACEOF
41485 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
41486 pbxlibdir=""
41487 # if --with-SPEEX=DIR has been specified, use it.
41488 if test "x${SPEEX_DIR}" != "x"; then
41489 if test -d ${SPEEX_DIR}/lib; then
41490 pbxlibdir="-L${SPEEX_DIR}/lib"
41491 else
41492 pbxlibdir="-L${SPEEX_DIR}"
41495 pbxfuncname="speex_encode"
41496 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41497 AST_SPEEX_FOUND=yes
41498 else
41499 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
41500 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
41501 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
41502 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41503 echo $ECHO_N "(cached) $ECHO_C" >&6
41504 else
41505 ac_check_lib_save_LIBS=$LIBS
41506 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
41507 cat >conftest.$ac_ext <<_ACEOF
41508 /* confdefs.h. */
41509 _ACEOF
41510 cat confdefs.h >>conftest.$ac_ext
41511 cat >>conftest.$ac_ext <<_ACEOF
41512 /* end confdefs.h. */
41514 /* Override any GCC internal prototype to avoid an error.
41515 Use char because int might match the return type of a GCC
41516 builtin and then its argument prototype would still apply. */
41517 #ifdef __cplusplus
41518 extern "C"
41519 #endif
41520 char ${pbxfuncname} ();
41522 main ()
41524 return ${pbxfuncname} ();
41526 return 0;
41528 _ACEOF
41529 rm -f conftest.$ac_objext conftest$ac_exeext
41530 if { (ac_try="$ac_link"
41531 case "(($ac_try" in
41532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41533 *) ac_try_echo=$ac_try;;
41534 esac
41535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41536 (eval "$ac_link") 2>conftest.er1
41537 ac_status=$?
41538 grep -v '^ *+' conftest.er1 >conftest.err
41539 rm -f conftest.er1
41540 cat conftest.err >&5
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); } && {
41543 test -z "$ac_c_werror_flag" ||
41544 test ! -s conftest.err
41545 } && test -s conftest$ac_exeext &&
41546 $as_test_x conftest$ac_exeext; then
41547 eval "$as_ac_Lib=yes"
41548 else
41549 echo "$as_me: failed program was:" >&5
41550 sed 's/^/| /' conftest.$ac_ext >&5
41552 eval "$as_ac_Lib=no"
41555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41556 conftest$ac_exeext conftest.$ac_ext
41557 LIBS=$ac_check_lib_save_LIBS
41559 ac_res=`eval echo '${'$as_ac_Lib'}'`
41560 { echo "$as_me:$LINENO: result: $ac_res" >&5
41561 echo "${ECHO_T}$ac_res" >&6; }
41562 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41563 AST_SPEEX_FOUND=yes
41564 else
41565 AST_SPEEX_FOUND=no
41570 # now check for the header.
41571 if test "${AST_SPEEX_FOUND}" = "yes"; then
41572 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
41573 # if --with-SPEEX=DIR has been specified, use it.
41574 if test "x${SPEEX_DIR}" != "x"; then
41575 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
41577 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
41578 if test "xspeex/speex.h" = "x" ; then # no header, assume found
41579 SPEEX_HEADER_FOUND="1"
41580 else # check for the header
41581 saved_cppflags="${CPPFLAGS}"
41582 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE} "
41583 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41584 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41585 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41586 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41587 echo $ECHO_N "(cached) $ECHO_C" >&6
41589 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41590 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41591 else
41592 # Is the header compilable?
41593 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
41594 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
41595 cat >conftest.$ac_ext <<_ACEOF
41596 /* confdefs.h. */
41597 _ACEOF
41598 cat confdefs.h >>conftest.$ac_ext
41599 cat >>conftest.$ac_ext <<_ACEOF
41600 /* end confdefs.h. */
41601 $ac_includes_default
41602 #include <speex/speex.h>
41603 _ACEOF
41604 rm -f conftest.$ac_objext
41605 if { (ac_try="$ac_compile"
41606 case "(($ac_try" in
41607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41608 *) ac_try_echo=$ac_try;;
41609 esac
41610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41611 (eval "$ac_compile") 2>conftest.er1
41612 ac_status=$?
41613 grep -v '^ *+' conftest.er1 >conftest.err
41614 rm -f conftest.er1
41615 cat conftest.err >&5
41616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); } && {
41618 test -z "$ac_c_werror_flag" ||
41619 test ! -s conftest.err
41620 } && test -s conftest.$ac_objext; then
41621 ac_header_compiler=yes
41622 else
41623 echo "$as_me: failed program was:" >&5
41624 sed 's/^/| /' conftest.$ac_ext >&5
41626 ac_header_compiler=no
41629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41631 echo "${ECHO_T}$ac_header_compiler" >&6; }
41633 # Is the header present?
41634 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
41635 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
41636 cat >conftest.$ac_ext <<_ACEOF
41637 /* confdefs.h. */
41638 _ACEOF
41639 cat confdefs.h >>conftest.$ac_ext
41640 cat >>conftest.$ac_ext <<_ACEOF
41641 /* end confdefs.h. */
41642 #include <speex/speex.h>
41643 _ACEOF
41644 if { (ac_try="$ac_cpp conftest.$ac_ext"
41645 case "(($ac_try" in
41646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41647 *) ac_try_echo=$ac_try;;
41648 esac
41649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41651 ac_status=$?
41652 grep -v '^ *+' conftest.er1 >conftest.err
41653 rm -f conftest.er1
41654 cat conftest.err >&5
41655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41656 (exit $ac_status); } >/dev/null && {
41657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41658 test ! -s conftest.err
41659 }; then
41660 ac_header_preproc=yes
41661 else
41662 echo "$as_me: failed program was:" >&5
41663 sed 's/^/| /' conftest.$ac_ext >&5
41665 ac_header_preproc=no
41668 rm -f conftest.err conftest.$ac_ext
41669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41670 echo "${ECHO_T}$ac_header_preproc" >&6; }
41672 # So? What about this header?
41673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41674 yes:no: )
41675 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
41676 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41677 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
41678 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
41679 ac_header_preproc=yes
41681 no:yes:* )
41682 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
41683 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
41684 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
41685 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
41686 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
41687 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
41688 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
41689 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
41690 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
41691 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
41692 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
41693 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
41694 ( cat <<\_ASBOX
41695 ## ------------------------------- ##
41696 ## Report this to www.asterisk.org ##
41697 ## ------------------------------- ##
41698 _ASBOX
41699 ) | sed "s/^/$as_me: WARNING: /" >&2
41701 esac
41702 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41703 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41704 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41705 echo $ECHO_N "(cached) $ECHO_C" >&6
41706 else
41707 ac_cv_header_speex_speex_h=$ac_header_preproc
41709 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41710 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41713 if test $ac_cv_header_speex_speex_h = yes; then
41714 SPEEX_HEADER_FOUND=1
41715 else
41716 SPEEX_HEADER_FOUND=0
41720 CPPFLAGS="${saved_cppflags}"
41722 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
41723 SPEEX_LIB=""
41724 SPEEX_INCLUDE=""
41725 else
41726 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41727 SPEEX_LIB=""
41729 PBX_SPEEX=1
41730 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41732 cat >>confdefs.h <<_ACEOF
41733 #define HAVE_SPEEX 1
41734 _ACEOF
41737 cat >>confdefs.h <<_ACEOF
41738 #define HAVE_SPEEX_VERSION
41739 _ACEOF
41746 # See if the main speex library contains the preprocess functions
41748 if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
41749 pbxlibdir=""
41750 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
41751 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
41752 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
41753 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
41754 else
41755 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
41758 pbxfuncname="speex_preprocess_ctl"
41759 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41760 AST_SPEEX_PREPROCESS_FOUND=yes
41761 else
41762 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
41763 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
41764 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
41765 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41766 echo $ECHO_N "(cached) $ECHO_C" >&6
41767 else
41768 ac_check_lib_save_LIBS=$LIBS
41769 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
41770 cat >conftest.$ac_ext <<_ACEOF
41771 /* confdefs.h. */
41772 _ACEOF
41773 cat confdefs.h >>conftest.$ac_ext
41774 cat >>conftest.$ac_ext <<_ACEOF
41775 /* end confdefs.h. */
41777 /* Override any GCC internal prototype to avoid an error.
41778 Use char because int might match the return type of a GCC
41779 builtin and then its argument prototype would still apply. */
41780 #ifdef __cplusplus
41781 extern "C"
41782 #endif
41783 char ${pbxfuncname} ();
41785 main ()
41787 return ${pbxfuncname} ();
41789 return 0;
41791 _ACEOF
41792 rm -f conftest.$ac_objext conftest$ac_exeext
41793 if { (ac_try="$ac_link"
41794 case "(($ac_try" in
41795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41796 *) ac_try_echo=$ac_try;;
41797 esac
41798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41799 (eval "$ac_link") 2>conftest.er1
41800 ac_status=$?
41801 grep -v '^ *+' conftest.er1 >conftest.err
41802 rm -f conftest.er1
41803 cat conftest.err >&5
41804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41805 (exit $ac_status); } && {
41806 test -z "$ac_c_werror_flag" ||
41807 test ! -s conftest.err
41808 } && test -s conftest$ac_exeext &&
41809 $as_test_x conftest$ac_exeext; then
41810 eval "$as_ac_Lib=yes"
41811 else
41812 echo "$as_me: failed program was:" >&5
41813 sed 's/^/| /' conftest.$ac_ext >&5
41815 eval "$as_ac_Lib=no"
41818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41819 conftest$ac_exeext conftest.$ac_ext
41820 LIBS=$ac_check_lib_save_LIBS
41822 ac_res=`eval echo '${'$as_ac_Lib'}'`
41823 { echo "$as_me:$LINENO: result: $ac_res" >&5
41824 echo "${ECHO_T}$ac_res" >&6; }
41825 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41826 AST_SPEEX_PREPROCESS_FOUND=yes
41827 else
41828 AST_SPEEX_PREPROCESS_FOUND=no
41833 # now check for the header.
41834 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
41835 SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
41836 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
41837 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
41838 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
41840 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
41841 if test "xspeex/speex.h" = "x" ; then # no header, assume found
41842 SPEEX_PREPROCESS_HEADER_FOUND="1"
41843 else # check for the header
41844 saved_cppflags="${CPPFLAGS}"
41845 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE} "
41846 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41847 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41848 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41849 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41850 echo $ECHO_N "(cached) $ECHO_C" >&6
41852 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41853 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41854 else
41855 # Is the header compilable?
41856 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
41857 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
41858 cat >conftest.$ac_ext <<_ACEOF
41859 /* confdefs.h. */
41860 _ACEOF
41861 cat confdefs.h >>conftest.$ac_ext
41862 cat >>conftest.$ac_ext <<_ACEOF
41863 /* end confdefs.h. */
41864 $ac_includes_default
41865 #include <speex/speex.h>
41866 _ACEOF
41867 rm -f conftest.$ac_objext
41868 if { (ac_try="$ac_compile"
41869 case "(($ac_try" in
41870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41871 *) ac_try_echo=$ac_try;;
41872 esac
41873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41874 (eval "$ac_compile") 2>conftest.er1
41875 ac_status=$?
41876 grep -v '^ *+' conftest.er1 >conftest.err
41877 rm -f conftest.er1
41878 cat conftest.err >&5
41879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41880 (exit $ac_status); } && {
41881 test -z "$ac_c_werror_flag" ||
41882 test ! -s conftest.err
41883 } && test -s conftest.$ac_objext; then
41884 ac_header_compiler=yes
41885 else
41886 echo "$as_me: failed program was:" >&5
41887 sed 's/^/| /' conftest.$ac_ext >&5
41889 ac_header_compiler=no
41892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41894 echo "${ECHO_T}$ac_header_compiler" >&6; }
41896 # Is the header present?
41897 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
41898 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
41899 cat >conftest.$ac_ext <<_ACEOF
41900 /* confdefs.h. */
41901 _ACEOF
41902 cat confdefs.h >>conftest.$ac_ext
41903 cat >>conftest.$ac_ext <<_ACEOF
41904 /* end confdefs.h. */
41905 #include <speex/speex.h>
41906 _ACEOF
41907 if { (ac_try="$ac_cpp conftest.$ac_ext"
41908 case "(($ac_try" in
41909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41910 *) ac_try_echo=$ac_try;;
41911 esac
41912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41914 ac_status=$?
41915 grep -v '^ *+' conftest.er1 >conftest.err
41916 rm -f conftest.er1
41917 cat conftest.err >&5
41918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41919 (exit $ac_status); } >/dev/null && {
41920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41921 test ! -s conftest.err
41922 }; then
41923 ac_header_preproc=yes
41924 else
41925 echo "$as_me: failed program was:" >&5
41926 sed 's/^/| /' conftest.$ac_ext >&5
41928 ac_header_preproc=no
41931 rm -f conftest.err conftest.$ac_ext
41932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41933 echo "${ECHO_T}$ac_header_preproc" >&6; }
41935 # So? What about this header?
41936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41937 yes:no: )
41938 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
41939 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41940 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
41941 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
41942 ac_header_preproc=yes
41944 no:yes:* )
41945 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
41946 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
41947 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
41948 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
41949 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
41950 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
41951 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
41952 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
41953 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
41954 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
41955 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
41956 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
41957 ( cat <<\_ASBOX
41958 ## ------------------------------- ##
41959 ## Report this to www.asterisk.org ##
41960 ## ------------------------------- ##
41961 _ASBOX
41962 ) | sed "s/^/$as_me: WARNING: /" >&2
41964 esac
41965 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
41966 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
41967 if test "${ac_cv_header_speex_speex_h+set}" = set; then
41968 echo $ECHO_N "(cached) $ECHO_C" >&6
41969 else
41970 ac_cv_header_speex_speex_h=$ac_header_preproc
41972 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
41973 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
41976 if test $ac_cv_header_speex_speex_h = yes; then
41977 SPEEX_PREPROCESS_HEADER_FOUND=1
41978 else
41979 SPEEX_PREPROCESS_HEADER_FOUND=0
41983 CPPFLAGS="${saved_cppflags}"
41985 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
41986 SPEEX_PREPROCESS_LIB=""
41987 SPEEX_PREPROCESS_INCLUDE=""
41988 else
41989 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41990 SPEEX_PREPROCESS_LIB=""
41992 PBX_SPEEX_PREPROCESS=1
41993 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41995 cat >>confdefs.h <<_ACEOF
41996 #define HAVE_SPEEX_PREPROCESS 1
41997 _ACEOF
42000 cat >>confdefs.h <<_ACEOF
42001 #define HAVE_SPEEX_PREPROCESS_VERSION
42002 _ACEOF
42008 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
42009 PBX_SPEEX_PREPROCESS=1
42013 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
42014 pbxlibdir=""
42015 # if --with-SPEEXDSP=DIR has been specified, use it.
42016 if test "x${SPEEXDSP_DIR}" != "x"; then
42017 if test -d ${SPEEXDSP_DIR}/lib; then
42018 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
42019 else
42020 pbxlibdir="-L${SPEEXDSP_DIR}"
42023 pbxfuncname="speex_preprocess_ctl"
42024 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42025 AST_SPEEXDSP_FOUND=yes
42026 else
42027 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
42028 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
42029 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
42030 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42031 echo $ECHO_N "(cached) $ECHO_C" >&6
42032 else
42033 ac_check_lib_save_LIBS=$LIBS
42034 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
42035 cat >conftest.$ac_ext <<_ACEOF
42036 /* confdefs.h. */
42037 _ACEOF
42038 cat confdefs.h >>conftest.$ac_ext
42039 cat >>conftest.$ac_ext <<_ACEOF
42040 /* end confdefs.h. */
42042 /* Override any GCC internal prototype to avoid an error.
42043 Use char because int might match the return type of a GCC
42044 builtin and then its argument prototype would still apply. */
42045 #ifdef __cplusplus
42046 extern "C"
42047 #endif
42048 char ${pbxfuncname} ();
42050 main ()
42052 return ${pbxfuncname} ();
42054 return 0;
42056 _ACEOF
42057 rm -f conftest.$ac_objext conftest$ac_exeext
42058 if { (ac_try="$ac_link"
42059 case "(($ac_try" in
42060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42061 *) ac_try_echo=$ac_try;;
42062 esac
42063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42064 (eval "$ac_link") 2>conftest.er1
42065 ac_status=$?
42066 grep -v '^ *+' conftest.er1 >conftest.err
42067 rm -f conftest.er1
42068 cat conftest.err >&5
42069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42070 (exit $ac_status); } && {
42071 test -z "$ac_c_werror_flag" ||
42072 test ! -s conftest.err
42073 } && test -s conftest$ac_exeext &&
42074 $as_test_x conftest$ac_exeext; then
42075 eval "$as_ac_Lib=yes"
42076 else
42077 echo "$as_me: failed program was:" >&5
42078 sed 's/^/| /' conftest.$ac_ext >&5
42080 eval "$as_ac_Lib=no"
42083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42084 conftest$ac_exeext conftest.$ac_ext
42085 LIBS=$ac_check_lib_save_LIBS
42087 ac_res=`eval echo '${'$as_ac_Lib'}'`
42088 { echo "$as_me:$LINENO: result: $ac_res" >&5
42089 echo "${ECHO_T}$ac_res" >&6; }
42090 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42091 AST_SPEEXDSP_FOUND=yes
42092 else
42093 AST_SPEEXDSP_FOUND=no
42098 # now check for the header.
42099 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
42100 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
42101 # if --with-SPEEXDSP=DIR has been specified, use it.
42102 if test "x${SPEEXDSP_DIR}" != "x"; then
42103 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
42105 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
42106 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42107 SPEEXDSP_HEADER_FOUND="1"
42108 else # check for the header
42109 saved_cppflags="${CPPFLAGS}"
42110 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE} "
42111 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42112 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42113 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42114 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42115 echo $ECHO_N "(cached) $ECHO_C" >&6
42117 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42118 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42119 else
42120 # Is the header compilable?
42121 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42122 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42123 cat >conftest.$ac_ext <<_ACEOF
42124 /* confdefs.h. */
42125 _ACEOF
42126 cat confdefs.h >>conftest.$ac_ext
42127 cat >>conftest.$ac_ext <<_ACEOF
42128 /* end confdefs.h. */
42129 $ac_includes_default
42130 #include <speex/speex.h>
42131 _ACEOF
42132 rm -f conftest.$ac_objext
42133 if { (ac_try="$ac_compile"
42134 case "(($ac_try" in
42135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42136 *) ac_try_echo=$ac_try;;
42137 esac
42138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42139 (eval "$ac_compile") 2>conftest.er1
42140 ac_status=$?
42141 grep -v '^ *+' conftest.er1 >conftest.err
42142 rm -f conftest.er1
42143 cat conftest.err >&5
42144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145 (exit $ac_status); } && {
42146 test -z "$ac_c_werror_flag" ||
42147 test ! -s conftest.err
42148 } && test -s conftest.$ac_objext; then
42149 ac_header_compiler=yes
42150 else
42151 echo "$as_me: failed program was:" >&5
42152 sed 's/^/| /' conftest.$ac_ext >&5
42154 ac_header_compiler=no
42157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42159 echo "${ECHO_T}$ac_header_compiler" >&6; }
42161 # Is the header present?
42162 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42163 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42164 cat >conftest.$ac_ext <<_ACEOF
42165 /* confdefs.h. */
42166 _ACEOF
42167 cat confdefs.h >>conftest.$ac_ext
42168 cat >>conftest.$ac_ext <<_ACEOF
42169 /* end confdefs.h. */
42170 #include <speex/speex.h>
42171 _ACEOF
42172 if { (ac_try="$ac_cpp conftest.$ac_ext"
42173 case "(($ac_try" in
42174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42175 *) ac_try_echo=$ac_try;;
42176 esac
42177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42179 ac_status=$?
42180 grep -v '^ *+' conftest.er1 >conftest.err
42181 rm -f conftest.er1
42182 cat conftest.err >&5
42183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42184 (exit $ac_status); } >/dev/null && {
42185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42186 test ! -s conftest.err
42187 }; then
42188 ac_header_preproc=yes
42189 else
42190 echo "$as_me: failed program was:" >&5
42191 sed 's/^/| /' conftest.$ac_ext >&5
42193 ac_header_preproc=no
42196 rm -f conftest.err conftest.$ac_ext
42197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42198 echo "${ECHO_T}$ac_header_preproc" >&6; }
42200 # So? What about this header?
42201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42202 yes:no: )
42203 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42204 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42205 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42206 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42207 ac_header_preproc=yes
42209 no:yes:* )
42210 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42211 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42212 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42213 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42214 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42215 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42216 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42217 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42218 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42219 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42220 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42221 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42222 ( cat <<\_ASBOX
42223 ## ------------------------------- ##
42224 ## Report this to www.asterisk.org ##
42225 ## ------------------------------- ##
42226 _ASBOX
42227 ) | sed "s/^/$as_me: WARNING: /" >&2
42229 esac
42230 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42231 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42232 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42233 echo $ECHO_N "(cached) $ECHO_C" >&6
42234 else
42235 ac_cv_header_speex_speex_h=$ac_header_preproc
42237 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42238 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42241 if test $ac_cv_header_speex_speex_h = yes; then
42242 SPEEXDSP_HEADER_FOUND=1
42243 else
42244 SPEEXDSP_HEADER_FOUND=0
42248 CPPFLAGS="${saved_cppflags}"
42250 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
42251 SPEEXDSP_LIB=""
42252 SPEEXDSP_INCLUDE=""
42253 else
42254 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42255 SPEEXDSP_LIB=""
42257 PBX_SPEEXDSP=1
42258 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42260 cat >>confdefs.h <<_ACEOF
42261 #define HAVE_SPEEXDSP 1
42262 _ACEOF
42265 cat >>confdefs.h <<_ACEOF
42266 #define HAVE_SPEEXDSP_VERSION
42267 _ACEOF
42273 if test "${PBX_SPEEXDSP}" = 1; then
42274 PBX_SPEEX_PREPROCESS=1
42280 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
42281 pbxlibdir=""
42282 # if --with-SQLITE=DIR has been specified, use it.
42283 if test "x${SQLITE_DIR}" != "x"; then
42284 if test -d ${SQLITE_DIR}/lib; then
42285 pbxlibdir="-L${SQLITE_DIR}/lib"
42286 else
42287 pbxlibdir="-L${SQLITE_DIR}"
42290 pbxfuncname="sqlite_exec"
42291 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42292 AST_SQLITE_FOUND=yes
42293 else
42294 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
42295 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
42296 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
42297 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42298 echo $ECHO_N "(cached) $ECHO_C" >&6
42299 else
42300 ac_check_lib_save_LIBS=$LIBS
42301 LIBS="-lsqlite ${pbxlibdir} $LIBS"
42302 cat >conftest.$ac_ext <<_ACEOF
42303 /* confdefs.h. */
42304 _ACEOF
42305 cat confdefs.h >>conftest.$ac_ext
42306 cat >>conftest.$ac_ext <<_ACEOF
42307 /* end confdefs.h. */
42309 /* Override any GCC internal prototype to avoid an error.
42310 Use char because int might match the return type of a GCC
42311 builtin and then its argument prototype would still apply. */
42312 #ifdef __cplusplus
42313 extern "C"
42314 #endif
42315 char ${pbxfuncname} ();
42317 main ()
42319 return ${pbxfuncname} ();
42321 return 0;
42323 _ACEOF
42324 rm -f conftest.$ac_objext conftest$ac_exeext
42325 if { (ac_try="$ac_link"
42326 case "(($ac_try" in
42327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42328 *) ac_try_echo=$ac_try;;
42329 esac
42330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42331 (eval "$ac_link") 2>conftest.er1
42332 ac_status=$?
42333 grep -v '^ *+' conftest.er1 >conftest.err
42334 rm -f conftest.er1
42335 cat conftest.err >&5
42336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42337 (exit $ac_status); } && {
42338 test -z "$ac_c_werror_flag" ||
42339 test ! -s conftest.err
42340 } && test -s conftest$ac_exeext &&
42341 $as_test_x conftest$ac_exeext; then
42342 eval "$as_ac_Lib=yes"
42343 else
42344 echo "$as_me: failed program was:" >&5
42345 sed 's/^/| /' conftest.$ac_ext >&5
42347 eval "$as_ac_Lib=no"
42350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42351 conftest$ac_exeext conftest.$ac_ext
42352 LIBS=$ac_check_lib_save_LIBS
42354 ac_res=`eval echo '${'$as_ac_Lib'}'`
42355 { echo "$as_me:$LINENO: result: $ac_res" >&5
42356 echo "${ECHO_T}$ac_res" >&6; }
42357 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42358 AST_SQLITE_FOUND=yes
42359 else
42360 AST_SQLITE_FOUND=no
42365 # now check for the header.
42366 if test "${AST_SQLITE_FOUND}" = "yes"; then
42367 SQLITE_LIB="${pbxlibdir} -lsqlite "
42368 # if --with-SQLITE=DIR has been specified, use it.
42369 if test "x${SQLITE_DIR}" != "x"; then
42370 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
42372 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
42373 if test "xsqlite.h" = "x" ; then # no header, assume found
42374 SQLITE_HEADER_FOUND="1"
42375 else # check for the header
42376 saved_cppflags="${CPPFLAGS}"
42377 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE} "
42378 if test "${ac_cv_header_sqlite_h+set}" = set; then
42379 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
42380 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
42381 if test "${ac_cv_header_sqlite_h+set}" = set; then
42382 echo $ECHO_N "(cached) $ECHO_C" >&6
42384 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
42385 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
42386 else
42387 # Is the header compilable?
42388 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
42389 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
42390 cat >conftest.$ac_ext <<_ACEOF
42391 /* confdefs.h. */
42392 _ACEOF
42393 cat confdefs.h >>conftest.$ac_ext
42394 cat >>conftest.$ac_ext <<_ACEOF
42395 /* end confdefs.h. */
42396 $ac_includes_default
42397 #include <sqlite.h>
42398 _ACEOF
42399 rm -f conftest.$ac_objext
42400 if { (ac_try="$ac_compile"
42401 case "(($ac_try" in
42402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42403 *) ac_try_echo=$ac_try;;
42404 esac
42405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42406 (eval "$ac_compile") 2>conftest.er1
42407 ac_status=$?
42408 grep -v '^ *+' conftest.er1 >conftest.err
42409 rm -f conftest.er1
42410 cat conftest.err >&5
42411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42412 (exit $ac_status); } && {
42413 test -z "$ac_c_werror_flag" ||
42414 test ! -s conftest.err
42415 } && test -s conftest.$ac_objext; then
42416 ac_header_compiler=yes
42417 else
42418 echo "$as_me: failed program was:" >&5
42419 sed 's/^/| /' conftest.$ac_ext >&5
42421 ac_header_compiler=no
42424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42426 echo "${ECHO_T}$ac_header_compiler" >&6; }
42428 # Is the header present?
42429 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
42430 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
42431 cat >conftest.$ac_ext <<_ACEOF
42432 /* confdefs.h. */
42433 _ACEOF
42434 cat confdefs.h >>conftest.$ac_ext
42435 cat >>conftest.$ac_ext <<_ACEOF
42436 /* end confdefs.h. */
42437 #include <sqlite.h>
42438 _ACEOF
42439 if { (ac_try="$ac_cpp conftest.$ac_ext"
42440 case "(($ac_try" in
42441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42442 *) ac_try_echo=$ac_try;;
42443 esac
42444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42446 ac_status=$?
42447 grep -v '^ *+' conftest.er1 >conftest.err
42448 rm -f conftest.er1
42449 cat conftest.err >&5
42450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42451 (exit $ac_status); } >/dev/null && {
42452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42453 test ! -s conftest.err
42454 }; then
42455 ac_header_preproc=yes
42456 else
42457 echo "$as_me: failed program was:" >&5
42458 sed 's/^/| /' conftest.$ac_ext >&5
42460 ac_header_preproc=no
42463 rm -f conftest.err conftest.$ac_ext
42464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42465 echo "${ECHO_T}$ac_header_preproc" >&6; }
42467 # So? What about this header?
42468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42469 yes:no: )
42470 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
42471 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42472 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
42473 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
42474 ac_header_preproc=yes
42476 no:yes:* )
42477 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
42478 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
42479 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
42480 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
42481 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
42482 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
42483 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
42484 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
42485 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
42486 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
42487 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
42488 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
42489 ( cat <<\_ASBOX
42490 ## ------------------------------- ##
42491 ## Report this to www.asterisk.org ##
42492 ## ------------------------------- ##
42493 _ASBOX
42494 ) | sed "s/^/$as_me: WARNING: /" >&2
42496 esac
42497 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
42498 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
42499 if test "${ac_cv_header_sqlite_h+set}" = set; then
42500 echo $ECHO_N "(cached) $ECHO_C" >&6
42501 else
42502 ac_cv_header_sqlite_h=$ac_header_preproc
42504 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
42505 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
42508 if test $ac_cv_header_sqlite_h = yes; then
42509 SQLITE_HEADER_FOUND=1
42510 else
42511 SQLITE_HEADER_FOUND=0
42515 CPPFLAGS="${saved_cppflags}"
42517 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
42518 SQLITE_LIB=""
42519 SQLITE_INCLUDE=""
42520 else
42521 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42522 SQLITE_LIB=""
42524 PBX_SQLITE=1
42525 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42527 cat >>confdefs.h <<_ACEOF
42528 #define HAVE_SQLITE 1
42529 _ACEOF
42532 cat >>confdefs.h <<_ACEOF
42533 #define HAVE_SQLITE_VERSION
42534 _ACEOF
42542 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
42543 pbxlibdir=""
42544 # if --with-SQLITE3=DIR has been specified, use it.
42545 if test "x${SQLITE3_DIR}" != "x"; then
42546 if test -d ${SQLITE3_DIR}/lib; then
42547 pbxlibdir="-L${SQLITE3_DIR}/lib"
42548 else
42549 pbxlibdir="-L${SQLITE3_DIR}"
42552 pbxfuncname="sqlite3_open"
42553 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42554 AST_SQLITE3_FOUND=yes
42555 else
42556 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
42557 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
42558 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
42559 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42560 echo $ECHO_N "(cached) $ECHO_C" >&6
42561 else
42562 ac_check_lib_save_LIBS=$LIBS
42563 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
42564 cat >conftest.$ac_ext <<_ACEOF
42565 /* confdefs.h. */
42566 _ACEOF
42567 cat confdefs.h >>conftest.$ac_ext
42568 cat >>conftest.$ac_ext <<_ACEOF
42569 /* end confdefs.h. */
42571 /* Override any GCC internal prototype to avoid an error.
42572 Use char because int might match the return type of a GCC
42573 builtin and then its argument prototype would still apply. */
42574 #ifdef __cplusplus
42575 extern "C"
42576 #endif
42577 char ${pbxfuncname} ();
42579 main ()
42581 return ${pbxfuncname} ();
42583 return 0;
42585 _ACEOF
42586 rm -f conftest.$ac_objext conftest$ac_exeext
42587 if { (ac_try="$ac_link"
42588 case "(($ac_try" in
42589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42590 *) ac_try_echo=$ac_try;;
42591 esac
42592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42593 (eval "$ac_link") 2>conftest.er1
42594 ac_status=$?
42595 grep -v '^ *+' conftest.er1 >conftest.err
42596 rm -f conftest.er1
42597 cat conftest.err >&5
42598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42599 (exit $ac_status); } && {
42600 test -z "$ac_c_werror_flag" ||
42601 test ! -s conftest.err
42602 } && test -s conftest$ac_exeext &&
42603 $as_test_x conftest$ac_exeext; then
42604 eval "$as_ac_Lib=yes"
42605 else
42606 echo "$as_me: failed program was:" >&5
42607 sed 's/^/| /' conftest.$ac_ext >&5
42609 eval "$as_ac_Lib=no"
42612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42613 conftest$ac_exeext conftest.$ac_ext
42614 LIBS=$ac_check_lib_save_LIBS
42616 ac_res=`eval echo '${'$as_ac_Lib'}'`
42617 { echo "$as_me:$LINENO: result: $ac_res" >&5
42618 echo "${ECHO_T}$ac_res" >&6; }
42619 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42620 AST_SQLITE3_FOUND=yes
42621 else
42622 AST_SQLITE3_FOUND=no
42627 # now check for the header.
42628 if test "${AST_SQLITE3_FOUND}" = "yes"; then
42629 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
42630 # if --with-SQLITE3=DIR has been specified, use it.
42631 if test "x${SQLITE3_DIR}" != "x"; then
42632 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
42634 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
42635 if test "xsqlite3.h" = "x" ; then # no header, assume found
42636 SQLITE3_HEADER_FOUND="1"
42637 else # check for the header
42638 saved_cppflags="${CPPFLAGS}"
42639 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE} "
42640 if test "${ac_cv_header_sqlite3_h+set}" = set; then
42641 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
42642 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
42643 if test "${ac_cv_header_sqlite3_h+set}" = set; then
42644 echo $ECHO_N "(cached) $ECHO_C" >&6
42646 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
42647 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
42648 else
42649 # Is the header compilable?
42650 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
42651 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
42652 cat >conftest.$ac_ext <<_ACEOF
42653 /* confdefs.h. */
42654 _ACEOF
42655 cat confdefs.h >>conftest.$ac_ext
42656 cat >>conftest.$ac_ext <<_ACEOF
42657 /* end confdefs.h. */
42658 $ac_includes_default
42659 #include <sqlite3.h>
42660 _ACEOF
42661 rm -f conftest.$ac_objext
42662 if { (ac_try="$ac_compile"
42663 case "(($ac_try" in
42664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42665 *) ac_try_echo=$ac_try;;
42666 esac
42667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42668 (eval "$ac_compile") 2>conftest.er1
42669 ac_status=$?
42670 grep -v '^ *+' conftest.er1 >conftest.err
42671 rm -f conftest.er1
42672 cat conftest.err >&5
42673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42674 (exit $ac_status); } && {
42675 test -z "$ac_c_werror_flag" ||
42676 test ! -s conftest.err
42677 } && test -s conftest.$ac_objext; then
42678 ac_header_compiler=yes
42679 else
42680 echo "$as_me: failed program was:" >&5
42681 sed 's/^/| /' conftest.$ac_ext >&5
42683 ac_header_compiler=no
42686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42688 echo "${ECHO_T}$ac_header_compiler" >&6; }
42690 # Is the header present?
42691 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
42692 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
42693 cat >conftest.$ac_ext <<_ACEOF
42694 /* confdefs.h. */
42695 _ACEOF
42696 cat confdefs.h >>conftest.$ac_ext
42697 cat >>conftest.$ac_ext <<_ACEOF
42698 /* end confdefs.h. */
42699 #include <sqlite3.h>
42700 _ACEOF
42701 if { (ac_try="$ac_cpp conftest.$ac_ext"
42702 case "(($ac_try" in
42703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42704 *) ac_try_echo=$ac_try;;
42705 esac
42706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42708 ac_status=$?
42709 grep -v '^ *+' conftest.er1 >conftest.err
42710 rm -f conftest.er1
42711 cat conftest.err >&5
42712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42713 (exit $ac_status); } >/dev/null && {
42714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42715 test ! -s conftest.err
42716 }; then
42717 ac_header_preproc=yes
42718 else
42719 echo "$as_me: failed program was:" >&5
42720 sed 's/^/| /' conftest.$ac_ext >&5
42722 ac_header_preproc=no
42725 rm -f conftest.err conftest.$ac_ext
42726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42727 echo "${ECHO_T}$ac_header_preproc" >&6; }
42729 # So? What about this header?
42730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42731 yes:no: )
42732 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
42733 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42734 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
42735 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
42736 ac_header_preproc=yes
42738 no:yes:* )
42739 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
42740 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
42741 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
42742 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
42743 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
42744 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
42745 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
42746 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
42747 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
42748 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
42749 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
42750 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
42751 ( cat <<\_ASBOX
42752 ## ------------------------------- ##
42753 ## Report this to www.asterisk.org ##
42754 ## ------------------------------- ##
42755 _ASBOX
42756 ) | sed "s/^/$as_me: WARNING: /" >&2
42758 esac
42759 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
42760 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
42761 if test "${ac_cv_header_sqlite3_h+set}" = set; then
42762 echo $ECHO_N "(cached) $ECHO_C" >&6
42763 else
42764 ac_cv_header_sqlite3_h=$ac_header_preproc
42766 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
42767 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
42770 if test $ac_cv_header_sqlite3_h = yes; then
42771 SQLITE3_HEADER_FOUND=1
42772 else
42773 SQLITE3_HEADER_FOUND=0
42777 CPPFLAGS="${saved_cppflags}"
42779 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
42780 SQLITE3_LIB=""
42781 SQLITE3_INCLUDE=""
42782 else
42783 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42784 SQLITE3_LIB=""
42786 PBX_SQLITE3=1
42787 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42789 cat >>confdefs.h <<_ACEOF
42790 #define HAVE_SQLITE3 1
42791 _ACEOF
42794 cat >>confdefs.h <<_ACEOF
42795 #define HAVE_SQLITE3_VERSION
42796 _ACEOF
42804 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
42805 pbxlibdir=""
42806 # if --with-CRYPTO=DIR has been specified, use it.
42807 if test "x${CRYPTO_DIR}" != "x"; then
42808 if test -d ${CRYPTO_DIR}/lib; then
42809 pbxlibdir="-L${CRYPTO_DIR}/lib"
42810 else
42811 pbxlibdir="-L${CRYPTO_DIR}"
42814 pbxfuncname="AES_encrypt"
42815 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42816 AST_CRYPTO_FOUND=yes
42817 else
42818 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
42819 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
42820 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
42821 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42822 echo $ECHO_N "(cached) $ECHO_C" >&6
42823 else
42824 ac_check_lib_save_LIBS=$LIBS
42825 LIBS="-lcrypto ${pbxlibdir} $LIBS"
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. */
42833 /* Override any GCC internal prototype to avoid an error.
42834 Use char because int might match the return type of a GCC
42835 builtin and then its argument prototype would still apply. */
42836 #ifdef __cplusplus
42837 extern "C"
42838 #endif
42839 char ${pbxfuncname} ();
42841 main ()
42843 return ${pbxfuncname} ();
42845 return 0;
42847 _ACEOF
42848 rm -f conftest.$ac_objext conftest$ac_exeext
42849 if { (ac_try="$ac_link"
42850 case "(($ac_try" in
42851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42852 *) ac_try_echo=$ac_try;;
42853 esac
42854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42855 (eval "$ac_link") 2>conftest.er1
42856 ac_status=$?
42857 grep -v '^ *+' conftest.er1 >conftest.err
42858 rm -f conftest.er1
42859 cat conftest.err >&5
42860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42861 (exit $ac_status); } && {
42862 test -z "$ac_c_werror_flag" ||
42863 test ! -s conftest.err
42864 } && test -s conftest$ac_exeext &&
42865 $as_test_x conftest$ac_exeext; then
42866 eval "$as_ac_Lib=yes"
42867 else
42868 echo "$as_me: failed program was:" >&5
42869 sed 's/^/| /' conftest.$ac_ext >&5
42871 eval "$as_ac_Lib=no"
42874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42875 conftest$ac_exeext conftest.$ac_ext
42876 LIBS=$ac_check_lib_save_LIBS
42878 ac_res=`eval echo '${'$as_ac_Lib'}'`
42879 { echo "$as_me:$LINENO: result: $ac_res" >&5
42880 echo "${ECHO_T}$ac_res" >&6; }
42881 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42882 AST_CRYPTO_FOUND=yes
42883 else
42884 AST_CRYPTO_FOUND=no
42889 # now check for the header.
42890 if test "${AST_CRYPTO_FOUND}" = "yes"; then
42891 CRYPTO_LIB="${pbxlibdir} -lcrypto "
42892 # if --with-CRYPTO=DIR has been specified, use it.
42893 if test "x${CRYPTO_DIR}" != "x"; then
42894 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
42896 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
42897 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
42898 CRYPTO_HEADER_FOUND="1"
42899 else # check for the header
42900 saved_cppflags="${CPPFLAGS}"
42901 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE} "
42902 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
42903 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
42904 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
42905 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
42906 echo $ECHO_N "(cached) $ECHO_C" >&6
42908 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
42909 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
42910 else
42911 # Is the header compilable?
42912 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
42913 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
42914 cat >conftest.$ac_ext <<_ACEOF
42915 /* confdefs.h. */
42916 _ACEOF
42917 cat confdefs.h >>conftest.$ac_ext
42918 cat >>conftest.$ac_ext <<_ACEOF
42919 /* end confdefs.h. */
42920 $ac_includes_default
42921 #include <openssl/aes.h>
42922 _ACEOF
42923 rm -f conftest.$ac_objext
42924 if { (ac_try="$ac_compile"
42925 case "(($ac_try" in
42926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42927 *) ac_try_echo=$ac_try;;
42928 esac
42929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42930 (eval "$ac_compile") 2>conftest.er1
42931 ac_status=$?
42932 grep -v '^ *+' conftest.er1 >conftest.err
42933 rm -f conftest.er1
42934 cat conftest.err >&5
42935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42936 (exit $ac_status); } && {
42937 test -z "$ac_c_werror_flag" ||
42938 test ! -s conftest.err
42939 } && test -s conftest.$ac_objext; then
42940 ac_header_compiler=yes
42941 else
42942 echo "$as_me: failed program was:" >&5
42943 sed 's/^/| /' conftest.$ac_ext >&5
42945 ac_header_compiler=no
42948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42950 echo "${ECHO_T}$ac_header_compiler" >&6; }
42952 # Is the header present?
42953 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
42954 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
42955 cat >conftest.$ac_ext <<_ACEOF
42956 /* confdefs.h. */
42957 _ACEOF
42958 cat confdefs.h >>conftest.$ac_ext
42959 cat >>conftest.$ac_ext <<_ACEOF
42960 /* end confdefs.h. */
42961 #include <openssl/aes.h>
42962 _ACEOF
42963 if { (ac_try="$ac_cpp conftest.$ac_ext"
42964 case "(($ac_try" in
42965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42966 *) ac_try_echo=$ac_try;;
42967 esac
42968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42970 ac_status=$?
42971 grep -v '^ *+' conftest.er1 >conftest.err
42972 rm -f conftest.er1
42973 cat conftest.err >&5
42974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975 (exit $ac_status); } >/dev/null && {
42976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42977 test ! -s conftest.err
42978 }; then
42979 ac_header_preproc=yes
42980 else
42981 echo "$as_me: failed program was:" >&5
42982 sed 's/^/| /' conftest.$ac_ext >&5
42984 ac_header_preproc=no
42987 rm -f conftest.err conftest.$ac_ext
42988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42989 echo "${ECHO_T}$ac_header_preproc" >&6; }
42991 # So? What about this header?
42992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42993 yes:no: )
42994 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
42995 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42996 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
42997 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
42998 ac_header_preproc=yes
43000 no:yes:* )
43001 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
43002 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
43003 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
43004 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
43005 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
43006 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
43007 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
43008 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
43009 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
43010 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
43011 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
43012 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
43013 ( cat <<\_ASBOX
43014 ## ------------------------------- ##
43015 ## Report this to www.asterisk.org ##
43016 ## ------------------------------- ##
43017 _ASBOX
43018 ) | sed "s/^/$as_me: WARNING: /" >&2
43020 esac
43021 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
43022 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
43023 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
43024 echo $ECHO_N "(cached) $ECHO_C" >&6
43025 else
43026 ac_cv_header_openssl_aes_h=$ac_header_preproc
43028 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
43029 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
43032 if test $ac_cv_header_openssl_aes_h = yes; then
43033 CRYPTO_HEADER_FOUND=1
43034 else
43035 CRYPTO_HEADER_FOUND=0
43039 CPPFLAGS="${saved_cppflags}"
43041 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
43042 CRYPTO_LIB=""
43043 CRYPTO_INCLUDE=""
43044 else
43045 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43046 CRYPTO_LIB=""
43048 PBX_CRYPTO=1
43049 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43051 cat >>confdefs.h <<_ACEOF
43052 #define HAVE_CRYPTO 1
43053 _ACEOF
43056 cat >>confdefs.h <<_ACEOF
43057 #define HAVE_CRYPTO_VERSION
43058 _ACEOF
43065 if test "$PBX_CRYPTO" = "1";
43066 then
43068 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
43069 pbxlibdir=""
43070 # if --with-OPENSSL=DIR has been specified, use it.
43071 if test "x${OPENSSL_DIR}" != "x"; then
43072 if test -d ${OPENSSL_DIR}/lib; then
43073 pbxlibdir="-L${OPENSSL_DIR}/lib"
43074 else
43075 pbxlibdir="-L${OPENSSL_DIR}"
43078 pbxfuncname="ssl2_connect"
43079 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43080 AST_OPENSSL_FOUND=yes
43081 else
43082 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
43083 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
43084 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
43085 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43086 echo $ECHO_N "(cached) $ECHO_C" >&6
43087 else
43088 ac_check_lib_save_LIBS=$LIBS
43089 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
43090 cat >conftest.$ac_ext <<_ACEOF
43091 /* confdefs.h. */
43092 _ACEOF
43093 cat confdefs.h >>conftest.$ac_ext
43094 cat >>conftest.$ac_ext <<_ACEOF
43095 /* end confdefs.h. */
43097 /* Override any GCC internal prototype to avoid an error.
43098 Use char because int might match the return type of a GCC
43099 builtin and then its argument prototype would still apply. */
43100 #ifdef __cplusplus
43101 extern "C"
43102 #endif
43103 char ${pbxfuncname} ();
43105 main ()
43107 return ${pbxfuncname} ();
43109 return 0;
43111 _ACEOF
43112 rm -f conftest.$ac_objext conftest$ac_exeext
43113 if { (ac_try="$ac_link"
43114 case "(($ac_try" in
43115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43116 *) ac_try_echo=$ac_try;;
43117 esac
43118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43119 (eval "$ac_link") 2>conftest.er1
43120 ac_status=$?
43121 grep -v '^ *+' conftest.er1 >conftest.err
43122 rm -f conftest.er1
43123 cat conftest.err >&5
43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125 (exit $ac_status); } && {
43126 test -z "$ac_c_werror_flag" ||
43127 test ! -s conftest.err
43128 } && test -s conftest$ac_exeext &&
43129 $as_test_x conftest$ac_exeext; then
43130 eval "$as_ac_Lib=yes"
43131 else
43132 echo "$as_me: failed program was:" >&5
43133 sed 's/^/| /' conftest.$ac_ext >&5
43135 eval "$as_ac_Lib=no"
43138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43139 conftest$ac_exeext conftest.$ac_ext
43140 LIBS=$ac_check_lib_save_LIBS
43142 ac_res=`eval echo '${'$as_ac_Lib'}'`
43143 { echo "$as_me:$LINENO: result: $ac_res" >&5
43144 echo "${ECHO_T}$ac_res" >&6; }
43145 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43146 AST_OPENSSL_FOUND=yes
43147 else
43148 AST_OPENSSL_FOUND=no
43153 # now check for the header.
43154 if test "${AST_OPENSSL_FOUND}" = "yes"; then
43155 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
43156 # if --with-OPENSSL=DIR has been specified, use it.
43157 if test "x${OPENSSL_DIR}" != "x"; then
43158 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
43160 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
43161 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
43162 OPENSSL_HEADER_FOUND="1"
43163 else # check for the header
43164 saved_cppflags="${CPPFLAGS}"
43165 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE} "
43166 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43167 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
43168 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
43169 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43170 echo $ECHO_N "(cached) $ECHO_C" >&6
43172 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
43173 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
43174 else
43175 # Is the header compilable?
43176 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
43177 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
43178 cat >conftest.$ac_ext <<_ACEOF
43179 /* confdefs.h. */
43180 _ACEOF
43181 cat confdefs.h >>conftest.$ac_ext
43182 cat >>conftest.$ac_ext <<_ACEOF
43183 /* end confdefs.h. */
43184 $ac_includes_default
43185 #include <openssl/ssl.h>
43186 _ACEOF
43187 rm -f conftest.$ac_objext
43188 if { (ac_try="$ac_compile"
43189 case "(($ac_try" in
43190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43191 *) ac_try_echo=$ac_try;;
43192 esac
43193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43194 (eval "$ac_compile") 2>conftest.er1
43195 ac_status=$?
43196 grep -v '^ *+' conftest.er1 >conftest.err
43197 rm -f conftest.er1
43198 cat conftest.err >&5
43199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200 (exit $ac_status); } && {
43201 test -z "$ac_c_werror_flag" ||
43202 test ! -s conftest.err
43203 } && test -s conftest.$ac_objext; then
43204 ac_header_compiler=yes
43205 else
43206 echo "$as_me: failed program was:" >&5
43207 sed 's/^/| /' conftest.$ac_ext >&5
43209 ac_header_compiler=no
43212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43214 echo "${ECHO_T}$ac_header_compiler" >&6; }
43216 # Is the header present?
43217 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
43218 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
43219 cat >conftest.$ac_ext <<_ACEOF
43220 /* confdefs.h. */
43221 _ACEOF
43222 cat confdefs.h >>conftest.$ac_ext
43223 cat >>conftest.$ac_ext <<_ACEOF
43224 /* end confdefs.h. */
43225 #include <openssl/ssl.h>
43226 _ACEOF
43227 if { (ac_try="$ac_cpp conftest.$ac_ext"
43228 case "(($ac_try" in
43229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43230 *) ac_try_echo=$ac_try;;
43231 esac
43232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43234 ac_status=$?
43235 grep -v '^ *+' conftest.er1 >conftest.err
43236 rm -f conftest.er1
43237 cat conftest.err >&5
43238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43239 (exit $ac_status); } >/dev/null && {
43240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43241 test ! -s conftest.err
43242 }; then
43243 ac_header_preproc=yes
43244 else
43245 echo "$as_me: failed program was:" >&5
43246 sed 's/^/| /' conftest.$ac_ext >&5
43248 ac_header_preproc=no
43251 rm -f conftest.err conftest.$ac_ext
43252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43253 echo "${ECHO_T}$ac_header_preproc" >&6; }
43255 # So? What about this header?
43256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43257 yes:no: )
43258 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
43259 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43260 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
43261 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
43262 ac_header_preproc=yes
43264 no:yes:* )
43265 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
43266 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
43267 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
43268 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
43269 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
43270 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
43271 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
43272 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
43273 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
43274 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
43275 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
43276 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
43277 ( cat <<\_ASBOX
43278 ## ------------------------------- ##
43279 ## Report this to www.asterisk.org ##
43280 ## ------------------------------- ##
43281 _ASBOX
43282 ) | sed "s/^/$as_me: WARNING: /" >&2
43284 esac
43285 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
43286 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
43287 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
43288 echo $ECHO_N "(cached) $ECHO_C" >&6
43289 else
43290 ac_cv_header_openssl_ssl_h=$ac_header_preproc
43292 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
43293 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
43296 if test $ac_cv_header_openssl_ssl_h = yes; then
43297 OPENSSL_HEADER_FOUND=1
43298 else
43299 OPENSSL_HEADER_FOUND=0
43303 CPPFLAGS="${saved_cppflags}"
43305 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
43306 OPENSSL_LIB=""
43307 OPENSSL_INCLUDE=""
43308 else
43309 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43310 OPENSSL_LIB=""
43312 PBX_OPENSSL=1
43313 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43315 cat >>confdefs.h <<_ACEOF
43316 #define HAVE_OPENSSL 1
43317 _ACEOF
43320 cat >>confdefs.h <<_ACEOF
43321 #define HAVE_OPENSSL_VERSION
43322 _ACEOF
43330 if test "$PBX_OPENSSL" = "1";
43331 then
43333 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
43334 pbxlibdir=""
43335 # if --with-OSPTK=DIR has been specified, use it.
43336 if test "x${OSPTK_DIR}" != "x"; then
43337 if test -d ${OSPTK_DIR}/lib; then
43338 pbxlibdir="-L${OSPTK_DIR}/lib"
43339 else
43340 pbxlibdir="-L${OSPTK_DIR}"
43343 pbxfuncname="OSPPCryptoDecrypt"
43344 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43345 AST_OSPTK_FOUND=yes
43346 else
43347 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
43348 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
43349 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
43350 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43351 echo $ECHO_N "(cached) $ECHO_C" >&6
43352 else
43353 ac_check_lib_save_LIBS=$LIBS
43354 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
43355 cat >conftest.$ac_ext <<_ACEOF
43356 /* confdefs.h. */
43357 _ACEOF
43358 cat confdefs.h >>conftest.$ac_ext
43359 cat >>conftest.$ac_ext <<_ACEOF
43360 /* end confdefs.h. */
43362 /* Override any GCC internal prototype to avoid an error.
43363 Use char because int might match the return type of a GCC
43364 builtin and then its argument prototype would still apply. */
43365 #ifdef __cplusplus
43366 extern "C"
43367 #endif
43368 char ${pbxfuncname} ();
43370 main ()
43372 return ${pbxfuncname} ();
43374 return 0;
43376 _ACEOF
43377 rm -f conftest.$ac_objext conftest$ac_exeext
43378 if { (ac_try="$ac_link"
43379 case "(($ac_try" in
43380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43381 *) ac_try_echo=$ac_try;;
43382 esac
43383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43384 (eval "$ac_link") 2>conftest.er1
43385 ac_status=$?
43386 grep -v '^ *+' conftest.er1 >conftest.err
43387 rm -f conftest.er1
43388 cat conftest.err >&5
43389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390 (exit $ac_status); } && {
43391 test -z "$ac_c_werror_flag" ||
43392 test ! -s conftest.err
43393 } && test -s conftest$ac_exeext &&
43394 $as_test_x conftest$ac_exeext; then
43395 eval "$as_ac_Lib=yes"
43396 else
43397 echo "$as_me: failed program was:" >&5
43398 sed 's/^/| /' conftest.$ac_ext >&5
43400 eval "$as_ac_Lib=no"
43403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43404 conftest$ac_exeext conftest.$ac_ext
43405 LIBS=$ac_check_lib_save_LIBS
43407 ac_res=`eval echo '${'$as_ac_Lib'}'`
43408 { echo "$as_me:$LINENO: result: $ac_res" >&5
43409 echo "${ECHO_T}$ac_res" >&6; }
43410 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43411 AST_OSPTK_FOUND=yes
43412 else
43413 AST_OSPTK_FOUND=no
43418 # now check for the header.
43419 if test "${AST_OSPTK_FOUND}" = "yes"; then
43420 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
43421 # if --with-OSPTK=DIR has been specified, use it.
43422 if test "x${OSPTK_DIR}" != "x"; then
43423 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
43425 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
43426 if test "xosp/osp.h" = "x" ; then # no header, assume found
43427 OSPTK_HEADER_FOUND="1"
43428 else # check for the header
43429 saved_cppflags="${CPPFLAGS}"
43430 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE} "
43431 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43432 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
43433 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
43434 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43435 echo $ECHO_N "(cached) $ECHO_C" >&6
43437 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
43438 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
43439 else
43440 # Is the header compilable?
43441 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
43442 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
43443 cat >conftest.$ac_ext <<_ACEOF
43444 /* confdefs.h. */
43445 _ACEOF
43446 cat confdefs.h >>conftest.$ac_ext
43447 cat >>conftest.$ac_ext <<_ACEOF
43448 /* end confdefs.h. */
43449 $ac_includes_default
43450 #include <osp/osp.h>
43451 _ACEOF
43452 rm -f conftest.$ac_objext
43453 if { (ac_try="$ac_compile"
43454 case "(($ac_try" in
43455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43456 *) ac_try_echo=$ac_try;;
43457 esac
43458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43459 (eval "$ac_compile") 2>conftest.er1
43460 ac_status=$?
43461 grep -v '^ *+' conftest.er1 >conftest.err
43462 rm -f conftest.er1
43463 cat conftest.err >&5
43464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43465 (exit $ac_status); } && {
43466 test -z "$ac_c_werror_flag" ||
43467 test ! -s conftest.err
43468 } && test -s conftest.$ac_objext; then
43469 ac_header_compiler=yes
43470 else
43471 echo "$as_me: failed program was:" >&5
43472 sed 's/^/| /' conftest.$ac_ext >&5
43474 ac_header_compiler=no
43477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43479 echo "${ECHO_T}$ac_header_compiler" >&6; }
43481 # Is the header present?
43482 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
43483 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
43484 cat >conftest.$ac_ext <<_ACEOF
43485 /* confdefs.h. */
43486 _ACEOF
43487 cat confdefs.h >>conftest.$ac_ext
43488 cat >>conftest.$ac_ext <<_ACEOF
43489 /* end confdefs.h. */
43490 #include <osp/osp.h>
43491 _ACEOF
43492 if { (ac_try="$ac_cpp conftest.$ac_ext"
43493 case "(($ac_try" in
43494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43495 *) ac_try_echo=$ac_try;;
43496 esac
43497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43499 ac_status=$?
43500 grep -v '^ *+' conftest.er1 >conftest.err
43501 rm -f conftest.er1
43502 cat conftest.err >&5
43503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43504 (exit $ac_status); } >/dev/null && {
43505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43506 test ! -s conftest.err
43507 }; then
43508 ac_header_preproc=yes
43509 else
43510 echo "$as_me: failed program was:" >&5
43511 sed 's/^/| /' conftest.$ac_ext >&5
43513 ac_header_preproc=no
43516 rm -f conftest.err conftest.$ac_ext
43517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43518 echo "${ECHO_T}$ac_header_preproc" >&6; }
43520 # So? What about this header?
43521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43522 yes:no: )
43523 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
43524 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43525 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
43526 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
43527 ac_header_preproc=yes
43529 no:yes:* )
43530 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
43531 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
43532 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
43533 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
43534 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
43535 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
43536 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
43537 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
43538 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
43539 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
43540 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
43541 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
43542 ( cat <<\_ASBOX
43543 ## ------------------------------- ##
43544 ## Report this to www.asterisk.org ##
43545 ## ------------------------------- ##
43546 _ASBOX
43547 ) | sed "s/^/$as_me: WARNING: /" >&2
43549 esac
43550 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
43551 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
43552 if test "${ac_cv_header_osp_osp_h+set}" = set; then
43553 echo $ECHO_N "(cached) $ECHO_C" >&6
43554 else
43555 ac_cv_header_osp_osp_h=$ac_header_preproc
43557 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
43558 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
43561 if test $ac_cv_header_osp_osp_h = yes; then
43562 OSPTK_HEADER_FOUND=1
43563 else
43564 OSPTK_HEADER_FOUND=0
43568 CPPFLAGS="${saved_cppflags}"
43570 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
43571 OSPTK_LIB=""
43572 OSPTK_INCLUDE=""
43573 else
43574 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43575 OSPTK_LIB=""
43577 PBX_OSPTK=1
43578 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43580 cat >>confdefs.h <<_ACEOF
43581 #define HAVE_OSPTK 1
43582 _ACEOF
43585 cat >>confdefs.h <<_ACEOF
43586 #define HAVE_OSPTK_VERSION
43587 _ACEOF
43596 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
43597 PBX_GMIME=0
43598 if test -n "$ac_tool_prefix"; then
43599 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
43600 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
43601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43603 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
43604 echo $ECHO_N "(cached) $ECHO_C" >&6
43605 else
43606 if test -n "$CONFIG_GMIME"; then
43607 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
43608 else
43609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43610 for as_dir in $PATH
43612 IFS=$as_save_IFS
43613 test -z "$as_dir" && as_dir=.
43614 for ac_exec_ext in '' $ac_executable_extensions; do
43615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43616 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
43617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43618 break 2
43620 done
43621 done
43622 IFS=$as_save_IFS
43626 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
43627 if test -n "$CONFIG_GMIME"; then
43628 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
43629 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
43630 else
43631 { echo "$as_me:$LINENO: result: no" >&5
43632 echo "${ECHO_T}no" >&6; }
43637 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
43638 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
43639 # Extract the first word of "gmime-config", so it can be a program name with args.
43640 set dummy gmime-config; ac_word=$2
43641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43643 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
43644 echo $ECHO_N "(cached) $ECHO_C" >&6
43645 else
43646 if test -n "$ac_ct_CONFIG_GMIME"; then
43647 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
43648 else
43649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43650 for as_dir in $PATH
43652 IFS=$as_save_IFS
43653 test -z "$as_dir" && as_dir=.
43654 for ac_exec_ext in '' $ac_executable_extensions; do
43655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43656 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
43657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43658 break 2
43660 done
43661 done
43662 IFS=$as_save_IFS
43666 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
43667 if test -n "$ac_ct_CONFIG_GMIME"; then
43668 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
43669 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
43670 else
43671 { echo "$as_me:$LINENO: result: no" >&5
43672 echo "${ECHO_T}no" >&6; }
43675 if test "x$ac_ct_CONFIG_GMIME" = x; then
43676 CONFIG_GMIME="No"
43677 else
43678 case $cross_compiling:$ac_tool_warned in
43679 yes:)
43680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
43681 whose name does not start with the host triplet. If you think this
43682 configuration is useful to you, please write to autoconf@gnu.org." >&5
43683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
43684 whose name does not start with the host triplet. If you think this
43685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
43686 ac_tool_warned=yes ;;
43687 esac
43688 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
43690 else
43691 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
43694 if test ! "x${CONFIG_GMIME}" = xNo; then
43695 if test x"" = x ; then A=--cflags ; else A="" ; fi
43696 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
43697 if test x"" = x ; then A=--libs ; else A="" ; fi
43698 GMIME_LIB=$(${CONFIG_GMIME} $A)
43699 if test x"" != x ; then
43700 saved_cppflags="${CPPFLAGS}"
43701 if test "x${GMIME_DIR}" != "x"; then
43702 GMIME_INCLUDE="-I${GMIME_DIR}/include"
43704 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
43706 saved_ldflags="${LDFLAGS}"
43707 LDFLAGS="${GMIME_LIB}"
43709 cat >conftest.$ac_ext <<_ACEOF
43710 /* confdefs.h. */
43711 _ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h. */
43717 main ()
43722 return 0;
43724 _ACEOF
43725 rm -f conftest.$ac_objext conftest$ac_exeext
43726 if { (ac_try="$ac_link"
43727 case "(($ac_try" in
43728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43729 *) ac_try_echo=$ac_try;;
43730 esac
43731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43732 (eval "$ac_link") 2>conftest.er1
43733 ac_status=$?
43734 grep -v '^ *+' conftest.er1 >conftest.err
43735 rm -f conftest.er1
43736 cat conftest.err >&5
43737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 (exit $ac_status); } && {
43739 test -z "$ac_c_werror_flag" ||
43740 test ! -s conftest.err
43741 } && test -s conftest$ac_exeext &&
43742 $as_test_x conftest$ac_exeext; then
43743 PBX_GMIME=1
43745 cat >>confdefs.h <<\_ACEOF
43746 #define HAVE_GMIME 1
43747 _ACEOF
43750 else
43751 echo "$as_me: failed program was:" >&5
43752 sed 's/^/| /' conftest.$ac_ext >&5
43758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43759 conftest$ac_exeext conftest.$ac_ext
43760 CPPFLAGS="${saved_cppflags}"
43761 LDFLAGS="${saved_ldflags}"
43762 else
43763 PBX_GMIME=1
43765 cat >>confdefs.h <<\_ACEOF
43766 #define HAVE_GMIME 1
43767 _ACEOF
43775 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
43776 pbxlibdir=""
43777 # if --with-FREETDS=DIR has been specified, use it.
43778 if test "x${FREETDS_DIR}" != "x"; then
43779 if test -d ${FREETDS_DIR}/lib; then
43780 pbxlibdir="-L${FREETDS_DIR}/lib"
43781 else
43782 pbxlibdir="-L${FREETDS_DIR}"
43785 pbxfuncname="tds_version"
43786 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43787 AST_FREETDS_FOUND=yes
43788 else
43789 as_ac_Lib=`echo "ac_cv_lib_tds_${pbxfuncname}" | $as_tr_sh`
43790 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltds" >&5
43791 echo $ECHO_N "checking for ${pbxfuncname} in -ltds... $ECHO_C" >&6; }
43792 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43793 echo $ECHO_N "(cached) $ECHO_C" >&6
43794 else
43795 ac_check_lib_save_LIBS=$LIBS
43796 LIBS="-ltds ${pbxlibdir} $LIBS"
43797 cat >conftest.$ac_ext <<_ACEOF
43798 /* confdefs.h. */
43799 _ACEOF
43800 cat confdefs.h >>conftest.$ac_ext
43801 cat >>conftest.$ac_ext <<_ACEOF
43802 /* end confdefs.h. */
43804 /* Override any GCC internal prototype to avoid an error.
43805 Use char because int might match the return type of a GCC
43806 builtin and then its argument prototype would still apply. */
43807 #ifdef __cplusplus
43808 extern "C"
43809 #endif
43810 char ${pbxfuncname} ();
43812 main ()
43814 return ${pbxfuncname} ();
43816 return 0;
43818 _ACEOF
43819 rm -f conftest.$ac_objext conftest$ac_exeext
43820 if { (ac_try="$ac_link"
43821 case "(($ac_try" in
43822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43823 *) ac_try_echo=$ac_try;;
43824 esac
43825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43826 (eval "$ac_link") 2>conftest.er1
43827 ac_status=$?
43828 grep -v '^ *+' conftest.er1 >conftest.err
43829 rm -f conftest.er1
43830 cat conftest.err >&5
43831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43832 (exit $ac_status); } && {
43833 test -z "$ac_c_werror_flag" ||
43834 test ! -s conftest.err
43835 } && test -s conftest$ac_exeext &&
43836 $as_test_x conftest$ac_exeext; then
43837 eval "$as_ac_Lib=yes"
43838 else
43839 echo "$as_me: failed program was:" >&5
43840 sed 's/^/| /' conftest.$ac_ext >&5
43842 eval "$as_ac_Lib=no"
43845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43846 conftest$ac_exeext conftest.$ac_ext
43847 LIBS=$ac_check_lib_save_LIBS
43849 ac_res=`eval echo '${'$as_ac_Lib'}'`
43850 { echo "$as_me:$LINENO: result: $ac_res" >&5
43851 echo "${ECHO_T}$ac_res" >&6; }
43852 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43853 AST_FREETDS_FOUND=yes
43854 else
43855 AST_FREETDS_FOUND=no
43860 # now check for the header.
43861 if test "${AST_FREETDS_FOUND}" = "yes"; then
43862 FREETDS_LIB="${pbxlibdir} -ltds "
43863 # if --with-FREETDS=DIR has been specified, use it.
43864 if test "x${FREETDS_DIR}" != "x"; then
43865 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
43867 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
43868 if test "xtds.h" = "x" ; then # no header, assume found
43869 FREETDS_HEADER_FOUND="1"
43870 else # check for the header
43871 saved_cppflags="${CPPFLAGS}"
43872 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE} "
43873 if test "${ac_cv_header_tds_h+set}" = set; then
43874 { echo "$as_me:$LINENO: checking for tds.h" >&5
43875 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
43876 if test "${ac_cv_header_tds_h+set}" = set; then
43877 echo $ECHO_N "(cached) $ECHO_C" >&6
43879 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
43880 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
43881 else
43882 # Is the header compilable?
43883 { echo "$as_me:$LINENO: checking tds.h usability" >&5
43884 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
43885 cat >conftest.$ac_ext <<_ACEOF
43886 /* confdefs.h. */
43887 _ACEOF
43888 cat confdefs.h >>conftest.$ac_ext
43889 cat >>conftest.$ac_ext <<_ACEOF
43890 /* end confdefs.h. */
43891 $ac_includes_default
43892 #include <tds.h>
43893 _ACEOF
43894 rm -f conftest.$ac_objext
43895 if { (ac_try="$ac_compile"
43896 case "(($ac_try" in
43897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43898 *) ac_try_echo=$ac_try;;
43899 esac
43900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43901 (eval "$ac_compile") 2>conftest.er1
43902 ac_status=$?
43903 grep -v '^ *+' conftest.er1 >conftest.err
43904 rm -f conftest.er1
43905 cat conftest.err >&5
43906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43907 (exit $ac_status); } && {
43908 test -z "$ac_c_werror_flag" ||
43909 test ! -s conftest.err
43910 } && test -s conftest.$ac_objext; then
43911 ac_header_compiler=yes
43912 else
43913 echo "$as_me: failed program was:" >&5
43914 sed 's/^/| /' conftest.$ac_ext >&5
43916 ac_header_compiler=no
43919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43921 echo "${ECHO_T}$ac_header_compiler" >&6; }
43923 # Is the header present?
43924 { echo "$as_me:$LINENO: checking tds.h presence" >&5
43925 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
43926 cat >conftest.$ac_ext <<_ACEOF
43927 /* confdefs.h. */
43928 _ACEOF
43929 cat confdefs.h >>conftest.$ac_ext
43930 cat >>conftest.$ac_ext <<_ACEOF
43931 /* end confdefs.h. */
43932 #include <tds.h>
43933 _ACEOF
43934 if { (ac_try="$ac_cpp conftest.$ac_ext"
43935 case "(($ac_try" in
43936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43937 *) ac_try_echo=$ac_try;;
43938 esac
43939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43941 ac_status=$?
43942 grep -v '^ *+' conftest.er1 >conftest.err
43943 rm -f conftest.er1
43944 cat conftest.err >&5
43945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43946 (exit $ac_status); } >/dev/null && {
43947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43948 test ! -s conftest.err
43949 }; then
43950 ac_header_preproc=yes
43951 else
43952 echo "$as_me: failed program was:" >&5
43953 sed 's/^/| /' conftest.$ac_ext >&5
43955 ac_header_preproc=no
43958 rm -f conftest.err conftest.$ac_ext
43959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43960 echo "${ECHO_T}$ac_header_preproc" >&6; }
43962 # So? What about this header?
43963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43964 yes:no: )
43965 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
43966 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43967 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
43968 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
43969 ac_header_preproc=yes
43971 no:yes:* )
43972 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
43973 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
43974 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
43975 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
43976 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
43977 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
43978 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
43979 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
43980 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
43981 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
43982 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
43983 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
43984 ( cat <<\_ASBOX
43985 ## ------------------------------- ##
43986 ## Report this to www.asterisk.org ##
43987 ## ------------------------------- ##
43988 _ASBOX
43989 ) | sed "s/^/$as_me: WARNING: /" >&2
43991 esac
43992 { echo "$as_me:$LINENO: checking for tds.h" >&5
43993 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
43994 if test "${ac_cv_header_tds_h+set}" = set; then
43995 echo $ECHO_N "(cached) $ECHO_C" >&6
43996 else
43997 ac_cv_header_tds_h=$ac_header_preproc
43999 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
44000 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
44003 if test $ac_cv_header_tds_h = yes; then
44004 FREETDS_HEADER_FOUND=1
44005 else
44006 FREETDS_HEADER_FOUND=0
44010 CPPFLAGS="${saved_cppflags}"
44012 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
44013 FREETDS_LIB=""
44014 FREETDS_INCLUDE=""
44015 else
44016 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44017 FREETDS_LIB=""
44019 PBX_FREETDS=1
44020 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44022 cat >>confdefs.h <<_ACEOF
44023 #define HAVE_FREETDS 1
44024 _ACEOF
44027 cat >>confdefs.h <<_ACEOF
44028 #define HAVE_FREETDS_VERSION
44029 _ACEOF
44035 if test "${PBX_FREETDS}" != "0";
44036 then
44037 if test "${FREETDS_DIR}x" = "x";
44038 then
44039 for tds_dir in /usr /usr/local;
44041 if test -f "${tds_dir}/include/tdsver.h";
44042 then
44043 FREETDS_DIR="${tds_dir}"
44045 done
44047 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
44048 *0.64*)
44049 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
44051 *0.63*)
44052 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
44054 *0.62*)
44055 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
44058 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
44060 esac
44064 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
44065 pbxlibdir=""
44066 # if --with-TERMCAP=DIR has been specified, use it.
44067 if test "x${TERMCAP_DIR}" != "x"; then
44068 if test -d ${TERMCAP_DIR}/lib; then
44069 pbxlibdir="-L${TERMCAP_DIR}/lib"
44070 else
44071 pbxlibdir="-L${TERMCAP_DIR}"
44074 pbxfuncname="tgetent"
44075 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44076 AST_TERMCAP_FOUND=yes
44077 else
44078 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
44079 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
44080 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
44081 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44082 echo $ECHO_N "(cached) $ECHO_C" >&6
44083 else
44084 ac_check_lib_save_LIBS=$LIBS
44085 LIBS="-ltermcap ${pbxlibdir} $LIBS"
44086 cat >conftest.$ac_ext <<_ACEOF
44087 /* confdefs.h. */
44088 _ACEOF
44089 cat confdefs.h >>conftest.$ac_ext
44090 cat >>conftest.$ac_ext <<_ACEOF
44091 /* end confdefs.h. */
44093 /* Override any GCC internal prototype to avoid an error.
44094 Use char because int might match the return type of a GCC
44095 builtin and then its argument prototype would still apply. */
44096 #ifdef __cplusplus
44097 extern "C"
44098 #endif
44099 char ${pbxfuncname} ();
44101 main ()
44103 return ${pbxfuncname} ();
44105 return 0;
44107 _ACEOF
44108 rm -f conftest.$ac_objext conftest$ac_exeext
44109 if { (ac_try="$ac_link"
44110 case "(($ac_try" in
44111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44112 *) ac_try_echo=$ac_try;;
44113 esac
44114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44115 (eval "$ac_link") 2>conftest.er1
44116 ac_status=$?
44117 grep -v '^ *+' conftest.er1 >conftest.err
44118 rm -f conftest.er1
44119 cat conftest.err >&5
44120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44121 (exit $ac_status); } && {
44122 test -z "$ac_c_werror_flag" ||
44123 test ! -s conftest.err
44124 } && test -s conftest$ac_exeext &&
44125 $as_test_x conftest$ac_exeext; then
44126 eval "$as_ac_Lib=yes"
44127 else
44128 echo "$as_me: failed program was:" >&5
44129 sed 's/^/| /' conftest.$ac_ext >&5
44131 eval "$as_ac_Lib=no"
44134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44135 conftest$ac_exeext conftest.$ac_ext
44136 LIBS=$ac_check_lib_save_LIBS
44138 ac_res=`eval echo '${'$as_ac_Lib'}'`
44139 { echo "$as_me:$LINENO: result: $ac_res" >&5
44140 echo "${ECHO_T}$ac_res" >&6; }
44141 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44142 AST_TERMCAP_FOUND=yes
44143 else
44144 AST_TERMCAP_FOUND=no
44149 # now check for the header.
44150 if test "${AST_TERMCAP_FOUND}" = "yes"; then
44151 TERMCAP_LIB="${pbxlibdir} -ltermcap "
44152 # if --with-TERMCAP=DIR has been specified, use it.
44153 if test "x${TERMCAP_DIR}" != "x"; then
44154 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
44156 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
44157 if test "x" = "x" ; then # no header, assume found
44158 TERMCAP_HEADER_FOUND="1"
44159 else # check for the header
44160 saved_cppflags="${CPPFLAGS}"
44161 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE} "
44162 if test "${ac_cv_header_+set}" = set; then
44163 { echo "$as_me:$LINENO: checking for " >&5
44164 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44165 if test "${ac_cv_header_+set}" = set; then
44166 echo $ECHO_N "(cached) $ECHO_C" >&6
44168 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44169 echo "${ECHO_T}$ac_cv_header_" >&6; }
44170 else
44171 # Is the header compilable?
44172 { echo "$as_me:$LINENO: checking usability" >&5
44173 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
44174 cat >conftest.$ac_ext <<_ACEOF
44175 /* confdefs.h. */
44176 _ACEOF
44177 cat confdefs.h >>conftest.$ac_ext
44178 cat >>conftest.$ac_ext <<_ACEOF
44179 /* end confdefs.h. */
44180 $ac_includes_default
44181 #include <>
44182 _ACEOF
44183 rm -f conftest.$ac_objext
44184 if { (ac_try="$ac_compile"
44185 case "(($ac_try" in
44186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44187 *) ac_try_echo=$ac_try;;
44188 esac
44189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44190 (eval "$ac_compile") 2>conftest.er1
44191 ac_status=$?
44192 grep -v '^ *+' conftest.er1 >conftest.err
44193 rm -f conftest.er1
44194 cat conftest.err >&5
44195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44196 (exit $ac_status); } && {
44197 test -z "$ac_c_werror_flag" ||
44198 test ! -s conftest.err
44199 } && test -s conftest.$ac_objext; then
44200 ac_header_compiler=yes
44201 else
44202 echo "$as_me: failed program was:" >&5
44203 sed 's/^/| /' conftest.$ac_ext >&5
44205 ac_header_compiler=no
44208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44210 echo "${ECHO_T}$ac_header_compiler" >&6; }
44212 # Is the header present?
44213 { echo "$as_me:$LINENO: checking presence" >&5
44214 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
44215 cat >conftest.$ac_ext <<_ACEOF
44216 /* confdefs.h. */
44217 _ACEOF
44218 cat confdefs.h >>conftest.$ac_ext
44219 cat >>conftest.$ac_ext <<_ACEOF
44220 /* end confdefs.h. */
44221 #include <>
44222 _ACEOF
44223 if { (ac_try="$ac_cpp conftest.$ac_ext"
44224 case "(($ac_try" in
44225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44226 *) ac_try_echo=$ac_try;;
44227 esac
44228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44230 ac_status=$?
44231 grep -v '^ *+' conftest.er1 >conftest.err
44232 rm -f conftest.er1
44233 cat conftest.err >&5
44234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235 (exit $ac_status); } >/dev/null && {
44236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44237 test ! -s conftest.err
44238 }; then
44239 ac_header_preproc=yes
44240 else
44241 echo "$as_me: failed program was:" >&5
44242 sed 's/^/| /' conftest.$ac_ext >&5
44244 ac_header_preproc=no
44247 rm -f conftest.err conftest.$ac_ext
44248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44249 echo "${ECHO_T}$ac_header_preproc" >&6; }
44251 # So? What about this header?
44252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44253 yes:no: )
44254 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
44255 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
44256 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
44257 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
44258 ac_header_preproc=yes
44260 no:yes:* )
44261 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
44262 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
44263 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
44264 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
44265 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
44266 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
44267 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
44268 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
44269 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
44270 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
44271 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
44272 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
44273 ( cat <<\_ASBOX
44274 ## ------------------------------- ##
44275 ## Report this to www.asterisk.org ##
44276 ## ------------------------------- ##
44277 _ASBOX
44278 ) | sed "s/^/$as_me: WARNING: /" >&2
44280 esac
44281 { echo "$as_me:$LINENO: checking for " >&5
44282 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44283 if test "${ac_cv_header_+set}" = set; then
44284 echo $ECHO_N "(cached) $ECHO_C" >&6
44285 else
44286 ac_cv_header_=$ac_header_preproc
44288 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44289 echo "${ECHO_T}$ac_cv_header_" >&6; }
44292 if test $ac_cv_header_ = yes; then
44293 TERMCAP_HEADER_FOUND=1
44294 else
44295 TERMCAP_HEADER_FOUND=0
44299 CPPFLAGS="${saved_cppflags}"
44301 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
44302 TERMCAP_LIB=""
44303 TERMCAP_INCLUDE=""
44304 else
44305 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44306 TERMCAP_LIB=""
44308 PBX_TERMCAP=1
44309 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44311 cat >>confdefs.h <<_ACEOF
44312 #define HAVE_TERMCAP 1
44313 _ACEOF
44316 cat >>confdefs.h <<_ACEOF
44317 #define HAVE_TERMCAP_VERSION
44318 _ACEOF
44326 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
44327 pbxlibdir=""
44328 # if --with-TINFO=DIR has been specified, use it.
44329 if test "x${TINFO_DIR}" != "x"; then
44330 if test -d ${TINFO_DIR}/lib; then
44331 pbxlibdir="-L${TINFO_DIR}/lib"
44332 else
44333 pbxlibdir="-L${TINFO_DIR}"
44336 pbxfuncname="tgetent"
44337 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44338 AST_TINFO_FOUND=yes
44339 else
44340 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
44341 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
44342 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
44343 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44344 echo $ECHO_N "(cached) $ECHO_C" >&6
44345 else
44346 ac_check_lib_save_LIBS=$LIBS
44347 LIBS="-ltinfo ${pbxlibdir} $LIBS"
44348 cat >conftest.$ac_ext <<_ACEOF
44349 /* confdefs.h. */
44350 _ACEOF
44351 cat confdefs.h >>conftest.$ac_ext
44352 cat >>conftest.$ac_ext <<_ACEOF
44353 /* end confdefs.h. */
44355 /* Override any GCC internal prototype to avoid an error.
44356 Use char because int might match the return type of a GCC
44357 builtin and then its argument prototype would still apply. */
44358 #ifdef __cplusplus
44359 extern "C"
44360 #endif
44361 char ${pbxfuncname} ();
44363 main ()
44365 return ${pbxfuncname} ();
44367 return 0;
44369 _ACEOF
44370 rm -f conftest.$ac_objext conftest$ac_exeext
44371 if { (ac_try="$ac_link"
44372 case "(($ac_try" in
44373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44374 *) ac_try_echo=$ac_try;;
44375 esac
44376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44377 (eval "$ac_link") 2>conftest.er1
44378 ac_status=$?
44379 grep -v '^ *+' conftest.er1 >conftest.err
44380 rm -f conftest.er1
44381 cat conftest.err >&5
44382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44383 (exit $ac_status); } && {
44384 test -z "$ac_c_werror_flag" ||
44385 test ! -s conftest.err
44386 } && test -s conftest$ac_exeext &&
44387 $as_test_x conftest$ac_exeext; then
44388 eval "$as_ac_Lib=yes"
44389 else
44390 echo "$as_me: failed program was:" >&5
44391 sed 's/^/| /' conftest.$ac_ext >&5
44393 eval "$as_ac_Lib=no"
44396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44397 conftest$ac_exeext conftest.$ac_ext
44398 LIBS=$ac_check_lib_save_LIBS
44400 ac_res=`eval echo '${'$as_ac_Lib'}'`
44401 { echo "$as_me:$LINENO: result: $ac_res" >&5
44402 echo "${ECHO_T}$ac_res" >&6; }
44403 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44404 AST_TINFO_FOUND=yes
44405 else
44406 AST_TINFO_FOUND=no
44411 # now check for the header.
44412 if test "${AST_TINFO_FOUND}" = "yes"; then
44413 TINFO_LIB="${pbxlibdir} -ltinfo "
44414 # if --with-TINFO=DIR has been specified, use it.
44415 if test "x${TINFO_DIR}" != "x"; then
44416 TINFO_INCLUDE="-I${TINFO_DIR}/include"
44418 TINFO_INCLUDE="${TINFO_INCLUDE} "
44419 if test "x" = "x" ; then # no header, assume found
44420 TINFO_HEADER_FOUND="1"
44421 else # check for the header
44422 saved_cppflags="${CPPFLAGS}"
44423 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE} "
44424 if test "${ac_cv_header_+set}" = set; then
44425 { echo "$as_me:$LINENO: checking for " >&5
44426 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44427 if test "${ac_cv_header_+set}" = set; then
44428 echo $ECHO_N "(cached) $ECHO_C" >&6
44430 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44431 echo "${ECHO_T}$ac_cv_header_" >&6; }
44432 else
44433 # Is the header compilable?
44434 { echo "$as_me:$LINENO: checking usability" >&5
44435 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
44436 cat >conftest.$ac_ext <<_ACEOF
44437 /* confdefs.h. */
44438 _ACEOF
44439 cat confdefs.h >>conftest.$ac_ext
44440 cat >>conftest.$ac_ext <<_ACEOF
44441 /* end confdefs.h. */
44442 $ac_includes_default
44443 #include <>
44444 _ACEOF
44445 rm -f conftest.$ac_objext
44446 if { (ac_try="$ac_compile"
44447 case "(($ac_try" in
44448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44449 *) ac_try_echo=$ac_try;;
44450 esac
44451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44452 (eval "$ac_compile") 2>conftest.er1
44453 ac_status=$?
44454 grep -v '^ *+' conftest.er1 >conftest.err
44455 rm -f conftest.er1
44456 cat conftest.err >&5
44457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44458 (exit $ac_status); } && {
44459 test -z "$ac_c_werror_flag" ||
44460 test ! -s conftest.err
44461 } && test -s conftest.$ac_objext; then
44462 ac_header_compiler=yes
44463 else
44464 echo "$as_me: failed program was:" >&5
44465 sed 's/^/| /' conftest.$ac_ext >&5
44467 ac_header_compiler=no
44470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44472 echo "${ECHO_T}$ac_header_compiler" >&6; }
44474 # Is the header present?
44475 { echo "$as_me:$LINENO: checking presence" >&5
44476 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
44477 cat >conftest.$ac_ext <<_ACEOF
44478 /* confdefs.h. */
44479 _ACEOF
44480 cat confdefs.h >>conftest.$ac_ext
44481 cat >>conftest.$ac_ext <<_ACEOF
44482 /* end confdefs.h. */
44483 #include <>
44484 _ACEOF
44485 if { (ac_try="$ac_cpp conftest.$ac_ext"
44486 case "(($ac_try" in
44487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44488 *) ac_try_echo=$ac_try;;
44489 esac
44490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44492 ac_status=$?
44493 grep -v '^ *+' conftest.er1 >conftest.err
44494 rm -f conftest.er1
44495 cat conftest.err >&5
44496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44497 (exit $ac_status); } >/dev/null && {
44498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44499 test ! -s conftest.err
44500 }; then
44501 ac_header_preproc=yes
44502 else
44503 echo "$as_me: failed program was:" >&5
44504 sed 's/^/| /' conftest.$ac_ext >&5
44506 ac_header_preproc=no
44509 rm -f conftest.err conftest.$ac_ext
44510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44511 echo "${ECHO_T}$ac_header_preproc" >&6; }
44513 # So? What about this header?
44514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44515 yes:no: )
44516 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
44517 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
44518 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
44519 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
44520 ac_header_preproc=yes
44522 no:yes:* )
44523 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
44524 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
44525 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
44526 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
44527 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
44528 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
44529 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
44530 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
44531 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
44532 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
44533 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
44534 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
44535 ( cat <<\_ASBOX
44536 ## ------------------------------- ##
44537 ## Report this to www.asterisk.org ##
44538 ## ------------------------------- ##
44539 _ASBOX
44540 ) | sed "s/^/$as_me: WARNING: /" >&2
44542 esac
44543 { echo "$as_me:$LINENO: checking for " >&5
44544 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
44545 if test "${ac_cv_header_+set}" = set; then
44546 echo $ECHO_N "(cached) $ECHO_C" >&6
44547 else
44548 ac_cv_header_=$ac_header_preproc
44550 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
44551 echo "${ECHO_T}$ac_cv_header_" >&6; }
44554 if test $ac_cv_header_ = yes; then
44555 TINFO_HEADER_FOUND=1
44556 else
44557 TINFO_HEADER_FOUND=0
44561 CPPFLAGS="${saved_cppflags}"
44563 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
44564 TINFO_LIB=""
44565 TINFO_INCLUDE=""
44566 else
44567 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44568 TINFO_LIB=""
44570 PBX_TINFO=1
44571 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44573 cat >>confdefs.h <<_ACEOF
44574 #define HAVE_TINFO 1
44575 _ACEOF
44578 cat >>confdefs.h <<_ACEOF
44579 #define HAVE_TINFO_VERSION
44580 _ACEOF
44587 if test "${host_os}" != "linux-gnu" ; then
44588 tonezone_extra="-lm"
44591 # new tonezone, version 1.4.0
44593 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
44594 pbxlibdir=""
44595 # if --with-TONEZONE=DIR has been specified, use it.
44596 if test "x${TONEZONE_DIR}" != "x"; then
44597 if test -d ${TONEZONE_DIR}/lib; then
44598 pbxlibdir="-L${TONEZONE_DIR}/lib"
44599 else
44600 pbxlibdir="-L${TONEZONE_DIR}"
44603 pbxfuncname="tone_zone_find"
44604 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44605 AST_TONEZONE_FOUND=yes
44606 else
44607 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
44608 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
44609 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
44610 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44611 echo $ECHO_N "(cached) $ECHO_C" >&6
44612 else
44613 ac_check_lib_save_LIBS=$LIBS
44614 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
44615 cat >conftest.$ac_ext <<_ACEOF
44616 /* confdefs.h. */
44617 _ACEOF
44618 cat confdefs.h >>conftest.$ac_ext
44619 cat >>conftest.$ac_ext <<_ACEOF
44620 /* end confdefs.h. */
44622 /* Override any GCC internal prototype to avoid an error.
44623 Use char because int might match the return type of a GCC
44624 builtin and then its argument prototype would still apply. */
44625 #ifdef __cplusplus
44626 extern "C"
44627 #endif
44628 char ${pbxfuncname} ();
44630 main ()
44632 return ${pbxfuncname} ();
44634 return 0;
44636 _ACEOF
44637 rm -f conftest.$ac_objext conftest$ac_exeext
44638 if { (ac_try="$ac_link"
44639 case "(($ac_try" in
44640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44641 *) ac_try_echo=$ac_try;;
44642 esac
44643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44644 (eval "$ac_link") 2>conftest.er1
44645 ac_status=$?
44646 grep -v '^ *+' conftest.er1 >conftest.err
44647 rm -f conftest.er1
44648 cat conftest.err >&5
44649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44650 (exit $ac_status); } && {
44651 test -z "$ac_c_werror_flag" ||
44652 test ! -s conftest.err
44653 } && test -s conftest$ac_exeext &&
44654 $as_test_x conftest$ac_exeext; then
44655 eval "$as_ac_Lib=yes"
44656 else
44657 echo "$as_me: failed program was:" >&5
44658 sed 's/^/| /' conftest.$ac_ext >&5
44660 eval "$as_ac_Lib=no"
44663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44664 conftest$ac_exeext conftest.$ac_ext
44665 LIBS=$ac_check_lib_save_LIBS
44667 ac_res=`eval echo '${'$as_ac_Lib'}'`
44668 { echo "$as_me:$LINENO: result: $ac_res" >&5
44669 echo "${ECHO_T}$ac_res" >&6; }
44670 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44671 AST_TONEZONE_FOUND=yes
44672 else
44673 AST_TONEZONE_FOUND=no
44678 # now check for the header.
44679 if test "${AST_TONEZONE_FOUND}" = "yes"; then
44680 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
44681 # if --with-TONEZONE=DIR has been specified, use it.
44682 if test "x${TONEZONE_DIR}" != "x"; then
44683 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
44685 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
44686 if test "xzaptel/tonezone.h" = "x" ; then # no header, assume found
44687 TONEZONE_HEADER_FOUND="1"
44688 else # check for the header
44689 saved_cppflags="${CPPFLAGS}"
44690 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
44691 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
44692 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
44693 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
44694 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
44695 echo $ECHO_N "(cached) $ECHO_C" >&6
44697 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
44698 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
44699 else
44700 # Is the header compilable?
44701 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
44702 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
44703 cat >conftest.$ac_ext <<_ACEOF
44704 /* confdefs.h. */
44705 _ACEOF
44706 cat confdefs.h >>conftest.$ac_ext
44707 cat >>conftest.$ac_ext <<_ACEOF
44708 /* end confdefs.h. */
44709 $ac_includes_default
44710 #include <zaptel/tonezone.h>
44711 _ACEOF
44712 rm -f conftest.$ac_objext
44713 if { (ac_try="$ac_compile"
44714 case "(($ac_try" in
44715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44716 *) ac_try_echo=$ac_try;;
44717 esac
44718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44719 (eval "$ac_compile") 2>conftest.er1
44720 ac_status=$?
44721 grep -v '^ *+' conftest.er1 >conftest.err
44722 rm -f conftest.er1
44723 cat conftest.err >&5
44724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44725 (exit $ac_status); } && {
44726 test -z "$ac_c_werror_flag" ||
44727 test ! -s conftest.err
44728 } && test -s conftest.$ac_objext; then
44729 ac_header_compiler=yes
44730 else
44731 echo "$as_me: failed program was:" >&5
44732 sed 's/^/| /' conftest.$ac_ext >&5
44734 ac_header_compiler=no
44737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44739 echo "${ECHO_T}$ac_header_compiler" >&6; }
44741 # Is the header present?
44742 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
44743 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
44744 cat >conftest.$ac_ext <<_ACEOF
44745 /* confdefs.h. */
44746 _ACEOF
44747 cat confdefs.h >>conftest.$ac_ext
44748 cat >>conftest.$ac_ext <<_ACEOF
44749 /* end confdefs.h. */
44750 #include <zaptel/tonezone.h>
44751 _ACEOF
44752 if { (ac_try="$ac_cpp conftest.$ac_ext"
44753 case "(($ac_try" in
44754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44755 *) ac_try_echo=$ac_try;;
44756 esac
44757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44759 ac_status=$?
44760 grep -v '^ *+' conftest.er1 >conftest.err
44761 rm -f conftest.er1
44762 cat conftest.err >&5
44763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44764 (exit $ac_status); } >/dev/null && {
44765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44766 test ! -s conftest.err
44767 }; then
44768 ac_header_preproc=yes
44769 else
44770 echo "$as_me: failed program was:" >&5
44771 sed 's/^/| /' conftest.$ac_ext >&5
44773 ac_header_preproc=no
44776 rm -f conftest.err conftest.$ac_ext
44777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44778 echo "${ECHO_T}$ac_header_preproc" >&6; }
44780 # So? What about this header?
44781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44782 yes:no: )
44783 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
44784 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44785 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
44786 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
44787 ac_header_preproc=yes
44789 no:yes:* )
44790 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
44791 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
44792 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
44793 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
44794 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
44795 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
44796 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
44797 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
44798 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
44799 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
44800 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
44801 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
44802 ( cat <<\_ASBOX
44803 ## ------------------------------- ##
44804 ## Report this to www.asterisk.org ##
44805 ## ------------------------------- ##
44806 _ASBOX
44807 ) | sed "s/^/$as_me: WARNING: /" >&2
44809 esac
44810 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
44811 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
44812 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
44813 echo $ECHO_N "(cached) $ECHO_C" >&6
44814 else
44815 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
44817 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
44818 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
44821 if test $ac_cv_header_zaptel_tonezone_h = yes; then
44822 TONEZONE_HEADER_FOUND=1
44823 else
44824 TONEZONE_HEADER_FOUND=0
44828 CPPFLAGS="${saved_cppflags}"
44830 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
44831 TONEZONE_LIB=""
44832 TONEZONE_INCLUDE=""
44833 else
44834 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44835 TONEZONE_LIB=""
44837 PBX_TONEZONE=1
44838 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44840 cat >>confdefs.h <<_ACEOF
44841 #define HAVE_TONEZONE 1
44842 _ACEOF
44845 cat >>confdefs.h <<_ACEOF
44846 #define HAVE_TONEZONE_VERSION 140
44847 _ACEOF
44853 # other case, old tonezone (0.80)
44855 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
44856 pbxlibdir=""
44857 # if --with-TONEZONE=DIR has been specified, use it.
44858 if test "x${TONEZONE_DIR}" != "x"; then
44859 if test -d ${TONEZONE_DIR}/lib; then
44860 pbxlibdir="-L${TONEZONE_DIR}/lib"
44861 else
44862 pbxlibdir="-L${TONEZONE_DIR}"
44865 pbxfuncname="tone_zone_find"
44866 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44867 AST_TONEZONE_FOUND=yes
44868 else
44869 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
44870 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
44871 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
44872 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44873 echo $ECHO_N "(cached) $ECHO_C" >&6
44874 else
44875 ac_check_lib_save_LIBS=$LIBS
44876 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
44877 cat >conftest.$ac_ext <<_ACEOF
44878 /* confdefs.h. */
44879 _ACEOF
44880 cat confdefs.h >>conftest.$ac_ext
44881 cat >>conftest.$ac_ext <<_ACEOF
44882 /* end confdefs.h. */
44884 /* Override any GCC internal prototype to avoid an error.
44885 Use char because int might match the return type of a GCC
44886 builtin and then its argument prototype would still apply. */
44887 #ifdef __cplusplus
44888 extern "C"
44889 #endif
44890 char ${pbxfuncname} ();
44892 main ()
44894 return ${pbxfuncname} ();
44896 return 0;
44898 _ACEOF
44899 rm -f conftest.$ac_objext conftest$ac_exeext
44900 if { (ac_try="$ac_link"
44901 case "(($ac_try" in
44902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44903 *) ac_try_echo=$ac_try;;
44904 esac
44905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44906 (eval "$ac_link") 2>conftest.er1
44907 ac_status=$?
44908 grep -v '^ *+' conftest.er1 >conftest.err
44909 rm -f conftest.er1
44910 cat conftest.err >&5
44911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44912 (exit $ac_status); } && {
44913 test -z "$ac_c_werror_flag" ||
44914 test ! -s conftest.err
44915 } && test -s conftest$ac_exeext &&
44916 $as_test_x conftest$ac_exeext; then
44917 eval "$as_ac_Lib=yes"
44918 else
44919 echo "$as_me: failed program was:" >&5
44920 sed 's/^/| /' conftest.$ac_ext >&5
44922 eval "$as_ac_Lib=no"
44925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44926 conftest$ac_exeext conftest.$ac_ext
44927 LIBS=$ac_check_lib_save_LIBS
44929 ac_res=`eval echo '${'$as_ac_Lib'}'`
44930 { echo "$as_me:$LINENO: result: $ac_res" >&5
44931 echo "${ECHO_T}$ac_res" >&6; }
44932 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44933 AST_TONEZONE_FOUND=yes
44934 else
44935 AST_TONEZONE_FOUND=no
44940 # now check for the header.
44941 if test "${AST_TONEZONE_FOUND}" = "yes"; then
44942 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
44943 # if --with-TONEZONE=DIR has been specified, use it.
44944 if test "x${TONEZONE_DIR}" != "x"; then
44945 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
44947 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
44948 if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found
44949 TONEZONE_HEADER_FOUND="1"
44950 else # check for the header
44951 saved_cppflags="${CPPFLAGS}"
44952 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
44953 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
44954 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
44955 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
44956 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
44957 echo $ECHO_N "(cached) $ECHO_C" >&6
44959 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
44960 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
44961 else
44962 # Is the header compilable?
44963 { echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5
44964 echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; }
44965 cat >conftest.$ac_ext <<_ACEOF
44966 /* confdefs.h. */
44967 _ACEOF
44968 cat confdefs.h >>conftest.$ac_ext
44969 cat >>conftest.$ac_ext <<_ACEOF
44970 /* end confdefs.h. */
44971 $ac_includes_default
44972 #include <zaptel/zaptel.h>
44973 _ACEOF
44974 rm -f conftest.$ac_objext
44975 if { (ac_try="$ac_compile"
44976 case "(($ac_try" in
44977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44978 *) ac_try_echo=$ac_try;;
44979 esac
44980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44981 (eval "$ac_compile") 2>conftest.er1
44982 ac_status=$?
44983 grep -v '^ *+' conftest.er1 >conftest.err
44984 rm -f conftest.er1
44985 cat conftest.err >&5
44986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44987 (exit $ac_status); } && {
44988 test -z "$ac_c_werror_flag" ||
44989 test ! -s conftest.err
44990 } && test -s conftest.$ac_objext; then
44991 ac_header_compiler=yes
44992 else
44993 echo "$as_me: failed program was:" >&5
44994 sed 's/^/| /' conftest.$ac_ext >&5
44996 ac_header_compiler=no
44999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45001 echo "${ECHO_T}$ac_header_compiler" >&6; }
45003 # Is the header present?
45004 { echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5
45005 echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; }
45006 cat >conftest.$ac_ext <<_ACEOF
45007 /* confdefs.h. */
45008 _ACEOF
45009 cat confdefs.h >>conftest.$ac_ext
45010 cat >>conftest.$ac_ext <<_ACEOF
45011 /* end confdefs.h. */
45012 #include <zaptel/zaptel.h>
45013 _ACEOF
45014 if { (ac_try="$ac_cpp conftest.$ac_ext"
45015 case "(($ac_try" in
45016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45017 *) ac_try_echo=$ac_try;;
45018 esac
45019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45021 ac_status=$?
45022 grep -v '^ *+' conftest.er1 >conftest.err
45023 rm -f conftest.er1
45024 cat conftest.err >&5
45025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45026 (exit $ac_status); } >/dev/null && {
45027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45028 test ! -s conftest.err
45029 }; then
45030 ac_header_preproc=yes
45031 else
45032 echo "$as_me: failed program was:" >&5
45033 sed 's/^/| /' conftest.$ac_ext >&5
45035 ac_header_preproc=no
45038 rm -f conftest.err conftest.$ac_ext
45039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45040 echo "${ECHO_T}$ac_header_preproc" >&6; }
45042 # So? What about this header?
45043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45044 yes:no: )
45045 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
45046 echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45047 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5
45048 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
45049 ac_header_preproc=yes
45051 no:yes:* )
45052 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5
45053 echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;}
45054 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5
45055 echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
45056 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5
45057 echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;}
45058 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
45059 echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
45060 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
45061 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
45062 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
45063 echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
45064 ( cat <<\_ASBOX
45065 ## ------------------------------- ##
45066 ## Report this to www.asterisk.org ##
45067 ## ------------------------------- ##
45068 _ASBOX
45069 ) | sed "s/^/$as_me: WARNING: /" >&2
45071 esac
45072 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
45073 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
45074 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
45075 echo $ECHO_N "(cached) $ECHO_C" >&6
45076 else
45077 ac_cv_header_zaptel_zaptel_h=$ac_header_preproc
45079 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
45080 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
45083 if test $ac_cv_header_zaptel_zaptel_h = yes; then
45084 TONEZONE_HEADER_FOUND=1
45085 else
45086 TONEZONE_HEADER_FOUND=0
45090 CPPFLAGS="${saved_cppflags}"
45092 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
45093 TONEZONE_LIB=""
45094 TONEZONE_INCLUDE=""
45095 else
45096 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45097 TONEZONE_LIB=""
45099 PBX_TONEZONE=1
45100 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45102 cat >>confdefs.h <<_ACEOF
45103 #define HAVE_TONEZONE 1
45104 _ACEOF
45107 cat >>confdefs.h <<_ACEOF
45108 #define HAVE_TONEZONE_VERSION 80
45109 _ACEOF
45117 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
45118 pbxlibdir=""
45119 # if --with-USB=DIR has been specified, use it.
45120 if test "x${USB_DIR}" != "x"; then
45121 if test -d ${USB_DIR}/lib; then
45122 pbxlibdir="-L${USB_DIR}/lib"
45123 else
45124 pbxlibdir="-L${USB_DIR}"
45127 pbxfuncname="usb_init"
45128 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45129 AST_USB_FOUND=yes
45130 else
45131 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
45132 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
45133 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
45134 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45135 echo $ECHO_N "(cached) $ECHO_C" >&6
45136 else
45137 ac_check_lib_save_LIBS=$LIBS
45138 LIBS="-lusb ${pbxlibdir} $LIBS"
45139 cat >conftest.$ac_ext <<_ACEOF
45140 /* confdefs.h. */
45141 _ACEOF
45142 cat confdefs.h >>conftest.$ac_ext
45143 cat >>conftest.$ac_ext <<_ACEOF
45144 /* end confdefs.h. */
45146 /* Override any GCC internal prototype to avoid an error.
45147 Use char because int might match the return type of a GCC
45148 builtin and then its argument prototype would still apply. */
45149 #ifdef __cplusplus
45150 extern "C"
45151 #endif
45152 char ${pbxfuncname} ();
45154 main ()
45156 return ${pbxfuncname} ();
45158 return 0;
45160 _ACEOF
45161 rm -f conftest.$ac_objext conftest$ac_exeext
45162 if { (ac_try="$ac_link"
45163 case "(($ac_try" in
45164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45165 *) ac_try_echo=$ac_try;;
45166 esac
45167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45168 (eval "$ac_link") 2>conftest.er1
45169 ac_status=$?
45170 grep -v '^ *+' conftest.er1 >conftest.err
45171 rm -f conftest.er1
45172 cat conftest.err >&5
45173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45174 (exit $ac_status); } && {
45175 test -z "$ac_c_werror_flag" ||
45176 test ! -s conftest.err
45177 } && test -s conftest$ac_exeext &&
45178 $as_test_x conftest$ac_exeext; then
45179 eval "$as_ac_Lib=yes"
45180 else
45181 echo "$as_me: failed program was:" >&5
45182 sed 's/^/| /' conftest.$ac_ext >&5
45184 eval "$as_ac_Lib=no"
45187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45188 conftest$ac_exeext conftest.$ac_ext
45189 LIBS=$ac_check_lib_save_LIBS
45191 ac_res=`eval echo '${'$as_ac_Lib'}'`
45192 { echo "$as_me:$LINENO: result: $ac_res" >&5
45193 echo "${ECHO_T}$ac_res" >&6; }
45194 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45195 AST_USB_FOUND=yes
45196 else
45197 AST_USB_FOUND=no
45202 # now check for the header.
45203 if test "${AST_USB_FOUND}" = "yes"; then
45204 USB_LIB="${pbxlibdir} -lusb "
45205 # if --with-USB=DIR has been specified, use it.
45206 if test "x${USB_DIR}" != "x"; then
45207 USB_INCLUDE="-I${USB_DIR}/include"
45209 USB_INCLUDE="${USB_INCLUDE} "
45210 if test "xusb.h" = "x" ; then # no header, assume found
45211 USB_HEADER_FOUND="1"
45212 else # check for the header
45213 saved_cppflags="${CPPFLAGS}"
45214 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} "
45215 if test "${ac_cv_header_usb_h+set}" = set; then
45216 { echo "$as_me:$LINENO: checking for usb.h" >&5
45217 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
45218 if test "${ac_cv_header_usb_h+set}" = set; then
45219 echo $ECHO_N "(cached) $ECHO_C" >&6
45221 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
45222 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
45223 else
45224 # Is the header compilable?
45225 { echo "$as_me:$LINENO: checking usb.h usability" >&5
45226 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
45227 cat >conftest.$ac_ext <<_ACEOF
45228 /* confdefs.h. */
45229 _ACEOF
45230 cat confdefs.h >>conftest.$ac_ext
45231 cat >>conftest.$ac_ext <<_ACEOF
45232 /* end confdefs.h. */
45233 $ac_includes_default
45234 #include <usb.h>
45235 _ACEOF
45236 rm -f conftest.$ac_objext
45237 if { (ac_try="$ac_compile"
45238 case "(($ac_try" in
45239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45240 *) ac_try_echo=$ac_try;;
45241 esac
45242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45243 (eval "$ac_compile") 2>conftest.er1
45244 ac_status=$?
45245 grep -v '^ *+' conftest.er1 >conftest.err
45246 rm -f conftest.er1
45247 cat conftest.err >&5
45248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45249 (exit $ac_status); } && {
45250 test -z "$ac_c_werror_flag" ||
45251 test ! -s conftest.err
45252 } && test -s conftest.$ac_objext; then
45253 ac_header_compiler=yes
45254 else
45255 echo "$as_me: failed program was:" >&5
45256 sed 's/^/| /' conftest.$ac_ext >&5
45258 ac_header_compiler=no
45261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45263 echo "${ECHO_T}$ac_header_compiler" >&6; }
45265 # Is the header present?
45266 { echo "$as_me:$LINENO: checking usb.h presence" >&5
45267 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
45268 cat >conftest.$ac_ext <<_ACEOF
45269 /* confdefs.h. */
45270 _ACEOF
45271 cat confdefs.h >>conftest.$ac_ext
45272 cat >>conftest.$ac_ext <<_ACEOF
45273 /* end confdefs.h. */
45274 #include <usb.h>
45275 _ACEOF
45276 if { (ac_try="$ac_cpp conftest.$ac_ext"
45277 case "(($ac_try" in
45278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45279 *) ac_try_echo=$ac_try;;
45280 esac
45281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45283 ac_status=$?
45284 grep -v '^ *+' conftest.er1 >conftest.err
45285 rm -f conftest.er1
45286 cat conftest.err >&5
45287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45288 (exit $ac_status); } >/dev/null && {
45289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45290 test ! -s conftest.err
45291 }; then
45292 ac_header_preproc=yes
45293 else
45294 echo "$as_me: failed program was:" >&5
45295 sed 's/^/| /' conftest.$ac_ext >&5
45297 ac_header_preproc=no
45300 rm -f conftest.err conftest.$ac_ext
45301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45302 echo "${ECHO_T}$ac_header_preproc" >&6; }
45304 # So? What about this header?
45305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45306 yes:no: )
45307 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
45308 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45309 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
45310 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
45311 ac_header_preproc=yes
45313 no:yes:* )
45314 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
45315 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
45316 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
45317 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
45318 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
45319 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
45320 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
45321 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
45322 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
45323 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
45324 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
45325 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
45326 ( cat <<\_ASBOX
45327 ## ------------------------------- ##
45328 ## Report this to www.asterisk.org ##
45329 ## ------------------------------- ##
45330 _ASBOX
45331 ) | sed "s/^/$as_me: WARNING: /" >&2
45333 esac
45334 { echo "$as_me:$LINENO: checking for usb.h" >&5
45335 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
45336 if test "${ac_cv_header_usb_h+set}" = set; then
45337 echo $ECHO_N "(cached) $ECHO_C" >&6
45338 else
45339 ac_cv_header_usb_h=$ac_header_preproc
45341 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
45342 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
45345 if test $ac_cv_header_usb_h = yes; then
45346 USB_HEADER_FOUND=1
45347 else
45348 USB_HEADER_FOUND=0
45352 CPPFLAGS="${saved_cppflags}"
45354 if test "x${USB_HEADER_FOUND}" = "x0" ; then
45355 USB_LIB=""
45356 USB_INCLUDE=""
45357 else
45358 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45359 USB_LIB=""
45361 PBX_USB=1
45362 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45364 cat >>confdefs.h <<_ACEOF
45365 #define HAVE_USB 1
45366 _ACEOF
45369 cat >>confdefs.h <<_ACEOF
45370 #define HAVE_USB_VERSION
45371 _ACEOF
45379 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
45380 pbxlibdir=""
45381 # if --with-VORBIS=DIR has been specified, use it.
45382 if test "x${VORBIS_DIR}" != "x"; then
45383 if test -d ${VORBIS_DIR}/lib; then
45384 pbxlibdir="-L${VORBIS_DIR}/lib"
45385 else
45386 pbxlibdir="-L${VORBIS_DIR}"
45389 pbxfuncname="vorbis_info_init"
45390 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45391 AST_VORBIS_FOUND=yes
45392 else
45393 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
45394 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
45395 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
45396 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45397 echo $ECHO_N "(cached) $ECHO_C" >&6
45398 else
45399 ac_check_lib_save_LIBS=$LIBS
45400 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
45401 cat >conftest.$ac_ext <<_ACEOF
45402 /* confdefs.h. */
45403 _ACEOF
45404 cat confdefs.h >>conftest.$ac_ext
45405 cat >>conftest.$ac_ext <<_ACEOF
45406 /* end confdefs.h. */
45408 /* Override any GCC internal prototype to avoid an error.
45409 Use char because int might match the return type of a GCC
45410 builtin and then its argument prototype would still apply. */
45411 #ifdef __cplusplus
45412 extern "C"
45413 #endif
45414 char ${pbxfuncname} ();
45416 main ()
45418 return ${pbxfuncname} ();
45420 return 0;
45422 _ACEOF
45423 rm -f conftest.$ac_objext conftest$ac_exeext
45424 if { (ac_try="$ac_link"
45425 case "(($ac_try" in
45426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45427 *) ac_try_echo=$ac_try;;
45428 esac
45429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45430 (eval "$ac_link") 2>conftest.er1
45431 ac_status=$?
45432 grep -v '^ *+' conftest.er1 >conftest.err
45433 rm -f conftest.er1
45434 cat conftest.err >&5
45435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45436 (exit $ac_status); } && {
45437 test -z "$ac_c_werror_flag" ||
45438 test ! -s conftest.err
45439 } && test -s conftest$ac_exeext &&
45440 $as_test_x conftest$ac_exeext; then
45441 eval "$as_ac_Lib=yes"
45442 else
45443 echo "$as_me: failed program was:" >&5
45444 sed 's/^/| /' conftest.$ac_ext >&5
45446 eval "$as_ac_Lib=no"
45449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45450 conftest$ac_exeext conftest.$ac_ext
45451 LIBS=$ac_check_lib_save_LIBS
45453 ac_res=`eval echo '${'$as_ac_Lib'}'`
45454 { echo "$as_me:$LINENO: result: $ac_res" >&5
45455 echo "${ECHO_T}$ac_res" >&6; }
45456 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45457 AST_VORBIS_FOUND=yes
45458 else
45459 AST_VORBIS_FOUND=no
45464 # now check for the header.
45465 if test "${AST_VORBIS_FOUND}" = "yes"; then
45466 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
45467 # if --with-VORBIS=DIR has been specified, use it.
45468 if test "x${VORBIS_DIR}" != "x"; then
45469 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
45471 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
45472 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
45473 VORBIS_HEADER_FOUND="1"
45474 else # check for the header
45475 saved_cppflags="${CPPFLAGS}"
45476 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE} "
45477 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45478 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
45479 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
45480 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45481 echo $ECHO_N "(cached) $ECHO_C" >&6
45483 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
45484 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
45485 else
45486 # Is the header compilable?
45487 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
45488 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
45489 cat >conftest.$ac_ext <<_ACEOF
45490 /* confdefs.h. */
45491 _ACEOF
45492 cat confdefs.h >>conftest.$ac_ext
45493 cat >>conftest.$ac_ext <<_ACEOF
45494 /* end confdefs.h. */
45495 $ac_includes_default
45496 #include <vorbis/codec.h>
45497 _ACEOF
45498 rm -f conftest.$ac_objext
45499 if { (ac_try="$ac_compile"
45500 case "(($ac_try" in
45501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45502 *) ac_try_echo=$ac_try;;
45503 esac
45504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45505 (eval "$ac_compile") 2>conftest.er1
45506 ac_status=$?
45507 grep -v '^ *+' conftest.er1 >conftest.err
45508 rm -f conftest.er1
45509 cat conftest.err >&5
45510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45511 (exit $ac_status); } && {
45512 test -z "$ac_c_werror_flag" ||
45513 test ! -s conftest.err
45514 } && test -s conftest.$ac_objext; then
45515 ac_header_compiler=yes
45516 else
45517 echo "$as_me: failed program was:" >&5
45518 sed 's/^/| /' conftest.$ac_ext >&5
45520 ac_header_compiler=no
45523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45525 echo "${ECHO_T}$ac_header_compiler" >&6; }
45527 # Is the header present?
45528 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
45529 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
45530 cat >conftest.$ac_ext <<_ACEOF
45531 /* confdefs.h. */
45532 _ACEOF
45533 cat confdefs.h >>conftest.$ac_ext
45534 cat >>conftest.$ac_ext <<_ACEOF
45535 /* end confdefs.h. */
45536 #include <vorbis/codec.h>
45537 _ACEOF
45538 if { (ac_try="$ac_cpp conftest.$ac_ext"
45539 case "(($ac_try" in
45540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45541 *) ac_try_echo=$ac_try;;
45542 esac
45543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45545 ac_status=$?
45546 grep -v '^ *+' conftest.er1 >conftest.err
45547 rm -f conftest.er1
45548 cat conftest.err >&5
45549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45550 (exit $ac_status); } >/dev/null && {
45551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45552 test ! -s conftest.err
45553 }; then
45554 ac_header_preproc=yes
45555 else
45556 echo "$as_me: failed program was:" >&5
45557 sed 's/^/| /' conftest.$ac_ext >&5
45559 ac_header_preproc=no
45562 rm -f conftest.err conftest.$ac_ext
45563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45564 echo "${ECHO_T}$ac_header_preproc" >&6; }
45566 # So? What about this header?
45567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45568 yes:no: )
45569 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
45570 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45571 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
45572 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
45573 ac_header_preproc=yes
45575 no:yes:* )
45576 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
45577 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
45578 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
45579 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
45580 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
45581 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
45582 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
45583 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
45584 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
45585 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
45586 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
45587 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
45588 ( cat <<\_ASBOX
45589 ## ------------------------------- ##
45590 ## Report this to www.asterisk.org ##
45591 ## ------------------------------- ##
45592 _ASBOX
45593 ) | sed "s/^/$as_me: WARNING: /" >&2
45595 esac
45596 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
45597 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
45598 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
45599 echo $ECHO_N "(cached) $ECHO_C" >&6
45600 else
45601 ac_cv_header_vorbis_codec_h=$ac_header_preproc
45603 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
45604 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
45607 if test $ac_cv_header_vorbis_codec_h = yes; then
45608 VORBIS_HEADER_FOUND=1
45609 else
45610 VORBIS_HEADER_FOUND=0
45614 CPPFLAGS="${saved_cppflags}"
45616 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
45617 VORBIS_LIB=""
45618 VORBIS_INCLUDE=""
45619 else
45620 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45621 VORBIS_LIB=""
45623 PBX_VORBIS=1
45624 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45626 cat >>confdefs.h <<_ACEOF
45627 #define HAVE_VORBIS 1
45628 _ACEOF
45631 cat >>confdefs.h <<_ACEOF
45632 #define HAVE_VORBIS_VERSION
45633 _ACEOF
45640 ac_ext=cpp
45641 ac_cpp='$CXXCPP $CPPFLAGS'
45642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45647 if test "${USE_VPB}" != "no"; then
45648 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
45649 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
45650 saved_libs="${LIBS}"
45651 saved_cppflags="${CPPFLAGS}"
45652 if test "x${VPB_DIR}" != "x"; then
45653 if test -d ${VPB_DIR}/lib; then
45654 vpblibdir=${VPB_DIR}/lib
45655 else
45656 vpblibdir=${VPB_DIR}
45658 LIBS="${LIBS} -L${vpblibdir}"
45659 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
45661 LIBS="${LIBS} -lvpb -lpthread"
45662 cat >conftest.$ac_ext <<_ACEOF
45664 /* confdefs.h. */
45665 _ACEOF
45666 cat confdefs.h >>conftest.$ac_ext
45667 cat >>conftest.$ac_ext <<_ACEOF
45668 /* end confdefs.h. */
45669 #include <vpbapi.h>
45671 main ()
45673 int q = vpb_open(0,0);
45675 return 0;
45678 _ACEOF
45679 rm -f conftest.$ac_objext conftest$ac_exeext
45680 if { (ac_try="$ac_link"
45681 case "(($ac_try" in
45682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45683 *) ac_try_echo=$ac_try;;
45684 esac
45685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45686 (eval "$ac_link") 2>conftest.er1
45687 ac_status=$?
45688 grep -v '^ *+' conftest.er1 >conftest.err
45689 rm -f conftest.er1
45690 cat conftest.err >&5
45691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45692 (exit $ac_status); } && {
45693 test -z "$ac_cxx_werror_flag" ||
45694 test ! -s conftest.err
45695 } && test -s conftest$ac_exeext &&
45696 $as_test_x conftest$ac_exeext; then
45697 { echo "$as_me:$LINENO: result: yes" >&5
45698 echo "${ECHO_T}yes" >&6; }
45699 ac_cv_lib_vpb_vpb_open="yes"
45701 else
45702 echo "$as_me: failed program was:" >&5
45703 sed 's/^/| /' conftest.$ac_ext >&5
45705 { echo "$as_me:$LINENO: result: no" >&5
45706 echo "${ECHO_T}no" >&6; }
45707 ac_cv_lib_vpb_vpb_open="no"
45712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45713 conftest$ac_exeext conftest.$ac_ext
45714 LIBS="${saved_libs}"
45715 CPPFLAGS="${saved_cppflags}"
45716 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
45717 VPB_LIB="-lvpb"
45718 if test "${VPB_DIR}" != ""; then
45719 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
45720 VPB_INCLUDE="-I${VPB_DIR}/include"
45722 PBX_VPB=1
45724 cat >>confdefs.h <<\_ACEOF
45725 #define HAVE_VPB 1
45726 _ACEOF
45731 ac_ext=c
45732 ac_cpp='$CPP $CPPFLAGS'
45733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45739 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
45740 pbxlibdir=""
45741 # if --with-ZLIB=DIR has been specified, use it.
45742 if test "x${ZLIB_DIR}" != "x"; then
45743 if test -d ${ZLIB_DIR}/lib; then
45744 pbxlibdir="-L${ZLIB_DIR}/lib"
45745 else
45746 pbxlibdir="-L${ZLIB_DIR}"
45749 pbxfuncname="compress"
45750 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45751 AST_ZLIB_FOUND=yes
45752 else
45753 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
45754 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
45755 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $ECHO_C" >&6; }
45756 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45757 echo $ECHO_N "(cached) $ECHO_C" >&6
45758 else
45759 ac_check_lib_save_LIBS=$LIBS
45760 LIBS="-lz ${pbxlibdir} $LIBS"
45761 cat >conftest.$ac_ext <<_ACEOF
45762 /* confdefs.h. */
45763 _ACEOF
45764 cat confdefs.h >>conftest.$ac_ext
45765 cat >>conftest.$ac_ext <<_ACEOF
45766 /* end confdefs.h. */
45768 /* Override any GCC internal prototype to avoid an error.
45769 Use char because int might match the return type of a GCC
45770 builtin and then its argument prototype would still apply. */
45771 #ifdef __cplusplus
45772 extern "C"
45773 #endif
45774 char ${pbxfuncname} ();
45776 main ()
45778 return ${pbxfuncname} ();
45780 return 0;
45782 _ACEOF
45783 rm -f conftest.$ac_objext conftest$ac_exeext
45784 if { (ac_try="$ac_link"
45785 case "(($ac_try" in
45786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45787 *) ac_try_echo=$ac_try;;
45788 esac
45789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45790 (eval "$ac_link") 2>conftest.er1
45791 ac_status=$?
45792 grep -v '^ *+' conftest.er1 >conftest.err
45793 rm -f conftest.er1
45794 cat conftest.err >&5
45795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45796 (exit $ac_status); } && {
45797 test -z "$ac_c_werror_flag" ||
45798 test ! -s conftest.err
45799 } && test -s conftest$ac_exeext &&
45800 $as_test_x conftest$ac_exeext; then
45801 eval "$as_ac_Lib=yes"
45802 else
45803 echo "$as_me: failed program was:" >&5
45804 sed 's/^/| /' conftest.$ac_ext >&5
45806 eval "$as_ac_Lib=no"
45809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45810 conftest$ac_exeext conftest.$ac_ext
45811 LIBS=$ac_check_lib_save_LIBS
45813 ac_res=`eval echo '${'$as_ac_Lib'}'`
45814 { echo "$as_me:$LINENO: result: $ac_res" >&5
45815 echo "${ECHO_T}$ac_res" >&6; }
45816 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45817 AST_ZLIB_FOUND=yes
45818 else
45819 AST_ZLIB_FOUND=no
45824 # now check for the header.
45825 if test "${AST_ZLIB_FOUND}" = "yes"; then
45826 ZLIB_LIB="${pbxlibdir} -lz "
45827 # if --with-ZLIB=DIR has been specified, use it.
45828 if test "x${ZLIB_DIR}" != "x"; then
45829 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
45831 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
45832 if test "xzlib.h" = "x" ; then # no header, assume found
45833 ZLIB_HEADER_FOUND="1"
45834 else # check for the header
45835 saved_cppflags="${CPPFLAGS}"
45836 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE} "
45837 if test "${ac_cv_header_zlib_h+set}" = set; then
45838 { echo "$as_me:$LINENO: checking for zlib.h" >&5
45839 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
45840 if test "${ac_cv_header_zlib_h+set}" = set; then
45841 echo $ECHO_N "(cached) $ECHO_C" >&6
45843 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
45844 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
45845 else
45846 # Is the header compilable?
45847 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
45848 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
45849 cat >conftest.$ac_ext <<_ACEOF
45850 /* confdefs.h. */
45851 _ACEOF
45852 cat confdefs.h >>conftest.$ac_ext
45853 cat >>conftest.$ac_ext <<_ACEOF
45854 /* end confdefs.h. */
45855 $ac_includes_default
45856 #include <zlib.h>
45857 _ACEOF
45858 rm -f conftest.$ac_objext
45859 if { (ac_try="$ac_compile"
45860 case "(($ac_try" in
45861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45862 *) ac_try_echo=$ac_try;;
45863 esac
45864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45865 (eval "$ac_compile") 2>conftest.er1
45866 ac_status=$?
45867 grep -v '^ *+' conftest.er1 >conftest.err
45868 rm -f conftest.er1
45869 cat conftest.err >&5
45870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45871 (exit $ac_status); } && {
45872 test -z "$ac_c_werror_flag" ||
45873 test ! -s conftest.err
45874 } && test -s conftest.$ac_objext; then
45875 ac_header_compiler=yes
45876 else
45877 echo "$as_me: failed program was:" >&5
45878 sed 's/^/| /' conftest.$ac_ext >&5
45880 ac_header_compiler=no
45883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45885 echo "${ECHO_T}$ac_header_compiler" >&6; }
45887 # Is the header present?
45888 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
45889 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
45890 cat >conftest.$ac_ext <<_ACEOF
45891 /* confdefs.h. */
45892 _ACEOF
45893 cat confdefs.h >>conftest.$ac_ext
45894 cat >>conftest.$ac_ext <<_ACEOF
45895 /* end confdefs.h. */
45896 #include <zlib.h>
45897 _ACEOF
45898 if { (ac_try="$ac_cpp conftest.$ac_ext"
45899 case "(($ac_try" in
45900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45901 *) ac_try_echo=$ac_try;;
45902 esac
45903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45905 ac_status=$?
45906 grep -v '^ *+' conftest.er1 >conftest.err
45907 rm -f conftest.er1
45908 cat conftest.err >&5
45909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45910 (exit $ac_status); } >/dev/null && {
45911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45912 test ! -s conftest.err
45913 }; then
45914 ac_header_preproc=yes
45915 else
45916 echo "$as_me: failed program was:" >&5
45917 sed 's/^/| /' conftest.$ac_ext >&5
45919 ac_header_preproc=no
45922 rm -f conftest.err conftest.$ac_ext
45923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45924 echo "${ECHO_T}$ac_header_preproc" >&6; }
45926 # So? What about this header?
45927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45928 yes:no: )
45929 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
45930 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45931 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
45932 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
45933 ac_header_preproc=yes
45935 no:yes:* )
45936 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
45937 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
45938 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
45939 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
45940 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
45941 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
45942 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
45943 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
45944 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
45945 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
45946 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
45947 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
45948 ( cat <<\_ASBOX
45949 ## ------------------------------- ##
45950 ## Report this to www.asterisk.org ##
45951 ## ------------------------------- ##
45952 _ASBOX
45953 ) | sed "s/^/$as_me: WARNING: /" >&2
45955 esac
45956 { echo "$as_me:$LINENO: checking for zlib.h" >&5
45957 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
45958 if test "${ac_cv_header_zlib_h+set}" = set; then
45959 echo $ECHO_N "(cached) $ECHO_C" >&6
45960 else
45961 ac_cv_header_zlib_h=$ac_header_preproc
45963 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
45964 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
45967 if test $ac_cv_header_zlib_h = yes; then
45968 ZLIB_HEADER_FOUND=1
45969 else
45970 ZLIB_HEADER_FOUND=0
45974 CPPFLAGS="${saved_cppflags}"
45976 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
45977 ZLIB_LIB=""
45978 ZLIB_INCLUDE=""
45979 else
45980 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45981 ZLIB_LIB=""
45983 PBX_ZLIB=1
45984 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45986 cat >>confdefs.h <<_ACEOF
45987 #define HAVE_ZLIB 1
45988 _ACEOF
45991 cat >>confdefs.h <<_ACEOF
45992 #define HAVE_ZLIB_VERSION
45993 _ACEOF
46000 # Check for various zaptel features and locations.
46001 # The version number, which goes into HAVE_ZAPTEL_VERSION,
46002 # will be used in the system headers to determine the location
46003 # of the zaptel.h header.
46006 if test "x${PBX_ZAPTEL}" != "x1"; then
46007 { echo "$as_me:$LINENO: checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h" >&5
46008 echo $ECHO_N "checking for ZT_TONE_DTMF_BASE in zaptel/zaptel.h... $ECHO_C" >&6; }
46009 saved_cppflags="${CPPFLAGS}"
46010 if test "x${ZAPTEL_DIR}" != "x"; then
46011 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
46013 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
46015 cat >conftest.$ac_ext <<_ACEOF
46016 /* confdefs.h. */
46017 _ACEOF
46018 cat confdefs.h >>conftest.$ac_ext
46019 cat >>conftest.$ac_ext <<_ACEOF
46020 /* end confdefs.h. */
46021 #include <zaptel/zaptel.h>
46023 main ()
46025 #if defined(ZT_TONE_DTMF_BASE)
46026 int foo = 0;
46027 #else
46028 int foo = bar;
46029 #endif
46033 return 0;
46035 _ACEOF
46036 rm -f conftest.$ac_objext
46037 if { (ac_try="$ac_compile"
46038 case "(($ac_try" in
46039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46040 *) ac_try_echo=$ac_try;;
46041 esac
46042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46043 (eval "$ac_compile") 2>conftest.er1
46044 ac_status=$?
46045 grep -v '^ *+' conftest.er1 >conftest.err
46046 rm -f conftest.er1
46047 cat conftest.err >&5
46048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46049 (exit $ac_status); } && {
46050 test -z "$ac_c_werror_flag" ||
46051 test ! -s conftest.err
46052 } && test -s conftest.$ac_objext; then
46053 { echo "$as_me:$LINENO: result: yes" >&5
46054 echo "${ECHO_T}yes" >&6; }
46055 PBX_ZAPTEL=1
46057 cat >>confdefs.h <<\_ACEOF
46058 #define HAVE_ZAPTEL 1
46059 _ACEOF
46062 cat >>confdefs.h <<\_ACEOF
46063 #define HAVE_ZAPTEL_VERSION 140
46064 _ACEOF
46067 else
46068 echo "$as_me: failed program was:" >&5
46069 sed 's/^/| /' conftest.$ac_ext >&5
46071 { echo "$as_me:$LINENO: result: no" >&5
46072 echo "${ECHO_T}no" >&6; }
46076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46077 CPPFLAGS="${saved_cppflags}"
46082 if test "x${PBX_ZAPTEL}" != "x1"; then
46083 { echo "$as_me:$LINENO: checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h" >&5
46084 echo $ECHO_N "checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h... $ECHO_C" >&6; }
46085 saved_cppflags="${CPPFLAGS}"
46086 if test "x${ZAPTEL_DIR}" != "x"; then
46087 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
46089 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE}"
46091 cat >conftest.$ac_ext <<_ACEOF
46092 /* confdefs.h. */
46093 _ACEOF
46094 cat confdefs.h >>conftest.$ac_ext
46095 cat >>conftest.$ac_ext <<_ACEOF
46096 /* end confdefs.h. */
46097 #include <zaptel/zaptel.h>
46099 main ()
46101 #if defined(ZT_DIAL_OP_CANCEL)
46102 int foo = 0;
46103 #else
46104 int foo = bar;
46105 #endif
46109 return 0;
46111 _ACEOF
46112 rm -f conftest.$ac_objext
46113 if { (ac_try="$ac_compile"
46114 case "(($ac_try" in
46115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46116 *) ac_try_echo=$ac_try;;
46117 esac
46118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46119 (eval "$ac_compile") 2>conftest.er1
46120 ac_status=$?
46121 grep -v '^ *+' conftest.er1 >conftest.err
46122 rm -f conftest.er1
46123 cat conftest.err >&5
46124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46125 (exit $ac_status); } && {
46126 test -z "$ac_c_werror_flag" ||
46127 test ! -s conftest.err
46128 } && test -s conftest.$ac_objext; then
46129 { echo "$as_me:$LINENO: result: yes" >&5
46130 echo "${ECHO_T}yes" >&6; }
46131 PBX_ZAPTEL=1
46133 cat >>confdefs.h <<\_ACEOF
46134 #define HAVE_ZAPTEL 1
46135 _ACEOF
46138 cat >>confdefs.h <<\_ACEOF
46139 #define HAVE_ZAPTEL_VERSION 90
46140 _ACEOF
46143 else
46144 echo "$as_me: failed program was:" >&5
46145 sed 's/^/| /' conftest.$ac_ext >&5
46147 { echo "$as_me:$LINENO: result: no" >&5
46148 echo "${ECHO_T}no" >&6; }
46152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46153 CPPFLAGS="${saved_cppflags}"
46158 # Check for VLDTMF support
46160 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1"; then
46161 { echo "$as_me:$LINENO: checking for ZT_EVENT_REMOVED in zaptel/zaptel.h" >&5
46162 echo $ECHO_N "checking for ZT_EVENT_REMOVED in zaptel/zaptel.h... $ECHO_C" >&6; }
46163 saved_cppflags="${CPPFLAGS}"
46164 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
46165 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
46167 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE}"
46169 cat >conftest.$ac_ext <<_ACEOF
46170 /* confdefs.h. */
46171 _ACEOF
46172 cat confdefs.h >>conftest.$ac_ext
46173 cat >>conftest.$ac_ext <<_ACEOF
46174 /* end confdefs.h. */
46175 #include <zaptel/zaptel.h>
46177 main ()
46179 #if defined(ZT_EVENT_REMOVED)
46180 int foo = 0;
46181 #else
46182 int foo = bar;
46183 #endif
46187 return 0;
46189 _ACEOF
46190 rm -f conftest.$ac_objext
46191 if { (ac_try="$ac_compile"
46192 case "(($ac_try" in
46193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46194 *) ac_try_echo=$ac_try;;
46195 esac
46196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46197 (eval "$ac_compile") 2>conftest.er1
46198 ac_status=$?
46199 grep -v '^ *+' conftest.er1 >conftest.err
46200 rm -f conftest.er1
46201 cat conftest.err >&5
46202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203 (exit $ac_status); } && {
46204 test -z "$ac_c_werror_flag" ||
46205 test ! -s conftest.err
46206 } && test -s conftest.$ac_objext; then
46207 { echo "$as_me:$LINENO: result: yes" >&5
46208 echo "${ECHO_T}yes" >&6; }
46209 PBX_ZAPTEL_VLDTMF=1
46211 cat >>confdefs.h <<\_ACEOF
46212 #define HAVE_ZAPTEL_VLDTMF 1
46213 _ACEOF
46216 cat >>confdefs.h <<\_ACEOF
46217 #define HAVE_ZAPTEL_VLDTMF_VERSION
46218 _ACEOF
46221 else
46222 echo "$as_me: failed program was:" >&5
46223 sed 's/^/| /' conftest.$ac_ext >&5
46225 { echo "$as_me:$LINENO: result: no" >&5
46226 echo "${ECHO_T}no" >&6; }
46230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46231 CPPFLAGS="${saved_cppflags}"
46236 # Check for echo canceler parameters support
46238 if test "x${PBX_ZAPTEL_ECHOCANPARAMS}" != "x1"; then
46239 { echo "$as_me:$LINENO: checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h" >&5
46240 echo $ECHO_N "checking for ZT_ECHOCANCEL_PARAMS in zaptel/zaptel.h... $ECHO_C" >&6; }
46241 saved_cppflags="${CPPFLAGS}"
46242 if test "x${ZAPTEL_ECHOCANPARAMS_DIR}" != "x"; then
46243 ZAPTEL_ECHOCANPARAMS_INCLUDE="-I${ZAPTEL_ECHOCANPARAMS_DIR}/include"
46245 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_ECHOCANPARAMS_INCLUDE}"
46247 cat >conftest.$ac_ext <<_ACEOF
46248 /* confdefs.h. */
46249 _ACEOF
46250 cat confdefs.h >>conftest.$ac_ext
46251 cat >>conftest.$ac_ext <<_ACEOF
46252 /* end confdefs.h. */
46253 #include <zaptel/zaptel.h>
46255 main ()
46257 #if defined(ZT_ECHOCANCEL_PARAMS)
46258 int foo = 0;
46259 #else
46260 int foo = bar;
46261 #endif
46265 return 0;
46267 _ACEOF
46268 rm -f conftest.$ac_objext
46269 if { (ac_try="$ac_compile"
46270 case "(($ac_try" in
46271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46272 *) ac_try_echo=$ac_try;;
46273 esac
46274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46275 (eval "$ac_compile") 2>conftest.er1
46276 ac_status=$?
46277 grep -v '^ *+' conftest.er1 >conftest.err
46278 rm -f conftest.er1
46279 cat conftest.err >&5
46280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281 (exit $ac_status); } && {
46282 test -z "$ac_c_werror_flag" ||
46283 test ! -s conftest.err
46284 } && test -s conftest.$ac_objext; then
46285 { echo "$as_me:$LINENO: result: yes" >&5
46286 echo "${ECHO_T}yes" >&6; }
46287 PBX_ZAPTEL_ECHOCANPARAMS=1
46289 cat >>confdefs.h <<\_ACEOF
46290 #define HAVE_ZAPTEL_ECHOCANPARAMS 1
46291 _ACEOF
46294 cat >>confdefs.h <<\_ACEOF
46295 #define HAVE_ZAPTEL_ECHOCANPARAMS_VERSION
46296 _ACEOF
46299 else
46300 echo "$as_me: failed program was:" >&5
46301 sed 's/^/| /' conftest.$ac_ext >&5
46303 { echo "$as_me:$LINENO: result: no" >&5
46304 echo "${ECHO_T}no" >&6; }
46308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46309 CPPFLAGS="${saved_cppflags}"
46314 # Check for transcoder support
46316 if test "x${PBX_ZAPTEL_TRANSCODE}" != "x1"; then
46317 { echo "$as_me:$LINENO: checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h" >&5
46318 echo $ECHO_N "checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h... $ECHO_C" >&6; }
46319 saved_cppflags="${CPPFLAGS}"
46320 if test "x${ZAPTEL_TRANSCODE_DIR}" != "x"; then
46321 ZAPTEL_TRANSCODE_INCLUDE="-I${ZAPTEL_TRANSCODE_DIR}/include"
46323 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_TRANSCODE_INCLUDE}"
46325 cat >conftest.$ac_ext <<_ACEOF
46326 /* confdefs.h. */
46327 _ACEOF
46328 cat confdefs.h >>conftest.$ac_ext
46329 cat >>conftest.$ac_ext <<_ACEOF
46330 /* end confdefs.h. */
46331 #include <zaptel/zaptel.h>
46333 main ()
46335 #if defined(ZT_TCOP_ALLOCATE)
46336 int foo = 0;
46337 #else
46338 int foo = bar;
46339 #endif
46343 return 0;
46345 _ACEOF
46346 rm -f conftest.$ac_objext
46347 if { (ac_try="$ac_compile"
46348 case "(($ac_try" in
46349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46350 *) ac_try_echo=$ac_try;;
46351 esac
46352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46353 (eval "$ac_compile") 2>conftest.er1
46354 ac_status=$?
46355 grep -v '^ *+' conftest.er1 >conftest.err
46356 rm -f conftest.er1
46357 cat conftest.err >&5
46358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46359 (exit $ac_status); } && {
46360 test -z "$ac_c_werror_flag" ||
46361 test ! -s conftest.err
46362 } && test -s conftest.$ac_objext; then
46363 { echo "$as_me:$LINENO: result: yes" >&5
46364 echo "${ECHO_T}yes" >&6; }
46365 PBX_ZAPTEL_TRANSCODE=1
46367 cat >>confdefs.h <<\_ACEOF
46368 #define HAVE_ZAPTEL_TRANSCODE 1
46369 _ACEOF
46372 cat >>confdefs.h <<\_ACEOF
46373 #define HAVE_ZAPTEL_TRANSCODE_VERSION
46374 _ACEOF
46377 else
46378 echo "$as_me: failed program was:" >&5
46379 sed 's/^/| /' conftest.$ac_ext >&5
46381 { echo "$as_me:$LINENO: result: no" >&5
46382 echo "${ECHO_T}no" >&6; }
46386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46387 CPPFLAGS="${saved_cppflags}"
46392 # Check for hwgain support
46394 if test "x${PBX_ZAPTEL_HWGAIN}" != "x1"; then
46395 { echo "$as_me:$LINENO: checking for ZT_SET_HWGAIN in zaptel/zaptel.h" >&5
46396 echo $ECHO_N "checking for ZT_SET_HWGAIN in zaptel/zaptel.h... $ECHO_C" >&6; }
46397 saved_cppflags="${CPPFLAGS}"
46398 if test "x${ZAPTEL_HWGAIN_DIR}" != "x"; then
46399 ZAPTEL_HWGAIN_INCLUDE="-I${ZAPTEL_HWGAIN_DIR}/include"
46401 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_HWGAIN_INCLUDE}"
46403 cat >conftest.$ac_ext <<_ACEOF
46404 /* confdefs.h. */
46405 _ACEOF
46406 cat confdefs.h >>conftest.$ac_ext
46407 cat >>conftest.$ac_ext <<_ACEOF
46408 /* end confdefs.h. */
46409 #include <zaptel/zaptel.h>
46411 main ()
46413 #if defined(ZT_SET_HWGAIN)
46414 int foo = 0;
46415 #else
46416 int foo = bar;
46417 #endif
46421 return 0;
46423 _ACEOF
46424 rm -f conftest.$ac_objext
46425 if { (ac_try="$ac_compile"
46426 case "(($ac_try" in
46427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46428 *) ac_try_echo=$ac_try;;
46429 esac
46430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46431 (eval "$ac_compile") 2>conftest.er1
46432 ac_status=$?
46433 grep -v '^ *+' conftest.er1 >conftest.err
46434 rm -f conftest.er1
46435 cat conftest.err >&5
46436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46437 (exit $ac_status); } && {
46438 test -z "$ac_c_werror_flag" ||
46439 test ! -s conftest.err
46440 } && test -s conftest.$ac_objext; then
46441 { echo "$as_me:$LINENO: result: yes" >&5
46442 echo "${ECHO_T}yes" >&6; }
46443 PBX_ZAPTEL_HWGAIN=1
46445 cat >>confdefs.h <<\_ACEOF
46446 #define HAVE_ZAPTEL_HWGAIN 1
46447 _ACEOF
46450 cat >>confdefs.h <<\_ACEOF
46451 #define HAVE_ZAPTEL_HWGAIN_VERSION
46452 _ACEOF
46455 else
46456 echo "$as_me: failed program was:" >&5
46457 sed 's/^/| /' conftest.$ac_ext >&5
46459 { echo "$as_me:$LINENO: result: no" >&5
46460 echo "${ECHO_T}no" >&6; }
46464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46465 CPPFLAGS="${saved_cppflags}"
46470 # Check for neon mwi support
46472 if test "x${PBX_ZAPTEL_NEONMWI}" != "x1"; then
46473 { echo "$as_me:$LINENO: checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h" >&5
46474 echo $ECHO_N "checking for ZT_EVENT_NEONMWI_ACTIVE in zaptel/zaptel.h... $ECHO_C" >&6; }
46475 saved_cppflags="${CPPFLAGS}"
46476 if test "x${ZAPTEL_NEONMWI_DIR}" != "x"; then
46477 ZAPTEL_NEONMWI_INCLUDE="-I${ZAPTEL_NEONMWI_DIR}/include"
46479 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_NEONMWI_INCLUDE}"
46481 cat >conftest.$ac_ext <<_ACEOF
46482 /* confdefs.h. */
46483 _ACEOF
46484 cat confdefs.h >>conftest.$ac_ext
46485 cat >>conftest.$ac_ext <<_ACEOF
46486 /* end confdefs.h. */
46487 #include <zaptel/zaptel.h>
46489 main ()
46491 #if defined(ZT_EVENT_NEONMWI_ACTIVE)
46492 int foo = 0;
46493 #else
46494 int foo = bar;
46495 #endif
46499 return 0;
46501 _ACEOF
46502 rm -f conftest.$ac_objext
46503 if { (ac_try="$ac_compile"
46504 case "(($ac_try" in
46505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46506 *) ac_try_echo=$ac_try;;
46507 esac
46508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46509 (eval "$ac_compile") 2>conftest.er1
46510 ac_status=$?
46511 grep -v '^ *+' conftest.er1 >conftest.err
46512 rm -f conftest.er1
46513 cat conftest.err >&5
46514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46515 (exit $ac_status); } && {
46516 test -z "$ac_c_werror_flag" ||
46517 test ! -s conftest.err
46518 } && test -s conftest.$ac_objext; then
46519 { echo "$as_me:$LINENO: result: yes" >&5
46520 echo "${ECHO_T}yes" >&6; }
46521 PBX_ZAPTEL_NEONMWI=1
46523 cat >>confdefs.h <<\_ACEOF
46524 #define HAVE_ZAPTEL_NEONMWI 1
46525 _ACEOF
46528 cat >>confdefs.h <<\_ACEOF
46529 #define HAVE_ZAPTEL_NEONMWI_VERSION
46530 _ACEOF
46533 else
46534 echo "$as_me: failed program was:" >&5
46535 sed 's/^/| /' conftest.$ac_ext >&5
46537 { echo "$as_me:$LINENO: result: no" >&5
46538 echo "${ECHO_T}no" >&6; }
46542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46543 CPPFLAGS="${saved_cppflags}"
46548 # Check for channel alarm support
46550 if test "x${PBX_ZAPTEL_CHANALARMS}" != "x1" -a "${USE_ZAPTEL_CHANALARMS}" != "no"; then
46551 { echo "$as_me:$LINENO: checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h" >&5
46552 echo $ECHO_N "checking if \"size_t foo = sizeof(struct zt_params_v1)\" compiles using zaptel/zaptel.h... $ECHO_C" >&6; }
46553 saved_cppflags="${CPPFLAGS}"
46554 if test "x${ZAPTEL_CHANALARMS_DIR}" != "x"; then
46555 ZAPTEL_CHANALARMS_INCLUDE="-I${ZAPTEL_CHANALARMS_DIR}/include"
46557 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_CHANALARMS_INCLUDE}"
46559 cat >conftest.$ac_ext <<_ACEOF
46560 /* confdefs.h. */
46561 _ACEOF
46562 cat confdefs.h >>conftest.$ac_ext
46563 cat >>conftest.$ac_ext <<_ACEOF
46564 /* end confdefs.h. */
46565 #include <zaptel/zaptel.h>
46567 main ()
46569 size_t foo = sizeof(struct zt_params_v1);
46572 return 0;
46574 _ACEOF
46575 rm -f conftest.$ac_objext
46576 if { (ac_try="$ac_compile"
46577 case "(($ac_try" in
46578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46579 *) ac_try_echo=$ac_try;;
46580 esac
46581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46582 (eval "$ac_compile") 2>conftest.er1
46583 ac_status=$?
46584 grep -v '^ *+' conftest.er1 >conftest.err
46585 rm -f conftest.er1
46586 cat conftest.err >&5
46587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46588 (exit $ac_status); } && {
46589 test -z "$ac_c_werror_flag" ||
46590 test ! -s conftest.err
46591 } && test -s conftest.$ac_objext; then
46592 { echo "$as_me:$LINENO: result: yes" >&5
46593 echo "${ECHO_T}yes" >&6; }
46594 PBX_ZAPTEL_CHANALARMS=1
46596 cat >>confdefs.h <<\_ACEOF
46597 #define HAVE_ZAPTEL_CHANALARMS 1
46598 _ACEOF
46601 cat >>confdefs.h <<\_ACEOF
46602 #define HAVE_ZAPTEL_CHANALARMS_VERSION
46603 _ACEOF
46606 else
46607 echo "$as_me: failed program was:" >&5
46608 sed 's/^/| /' conftest.$ac_ext >&5
46610 { echo "$as_me:$LINENO: result: no" >&5
46611 echo "${ECHO_T}no" >&6; }
46615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46616 CPPFLAGS="${saved_cppflags}"
46620 # On FreeBSD, try old zaptel (0.80 or so) and pretend we have vldtmf
46621 case "${host_os}" in
46622 freebsd*)
46624 if test "x${PBX_ZAPTEL}" != "x1" -a "${USE_ZAPTEL}" != "no"; then
46625 pbxlibdir=""
46626 # if --with-ZAPTEL=DIR has been specified, use it.
46627 if test "x${ZAPTEL_DIR}" != "x"; then
46628 if test -d ${ZAPTEL_DIR}/lib; then
46629 pbxlibdir="-L${ZAPTEL_DIR}/lib"
46630 else
46631 pbxlibdir="-L${ZAPTEL_DIR}"
46634 pbxfuncname=""
46635 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46636 AST_ZAPTEL_FOUND=yes
46637 else
46638 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
46639 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
46640 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
46641 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46642 echo $ECHO_N "(cached) $ECHO_C" >&6
46643 else
46644 ac_check_lib_save_LIBS=$LIBS
46645 LIBS="-lzaptel ${pbxlibdir} $LIBS"
46646 cat >conftest.$ac_ext <<_ACEOF
46647 /* confdefs.h. */
46648 _ACEOF
46649 cat confdefs.h >>conftest.$ac_ext
46650 cat >>conftest.$ac_ext <<_ACEOF
46651 /* end confdefs.h. */
46653 /* Override any GCC internal prototype to avoid an error.
46654 Use char because int might match the return type of a GCC
46655 builtin and then its argument prototype would still apply. */
46656 #ifdef __cplusplus
46657 extern "C"
46658 #endif
46659 char ${pbxfuncname} ();
46661 main ()
46663 return ${pbxfuncname} ();
46665 return 0;
46667 _ACEOF
46668 rm -f conftest.$ac_objext conftest$ac_exeext
46669 if { (ac_try="$ac_link"
46670 case "(($ac_try" in
46671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46672 *) ac_try_echo=$ac_try;;
46673 esac
46674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46675 (eval "$ac_link") 2>conftest.er1
46676 ac_status=$?
46677 grep -v '^ *+' conftest.er1 >conftest.err
46678 rm -f conftest.er1
46679 cat conftest.err >&5
46680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46681 (exit $ac_status); } && {
46682 test -z "$ac_c_werror_flag" ||
46683 test ! -s conftest.err
46684 } && test -s conftest$ac_exeext &&
46685 $as_test_x conftest$ac_exeext; then
46686 eval "$as_ac_Lib=yes"
46687 else
46688 echo "$as_me: failed program was:" >&5
46689 sed 's/^/| /' conftest.$ac_ext >&5
46691 eval "$as_ac_Lib=no"
46694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46695 conftest$ac_exeext conftest.$ac_ext
46696 LIBS=$ac_check_lib_save_LIBS
46698 ac_res=`eval echo '${'$as_ac_Lib'}'`
46699 { echo "$as_me:$LINENO: result: $ac_res" >&5
46700 echo "${ECHO_T}$ac_res" >&6; }
46701 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46702 AST_ZAPTEL_FOUND=yes
46703 else
46704 AST_ZAPTEL_FOUND=no
46709 # now check for the header.
46710 if test "${AST_ZAPTEL_FOUND}" = "yes"; then
46711 ZAPTEL_LIB="${pbxlibdir} -lzaptel "
46712 # if --with-ZAPTEL=DIR has been specified, use it.
46713 if test "x${ZAPTEL_DIR}" != "x"; then
46714 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
46716 ZAPTEL_INCLUDE="${ZAPTEL_INCLUDE} "
46717 if test "xzaptel.h" = "x" ; then # no header, assume found
46718 ZAPTEL_HEADER_FOUND="1"
46719 else # check for the header
46720 saved_cppflags="${CPPFLAGS}"
46721 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_INCLUDE} "
46722 if test "${ac_cv_header_zaptel_h+set}" = set; then
46723 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
46724 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
46725 if test "${ac_cv_header_zaptel_h+set}" = set; then
46726 echo $ECHO_N "(cached) $ECHO_C" >&6
46728 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
46729 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
46730 else
46731 # Is the header compilable?
46732 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
46733 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
46734 cat >conftest.$ac_ext <<_ACEOF
46735 /* confdefs.h. */
46736 _ACEOF
46737 cat confdefs.h >>conftest.$ac_ext
46738 cat >>conftest.$ac_ext <<_ACEOF
46739 /* end confdefs.h. */
46740 $ac_includes_default
46741 #include <zaptel.h>
46742 _ACEOF
46743 rm -f conftest.$ac_objext
46744 if { (ac_try="$ac_compile"
46745 case "(($ac_try" in
46746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46747 *) ac_try_echo=$ac_try;;
46748 esac
46749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46750 (eval "$ac_compile") 2>conftest.er1
46751 ac_status=$?
46752 grep -v '^ *+' conftest.er1 >conftest.err
46753 rm -f conftest.er1
46754 cat conftest.err >&5
46755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46756 (exit $ac_status); } && {
46757 test -z "$ac_c_werror_flag" ||
46758 test ! -s conftest.err
46759 } && test -s conftest.$ac_objext; then
46760 ac_header_compiler=yes
46761 else
46762 echo "$as_me: failed program was:" >&5
46763 sed 's/^/| /' conftest.$ac_ext >&5
46765 ac_header_compiler=no
46768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46770 echo "${ECHO_T}$ac_header_compiler" >&6; }
46772 # Is the header present?
46773 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
46774 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
46775 cat >conftest.$ac_ext <<_ACEOF
46776 /* confdefs.h. */
46777 _ACEOF
46778 cat confdefs.h >>conftest.$ac_ext
46779 cat >>conftest.$ac_ext <<_ACEOF
46780 /* end confdefs.h. */
46781 #include <zaptel.h>
46782 _ACEOF
46783 if { (ac_try="$ac_cpp conftest.$ac_ext"
46784 case "(($ac_try" in
46785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46786 *) ac_try_echo=$ac_try;;
46787 esac
46788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46790 ac_status=$?
46791 grep -v '^ *+' conftest.er1 >conftest.err
46792 rm -f conftest.er1
46793 cat conftest.err >&5
46794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46795 (exit $ac_status); } >/dev/null && {
46796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46797 test ! -s conftest.err
46798 }; then
46799 ac_header_preproc=yes
46800 else
46801 echo "$as_me: failed program was:" >&5
46802 sed 's/^/| /' conftest.$ac_ext >&5
46804 ac_header_preproc=no
46807 rm -f conftest.err conftest.$ac_ext
46808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46809 echo "${ECHO_T}$ac_header_preproc" >&6; }
46811 # So? What about this header?
46812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46813 yes:no: )
46814 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
46815 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46816 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
46817 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
46818 ac_header_preproc=yes
46820 no:yes:* )
46821 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
46822 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
46823 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
46824 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
46825 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
46826 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
46827 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
46828 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
46829 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
46830 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
46831 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
46832 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
46833 ( cat <<\_ASBOX
46834 ## ------------------------------- ##
46835 ## Report this to www.asterisk.org ##
46836 ## ------------------------------- ##
46837 _ASBOX
46838 ) | sed "s/^/$as_me: WARNING: /" >&2
46840 esac
46841 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
46842 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
46843 if test "${ac_cv_header_zaptel_h+set}" = set; then
46844 echo $ECHO_N "(cached) $ECHO_C" >&6
46845 else
46846 ac_cv_header_zaptel_h=$ac_header_preproc
46848 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
46849 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
46852 if test $ac_cv_header_zaptel_h = yes; then
46853 ZAPTEL_HEADER_FOUND=1
46854 else
46855 ZAPTEL_HEADER_FOUND=0
46859 CPPFLAGS="${saved_cppflags}"
46861 if test "x${ZAPTEL_HEADER_FOUND}" = "x0" ; then
46862 ZAPTEL_LIB=""
46863 ZAPTEL_INCLUDE=""
46864 else
46865 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46866 ZAPTEL_LIB=""
46868 PBX_ZAPTEL=1
46869 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46871 cat >>confdefs.h <<_ACEOF
46872 #define HAVE_ZAPTEL 1
46873 _ACEOF
46876 cat >>confdefs.h <<_ACEOF
46877 #define HAVE_ZAPTEL_VERSION 80
46878 _ACEOF
46885 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then
46886 pbxlibdir=""
46887 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
46888 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
46889 if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then
46890 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib"
46891 else
46892 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}"
46895 pbxfuncname=""
46896 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46897 AST_ZAPTEL_VLDTMF_FOUND=yes
46898 else
46899 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
46900 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
46901 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
46902 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46903 echo $ECHO_N "(cached) $ECHO_C" >&6
46904 else
46905 ac_check_lib_save_LIBS=$LIBS
46906 LIBS="-lzaptel ${pbxlibdir} $LIBS"
46907 cat >conftest.$ac_ext <<_ACEOF
46908 /* confdefs.h. */
46909 _ACEOF
46910 cat confdefs.h >>conftest.$ac_ext
46911 cat >>conftest.$ac_ext <<_ACEOF
46912 /* end confdefs.h. */
46914 /* Override any GCC internal prototype to avoid an error.
46915 Use char because int might match the return type of a GCC
46916 builtin and then its argument prototype would still apply. */
46917 #ifdef __cplusplus
46918 extern "C"
46919 #endif
46920 char ${pbxfuncname} ();
46922 main ()
46924 return ${pbxfuncname} ();
46926 return 0;
46928 _ACEOF
46929 rm -f conftest.$ac_objext conftest$ac_exeext
46930 if { (ac_try="$ac_link"
46931 case "(($ac_try" in
46932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46933 *) ac_try_echo=$ac_try;;
46934 esac
46935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46936 (eval "$ac_link") 2>conftest.er1
46937 ac_status=$?
46938 grep -v '^ *+' conftest.er1 >conftest.err
46939 rm -f conftest.er1
46940 cat conftest.err >&5
46941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46942 (exit $ac_status); } && {
46943 test -z "$ac_c_werror_flag" ||
46944 test ! -s conftest.err
46945 } && test -s conftest$ac_exeext &&
46946 $as_test_x conftest$ac_exeext; then
46947 eval "$as_ac_Lib=yes"
46948 else
46949 echo "$as_me: failed program was:" >&5
46950 sed 's/^/| /' conftest.$ac_ext >&5
46952 eval "$as_ac_Lib=no"
46955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46956 conftest$ac_exeext conftest.$ac_ext
46957 LIBS=$ac_check_lib_save_LIBS
46959 ac_res=`eval echo '${'$as_ac_Lib'}'`
46960 { echo "$as_me:$LINENO: result: $ac_res" >&5
46961 echo "${ECHO_T}$ac_res" >&6; }
46962 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46963 AST_ZAPTEL_VLDTMF_FOUND=yes
46964 else
46965 AST_ZAPTEL_VLDTMF_FOUND=no
46970 # now check for the header.
46971 if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then
46972 ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel "
46973 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
46974 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
46975 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
46977 ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} "
46978 if test "xzaptel/zaptel.h" = "x" ; then # no header, assume found
46979 ZAPTEL_VLDTMF_HEADER_FOUND="1"
46980 else # check for the header
46981 saved_cppflags="${CPPFLAGS}"
46982 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} "
46983 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
46984 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
46985 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
46986 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
46987 echo $ECHO_N "(cached) $ECHO_C" >&6
46989 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
46990 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
46991 else
46992 # Is the header compilable?
46993 { echo "$as_me:$LINENO: checking zaptel/zaptel.h usability" >&5
46994 echo $ECHO_N "checking zaptel/zaptel.h usability... $ECHO_C" >&6; }
46995 cat >conftest.$ac_ext <<_ACEOF
46996 /* confdefs.h. */
46997 _ACEOF
46998 cat confdefs.h >>conftest.$ac_ext
46999 cat >>conftest.$ac_ext <<_ACEOF
47000 /* end confdefs.h. */
47001 $ac_includes_default
47002 #include <zaptel/zaptel.h>
47003 _ACEOF
47004 rm -f conftest.$ac_objext
47005 if { (ac_try="$ac_compile"
47006 case "(($ac_try" in
47007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47008 *) ac_try_echo=$ac_try;;
47009 esac
47010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47011 (eval "$ac_compile") 2>conftest.er1
47012 ac_status=$?
47013 grep -v '^ *+' conftest.er1 >conftest.err
47014 rm -f conftest.er1
47015 cat conftest.err >&5
47016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47017 (exit $ac_status); } && {
47018 test -z "$ac_c_werror_flag" ||
47019 test ! -s conftest.err
47020 } && test -s conftest.$ac_objext; then
47021 ac_header_compiler=yes
47022 else
47023 echo "$as_me: failed program was:" >&5
47024 sed 's/^/| /' conftest.$ac_ext >&5
47026 ac_header_compiler=no
47029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47031 echo "${ECHO_T}$ac_header_compiler" >&6; }
47033 # Is the header present?
47034 { echo "$as_me:$LINENO: checking zaptel/zaptel.h presence" >&5
47035 echo $ECHO_N "checking zaptel/zaptel.h presence... $ECHO_C" >&6; }
47036 cat >conftest.$ac_ext <<_ACEOF
47037 /* confdefs.h. */
47038 _ACEOF
47039 cat confdefs.h >>conftest.$ac_ext
47040 cat >>conftest.$ac_ext <<_ACEOF
47041 /* end confdefs.h. */
47042 #include <zaptel/zaptel.h>
47043 _ACEOF
47044 if { (ac_try="$ac_cpp conftest.$ac_ext"
47045 case "(($ac_try" in
47046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47047 *) ac_try_echo=$ac_try;;
47048 esac
47049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47051 ac_status=$?
47052 grep -v '^ *+' conftest.er1 >conftest.err
47053 rm -f conftest.er1
47054 cat conftest.err >&5
47055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47056 (exit $ac_status); } >/dev/null && {
47057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47058 test ! -s conftest.err
47059 }; then
47060 ac_header_preproc=yes
47061 else
47062 echo "$as_me: failed program was:" >&5
47063 sed 's/^/| /' conftest.$ac_ext >&5
47065 ac_header_preproc=no
47068 rm -f conftest.err conftest.$ac_ext
47069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47070 echo "${ECHO_T}$ac_header_preproc" >&6; }
47072 # So? What about this header?
47073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47074 yes:no: )
47075 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
47076 echo "$as_me: WARNING: zaptel/zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47077 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&5
47078 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the compiler's result" >&2;}
47079 ac_header_preproc=yes
47081 no:yes:* )
47082 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&5
47083 echo "$as_me: WARNING: zaptel/zaptel.h: present but cannot be compiled" >&2;}
47084 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&5
47085 echo "$as_me: WARNING: zaptel/zaptel.h: check for missing prerequisite headers?" >&2;}
47086 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&5
47087 echo "$as_me: WARNING: zaptel/zaptel.h: see the Autoconf documentation" >&2;}
47088 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
47089 echo "$as_me: WARNING: zaptel/zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
47090 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&5
47091 echo "$as_me: WARNING: zaptel/zaptel.h: proceeding with the preprocessor's result" >&2;}
47092 { echo "$as_me:$LINENO: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&5
47093 echo "$as_me: WARNING: zaptel/zaptel.h: in the future, the compiler will take precedence" >&2;}
47094 ( cat <<\_ASBOX
47095 ## ------------------------------- ##
47096 ## Report this to www.asterisk.org ##
47097 ## ------------------------------- ##
47098 _ASBOX
47099 ) | sed "s/^/$as_me: WARNING: /" >&2
47101 esac
47102 { echo "$as_me:$LINENO: checking for zaptel/zaptel.h" >&5
47103 echo $ECHO_N "checking for zaptel/zaptel.h... $ECHO_C" >&6; }
47104 if test "${ac_cv_header_zaptel_zaptel_h+set}" = set; then
47105 echo $ECHO_N "(cached) $ECHO_C" >&6
47106 else
47107 ac_cv_header_zaptel_zaptel_h=$ac_header_preproc
47109 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_zaptel_h" >&5
47110 echo "${ECHO_T}$ac_cv_header_zaptel_zaptel_h" >&6; }
47113 if test $ac_cv_header_zaptel_zaptel_h = yes; then
47114 ZAPTEL_VLDTMF_HEADER_FOUND=1
47115 else
47116 ZAPTEL_VLDTMF_HEADER_FOUND=0
47120 CPPFLAGS="${saved_cppflags}"
47122 if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then
47123 ZAPTEL_VLDTMF_LIB=""
47124 ZAPTEL_VLDTMF_INCLUDE=""
47125 else
47126 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47127 ZAPTEL_VLDTMF_LIB=""
47129 PBX_ZAPTEL_VLDTMF=1
47130 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47132 cat >>confdefs.h <<_ACEOF
47133 #define HAVE_ZAPTEL_VLDTMF 1
47134 _ACEOF
47137 cat >>confdefs.h <<_ACEOF
47138 #define HAVE_ZAPTEL_VLDTMF_VERSION 90
47139 _ACEOF
47146 if test "x${PBX_ZAPTEL_VLDTMF}" != "x1" -a "${USE_ZAPTEL_VLDTMF}" != "no"; then
47147 pbxlibdir=""
47148 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
47149 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
47150 if test -d ${ZAPTEL_VLDTMF_DIR}/lib; then
47151 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}/lib"
47152 else
47153 pbxlibdir="-L${ZAPTEL_VLDTMF_DIR}"
47156 pbxfuncname=""
47157 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47158 AST_ZAPTEL_VLDTMF_FOUND=yes
47159 else
47160 as_ac_Lib=`echo "ac_cv_lib_zaptel_${pbxfuncname}" | $as_tr_sh`
47161 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lzaptel" >&5
47162 echo $ECHO_N "checking for ${pbxfuncname} in -lzaptel... $ECHO_C" >&6; }
47163 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47164 echo $ECHO_N "(cached) $ECHO_C" >&6
47165 else
47166 ac_check_lib_save_LIBS=$LIBS
47167 LIBS="-lzaptel ${pbxlibdir} $LIBS"
47168 cat >conftest.$ac_ext <<_ACEOF
47169 /* confdefs.h. */
47170 _ACEOF
47171 cat confdefs.h >>conftest.$ac_ext
47172 cat >>conftest.$ac_ext <<_ACEOF
47173 /* end confdefs.h. */
47175 /* Override any GCC internal prototype to avoid an error.
47176 Use char because int might match the return type of a GCC
47177 builtin and then its argument prototype would still apply. */
47178 #ifdef __cplusplus
47179 extern "C"
47180 #endif
47181 char ${pbxfuncname} ();
47183 main ()
47185 return ${pbxfuncname} ();
47187 return 0;
47189 _ACEOF
47190 rm -f conftest.$ac_objext conftest$ac_exeext
47191 if { (ac_try="$ac_link"
47192 case "(($ac_try" in
47193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47194 *) ac_try_echo=$ac_try;;
47195 esac
47196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47197 (eval "$ac_link") 2>conftest.er1
47198 ac_status=$?
47199 grep -v '^ *+' conftest.er1 >conftest.err
47200 rm -f conftest.er1
47201 cat conftest.err >&5
47202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47203 (exit $ac_status); } && {
47204 test -z "$ac_c_werror_flag" ||
47205 test ! -s conftest.err
47206 } && test -s conftest$ac_exeext &&
47207 $as_test_x conftest$ac_exeext; then
47208 eval "$as_ac_Lib=yes"
47209 else
47210 echo "$as_me: failed program was:" >&5
47211 sed 's/^/| /' conftest.$ac_ext >&5
47213 eval "$as_ac_Lib=no"
47216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47217 conftest$ac_exeext conftest.$ac_ext
47218 LIBS=$ac_check_lib_save_LIBS
47220 ac_res=`eval echo '${'$as_ac_Lib'}'`
47221 { echo "$as_me:$LINENO: result: $ac_res" >&5
47222 echo "${ECHO_T}$ac_res" >&6; }
47223 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47224 AST_ZAPTEL_VLDTMF_FOUND=yes
47225 else
47226 AST_ZAPTEL_VLDTMF_FOUND=no
47231 # now check for the header.
47232 if test "${AST_ZAPTEL_VLDTMF_FOUND}" = "yes"; then
47233 ZAPTEL_VLDTMF_LIB="${pbxlibdir} -lzaptel "
47234 # if --with-ZAPTEL_VLDTMF=DIR has been specified, use it.
47235 if test "x${ZAPTEL_VLDTMF_DIR}" != "x"; then
47236 ZAPTEL_VLDTMF_INCLUDE="-I${ZAPTEL_VLDTMF_DIR}/include"
47238 ZAPTEL_VLDTMF_INCLUDE="${ZAPTEL_VLDTMF_INCLUDE} "
47239 if test "xzaptel.h" = "x" ; then # no header, assume found
47240 ZAPTEL_VLDTMF_HEADER_FOUND="1"
47241 else # check for the header
47242 saved_cppflags="${CPPFLAGS}"
47243 CPPFLAGS="${CPPFLAGS} ${ZAPTEL_VLDTMF_INCLUDE} "
47244 if test "${ac_cv_header_zaptel_h+set}" = set; then
47245 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47246 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47247 if test "${ac_cv_header_zaptel_h+set}" = set; then
47248 echo $ECHO_N "(cached) $ECHO_C" >&6
47250 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47251 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47252 else
47253 # Is the header compilable?
47254 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
47255 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
47256 cat >conftest.$ac_ext <<_ACEOF
47257 /* confdefs.h. */
47258 _ACEOF
47259 cat confdefs.h >>conftest.$ac_ext
47260 cat >>conftest.$ac_ext <<_ACEOF
47261 /* end confdefs.h. */
47262 $ac_includes_default
47263 #include <zaptel.h>
47264 _ACEOF
47265 rm -f conftest.$ac_objext
47266 if { (ac_try="$ac_compile"
47267 case "(($ac_try" in
47268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47269 *) ac_try_echo=$ac_try;;
47270 esac
47271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47272 (eval "$ac_compile") 2>conftest.er1
47273 ac_status=$?
47274 grep -v '^ *+' conftest.er1 >conftest.err
47275 rm -f conftest.er1
47276 cat conftest.err >&5
47277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47278 (exit $ac_status); } && {
47279 test -z "$ac_c_werror_flag" ||
47280 test ! -s conftest.err
47281 } && test -s conftest.$ac_objext; then
47282 ac_header_compiler=yes
47283 else
47284 echo "$as_me: failed program was:" >&5
47285 sed 's/^/| /' conftest.$ac_ext >&5
47287 ac_header_compiler=no
47290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47292 echo "${ECHO_T}$ac_header_compiler" >&6; }
47294 # Is the header present?
47295 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
47296 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
47297 cat >conftest.$ac_ext <<_ACEOF
47298 /* confdefs.h. */
47299 _ACEOF
47300 cat confdefs.h >>conftest.$ac_ext
47301 cat >>conftest.$ac_ext <<_ACEOF
47302 /* end confdefs.h. */
47303 #include <zaptel.h>
47304 _ACEOF
47305 if { (ac_try="$ac_cpp conftest.$ac_ext"
47306 case "(($ac_try" in
47307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47308 *) ac_try_echo=$ac_try;;
47309 esac
47310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47312 ac_status=$?
47313 grep -v '^ *+' conftest.er1 >conftest.err
47314 rm -f conftest.er1
47315 cat conftest.err >&5
47316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47317 (exit $ac_status); } >/dev/null && {
47318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47319 test ! -s conftest.err
47320 }; then
47321 ac_header_preproc=yes
47322 else
47323 echo "$as_me: failed program was:" >&5
47324 sed 's/^/| /' conftest.$ac_ext >&5
47326 ac_header_preproc=no
47329 rm -f conftest.err conftest.$ac_ext
47330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47331 echo "${ECHO_T}$ac_header_preproc" >&6; }
47333 # So? What about this header?
47334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47335 yes:no: )
47336 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
47337 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47338 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
47339 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
47340 ac_header_preproc=yes
47342 no:yes:* )
47343 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
47344 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
47345 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
47346 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
47347 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
47348 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
47349 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
47350 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
47351 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
47352 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
47353 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
47354 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
47355 ( cat <<\_ASBOX
47356 ## ------------------------------- ##
47357 ## Report this to www.asterisk.org ##
47358 ## ------------------------------- ##
47359 _ASBOX
47360 ) | sed "s/^/$as_me: WARNING: /" >&2
47362 esac
47363 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47364 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47365 if test "${ac_cv_header_zaptel_h+set}" = set; then
47366 echo $ECHO_N "(cached) $ECHO_C" >&6
47367 else
47368 ac_cv_header_zaptel_h=$ac_header_preproc
47370 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47371 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47374 if test $ac_cv_header_zaptel_h = yes; then
47375 ZAPTEL_VLDTMF_HEADER_FOUND=1
47376 else
47377 ZAPTEL_VLDTMF_HEADER_FOUND=0
47381 CPPFLAGS="${saved_cppflags}"
47383 if test "x${ZAPTEL_VLDTMF_HEADER_FOUND}" = "x0" ; then
47384 ZAPTEL_VLDTMF_LIB=""
47385 ZAPTEL_VLDTMF_INCLUDE=""
47386 else
47387 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47388 ZAPTEL_VLDTMF_LIB=""
47390 PBX_ZAPTEL_VLDTMF=1
47391 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47393 cat >>confdefs.h <<_ACEOF
47394 #define HAVE_ZAPTEL_VLDTMF 1
47395 _ACEOF
47398 cat >>confdefs.h <<_ACEOF
47399 #define HAVE_ZAPTEL_VLDTMF_VERSION 80
47400 _ACEOF
47407 # other case, old tonezone (0.80)
47409 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
47410 pbxlibdir=""
47411 # if --with-TONEZONE=DIR has been specified, use it.
47412 if test "x${TONEZONE_DIR}" != "x"; then
47413 if test -d ${TONEZONE_DIR}/lib; then
47414 pbxlibdir="-L${TONEZONE_DIR}/lib"
47415 else
47416 pbxlibdir="-L${TONEZONE_DIR}"
47419 pbxfuncname="tone_zone_find"
47420 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47421 AST_TONEZONE_FOUND=yes
47422 else
47423 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
47424 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
47425 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
47426 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47427 echo $ECHO_N "(cached) $ECHO_C" >&6
47428 else
47429 ac_check_lib_save_LIBS=$LIBS
47430 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
47431 cat >conftest.$ac_ext <<_ACEOF
47432 /* confdefs.h. */
47433 _ACEOF
47434 cat confdefs.h >>conftest.$ac_ext
47435 cat >>conftest.$ac_ext <<_ACEOF
47436 /* end confdefs.h. */
47438 /* Override any GCC internal prototype to avoid an error.
47439 Use char because int might match the return type of a GCC
47440 builtin and then its argument prototype would still apply. */
47441 #ifdef __cplusplus
47442 extern "C"
47443 #endif
47444 char ${pbxfuncname} ();
47446 main ()
47448 return ${pbxfuncname} ();
47450 return 0;
47452 _ACEOF
47453 rm -f conftest.$ac_objext conftest$ac_exeext
47454 if { (ac_try="$ac_link"
47455 case "(($ac_try" in
47456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47457 *) ac_try_echo=$ac_try;;
47458 esac
47459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47460 (eval "$ac_link") 2>conftest.er1
47461 ac_status=$?
47462 grep -v '^ *+' conftest.er1 >conftest.err
47463 rm -f conftest.er1
47464 cat conftest.err >&5
47465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47466 (exit $ac_status); } && {
47467 test -z "$ac_c_werror_flag" ||
47468 test ! -s conftest.err
47469 } && test -s conftest$ac_exeext &&
47470 $as_test_x conftest$ac_exeext; then
47471 eval "$as_ac_Lib=yes"
47472 else
47473 echo "$as_me: failed program was:" >&5
47474 sed 's/^/| /' conftest.$ac_ext >&5
47476 eval "$as_ac_Lib=no"
47479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47480 conftest$ac_exeext conftest.$ac_ext
47481 LIBS=$ac_check_lib_save_LIBS
47483 ac_res=`eval echo '${'$as_ac_Lib'}'`
47484 { echo "$as_me:$LINENO: result: $ac_res" >&5
47485 echo "${ECHO_T}$ac_res" >&6; }
47486 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47487 AST_TONEZONE_FOUND=yes
47488 else
47489 AST_TONEZONE_FOUND=no
47494 # now check for the header.
47495 if test "${AST_TONEZONE_FOUND}" = "yes"; then
47496 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
47497 # if --with-TONEZONE=DIR has been specified, use it.
47498 if test "x${TONEZONE_DIR}" != "x"; then
47499 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
47501 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
47502 if test "xzaptel.h" = "x" ; then # no header, assume found
47503 TONEZONE_HEADER_FOUND="1"
47504 else # check for the header
47505 saved_cppflags="${CPPFLAGS}"
47506 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
47507 if test "${ac_cv_header_zaptel_h+set}" = set; then
47508 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47509 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47510 if test "${ac_cv_header_zaptel_h+set}" = set; then
47511 echo $ECHO_N "(cached) $ECHO_C" >&6
47513 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47514 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47515 else
47516 # Is the header compilable?
47517 { echo "$as_me:$LINENO: checking zaptel.h usability" >&5
47518 echo $ECHO_N "checking zaptel.h usability... $ECHO_C" >&6; }
47519 cat >conftest.$ac_ext <<_ACEOF
47520 /* confdefs.h. */
47521 _ACEOF
47522 cat confdefs.h >>conftest.$ac_ext
47523 cat >>conftest.$ac_ext <<_ACEOF
47524 /* end confdefs.h. */
47525 $ac_includes_default
47526 #include <zaptel.h>
47527 _ACEOF
47528 rm -f conftest.$ac_objext
47529 if { (ac_try="$ac_compile"
47530 case "(($ac_try" in
47531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47532 *) ac_try_echo=$ac_try;;
47533 esac
47534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47535 (eval "$ac_compile") 2>conftest.er1
47536 ac_status=$?
47537 grep -v '^ *+' conftest.er1 >conftest.err
47538 rm -f conftest.er1
47539 cat conftest.err >&5
47540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47541 (exit $ac_status); } && {
47542 test -z "$ac_c_werror_flag" ||
47543 test ! -s conftest.err
47544 } && test -s conftest.$ac_objext; then
47545 ac_header_compiler=yes
47546 else
47547 echo "$as_me: failed program was:" >&5
47548 sed 's/^/| /' conftest.$ac_ext >&5
47550 ac_header_compiler=no
47553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47555 echo "${ECHO_T}$ac_header_compiler" >&6; }
47557 # Is the header present?
47558 { echo "$as_me:$LINENO: checking zaptel.h presence" >&5
47559 echo $ECHO_N "checking zaptel.h presence... $ECHO_C" >&6; }
47560 cat >conftest.$ac_ext <<_ACEOF
47561 /* confdefs.h. */
47562 _ACEOF
47563 cat confdefs.h >>conftest.$ac_ext
47564 cat >>conftest.$ac_ext <<_ACEOF
47565 /* end confdefs.h. */
47566 #include <zaptel.h>
47567 _ACEOF
47568 if { (ac_try="$ac_cpp conftest.$ac_ext"
47569 case "(($ac_try" in
47570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47571 *) ac_try_echo=$ac_try;;
47572 esac
47573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47575 ac_status=$?
47576 grep -v '^ *+' conftest.er1 >conftest.err
47577 rm -f conftest.er1
47578 cat conftest.err >&5
47579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47580 (exit $ac_status); } >/dev/null && {
47581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47582 test ! -s conftest.err
47583 }; then
47584 ac_header_preproc=yes
47585 else
47586 echo "$as_me: failed program was:" >&5
47587 sed 's/^/| /' conftest.$ac_ext >&5
47589 ac_header_preproc=no
47592 rm -f conftest.err conftest.$ac_ext
47593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47594 echo "${ECHO_T}$ac_header_preproc" >&6; }
47596 # So? What about this header?
47597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47598 yes:no: )
47599 { echo "$as_me:$LINENO: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&5
47600 echo "$as_me: WARNING: zaptel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47601 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the compiler's result" >&5
47602 echo "$as_me: WARNING: zaptel.h: proceeding with the compiler's result" >&2;}
47603 ac_header_preproc=yes
47605 no:yes:* )
47606 { echo "$as_me:$LINENO: WARNING: zaptel.h: present but cannot be compiled" >&5
47607 echo "$as_me: WARNING: zaptel.h: present but cannot be compiled" >&2;}
47608 { echo "$as_me:$LINENO: WARNING: zaptel.h: check for missing prerequisite headers?" >&5
47609 echo "$as_me: WARNING: zaptel.h: check for missing prerequisite headers?" >&2;}
47610 { echo "$as_me:$LINENO: WARNING: zaptel.h: see the Autoconf documentation" >&5
47611 echo "$as_me: WARNING: zaptel.h: see the Autoconf documentation" >&2;}
47612 { echo "$as_me:$LINENO: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&5
47613 echo "$as_me: WARNING: zaptel.h: section \"Present But Cannot Be Compiled\"" >&2;}
47614 { echo "$as_me:$LINENO: WARNING: zaptel.h: proceeding with the preprocessor's result" >&5
47615 echo "$as_me: WARNING: zaptel.h: proceeding with the preprocessor's result" >&2;}
47616 { echo "$as_me:$LINENO: WARNING: zaptel.h: in the future, the compiler will take precedence" >&5
47617 echo "$as_me: WARNING: zaptel.h: in the future, the compiler will take precedence" >&2;}
47618 ( cat <<\_ASBOX
47619 ## ------------------------------- ##
47620 ## Report this to www.asterisk.org ##
47621 ## ------------------------------- ##
47622 _ASBOX
47623 ) | sed "s/^/$as_me: WARNING: /" >&2
47625 esac
47626 { echo "$as_me:$LINENO: checking for zaptel.h" >&5
47627 echo $ECHO_N "checking for zaptel.h... $ECHO_C" >&6; }
47628 if test "${ac_cv_header_zaptel_h+set}" = set; then
47629 echo $ECHO_N "(cached) $ECHO_C" >&6
47630 else
47631 ac_cv_header_zaptel_h=$ac_header_preproc
47633 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_h" >&5
47634 echo "${ECHO_T}$ac_cv_header_zaptel_h" >&6; }
47637 if test $ac_cv_header_zaptel_h = yes; then
47638 TONEZONE_HEADER_FOUND=1
47639 else
47640 TONEZONE_HEADER_FOUND=0
47644 CPPFLAGS="${saved_cppflags}"
47646 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
47647 TONEZONE_LIB=""
47648 TONEZONE_INCLUDE=""
47649 else
47650 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47651 TONEZONE_LIB=""
47653 PBX_TONEZONE=1
47654 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47656 cat >>confdefs.h <<_ACEOF
47657 #define HAVE_TONEZONE 1
47658 _ACEOF
47661 cat >>confdefs.h <<_ACEOF
47662 #define HAVE_TONEZONE_VERSION 80
47663 _ACEOF
47670 esac
47672 EDITLINE_LIB=""
47673 if test "x$TERMCAP_LIB" != "x" ; then
47674 EDITLINE_LIB="$TERMCAP_LIB"
47675 elif test "x$TINFO_LIB" != "x" ; then
47676 EDITLINE_LIB="$TINFO_LIB"
47677 elif test "x$CURSES_LIB" != "x" ; then
47678 EDITLINE_LIB="$CURSES_LIB"
47679 elif test "x$NCURSES_LIB" != "x" ; then
47680 EDITLINE_LIB="$NCURSES_LIB"
47681 else
47682 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
47683 echo "$as_me: error: *** termcap support not found" >&2;}
47684 { (exit 1); exit 1; }; }
47688 if test "${ac_cv_header_h323_h+set}" = set; then
47689 { echo "$as_me:$LINENO: checking for h323.h" >&5
47690 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47691 if test "${ac_cv_header_h323_h+set}" = set; then
47692 echo $ECHO_N "(cached) $ECHO_C" >&6
47694 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47695 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47696 else
47697 # Is the header compilable?
47698 { echo "$as_me:$LINENO: checking h323.h usability" >&5
47699 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
47700 cat >conftest.$ac_ext <<_ACEOF
47701 /* confdefs.h. */
47702 _ACEOF
47703 cat confdefs.h >>conftest.$ac_ext
47704 cat >>conftest.$ac_ext <<_ACEOF
47705 /* end confdefs.h. */
47706 $ac_includes_default
47707 #include <h323.h>
47708 _ACEOF
47709 rm -f conftest.$ac_objext
47710 if { (ac_try="$ac_compile"
47711 case "(($ac_try" in
47712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47713 *) ac_try_echo=$ac_try;;
47714 esac
47715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47716 (eval "$ac_compile") 2>conftest.er1
47717 ac_status=$?
47718 grep -v '^ *+' conftest.er1 >conftest.err
47719 rm -f conftest.er1
47720 cat conftest.err >&5
47721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47722 (exit $ac_status); } && {
47723 test -z "$ac_c_werror_flag" ||
47724 test ! -s conftest.err
47725 } && test -s conftest.$ac_objext; then
47726 ac_header_compiler=yes
47727 else
47728 echo "$as_me: failed program was:" >&5
47729 sed 's/^/| /' conftest.$ac_ext >&5
47731 ac_header_compiler=no
47734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47736 echo "${ECHO_T}$ac_header_compiler" >&6; }
47738 # Is the header present?
47739 { echo "$as_me:$LINENO: checking h323.h presence" >&5
47740 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
47741 cat >conftest.$ac_ext <<_ACEOF
47742 /* confdefs.h. */
47743 _ACEOF
47744 cat confdefs.h >>conftest.$ac_ext
47745 cat >>conftest.$ac_ext <<_ACEOF
47746 /* end confdefs.h. */
47747 #include <h323.h>
47748 _ACEOF
47749 if { (ac_try="$ac_cpp conftest.$ac_ext"
47750 case "(($ac_try" in
47751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47752 *) ac_try_echo=$ac_try;;
47753 esac
47754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47756 ac_status=$?
47757 grep -v '^ *+' conftest.er1 >conftest.err
47758 rm -f conftest.er1
47759 cat conftest.err >&5
47760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47761 (exit $ac_status); } >/dev/null && {
47762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47763 test ! -s conftest.err
47764 }; then
47765 ac_header_preproc=yes
47766 else
47767 echo "$as_me: failed program was:" >&5
47768 sed 's/^/| /' conftest.$ac_ext >&5
47770 ac_header_preproc=no
47773 rm -f conftest.err conftest.$ac_ext
47774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47775 echo "${ECHO_T}$ac_header_preproc" >&6; }
47777 # So? What about this header?
47778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47779 yes:no: )
47780 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
47781 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47782 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
47783 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
47784 ac_header_preproc=yes
47786 no:yes:* )
47787 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
47788 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
47789 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
47790 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
47791 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
47792 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
47793 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
47794 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
47795 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
47796 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
47797 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
47798 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
47799 ( cat <<\_ASBOX
47800 ## ------------------------------- ##
47801 ## Report this to www.asterisk.org ##
47802 ## ------------------------------- ##
47803 _ASBOX
47804 ) | sed "s/^/$as_me: WARNING: /" >&2
47806 esac
47807 { echo "$as_me:$LINENO: checking for h323.h" >&5
47808 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47809 if test "${ac_cv_header_h323_h+set}" = set; then
47810 echo $ECHO_N "(cached) $ECHO_C" >&6
47811 else
47812 ac_cv_header_h323_h=$ac_header_preproc
47814 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47815 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47818 if test $ac_cv_header_h323_h = yes; then
47819 PBX_H323=1
47820 else
47821 PBX_H323=0
47827 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47828 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47829 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47830 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47831 echo $ECHO_N "(cached) $ECHO_C" >&6
47833 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47834 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47835 else
47836 # Is the header compilable?
47837 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
47838 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
47839 cat >conftest.$ac_ext <<_ACEOF
47840 /* confdefs.h. */
47841 _ACEOF
47842 cat confdefs.h >>conftest.$ac_ext
47843 cat >>conftest.$ac_ext <<_ACEOF
47844 /* end confdefs.h. */
47845 $ac_includes_default
47846 #include <linux/compiler.h>
47847 _ACEOF
47848 rm -f conftest.$ac_objext
47849 if { (ac_try="$ac_compile"
47850 case "(($ac_try" in
47851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47852 *) ac_try_echo=$ac_try;;
47853 esac
47854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47855 (eval "$ac_compile") 2>conftest.er1
47856 ac_status=$?
47857 grep -v '^ *+' conftest.er1 >conftest.err
47858 rm -f conftest.er1
47859 cat conftest.err >&5
47860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47861 (exit $ac_status); } && {
47862 test -z "$ac_c_werror_flag" ||
47863 test ! -s conftest.err
47864 } && test -s conftest.$ac_objext; then
47865 ac_header_compiler=yes
47866 else
47867 echo "$as_me: failed program was:" >&5
47868 sed 's/^/| /' conftest.$ac_ext >&5
47870 ac_header_compiler=no
47873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47875 echo "${ECHO_T}$ac_header_compiler" >&6; }
47877 # Is the header present?
47878 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
47879 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
47880 cat >conftest.$ac_ext <<_ACEOF
47881 /* confdefs.h. */
47882 _ACEOF
47883 cat confdefs.h >>conftest.$ac_ext
47884 cat >>conftest.$ac_ext <<_ACEOF
47885 /* end confdefs.h. */
47886 #include <linux/compiler.h>
47887 _ACEOF
47888 if { (ac_try="$ac_cpp conftest.$ac_ext"
47889 case "(($ac_try" in
47890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47891 *) ac_try_echo=$ac_try;;
47892 esac
47893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47895 ac_status=$?
47896 grep -v '^ *+' conftest.er1 >conftest.err
47897 rm -f conftest.er1
47898 cat conftest.err >&5
47899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47900 (exit $ac_status); } >/dev/null && {
47901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47902 test ! -s conftest.err
47903 }; then
47904 ac_header_preproc=yes
47905 else
47906 echo "$as_me: failed program was:" >&5
47907 sed 's/^/| /' conftest.$ac_ext >&5
47909 ac_header_preproc=no
47912 rm -f conftest.err conftest.$ac_ext
47913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47914 echo "${ECHO_T}$ac_header_preproc" >&6; }
47916 # So? What about this header?
47917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47918 yes:no: )
47919 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
47920 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47921 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
47922 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
47923 ac_header_preproc=yes
47925 no:yes:* )
47926 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
47927 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
47928 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
47929 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
47930 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
47931 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
47932 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
47933 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
47934 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
47935 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
47936 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
47937 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
47938 ( cat <<\_ASBOX
47939 ## ------------------------------- ##
47940 ## Report this to www.asterisk.org ##
47941 ## ------------------------------- ##
47942 _ASBOX
47943 ) | sed "s/^/$as_me: WARNING: /" >&2
47945 esac
47946 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47947 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47948 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47949 echo $ECHO_N "(cached) $ECHO_C" >&6
47950 else
47951 ac_cv_header_linux_compiler_h=$ac_header_preproc
47953 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47954 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47957 if test $ac_cv_header_linux_compiler_h = yes; then
47959 cat >>confdefs.h <<_ACEOF
47960 #define HAVE_LINUX_COMPILER_H 1
47961 _ACEOF
47967 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
47968 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
47969 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
47970 echo $ECHO_N "(cached) $ECHO_C" >&6
47971 else
47972 cat >conftest.$ac_ext <<_ACEOF
47973 /* confdefs.h. */
47974 _ACEOF
47975 cat confdefs.h >>conftest.$ac_ext
47976 cat >>conftest.$ac_ext <<_ACEOF
47977 /* end confdefs.h. */
47979 #include <linux/version.h>
47980 #ifdef HAVE_LINUX_COMPILER_H
47981 #include <linux/compiler.h>
47982 #endif
47985 #include <linux/ixjuser.h>
47986 _ACEOF
47987 rm -f conftest.$ac_objext
47988 if { (ac_try="$ac_compile"
47989 case "(($ac_try" in
47990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47991 *) ac_try_echo=$ac_try;;
47992 esac
47993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47994 (eval "$ac_compile") 2>conftest.er1
47995 ac_status=$?
47996 grep -v '^ *+' conftest.er1 >conftest.err
47997 rm -f conftest.er1
47998 cat conftest.err >&5
47999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48000 (exit $ac_status); } && {
48001 test -z "$ac_c_werror_flag" ||
48002 test ! -s conftest.err
48003 } && test -s conftest.$ac_objext; then
48004 ac_cv_header_linux_ixjuser_h=yes
48005 else
48006 echo "$as_me: failed program was:" >&5
48007 sed 's/^/| /' conftest.$ac_ext >&5
48009 ac_cv_header_linux_ixjuser_h=no
48012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48014 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
48015 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
48016 if test $ac_cv_header_linux_ixjuser_h = yes; then
48017 PBX_IXJUSER=1
48018 else
48019 PBX_IXJUSER=0
48026 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
48027 PBX_SDL=0
48028 if test -n "$ac_tool_prefix"; then
48029 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
48030 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
48031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48033 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
48034 echo $ECHO_N "(cached) $ECHO_C" >&6
48035 else
48036 if test -n "$CONFIG_SDL"; then
48037 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
48038 else
48039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48040 for as_dir in $PATH
48042 IFS=$as_save_IFS
48043 test -z "$as_dir" && as_dir=.
48044 for ac_exec_ext in '' $ac_executable_extensions; do
48045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48046 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
48047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48048 break 2
48050 done
48051 done
48052 IFS=$as_save_IFS
48056 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
48057 if test -n "$CONFIG_SDL"; then
48058 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
48059 echo "${ECHO_T}$CONFIG_SDL" >&6; }
48060 else
48061 { echo "$as_me:$LINENO: result: no" >&5
48062 echo "${ECHO_T}no" >&6; }
48067 if test -z "$ac_cv_prog_CONFIG_SDL"; then
48068 ac_ct_CONFIG_SDL=$CONFIG_SDL
48069 # Extract the first word of "sdl-config", so it can be a program name with args.
48070 set dummy sdl-config; ac_word=$2
48071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48073 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
48074 echo $ECHO_N "(cached) $ECHO_C" >&6
48075 else
48076 if test -n "$ac_ct_CONFIG_SDL"; then
48077 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
48078 else
48079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48080 for as_dir in $PATH
48082 IFS=$as_save_IFS
48083 test -z "$as_dir" && as_dir=.
48084 for ac_exec_ext in '' $ac_executable_extensions; do
48085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48086 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
48087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48088 break 2
48090 done
48091 done
48092 IFS=$as_save_IFS
48096 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
48097 if test -n "$ac_ct_CONFIG_SDL"; then
48098 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
48099 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
48100 else
48101 { echo "$as_me:$LINENO: result: no" >&5
48102 echo "${ECHO_T}no" >&6; }
48105 if test "x$ac_ct_CONFIG_SDL" = x; then
48106 CONFIG_SDL="No"
48107 else
48108 case $cross_compiling:$ac_tool_warned in
48109 yes:)
48110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48111 whose name does not start with the host triplet. If you think this
48112 configuration is useful to you, please write to autoconf@gnu.org." >&5
48113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48114 whose name does not start with the host triplet. If you think this
48115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48116 ac_tool_warned=yes ;;
48117 esac
48118 CONFIG_SDL=$ac_ct_CONFIG_SDL
48120 else
48121 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
48124 if test ! "x${CONFIG_SDL}" = xNo; then
48125 if test x"" = x ; then A=--cflags ; else A="" ; fi
48126 SDL_INCLUDE=$(${CONFIG_SDL} $A)
48127 if test x"" = x ; then A=--libs ; else A="" ; fi
48128 SDL_LIB=$(${CONFIG_SDL} $A)
48129 if test x"" != x ; then
48130 saved_cppflags="${CPPFLAGS}"
48131 if test "x${SDL_DIR}" != "x"; then
48132 SDL_INCLUDE="-I${SDL_DIR}/include"
48134 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
48136 saved_ldflags="${LDFLAGS}"
48137 LDFLAGS="${SDL_LIB}"
48139 cat >conftest.$ac_ext <<_ACEOF
48140 /* confdefs.h. */
48141 _ACEOF
48142 cat confdefs.h >>conftest.$ac_ext
48143 cat >>conftest.$ac_ext <<_ACEOF
48144 /* end confdefs.h. */
48147 main ()
48152 return 0;
48154 _ACEOF
48155 rm -f conftest.$ac_objext conftest$ac_exeext
48156 if { (ac_try="$ac_link"
48157 case "(($ac_try" in
48158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48159 *) ac_try_echo=$ac_try;;
48160 esac
48161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48162 (eval "$ac_link") 2>conftest.er1
48163 ac_status=$?
48164 grep -v '^ *+' conftest.er1 >conftest.err
48165 rm -f conftest.er1
48166 cat conftest.err >&5
48167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48168 (exit $ac_status); } && {
48169 test -z "$ac_c_werror_flag" ||
48170 test ! -s conftest.err
48171 } && test -s conftest$ac_exeext &&
48172 $as_test_x conftest$ac_exeext; then
48173 PBX_SDL=1
48175 cat >>confdefs.h <<\_ACEOF
48176 #define HAVE_SDL 1
48177 _ACEOF
48180 else
48181 echo "$as_me: failed program was:" >&5
48182 sed 's/^/| /' conftest.$ac_ext >&5
48188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48189 conftest$ac_exeext conftest.$ac_ext
48190 CPPFLAGS="${saved_cppflags}"
48191 LDFLAGS="${saved_ldflags}"
48192 else
48193 PBX_SDL=1
48195 cat >>confdefs.h <<\_ACEOF
48196 #define HAVE_SDL 1
48197 _ACEOF
48204 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
48205 pbxlibdir=""
48206 # if --with-SDL_IMAGE=DIR has been specified, use it.
48207 if test "x${SDL_IMAGE_DIR}" != "x"; then
48208 if test -d ${SDL_IMAGE_DIR}/lib; then
48209 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
48210 else
48211 pbxlibdir="-L${SDL_IMAGE_DIR}"
48214 pbxfuncname="IMG_Load"
48215 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48216 AST_SDL_IMAGE_FOUND=yes
48217 else
48218 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
48219 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
48220 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
48221 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48222 echo $ECHO_N "(cached) $ECHO_C" >&6
48223 else
48224 ac_check_lib_save_LIBS=$LIBS
48225 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
48226 cat >conftest.$ac_ext <<_ACEOF
48227 /* confdefs.h. */
48228 _ACEOF
48229 cat confdefs.h >>conftest.$ac_ext
48230 cat >>conftest.$ac_ext <<_ACEOF
48231 /* end confdefs.h. */
48233 /* Override any GCC internal prototype to avoid an error.
48234 Use char because int might match the return type of a GCC
48235 builtin and then its argument prototype would still apply. */
48236 #ifdef __cplusplus
48237 extern "C"
48238 #endif
48239 char ${pbxfuncname} ();
48241 main ()
48243 return ${pbxfuncname} ();
48245 return 0;
48247 _ACEOF
48248 rm -f conftest.$ac_objext conftest$ac_exeext
48249 if { (ac_try="$ac_link"
48250 case "(($ac_try" in
48251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48252 *) ac_try_echo=$ac_try;;
48253 esac
48254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48255 (eval "$ac_link") 2>conftest.er1
48256 ac_status=$?
48257 grep -v '^ *+' conftest.er1 >conftest.err
48258 rm -f conftest.er1
48259 cat conftest.err >&5
48260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48261 (exit $ac_status); } && {
48262 test -z "$ac_c_werror_flag" ||
48263 test ! -s conftest.err
48264 } && test -s conftest$ac_exeext &&
48265 $as_test_x conftest$ac_exeext; then
48266 eval "$as_ac_Lib=yes"
48267 else
48268 echo "$as_me: failed program was:" >&5
48269 sed 's/^/| /' conftest.$ac_ext >&5
48271 eval "$as_ac_Lib=no"
48274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48275 conftest$ac_exeext conftest.$ac_ext
48276 LIBS=$ac_check_lib_save_LIBS
48278 ac_res=`eval echo '${'$as_ac_Lib'}'`
48279 { echo "$as_me:$LINENO: result: $ac_res" >&5
48280 echo "${ECHO_T}$ac_res" >&6; }
48281 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48282 AST_SDL_IMAGE_FOUND=yes
48283 else
48284 AST_SDL_IMAGE_FOUND=no
48289 # now check for the header.
48290 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
48291 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
48292 # if --with-SDL_IMAGE=DIR has been specified, use it.
48293 if test "x${SDL_IMAGE_DIR}" != "x"; then
48294 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
48296 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
48297 if test "xSDL_image.h" = "x" ; then # no header, assume found
48298 SDL_IMAGE_HEADER_FOUND="1"
48299 else # check for the header
48300 saved_cppflags="${CPPFLAGS}"
48301 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
48302 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48303 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
48304 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
48305 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48306 echo $ECHO_N "(cached) $ECHO_C" >&6
48308 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
48309 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
48310 else
48311 # Is the header compilable?
48312 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
48313 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
48314 cat >conftest.$ac_ext <<_ACEOF
48315 /* confdefs.h. */
48316 _ACEOF
48317 cat confdefs.h >>conftest.$ac_ext
48318 cat >>conftest.$ac_ext <<_ACEOF
48319 /* end confdefs.h. */
48320 $ac_includes_default
48321 #include <SDL_image.h>
48322 _ACEOF
48323 rm -f conftest.$ac_objext
48324 if { (ac_try="$ac_compile"
48325 case "(($ac_try" in
48326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48327 *) ac_try_echo=$ac_try;;
48328 esac
48329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48330 (eval "$ac_compile") 2>conftest.er1
48331 ac_status=$?
48332 grep -v '^ *+' conftest.er1 >conftest.err
48333 rm -f conftest.er1
48334 cat conftest.err >&5
48335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48336 (exit $ac_status); } && {
48337 test -z "$ac_c_werror_flag" ||
48338 test ! -s conftest.err
48339 } && test -s conftest.$ac_objext; then
48340 ac_header_compiler=yes
48341 else
48342 echo "$as_me: failed program was:" >&5
48343 sed 's/^/| /' conftest.$ac_ext >&5
48345 ac_header_compiler=no
48348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48350 echo "${ECHO_T}$ac_header_compiler" >&6; }
48352 # Is the header present?
48353 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
48354 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
48355 cat >conftest.$ac_ext <<_ACEOF
48356 /* confdefs.h. */
48357 _ACEOF
48358 cat confdefs.h >>conftest.$ac_ext
48359 cat >>conftest.$ac_ext <<_ACEOF
48360 /* end confdefs.h. */
48361 #include <SDL_image.h>
48362 _ACEOF
48363 if { (ac_try="$ac_cpp conftest.$ac_ext"
48364 case "(($ac_try" in
48365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48366 *) ac_try_echo=$ac_try;;
48367 esac
48368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48370 ac_status=$?
48371 grep -v '^ *+' conftest.er1 >conftest.err
48372 rm -f conftest.er1
48373 cat conftest.err >&5
48374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48375 (exit $ac_status); } >/dev/null && {
48376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48377 test ! -s conftest.err
48378 }; then
48379 ac_header_preproc=yes
48380 else
48381 echo "$as_me: failed program was:" >&5
48382 sed 's/^/| /' conftest.$ac_ext >&5
48384 ac_header_preproc=no
48387 rm -f conftest.err conftest.$ac_ext
48388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48389 echo "${ECHO_T}$ac_header_preproc" >&6; }
48391 # So? What about this header?
48392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48393 yes:no: )
48394 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
48395 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48396 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
48397 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
48398 ac_header_preproc=yes
48400 no:yes:* )
48401 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
48402 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
48403 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
48404 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
48405 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
48406 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
48407 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
48408 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
48409 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
48410 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
48411 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
48412 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
48413 ( cat <<\_ASBOX
48414 ## ------------------------------- ##
48415 ## Report this to www.asterisk.org ##
48416 ## ------------------------------- ##
48417 _ASBOX
48418 ) | sed "s/^/$as_me: WARNING: /" >&2
48420 esac
48421 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
48422 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
48423 if test "${ac_cv_header_SDL_image_h+set}" = set; then
48424 echo $ECHO_N "(cached) $ECHO_C" >&6
48425 else
48426 ac_cv_header_SDL_image_h=$ac_header_preproc
48428 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
48429 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
48432 if test $ac_cv_header_SDL_image_h = yes; then
48433 SDL_IMAGE_HEADER_FOUND=1
48434 else
48435 SDL_IMAGE_HEADER_FOUND=0
48439 CPPFLAGS="${saved_cppflags}"
48441 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
48442 SDL_IMAGE_LIB=""
48443 SDL_IMAGE_INCLUDE=""
48444 else
48445 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48446 SDL_IMAGE_LIB=""
48448 PBX_SDL_IMAGE=1
48449 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48451 cat >>confdefs.h <<_ACEOF
48452 #define HAVE_SDL_IMAGE 1
48453 _ACEOF
48456 cat >>confdefs.h <<_ACEOF
48457 #define HAVE_SDL_IMAGE_VERSION
48458 _ACEOF
48465 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
48466 pbxlibdir=""
48467 # if --with-FFMPEG=DIR has been specified, use it.
48468 if test "x${FFMPEG_DIR}" != "x"; then
48469 if test -d ${FFMPEG_DIR}/lib; then
48470 pbxlibdir="-L${FFMPEG_DIR}/lib"
48471 else
48472 pbxlibdir="-L${FFMPEG_DIR}"
48475 pbxfuncname="sws_getContext"
48476 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48477 AST_FFMPEG_FOUND=yes
48478 else
48479 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
48480 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
48481 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
48482 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48483 echo $ECHO_N "(cached) $ECHO_C" >&6
48484 else
48485 ac_check_lib_save_LIBS=$LIBS
48486 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
48487 cat >conftest.$ac_ext <<_ACEOF
48488 /* confdefs.h. */
48489 _ACEOF
48490 cat confdefs.h >>conftest.$ac_ext
48491 cat >>conftest.$ac_ext <<_ACEOF
48492 /* end confdefs.h. */
48494 /* Override any GCC internal prototype to avoid an error.
48495 Use char because int might match the return type of a GCC
48496 builtin and then its argument prototype would still apply. */
48497 #ifdef __cplusplus
48498 extern "C"
48499 #endif
48500 char ${pbxfuncname} ();
48502 main ()
48504 return ${pbxfuncname} ();
48506 return 0;
48508 _ACEOF
48509 rm -f conftest.$ac_objext conftest$ac_exeext
48510 if { (ac_try="$ac_link"
48511 case "(($ac_try" in
48512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48513 *) ac_try_echo=$ac_try;;
48514 esac
48515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48516 (eval "$ac_link") 2>conftest.er1
48517 ac_status=$?
48518 grep -v '^ *+' conftest.er1 >conftest.err
48519 rm -f conftest.er1
48520 cat conftest.err >&5
48521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48522 (exit $ac_status); } && {
48523 test -z "$ac_c_werror_flag" ||
48524 test ! -s conftest.err
48525 } && test -s conftest$ac_exeext &&
48526 $as_test_x conftest$ac_exeext; then
48527 eval "$as_ac_Lib=yes"
48528 else
48529 echo "$as_me: failed program was:" >&5
48530 sed 's/^/| /' conftest.$ac_ext >&5
48532 eval "$as_ac_Lib=no"
48535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48536 conftest$ac_exeext conftest.$ac_ext
48537 LIBS=$ac_check_lib_save_LIBS
48539 ac_res=`eval echo '${'$as_ac_Lib'}'`
48540 { echo "$as_me:$LINENO: result: $ac_res" >&5
48541 echo "${ECHO_T}$ac_res" >&6; }
48542 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48543 AST_FFMPEG_FOUND=yes
48544 else
48545 AST_FFMPEG_FOUND=no
48550 # now check for the header.
48551 if test "${AST_FFMPEG_FOUND}" = "yes"; then
48552 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
48553 # if --with-FFMPEG=DIR has been specified, use it.
48554 if test "x${FFMPEG_DIR}" != "x"; then
48555 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
48557 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
48558 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
48559 FFMPEG_HEADER_FOUND="1"
48560 else # check for the header
48561 saved_cppflags="${CPPFLAGS}"
48562 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE} "
48563 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48564 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48565 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48566 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48567 echo $ECHO_N "(cached) $ECHO_C" >&6
48569 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48570 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48571 else
48572 # Is the header compilable?
48573 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
48574 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
48575 cat >conftest.$ac_ext <<_ACEOF
48576 /* confdefs.h. */
48577 _ACEOF
48578 cat confdefs.h >>conftest.$ac_ext
48579 cat >>conftest.$ac_ext <<_ACEOF
48580 /* end confdefs.h. */
48581 $ac_includes_default
48582 #include <ffmpeg/avcodec.h>
48583 _ACEOF
48584 rm -f conftest.$ac_objext
48585 if { (ac_try="$ac_compile"
48586 case "(($ac_try" in
48587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48588 *) ac_try_echo=$ac_try;;
48589 esac
48590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48591 (eval "$ac_compile") 2>conftest.er1
48592 ac_status=$?
48593 grep -v '^ *+' conftest.er1 >conftest.err
48594 rm -f conftest.er1
48595 cat conftest.err >&5
48596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48597 (exit $ac_status); } && {
48598 test -z "$ac_c_werror_flag" ||
48599 test ! -s conftest.err
48600 } && test -s conftest.$ac_objext; then
48601 ac_header_compiler=yes
48602 else
48603 echo "$as_me: failed program was:" >&5
48604 sed 's/^/| /' conftest.$ac_ext >&5
48606 ac_header_compiler=no
48609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48611 echo "${ECHO_T}$ac_header_compiler" >&6; }
48613 # Is the header present?
48614 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
48615 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
48616 cat >conftest.$ac_ext <<_ACEOF
48617 /* confdefs.h. */
48618 _ACEOF
48619 cat confdefs.h >>conftest.$ac_ext
48620 cat >>conftest.$ac_ext <<_ACEOF
48621 /* end confdefs.h. */
48622 #include <ffmpeg/avcodec.h>
48623 _ACEOF
48624 if { (ac_try="$ac_cpp conftest.$ac_ext"
48625 case "(($ac_try" in
48626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48627 *) ac_try_echo=$ac_try;;
48628 esac
48629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48631 ac_status=$?
48632 grep -v '^ *+' conftest.er1 >conftest.err
48633 rm -f conftest.er1
48634 cat conftest.err >&5
48635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48636 (exit $ac_status); } >/dev/null && {
48637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48638 test ! -s conftest.err
48639 }; then
48640 ac_header_preproc=yes
48641 else
48642 echo "$as_me: failed program was:" >&5
48643 sed 's/^/| /' conftest.$ac_ext >&5
48645 ac_header_preproc=no
48648 rm -f conftest.err conftest.$ac_ext
48649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48650 echo "${ECHO_T}$ac_header_preproc" >&6; }
48652 # So? What about this header?
48653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48654 yes:no: )
48655 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
48656 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48657 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
48658 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
48659 ac_header_preproc=yes
48661 no:yes:* )
48662 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
48663 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
48664 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
48665 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
48666 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
48667 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
48668 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
48669 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
48670 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
48671 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
48672 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
48673 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
48674 ( cat <<\_ASBOX
48675 ## ------------------------------- ##
48676 ## Report this to www.asterisk.org ##
48677 ## ------------------------------- ##
48678 _ASBOX
48679 ) | sed "s/^/$as_me: WARNING: /" >&2
48681 esac
48682 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48683 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48684 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48685 echo $ECHO_N "(cached) $ECHO_C" >&6
48686 else
48687 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
48689 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48690 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48693 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
48694 FFMPEG_HEADER_FOUND=1
48695 else
48696 FFMPEG_HEADER_FOUND=0
48700 CPPFLAGS="${saved_cppflags}"
48702 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
48703 FFMPEG_LIB=""
48704 FFMPEG_INCLUDE=""
48705 else
48706 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48707 FFMPEG_LIB=""
48709 PBX_FFMPEG=1
48710 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48712 cat >>confdefs.h <<_ACEOF
48713 #define HAVE_FFMPEG 1
48714 _ACEOF
48717 cat >>confdefs.h <<_ACEOF
48718 #define HAVE_FFMPEG_VERSION
48719 _ACEOF
48726 # possible places for video4linux version 1
48727 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48728 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48729 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48730 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48731 echo $ECHO_N "(cached) $ECHO_C" >&6
48733 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48734 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48735 else
48736 # Is the header compilable?
48737 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
48738 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
48739 cat >conftest.$ac_ext <<_ACEOF
48740 /* confdefs.h. */
48741 _ACEOF
48742 cat confdefs.h >>conftest.$ac_ext
48743 cat >>conftest.$ac_ext <<_ACEOF
48744 /* end confdefs.h. */
48745 $ac_includes_default
48746 #include <linux/videodev.h>
48747 _ACEOF
48748 rm -f conftest.$ac_objext
48749 if { (ac_try="$ac_compile"
48750 case "(($ac_try" in
48751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48752 *) ac_try_echo=$ac_try;;
48753 esac
48754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48755 (eval "$ac_compile") 2>conftest.er1
48756 ac_status=$?
48757 grep -v '^ *+' conftest.er1 >conftest.err
48758 rm -f conftest.er1
48759 cat conftest.err >&5
48760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48761 (exit $ac_status); } && {
48762 test -z "$ac_c_werror_flag" ||
48763 test ! -s conftest.err
48764 } && test -s conftest.$ac_objext; then
48765 ac_header_compiler=yes
48766 else
48767 echo "$as_me: failed program was:" >&5
48768 sed 's/^/| /' conftest.$ac_ext >&5
48770 ac_header_compiler=no
48773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48775 echo "${ECHO_T}$ac_header_compiler" >&6; }
48777 # Is the header present?
48778 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
48779 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
48780 cat >conftest.$ac_ext <<_ACEOF
48781 /* confdefs.h. */
48782 _ACEOF
48783 cat confdefs.h >>conftest.$ac_ext
48784 cat >>conftest.$ac_ext <<_ACEOF
48785 /* end confdefs.h. */
48786 #include <linux/videodev.h>
48787 _ACEOF
48788 if { (ac_try="$ac_cpp conftest.$ac_ext"
48789 case "(($ac_try" in
48790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48791 *) ac_try_echo=$ac_try;;
48792 esac
48793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48795 ac_status=$?
48796 grep -v '^ *+' conftest.er1 >conftest.err
48797 rm -f conftest.er1
48798 cat conftest.err >&5
48799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48800 (exit $ac_status); } >/dev/null && {
48801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48802 test ! -s conftest.err
48803 }; then
48804 ac_header_preproc=yes
48805 else
48806 echo "$as_me: failed program was:" >&5
48807 sed 's/^/| /' conftest.$ac_ext >&5
48809 ac_header_preproc=no
48812 rm -f conftest.err conftest.$ac_ext
48813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48814 echo "${ECHO_T}$ac_header_preproc" >&6; }
48816 # So? What about this header?
48817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48818 yes:no: )
48819 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
48820 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48821 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
48822 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
48823 ac_header_preproc=yes
48825 no:yes:* )
48826 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
48827 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
48828 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
48829 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
48830 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
48831 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
48832 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
48833 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
48834 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
48835 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
48836 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
48837 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
48838 ( cat <<\_ASBOX
48839 ## ------------------------------- ##
48840 ## Report this to www.asterisk.org ##
48841 ## ------------------------------- ##
48842 _ASBOX
48843 ) | sed "s/^/$as_me: WARNING: /" >&2
48845 esac
48846 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48847 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48848 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48849 echo $ECHO_N "(cached) $ECHO_C" >&6
48850 else
48851 ac_cv_header_linux_videodev_h=$ac_header_preproc
48853 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48854 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48857 if test $ac_cv_header_linux_videodev_h = yes; then
48859 cat >>confdefs.h <<_ACEOF
48860 #define HAVE_VIDEODEV_H 1
48861 _ACEOF
48867 # possible places for X11
48869 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48870 pbxlibdir=""
48871 # if --with-X11=DIR has been specified, use it.
48872 if test "x${X11_DIR}" != "x"; then
48873 if test -d ${X11_DIR}/lib; then
48874 pbxlibdir="-L${X11_DIR}/lib"
48875 else
48876 pbxlibdir="-L${X11_DIR}"
48879 pbxfuncname="XOpenDisplay"
48880 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48881 AST_X11_FOUND=yes
48882 else
48883 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48884 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48885 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48886 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48887 echo $ECHO_N "(cached) $ECHO_C" >&6
48888 else
48889 ac_check_lib_save_LIBS=$LIBS
48890 LIBS="-lX11 ${pbxlibdir} $LIBS"
48891 cat >conftest.$ac_ext <<_ACEOF
48892 /* confdefs.h. */
48893 _ACEOF
48894 cat confdefs.h >>conftest.$ac_ext
48895 cat >>conftest.$ac_ext <<_ACEOF
48896 /* end confdefs.h. */
48898 /* Override any GCC internal prototype to avoid an error.
48899 Use char because int might match the return type of a GCC
48900 builtin and then its argument prototype would still apply. */
48901 #ifdef __cplusplus
48902 extern "C"
48903 #endif
48904 char ${pbxfuncname} ();
48906 main ()
48908 return ${pbxfuncname} ();
48910 return 0;
48912 _ACEOF
48913 rm -f conftest.$ac_objext conftest$ac_exeext
48914 if { (ac_try="$ac_link"
48915 case "(($ac_try" in
48916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48917 *) ac_try_echo=$ac_try;;
48918 esac
48919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48920 (eval "$ac_link") 2>conftest.er1
48921 ac_status=$?
48922 grep -v '^ *+' conftest.er1 >conftest.err
48923 rm -f conftest.er1
48924 cat conftest.err >&5
48925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48926 (exit $ac_status); } && {
48927 test -z "$ac_c_werror_flag" ||
48928 test ! -s conftest.err
48929 } && test -s conftest$ac_exeext &&
48930 $as_test_x conftest$ac_exeext; then
48931 eval "$as_ac_Lib=yes"
48932 else
48933 echo "$as_me: failed program was:" >&5
48934 sed 's/^/| /' conftest.$ac_ext >&5
48936 eval "$as_ac_Lib=no"
48939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48940 conftest$ac_exeext conftest.$ac_ext
48941 LIBS=$ac_check_lib_save_LIBS
48943 ac_res=`eval echo '${'$as_ac_Lib'}'`
48944 { echo "$as_me:$LINENO: result: $ac_res" >&5
48945 echo "${ECHO_T}$ac_res" >&6; }
48946 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48947 AST_X11_FOUND=yes
48948 else
48949 AST_X11_FOUND=no
48954 # now check for the header.
48955 if test "${AST_X11_FOUND}" = "yes"; then
48956 X11_LIB="${pbxlibdir} -lX11 "
48957 # if --with-X11=DIR has been specified, use it.
48958 if test "x${X11_DIR}" != "x"; then
48959 X11_INCLUDE="-I${X11_DIR}/include"
48961 X11_INCLUDE="${X11_INCLUDE} "
48962 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48963 X11_HEADER_FOUND="1"
48964 else # check for the header
48965 saved_cppflags="${CPPFLAGS}"
48966 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} "
48967 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48968 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48969 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48970 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48971 echo $ECHO_N "(cached) $ECHO_C" >&6
48973 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48974 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48975 else
48976 # Is the header compilable?
48977 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48978 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48979 cat >conftest.$ac_ext <<_ACEOF
48980 /* confdefs.h. */
48981 _ACEOF
48982 cat confdefs.h >>conftest.$ac_ext
48983 cat >>conftest.$ac_ext <<_ACEOF
48984 /* end confdefs.h. */
48985 $ac_includes_default
48986 #include <X11/Xlib.h>
48987 _ACEOF
48988 rm -f conftest.$ac_objext
48989 if { (ac_try="$ac_compile"
48990 case "(($ac_try" in
48991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48992 *) ac_try_echo=$ac_try;;
48993 esac
48994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48995 (eval "$ac_compile") 2>conftest.er1
48996 ac_status=$?
48997 grep -v '^ *+' conftest.er1 >conftest.err
48998 rm -f conftest.er1
48999 cat conftest.err >&5
49000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001 (exit $ac_status); } && {
49002 test -z "$ac_c_werror_flag" ||
49003 test ! -s conftest.err
49004 } && test -s conftest.$ac_objext; then
49005 ac_header_compiler=yes
49006 else
49007 echo "$as_me: failed program was:" >&5
49008 sed 's/^/| /' conftest.$ac_ext >&5
49010 ac_header_compiler=no
49013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49015 echo "${ECHO_T}$ac_header_compiler" >&6; }
49017 # Is the header present?
49018 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
49019 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
49020 cat >conftest.$ac_ext <<_ACEOF
49021 /* confdefs.h. */
49022 _ACEOF
49023 cat confdefs.h >>conftest.$ac_ext
49024 cat >>conftest.$ac_ext <<_ACEOF
49025 /* end confdefs.h. */
49026 #include <X11/Xlib.h>
49027 _ACEOF
49028 if { (ac_try="$ac_cpp conftest.$ac_ext"
49029 case "(($ac_try" in
49030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49031 *) ac_try_echo=$ac_try;;
49032 esac
49033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49035 ac_status=$?
49036 grep -v '^ *+' conftest.er1 >conftest.err
49037 rm -f conftest.er1
49038 cat conftest.err >&5
49039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49040 (exit $ac_status); } >/dev/null && {
49041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49042 test ! -s conftest.err
49043 }; then
49044 ac_header_preproc=yes
49045 else
49046 echo "$as_me: failed program was:" >&5
49047 sed 's/^/| /' conftest.$ac_ext >&5
49049 ac_header_preproc=no
49052 rm -f conftest.err conftest.$ac_ext
49053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49054 echo "${ECHO_T}$ac_header_preproc" >&6; }
49056 # So? What about this header?
49057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49058 yes:no: )
49059 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
49060 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49061 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
49062 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
49063 ac_header_preproc=yes
49065 no:yes:* )
49066 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
49067 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
49068 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
49069 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
49070 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
49071 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
49072 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
49073 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
49074 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
49075 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
49076 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
49077 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
49078 ( cat <<\_ASBOX
49079 ## ------------------------------- ##
49080 ## Report this to www.asterisk.org ##
49081 ## ------------------------------- ##
49082 _ASBOX
49083 ) | sed "s/^/$as_me: WARNING: /" >&2
49085 esac
49086 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49087 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49088 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49089 echo $ECHO_N "(cached) $ECHO_C" >&6
49090 else
49091 ac_cv_header_X11_Xlib_h=$ac_header_preproc
49093 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49094 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49097 if test $ac_cv_header_X11_Xlib_h = yes; then
49098 X11_HEADER_FOUND=1
49099 else
49100 X11_HEADER_FOUND=0
49104 CPPFLAGS="${saved_cppflags}"
49106 if test "x${X11_HEADER_FOUND}" = "x0" ; then
49107 X11_LIB=""
49108 X11_INCLUDE=""
49109 else
49110 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49111 X11_LIB=""
49113 PBX_X11=1
49114 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49116 cat >>confdefs.h <<_ACEOF
49117 #define HAVE_X11 1
49118 _ACEOF
49121 cat >>confdefs.h <<_ACEOF
49122 #define HAVE_X11_VERSION standard_path
49123 _ACEOF
49130 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
49131 pbxlibdir=""
49132 # if --with-X11=DIR has been specified, use it.
49133 if test "x${X11_DIR}" != "x"; then
49134 if test -d ${X11_DIR}/lib; then
49135 pbxlibdir="-L${X11_DIR}/lib"
49136 else
49137 pbxlibdir="-L${X11_DIR}"
49140 pbxfuncname="XOpenDisplay"
49141 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
49142 AST_X11_FOUND=yes
49143 else
49144 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
49145 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
49146 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
49147 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
49148 echo $ECHO_N "(cached) $ECHO_C" >&6
49149 else
49150 ac_check_lib_save_LIBS=$LIBS
49151 LIBS="-lX11 ${pbxlibdir} $LIBS"
49152 cat >conftest.$ac_ext <<_ACEOF
49153 /* confdefs.h. */
49154 _ACEOF
49155 cat confdefs.h >>conftest.$ac_ext
49156 cat >>conftest.$ac_ext <<_ACEOF
49157 /* end confdefs.h. */
49159 /* Override any GCC internal prototype to avoid an error.
49160 Use char because int might match the return type of a GCC
49161 builtin and then its argument prototype would still apply. */
49162 #ifdef __cplusplus
49163 extern "C"
49164 #endif
49165 char ${pbxfuncname} ();
49167 main ()
49169 return ${pbxfuncname} ();
49171 return 0;
49173 _ACEOF
49174 rm -f conftest.$ac_objext conftest$ac_exeext
49175 if { (ac_try="$ac_link"
49176 case "(($ac_try" in
49177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49178 *) ac_try_echo=$ac_try;;
49179 esac
49180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49181 (eval "$ac_link") 2>conftest.er1
49182 ac_status=$?
49183 grep -v '^ *+' conftest.er1 >conftest.err
49184 rm -f conftest.er1
49185 cat conftest.err >&5
49186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49187 (exit $ac_status); } && {
49188 test -z "$ac_c_werror_flag" ||
49189 test ! -s conftest.err
49190 } && test -s conftest$ac_exeext &&
49191 $as_test_x conftest$ac_exeext; then
49192 eval "$as_ac_Lib=yes"
49193 else
49194 echo "$as_me: failed program was:" >&5
49195 sed 's/^/| /' conftest.$ac_ext >&5
49197 eval "$as_ac_Lib=no"
49200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49201 conftest$ac_exeext conftest.$ac_ext
49202 LIBS=$ac_check_lib_save_LIBS
49204 ac_res=`eval echo '${'$as_ac_Lib'}'`
49205 { echo "$as_me:$LINENO: result: $ac_res" >&5
49206 echo "${ECHO_T}$ac_res" >&6; }
49207 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
49208 AST_X11_FOUND=yes
49209 else
49210 AST_X11_FOUND=no
49215 # now check for the header.
49216 if test "${AST_X11_FOUND}" = "yes"; then
49217 X11_LIB="${pbxlibdir} -lX11 "
49218 # if --with-X11=DIR has been specified, use it.
49219 if test "x${X11_DIR}" != "x"; then
49220 X11_INCLUDE="-I${X11_DIR}/include"
49222 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
49223 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
49224 X11_HEADER_FOUND="1"
49225 else # check for the header
49226 saved_cppflags="${CPPFLAGS}"
49227 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} -I/usr/X11R6/include"
49228 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49229 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49230 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49231 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49232 echo $ECHO_N "(cached) $ECHO_C" >&6
49234 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49235 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49236 else
49237 # Is the header compilable?
49238 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
49239 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
49240 cat >conftest.$ac_ext <<_ACEOF
49241 /* confdefs.h. */
49242 _ACEOF
49243 cat confdefs.h >>conftest.$ac_ext
49244 cat >>conftest.$ac_ext <<_ACEOF
49245 /* end confdefs.h. */
49246 $ac_includes_default
49247 #include <X11/Xlib.h>
49248 _ACEOF
49249 rm -f conftest.$ac_objext
49250 if { (ac_try="$ac_compile"
49251 case "(($ac_try" in
49252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49253 *) ac_try_echo=$ac_try;;
49254 esac
49255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49256 (eval "$ac_compile") 2>conftest.er1
49257 ac_status=$?
49258 grep -v '^ *+' conftest.er1 >conftest.err
49259 rm -f conftest.er1
49260 cat conftest.err >&5
49261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49262 (exit $ac_status); } && {
49263 test -z "$ac_c_werror_flag" ||
49264 test ! -s conftest.err
49265 } && test -s conftest.$ac_objext; then
49266 ac_header_compiler=yes
49267 else
49268 echo "$as_me: failed program was:" >&5
49269 sed 's/^/| /' conftest.$ac_ext >&5
49271 ac_header_compiler=no
49274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49276 echo "${ECHO_T}$ac_header_compiler" >&6; }
49278 # Is the header present?
49279 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
49280 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
49281 cat >conftest.$ac_ext <<_ACEOF
49282 /* confdefs.h. */
49283 _ACEOF
49284 cat confdefs.h >>conftest.$ac_ext
49285 cat >>conftest.$ac_ext <<_ACEOF
49286 /* end confdefs.h. */
49287 #include <X11/Xlib.h>
49288 _ACEOF
49289 if { (ac_try="$ac_cpp conftest.$ac_ext"
49290 case "(($ac_try" in
49291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49292 *) ac_try_echo=$ac_try;;
49293 esac
49294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49296 ac_status=$?
49297 grep -v '^ *+' conftest.er1 >conftest.err
49298 rm -f conftest.er1
49299 cat conftest.err >&5
49300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49301 (exit $ac_status); } >/dev/null && {
49302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49303 test ! -s conftest.err
49304 }; then
49305 ac_header_preproc=yes
49306 else
49307 echo "$as_me: failed program was:" >&5
49308 sed 's/^/| /' conftest.$ac_ext >&5
49310 ac_header_preproc=no
49313 rm -f conftest.err conftest.$ac_ext
49314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49315 echo "${ECHO_T}$ac_header_preproc" >&6; }
49317 # So? What about this header?
49318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49319 yes:no: )
49320 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
49321 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
49322 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
49323 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
49324 ac_header_preproc=yes
49326 no:yes:* )
49327 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
49328 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
49329 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
49330 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
49331 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
49332 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
49333 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
49334 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
49335 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
49336 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
49337 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
49338 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
49339 ( cat <<\_ASBOX
49340 ## ------------------------------- ##
49341 ## Report this to www.asterisk.org ##
49342 ## ------------------------------- ##
49343 _ASBOX
49344 ) | sed "s/^/$as_me: WARNING: /" >&2
49346 esac
49347 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
49348 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
49349 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
49350 echo $ECHO_N "(cached) $ECHO_C" >&6
49351 else
49352 ac_cv_header_X11_Xlib_h=$ac_header_preproc
49354 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
49355 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
49358 if test $ac_cv_header_X11_Xlib_h = yes; then
49359 X11_HEADER_FOUND=1
49360 else
49361 X11_HEADER_FOUND=0
49365 CPPFLAGS="${saved_cppflags}"
49367 if test "x${X11_HEADER_FOUND}" = "x0" ; then
49368 X11_LIB=""
49369 X11_INCLUDE=""
49370 else
49371 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
49372 X11_LIB=""
49374 PBX_X11=1
49375 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
49377 cat >>confdefs.h <<_ACEOF
49378 #define HAVE_X11 1
49379 _ACEOF
49382 cat >>confdefs.h <<_ACEOF
49383 #define HAVE_X11_VERSION X11R6
49384 _ACEOF
49391 if test "${cross_compiling}" = "no";
49392 then
49393 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
49394 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
49395 if test "${ac_cv_file__sbin_launchd+set}" = set; then
49396 echo $ECHO_N "(cached) $ECHO_C" >&6
49397 else
49398 test "$cross_compiling" = yes &&
49399 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
49400 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
49401 { (exit 1); exit 1; }; }
49402 if test -r "/sbin/launchd"; then
49403 ac_cv_file__sbin_launchd=yes
49404 else
49405 ac_cv_file__sbin_launchd=no
49408 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
49409 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
49410 if test $ac_cv_file__sbin_launchd = yes; then
49412 cat >>confdefs.h <<\_ACEOF
49413 #define HAVE_SBIN_LAUNCHD 1
49414 _ACEOF
49420 PBX_GTK=0
49422 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
49423 PBX_GTK=0
49424 if test -n "$ac_tool_prefix"; then
49425 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
49426 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
49427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49429 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
49430 echo $ECHO_N "(cached) $ECHO_C" >&6
49431 else
49432 if test -n "$CONFIG_GTK"; then
49433 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
49434 else
49435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49436 for as_dir in $PATH
49438 IFS=$as_save_IFS
49439 test -z "$as_dir" && as_dir=.
49440 for ac_exec_ext in '' $ac_executable_extensions; do
49441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49442 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
49443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49444 break 2
49446 done
49447 done
49448 IFS=$as_save_IFS
49452 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
49453 if test -n "$CONFIG_GTK"; then
49454 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
49455 echo "${ECHO_T}$CONFIG_GTK" >&6; }
49456 else
49457 { echo "$as_me:$LINENO: result: no" >&5
49458 echo "${ECHO_T}no" >&6; }
49463 if test -z "$ac_cv_prog_CONFIG_GTK"; then
49464 ac_ct_CONFIG_GTK=$CONFIG_GTK
49465 # Extract the first word of "gtk-config", so it can be a program name with args.
49466 set dummy gtk-config; ac_word=$2
49467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49469 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
49470 echo $ECHO_N "(cached) $ECHO_C" >&6
49471 else
49472 if test -n "$ac_ct_CONFIG_GTK"; then
49473 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
49474 else
49475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49476 for as_dir in $PATH
49478 IFS=$as_save_IFS
49479 test -z "$as_dir" && as_dir=.
49480 for ac_exec_ext in '' $ac_executable_extensions; do
49481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49482 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
49483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49484 break 2
49486 done
49487 done
49488 IFS=$as_save_IFS
49492 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
49493 if test -n "$ac_ct_CONFIG_GTK"; then
49494 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
49495 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
49496 else
49497 { echo "$as_me:$LINENO: result: no" >&5
49498 echo "${ECHO_T}no" >&6; }
49501 if test "x$ac_ct_CONFIG_GTK" = x; then
49502 CONFIG_GTK="No"
49503 else
49504 case $cross_compiling:$ac_tool_warned in
49505 yes:)
49506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49507 whose name does not start with the host triplet. If you think this
49508 configuration is useful to you, please write to autoconf@gnu.org." >&5
49509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49510 whose name does not start with the host triplet. If you think this
49511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49512 ac_tool_warned=yes ;;
49513 esac
49514 CONFIG_GTK=$ac_ct_CONFIG_GTK
49516 else
49517 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
49520 if test ! "x${CONFIG_GTK}" = xNo; then
49521 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
49522 GTK_INCLUDE=$(${CONFIG_GTK} $A)
49523 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
49524 GTK_LIB=$(${CONFIG_GTK} $A)
49525 if test x"" != x ; then
49526 saved_cppflags="${CPPFLAGS}"
49527 if test "x${GTK_DIR}" != "x"; then
49528 GTK_INCLUDE="-I${GTK_DIR}/include"
49530 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
49532 saved_ldflags="${LDFLAGS}"
49533 LDFLAGS="${GTK_LIB}"
49535 cat >conftest.$ac_ext <<_ACEOF
49536 /* confdefs.h. */
49537 _ACEOF
49538 cat confdefs.h >>conftest.$ac_ext
49539 cat >>conftest.$ac_ext <<_ACEOF
49540 /* end confdefs.h. */
49543 main ()
49548 return 0;
49550 _ACEOF
49551 rm -f conftest.$ac_objext conftest$ac_exeext
49552 if { (ac_try="$ac_link"
49553 case "(($ac_try" in
49554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49555 *) ac_try_echo=$ac_try;;
49556 esac
49557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49558 (eval "$ac_link") 2>conftest.er1
49559 ac_status=$?
49560 grep -v '^ *+' conftest.er1 >conftest.err
49561 rm -f conftest.er1
49562 cat conftest.err >&5
49563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49564 (exit $ac_status); } && {
49565 test -z "$ac_c_werror_flag" ||
49566 test ! -s conftest.err
49567 } && test -s conftest$ac_exeext &&
49568 $as_test_x conftest$ac_exeext; then
49569 PBX_GTK=1
49571 cat >>confdefs.h <<\_ACEOF
49572 #define HAVE_GTK 1
49573 _ACEOF
49576 else
49577 echo "$as_me: failed program was:" >&5
49578 sed 's/^/| /' conftest.$ac_ext >&5
49584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49585 conftest$ac_exeext conftest.$ac_ext
49586 CPPFLAGS="${saved_cppflags}"
49587 LDFLAGS="${saved_ldflags}"
49588 else
49589 PBX_GTK=1
49591 cat >>confdefs.h <<\_ACEOF
49592 #define HAVE_GTK 1
49593 _ACEOF
49600 PBX_GTK2=0
49601 if test -n "$ac_tool_prefix"; then
49602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
49603 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
49604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49606 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
49607 echo $ECHO_N "(cached) $ECHO_C" >&6
49608 else
49609 if test -n "$PKGCONFIG"; then
49610 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
49611 else
49612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49613 for as_dir in $PATH
49615 IFS=$as_save_IFS
49616 test -z "$as_dir" && as_dir=.
49617 for ac_exec_ext in '' $ac_executable_extensions; do
49618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49619 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
49620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49621 break 2
49623 done
49624 done
49625 IFS=$as_save_IFS
49629 PKGCONFIG=$ac_cv_prog_PKGCONFIG
49630 if test -n "$PKGCONFIG"; then
49631 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
49632 echo "${ECHO_T}$PKGCONFIG" >&6; }
49633 else
49634 { echo "$as_me:$LINENO: result: no" >&5
49635 echo "${ECHO_T}no" >&6; }
49640 if test -z "$ac_cv_prog_PKGCONFIG"; then
49641 ac_ct_PKGCONFIG=$PKGCONFIG
49642 # Extract the first word of "pkg-config", so it can be a program name with args.
49643 set dummy pkg-config; ac_word=$2
49644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49646 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
49647 echo $ECHO_N "(cached) $ECHO_C" >&6
49648 else
49649 if test -n "$ac_ct_PKGCONFIG"; then
49650 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
49651 else
49652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49653 for as_dir in $PATH
49655 IFS=$as_save_IFS
49656 test -z "$as_dir" && as_dir=.
49657 for ac_exec_ext in '' $ac_executable_extensions; do
49658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49659 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
49660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49661 break 2
49663 done
49664 done
49665 IFS=$as_save_IFS
49669 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
49670 if test -n "$ac_ct_PKGCONFIG"; then
49671 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
49672 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
49673 else
49674 { echo "$as_me:$LINENO: result: no" >&5
49675 echo "${ECHO_T}no" >&6; }
49678 if test "x$ac_ct_PKGCONFIG" = x; then
49679 PKGCONFIG="No"
49680 else
49681 case $cross_compiling:$ac_tool_warned in
49682 yes:)
49683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49684 whose name does not start with the host triplet. If you think this
49685 configuration is useful to you, please write to autoconf@gnu.org." >&5
49686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49687 whose name does not start with the host triplet. If you think this
49688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49689 ac_tool_warned=yes ;;
49690 esac
49691 PKGCONFIG=$ac_ct_PKGCONFIG
49693 else
49694 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
49697 if test ! "x${PKGCONFIG}" = xNo; then
49698 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
49699 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
49700 PBX_GTK2=1
49702 cat >>confdefs.h <<\_ACEOF
49703 #define HAVE_GTK2 1
49704 _ACEOF
49711 if test "${USE_CURL}" != "no"; then
49712 if test -n "$ac_tool_prefix"; then
49713 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
49714 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
49715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49717 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
49718 echo $ECHO_N "(cached) $ECHO_C" >&6
49719 else
49720 case $CURL_CONFIG in
49721 [\\/]* | ?:[\\/]*)
49722 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
49725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49726 for as_dir in $PATH
49728 IFS=$as_save_IFS
49729 test -z "$as_dir" && as_dir=.
49730 for ac_exec_ext in '' $ac_executable_extensions; do
49731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49732 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49734 break 2
49736 done
49737 done
49738 IFS=$as_save_IFS
49741 esac
49743 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
49744 if test -n "$CURL_CONFIG"; then
49745 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
49746 echo "${ECHO_T}$CURL_CONFIG" >&6; }
49747 else
49748 { echo "$as_me:$LINENO: result: no" >&5
49749 echo "${ECHO_T}no" >&6; }
49754 if test -z "$ac_cv_path_CURL_CONFIG"; then
49755 ac_pt_CURL_CONFIG=$CURL_CONFIG
49756 # Extract the first word of "curl-config", so it can be a program name with args.
49757 set dummy curl-config; ac_word=$2
49758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49760 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
49761 echo $ECHO_N "(cached) $ECHO_C" >&6
49762 else
49763 case $ac_pt_CURL_CONFIG in
49764 [\\/]* | ?:[\\/]*)
49765 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
49768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49769 for as_dir in $PATH
49771 IFS=$as_save_IFS
49772 test -z "$as_dir" && as_dir=.
49773 for ac_exec_ext in '' $ac_executable_extensions; do
49774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49775 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49777 break 2
49779 done
49780 done
49781 IFS=$as_save_IFS
49784 esac
49786 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
49787 if test -n "$ac_pt_CURL_CONFIG"; then
49788 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
49789 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
49790 else
49791 { echo "$as_me:$LINENO: result: no" >&5
49792 echo "${ECHO_T}no" >&6; }
49795 if test "x$ac_pt_CURL_CONFIG" = x; then
49796 CURL_CONFIG="No"
49797 else
49798 case $cross_compiling:$ac_tool_warned in
49799 yes:)
49800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49801 whose name does not start with the host triplet. If you think this
49802 configuration is useful to you, please write to autoconf@gnu.org." >&5
49803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49804 whose name does not start with the host triplet. If you think this
49805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49806 ac_tool_warned=yes ;;
49807 esac
49808 CURL_CONFIG=$ac_pt_CURL_CONFIG
49810 else
49811 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
49814 if test ! x"${CURL_CONFIG}" = xNo; then
49815 # check for version
49816 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
49817 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
49818 CURL_LIB=$(${CURL_CONFIG} --libs)
49820 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
49821 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
49822 saved_cppflags="${CPPFLAGS}"
49823 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
49824 cat >conftest.$ac_ext <<_ACEOF
49825 /* confdefs.h. */
49826 _ACEOF
49827 cat confdefs.h >>conftest.$ac_ext
49828 cat >>conftest.$ac_ext <<_ACEOF
49829 /* end confdefs.h. */
49830 #include <curl/curl.h>
49832 main ()
49834 curl_version();
49836 return 0;
49839 _ACEOF
49840 rm -f conftest.$ac_objext
49841 if { (ac_try="$ac_compile"
49842 case "(($ac_try" in
49843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49844 *) ac_try_echo=$ac_try;;
49845 esac
49846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49847 (eval "$ac_compile") 2>conftest.er1
49848 ac_status=$?
49849 grep -v '^ *+' conftest.er1 >conftest.err
49850 rm -f conftest.er1
49851 cat conftest.err >&5
49852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49853 (exit $ac_status); } && {
49854 test -z "$ac_c_werror_flag" ||
49855 test ! -s conftest.err
49856 } && test -s conftest.$ac_objext; then
49858 { echo "$as_me:$LINENO: result: yes" >&5
49859 echo "${ECHO_T}yes" >&6; }
49860 ac_cv_curl_h="yes"
49862 else
49863 echo "$as_me: failed program was:" >&5
49864 sed 's/^/| /' conftest.$ac_ext >&5
49867 { echo "$as_me:$LINENO: result: no" >&5
49868 echo "${ECHO_T}no" >&6; }
49869 ac_cv_curl_h="no"
49874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49875 CPPFLAGS="${saved_cppflags}"
49876 if test "${ac_cv_curl_h}" = "yes"; then
49877 PBX_CURL=1
49879 cat >>confdefs.h <<\_ACEOF
49880 #define HAVE_CURL 1
49881 _ACEOF
49888 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
49891 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
49892 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
49893 err=0;
49894 for i in ${ac_mandatory_list}; do
49895 eval "a=\${PBX_$i}"
49896 if test "x${a}" = "x1" ; then continue; fi
49897 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
49898 echo "${ECHO_T}fail" >&6; } ; fi
49899 { echo "$as_me:$LINENO: result: " >&5
49900 echo "${ECHO_T}" >&6; }
49901 eval "a=\${${i}_OPTION}"
49902 { echo "$as_me:$LINENO: ***" >&5
49903 echo "$as_me: ***" >&6;}
49904 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
49905 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
49906 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
49907 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
49908 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
49909 echo "$as_me: *** including --without-${a}." >&6;}
49910 err=1
49911 done
49912 if test $err = 1 ; then exit 1; fi
49913 { echo "$as_me:$LINENO: result: ok" >&5
49914 echo "${ECHO_T}ok" >&6; }
49917 cat >confcache <<\_ACEOF
49918 # This file is a shell script that caches the results of configure
49919 # tests run on this system so they can be shared between configure
49920 # scripts and configure runs, see configure's option --config-cache.
49921 # It is not useful on other systems. If it contains results you don't
49922 # want to keep, you may remove or edit it.
49924 # config.status only pays attention to the cache file if you give it
49925 # the --recheck option to rerun configure.
49927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49929 # following values.
49931 _ACEOF
49933 # The following way of writing the cache mishandles newlines in values,
49934 # but we know of no workaround that is simple, portable, and efficient.
49935 # So, we kill variables containing newlines.
49936 # Ultrix sh set writes to stderr and can't be redirected directly,
49937 # and sets the high bit in the cache file unless we assign to the vars.
49939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49940 eval ac_val=\$$ac_var
49941 case $ac_val in #(
49942 *${as_nl}*)
49943 case $ac_var in #(
49944 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
49945 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
49946 esac
49947 case $ac_var in #(
49948 _ | IFS | as_nl) ;; #(
49949 *) $as_unset $ac_var ;;
49950 esac ;;
49951 esac
49952 done
49954 (set) 2>&1 |
49955 case $as_nl`(ac_space=' '; set) 2>&1` in #(
49956 *${as_nl}ac_space=\ *)
49957 # `set' does not quote correctly, so add quotes (double-quote
49958 # substitution turns \\\\ into \\, and sed turns \\ into \).
49959 sed -n \
49960 "s/'/'\\\\''/g;
49961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49962 ;; #(
49964 # `set' quotes correctly as required by POSIX, so do not add quotes.
49965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49967 esac |
49968 sort
49970 sed '
49971 /^ac_cv_env_/b end
49972 t clear
49973 :clear
49974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49975 t end
49976 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49977 :end' >>confcache
49978 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49979 if test -w "$cache_file"; then
49980 test "x$cache_file" != "x/dev/null" &&
49981 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
49982 echo "$as_me: updating cache $cache_file" >&6;}
49983 cat confcache >$cache_file
49984 else
49985 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
49986 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49989 rm -f confcache
49991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49992 # Let make expand exec_prefix.
49993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49995 DEFS=-DHAVE_CONFIG_H
49997 ac_libobjs=
49998 ac_ltlibobjs=
49999 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50000 # 1. Remove the extension, and $U if already installed.
50001 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50002 ac_i=`echo "$ac_i" | sed "$ac_script"`
50003 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
50004 # will be set to the directory where LIBOBJS objects are built.
50005 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50006 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
50007 done
50008 LIBOBJS=$ac_libobjs
50010 LTLIBOBJS=$ac_ltlibobjs
50014 : ${CONFIG_STATUS=./config.status}
50015 ac_clean_files_save=$ac_clean_files
50016 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50017 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50018 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50019 cat >$CONFIG_STATUS <<_ACEOF
50020 #! $SHELL
50021 # Generated by $as_me.
50022 # Run this file to recreate the current configuration.
50023 # Compiler output produced by configure, useful for debugging
50024 # configure, is in config.log if it exists.
50026 debug=false
50027 ac_cs_recheck=false
50028 ac_cs_silent=false
50029 SHELL=\${CONFIG_SHELL-$SHELL}
50030 _ACEOF
50032 cat >>$CONFIG_STATUS <<\_ACEOF
50033 ## --------------------- ##
50034 ## M4sh Initialization. ##
50035 ## --------------------- ##
50037 # Be more Bourne compatible
50038 DUALCASE=1; export DUALCASE # for MKS sh
50039 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50040 emulate sh
50041 NULLCMD=:
50042 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50043 # is contrary to our usage. Disable this feature.
50044 alias -g '${1+"$@"}'='"$@"'
50045 setopt NO_GLOB_SUBST
50046 else
50047 case `(set -o) 2>/dev/null` in
50048 *posix*) set -o posix ;;
50049 esac
50056 # PATH needs CR
50057 # Avoid depending upon Character Ranges.
50058 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50059 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50060 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50061 as_cr_digits='0123456789'
50062 as_cr_alnum=$as_cr_Letters$as_cr_digits
50064 # The user is always right.
50065 if test "${PATH_SEPARATOR+set}" != set; then
50066 echo "#! /bin/sh" >conf$$.sh
50067 echo "exit 0" >>conf$$.sh
50068 chmod +x conf$$.sh
50069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50070 PATH_SEPARATOR=';'
50071 else
50072 PATH_SEPARATOR=:
50074 rm -f conf$$.sh
50077 # Support unset when possible.
50078 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50079 as_unset=unset
50080 else
50081 as_unset=false
50085 # IFS
50086 # We need space, tab and new line, in precisely that order. Quoting is
50087 # there to prevent editors from complaining about space-tab.
50088 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50089 # splitting by setting IFS to empty value.)
50090 as_nl='
50092 IFS=" "" $as_nl"
50094 # Find who we are. Look in the path if we contain no directory separator.
50095 case $0 in
50096 *[\\/]* ) as_myself=$0 ;;
50097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50098 for as_dir in $PATH
50100 IFS=$as_save_IFS
50101 test -z "$as_dir" && as_dir=.
50102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50103 done
50104 IFS=$as_save_IFS
50107 esac
50108 # We did not find ourselves, most probably we were run as `sh COMMAND'
50109 # in which case we are not to be found in the path.
50110 if test "x$as_myself" = x; then
50111 as_myself=$0
50113 if test ! -f "$as_myself"; then
50114 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50115 { (exit 1); exit 1; }
50118 # Work around bugs in pre-3.0 UWIN ksh.
50119 for as_var in ENV MAIL MAILPATH
50120 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50121 done
50122 PS1='$ '
50123 PS2='> '
50124 PS4='+ '
50126 # NLS nuisances.
50127 for as_var in \
50128 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50129 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50130 LC_TELEPHONE LC_TIME
50132 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50133 eval $as_var=C; export $as_var
50134 else
50135 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50137 done
50139 # Required to use basename.
50140 if expr a : '\(a\)' >/dev/null 2>&1 &&
50141 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50142 as_expr=expr
50143 else
50144 as_expr=false
50147 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50148 as_basename=basename
50149 else
50150 as_basename=false
50154 # Name of the executable.
50155 as_me=`$as_basename -- "$0" ||
50156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50157 X"$0" : 'X\(//\)$' \| \
50158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50159 echo X/"$0" |
50160 sed '/^.*\/\([^/][^/]*\)\/*$/{
50161 s//\1/
50164 /^X\/\(\/\/\)$/{
50165 s//\1/
50168 /^X\/\(\/\).*/{
50169 s//\1/
50172 s/.*/./; q'`
50174 # CDPATH.
50175 $as_unset CDPATH
50179 as_lineno_1=$LINENO
50180 as_lineno_2=$LINENO
50181 test "x$as_lineno_1" != "x$as_lineno_2" &&
50182 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
50184 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50185 # uniformly replaced by the line number. The first 'sed' inserts a
50186 # line-number line after each line using $LINENO; the second 'sed'
50187 # does the real work. The second script uses 'N' to pair each
50188 # line-number line with the line containing $LINENO, and appends
50189 # trailing '-' during substitution so that $LINENO is not a special
50190 # case at line end.
50191 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50192 # scripts with optimization help from Paolo Bonzini. Blame Lee
50193 # E. McMahon (1931-1989) for sed's syntax. :-)
50194 sed -n '
50196 /[$]LINENO/=
50197 ' <$as_myself |
50198 sed '
50199 s/[$]LINENO.*/&-/
50200 t lineno
50202 :lineno
50204 :loop
50205 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50206 t loop
50207 s/-\n.*//
50208 ' >$as_me.lineno &&
50209 chmod +x "$as_me.lineno" ||
50210 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
50211 { (exit 1); exit 1; }; }
50213 # Don't try to exec as it changes $[0], causing all sort of problems
50214 # (the dirname of $[0] is not the place where we might find the
50215 # original and so on. Autoconf is especially sensitive to this).
50216 . "./$as_me.lineno"
50217 # Exit status is that of the last command.
50218 exit
50222 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50223 as_dirname=dirname
50224 else
50225 as_dirname=false
50228 ECHO_C= ECHO_N= ECHO_T=
50229 case `echo -n x` in
50230 -n*)
50231 case `echo 'x\c'` in
50232 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
50233 *) ECHO_C='\c';;
50234 esac;;
50236 ECHO_N='-n';;
50237 esac
50239 if expr a : '\(a\)' >/dev/null 2>&1 &&
50240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50241 as_expr=expr
50242 else
50243 as_expr=false
50246 rm -f conf$$ conf$$.exe conf$$.file
50247 if test -d conf$$.dir; then
50248 rm -f conf$$.dir/conf$$.file
50249 else
50250 rm -f conf$$.dir
50251 mkdir conf$$.dir
50253 echo >conf$$.file
50254 if ln -s conf$$.file conf$$ 2>/dev/null; then
50255 as_ln_s='ln -s'
50256 # ... but there are two gotchas:
50257 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50258 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50259 # In both cases, we have to default to `cp -p'.
50260 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50261 as_ln_s='cp -p'
50262 elif ln conf$$.file conf$$ 2>/dev/null; then
50263 as_ln_s=ln
50264 else
50265 as_ln_s='cp -p'
50267 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50268 rmdir conf$$.dir 2>/dev/null
50270 if mkdir -p . 2>/dev/null; then
50271 as_mkdir_p=:
50272 else
50273 test -d ./-p && rmdir ./-p
50274 as_mkdir_p=false
50277 if test -x / >/dev/null 2>&1; then
50278 as_test_x='test -x'
50279 else
50280 if ls -dL / >/dev/null 2>&1; then
50281 as_ls_L_option=L
50282 else
50283 as_ls_L_option=
50285 as_test_x='
50286 eval sh -c '\''
50287 if test -d "$1"; then
50288 test -d "$1/.";
50289 else
50290 case $1 in
50291 -*)set "./$1";;
50292 esac;
50293 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
50294 ???[sx]*):;;*)false;;esac;fi
50295 '\'' sh
50298 as_executable_p=$as_test_x
50300 # Sed expression to map a string onto a valid CPP name.
50301 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50303 # Sed expression to map a string onto a valid variable name.
50304 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50307 exec 6>&1
50309 # Save the log message, to keep $[0] and so on meaningful, and to
50310 # report actual input values of CONFIG_FILES etc. instead of their
50311 # values after options handling.
50312 ac_log="
50313 This file was extended by asterisk $as_me 1.6, which was
50314 generated by GNU Autoconf 2.61. Invocation command line was
50316 CONFIG_FILES = $CONFIG_FILES
50317 CONFIG_HEADERS = $CONFIG_HEADERS
50318 CONFIG_LINKS = $CONFIG_LINKS
50319 CONFIG_COMMANDS = $CONFIG_COMMANDS
50320 $ $0 $@
50322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50325 _ACEOF
50327 cat >>$CONFIG_STATUS <<_ACEOF
50328 # Files that config.status was made for.
50329 config_files="$ac_config_files"
50330 config_headers="$ac_config_headers"
50332 _ACEOF
50334 cat >>$CONFIG_STATUS <<\_ACEOF
50335 ac_cs_usage="\
50336 \`$as_me' instantiates files from templates according to the
50337 current configuration.
50339 Usage: $0 [OPTIONS] [FILE]...
50341 -h, --help print this help, then exit
50342 -V, --version print version number and configuration settings, then exit
50343 -q, --quiet do not print progress messages
50344 -d, --debug don't remove temporary files
50345 --recheck update $as_me by reconfiguring in the same conditions
50346 --file=FILE[:TEMPLATE]
50347 instantiate the configuration file FILE
50348 --header=FILE[:TEMPLATE]
50349 instantiate the configuration header FILE
50351 Configuration files:
50352 $config_files
50354 Configuration headers:
50355 $config_headers
50357 Report bugs to <bug-autoconf@gnu.org>."
50359 _ACEOF
50360 cat >>$CONFIG_STATUS <<_ACEOF
50361 ac_cs_version="\\
50362 asterisk config.status 1.6
50363 configured by $0, generated by GNU Autoconf 2.61,
50364 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
50366 Copyright (C) 2006 Free Software Foundation, Inc.
50367 This config.status script is free software; the Free Software Foundation
50368 gives unlimited permission to copy, distribute and modify it."
50370 ac_pwd='$ac_pwd'
50371 srcdir='$srcdir'
50372 INSTALL='$INSTALL'
50373 _ACEOF
50375 cat >>$CONFIG_STATUS <<\_ACEOF
50376 # If no file are specified by the user, then we need to provide default
50377 # value. By we need to know if files were specified by the user.
50378 ac_need_defaults=:
50379 while test $# != 0
50381 case $1 in
50382 --*=*)
50383 ac_option=`expr "X$1" : 'X\([^=]*\)='`
50384 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50385 ac_shift=:
50388 ac_option=$1
50389 ac_optarg=$2
50390 ac_shift=shift
50392 esac
50394 case $ac_option in
50395 # Handling of the options.
50396 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50397 ac_cs_recheck=: ;;
50398 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50399 echo "$ac_cs_version"; exit ;;
50400 --debug | --debu | --deb | --de | --d | -d )
50401 debug=: ;;
50402 --file | --fil | --fi | --f )
50403 $ac_shift
50404 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50405 ac_need_defaults=false;;
50406 --header | --heade | --head | --hea )
50407 $ac_shift
50408 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50409 ac_need_defaults=false;;
50410 --he | --h)
50411 # Conflict between --help and --header
50412 { echo "$as_me: error: ambiguous option: $1
50413 Try \`$0 --help' for more information." >&2
50414 { (exit 1); exit 1; }; };;
50415 --help | --hel | -h )
50416 echo "$ac_cs_usage"; exit ;;
50417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50419 ac_cs_silent=: ;;
50421 # This is an error.
50422 -*) { echo "$as_me: error: unrecognized option: $1
50423 Try \`$0 --help' for more information." >&2
50424 { (exit 1); exit 1; }; } ;;
50426 *) ac_config_targets="$ac_config_targets $1"
50427 ac_need_defaults=false ;;
50429 esac
50430 shift
50431 done
50433 ac_configure_extra_args=
50435 if $ac_cs_silent; then
50436 exec 6>/dev/null
50437 ac_configure_extra_args="$ac_configure_extra_args --silent"
50440 _ACEOF
50441 cat >>$CONFIG_STATUS <<_ACEOF
50442 if \$ac_cs_recheck; then
50443 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50444 CONFIG_SHELL=$SHELL
50445 export CONFIG_SHELL
50446 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50449 _ACEOF
50450 cat >>$CONFIG_STATUS <<\_ACEOF
50451 exec 5>>config.log
50453 echo
50454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50455 ## Running $as_me. ##
50456 _ASBOX
50457 echo "$ac_log"
50458 } >&5
50460 _ACEOF
50461 cat >>$CONFIG_STATUS <<_ACEOF
50462 _ACEOF
50464 cat >>$CONFIG_STATUS <<\_ACEOF
50466 # Handling of arguments.
50467 for ac_config_target in $ac_config_targets
50469 case $ac_config_target in
50470 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
50471 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
50472 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
50473 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
50475 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50476 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50477 { (exit 1); exit 1; }; };;
50478 esac
50479 done
50482 # If the user did not use the arguments to specify the items to instantiate,
50483 # then the envvar interface is used. Set only those that are not.
50484 # We use the long form for the default assignment because of an extremely
50485 # bizarre bug on SunOS 4.1.3.
50486 if $ac_need_defaults; then
50487 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50488 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50491 # Have a temporary directory for convenience. Make it in the build tree
50492 # simply because there is no reason against having it here, and in addition,
50493 # creating and moving files from /tmp can sometimes cause problems.
50494 # Hook for its removal unless debugging.
50495 # Note that there is a small window in which the directory will not be cleaned:
50496 # after its creation but before its name has been assigned to `$tmp'.
50497 $debug ||
50499 tmp=
50500 trap 'exit_status=$?
50501 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
50503 trap '{ (exit 1); exit 1; }' 1 2 13 15
50505 # Create a (secure) tmp directory for tmp files.
50508 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
50509 test -n "$tmp" && test -d "$tmp"
50510 } ||
50512 tmp=./conf$$-$RANDOM
50513 (umask 077 && mkdir "$tmp")
50514 } ||
50516 echo "$me: cannot create a temporary directory in ." >&2
50517 { (exit 1); exit 1; }
50521 # Set up the sed scripts for CONFIG_FILES section.
50524 # No need to generate the scripts if there are no CONFIG_FILES.
50525 # This happens for instance when ./config.status config.h
50526 if test -n "$CONFIG_FILES"; then
50528 _ACEOF
50532 ac_delim='%!_!# '
50533 for ac_last_try in false false false false false :; do
50534 cat >conf$$subs.sed <<_ACEOF
50535 SHELL!$SHELL$ac_delim
50536 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
50537 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
50538 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
50539 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
50540 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
50541 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
50542 exec_prefix!$exec_prefix$ac_delim
50543 prefix!$prefix$ac_delim
50544 program_transform_name!$program_transform_name$ac_delim
50545 bindir!$bindir$ac_delim
50546 sbindir!$sbindir$ac_delim
50547 libexecdir!$libexecdir$ac_delim
50548 datarootdir!$datarootdir$ac_delim
50549 datadir!$datadir$ac_delim
50550 sysconfdir!$sysconfdir$ac_delim
50551 sharedstatedir!$sharedstatedir$ac_delim
50552 localstatedir!$localstatedir$ac_delim
50553 includedir!$includedir$ac_delim
50554 oldincludedir!$oldincludedir$ac_delim
50555 docdir!$docdir$ac_delim
50556 infodir!$infodir$ac_delim
50557 htmldir!$htmldir$ac_delim
50558 dvidir!$dvidir$ac_delim
50559 pdfdir!$pdfdir$ac_delim
50560 psdir!$psdir$ac_delim
50561 libdir!$libdir$ac_delim
50562 localedir!$localedir$ac_delim
50563 mandir!$mandir$ac_delim
50564 DEFS!$DEFS$ac_delim
50565 ECHO_C!$ECHO_C$ac_delim
50566 ECHO_N!$ECHO_N$ac_delim
50567 ECHO_T!$ECHO_T$ac_delim
50568 LIBS!$LIBS$ac_delim
50569 build_alias!$build_alias$ac_delim
50570 host_alias!$host_alias$ac_delim
50571 target_alias!$target_alias$ac_delim
50572 build!$build$ac_delim
50573 build_cpu!$build_cpu$ac_delim
50574 build_vendor!$build_vendor$ac_delim
50575 build_os!$build_os$ac_delim
50576 host!$host$ac_delim
50577 host_cpu!$host_cpu$ac_delim
50578 host_vendor!$host_vendor$ac_delim
50579 host_os!$host_os$ac_delim
50580 CC!$CC$ac_delim
50581 CFLAGS!$CFLAGS$ac_delim
50582 LDFLAGS!$LDFLAGS$ac_delim
50583 CPPFLAGS!$CPPFLAGS$ac_delim
50584 ac_ct_CC!$ac_ct_CC$ac_delim
50585 EXEEXT!$EXEEXT$ac_delim
50586 OBJEXT!$OBJEXT$ac_delim
50587 CPP!$CPP$ac_delim
50588 GREP!$GREP$ac_delim
50589 EGREP!$EGREP$ac_delim
50590 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
50591 BUILD_CPU!$BUILD_CPU$ac_delim
50592 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
50593 BUILD_OS!$BUILD_OS$ac_delim
50594 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
50595 HOST_CPU!$HOST_CPU$ac_delim
50596 HOST_VENDOR!$HOST_VENDOR$ac_delim
50597 HOST_OS!$HOST_OS$ac_delim
50598 OSARCH!$OSARCH$ac_delim
50599 WINARCH!$WINARCH$ac_delim
50600 UNAME!$UNAME$ac_delim
50601 PBX_OSREV!$PBX_OSREV$ac_delim
50602 CXX!$CXX$ac_delim
50603 LD!$LD$ac_delim
50604 RANLIB!$RANLIB$ac_delim
50605 CXXFLAGS!$CXXFLAGS$ac_delim
50606 ac_ct_CXX!$ac_ct_CXX$ac_delim
50607 CXXCPP!$CXXCPP$ac_delim
50608 SED!$SED$ac_delim
50609 AWK!$AWK$ac_delim
50610 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
50611 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
50612 INSTALL_DATA!$INSTALL_DATA$ac_delim
50613 LN_S!$LN_S$ac_delim
50614 GNU_MAKE!$GNU_MAKE$ac_delim
50615 STRIP!$STRIP$ac_delim
50616 AR!$AR$ac_delim
50617 GNU_LD!$GNU_LD$ac_delim
50618 FIND!$FIND$ac_delim
50619 COMPRESS!$COMPRESS$ac_delim
50620 BASENAME!$BASENAME$ac_delim
50621 ID!$ID$ac_delim
50622 DIRNAME!$DIRNAME$ac_delim
50623 LN!$LN$ac_delim
50624 DOT!$DOT$ac_delim
50625 WGET!$WGET$ac_delim
50626 RUBBER!$RUBBER$ac_delim
50627 KPATHSEA!$KPATHSEA$ac_delim
50628 FETCH!$FETCH$ac_delim
50629 DOWNLOAD!$DOWNLOAD$ac_delim
50630 SOXMIX!$SOXMIX$ac_delim
50631 acx_pthread_config!$acx_pthread_config$ac_delim
50632 _ACEOF
50634 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50635 break
50636 elif $ac_last_try; then
50637 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50638 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50639 { (exit 1); exit 1; }; }
50640 else
50641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50643 done
50645 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50646 if test -n "$ac_eof"; then
50647 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50648 ac_eof=`expr $ac_eof + 1`
50651 cat >>$CONFIG_STATUS <<_ACEOF
50652 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50654 _ACEOF
50655 sed '
50656 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50657 s/^/s,@/; s/!/@,|#_!!_#|/
50660 s/'"$ac_delim"'$/,g/; t
50661 s/$/\\/; p
50662 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50663 ' >>$CONFIG_STATUS <conf$$subs.sed
50664 rm -f conf$$subs.sed
50665 cat >>$CONFIG_STATUS <<_ACEOF
50666 CEOF$ac_eof
50667 _ACEOF
50670 ac_delim='%!_!# '
50671 for ac_last_try in false false false false false :; do
50672 cat >conf$$subs.sed <<_ACEOF
50673 PTHREAD_CC!$PTHREAD_CC$ac_delim
50674 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
50675 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
50676 AST_DEVMODE!$AST_DEVMODE$ac_delim
50677 ALSA_LIB!$ALSA_LIB$ac_delim
50678 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
50679 ALSA_DIR!$ALSA_DIR$ac_delim
50680 PBX_ALSA!$PBX_ALSA$ac_delim
50681 BKTR_LIB!$BKTR_LIB$ac_delim
50682 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
50683 BKTR_DIR!$BKTR_DIR$ac_delim
50684 PBX_BKTR!$PBX_BKTR$ac_delim
50685 CAP_LIB!$CAP_LIB$ac_delim
50686 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
50687 CAP_DIR!$CAP_DIR$ac_delim
50688 PBX_CAP!$PBX_CAP$ac_delim
50689 CURL_LIB!$CURL_LIB$ac_delim
50690 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
50691 CURL_DIR!$CURL_DIR$ac_delim
50692 PBX_CURL!$PBX_CURL$ac_delim
50693 CURSES_LIB!$CURSES_LIB$ac_delim
50694 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
50695 CURSES_DIR!$CURSES_DIR$ac_delim
50696 PBX_CURSES!$PBX_CURSES$ac_delim
50697 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
50698 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
50699 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
50700 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
50701 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
50702 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
50703 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
50704 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
50705 GSM_LIB!$GSM_LIB$ac_delim
50706 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
50707 GSM_DIR!$GSM_DIR$ac_delim
50708 PBX_GSM!$PBX_GSM$ac_delim
50709 GTK_LIB!$GTK_LIB$ac_delim
50710 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
50711 GTK_DIR!$GTK_DIR$ac_delim
50712 PBX_GTK!$PBX_GTK$ac_delim
50713 GTK2_LIB!$GTK2_LIB$ac_delim
50714 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
50715 GTK2_DIR!$GTK2_DIR$ac_delim
50716 PBX_GTK2!$PBX_GTK2$ac_delim
50717 GMIME_LIB!$GMIME_LIB$ac_delim
50718 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
50719 GMIME_DIR!$GMIME_DIR$ac_delim
50720 PBX_GMIME!$PBX_GMIME$ac_delim
50721 ICONV_LIB!$ICONV_LIB$ac_delim
50722 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
50723 ICONV_DIR!$ICONV_DIR$ac_delim
50724 PBX_ICONV!$PBX_ICONV$ac_delim
50725 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
50726 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
50727 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
50728 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
50729 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
50730 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
50731 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
50732 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
50733 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
50734 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
50735 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
50736 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
50737 JACK_LIB!$JACK_LIB$ac_delim
50738 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
50739 JACK_DIR!$JACK_DIR$ac_delim
50740 PBX_JACK!$PBX_JACK$ac_delim
50741 LDAP_LIB!$LDAP_LIB$ac_delim
50742 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
50743 LDAP_DIR!$LDAP_DIR$ac_delim
50744 PBX_LDAP!$PBX_LDAP$ac_delim
50745 LTDL_LIB!$LTDL_LIB$ac_delim
50746 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
50747 LTDL_DIR!$LTDL_DIR$ac_delim
50748 PBX_LTDL!$PBX_LTDL$ac_delim
50749 LUA_LIB!$LUA_LIB$ac_delim
50750 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
50751 LUA_DIR!$LUA_DIR$ac_delim
50752 PBX_LUA!$PBX_LUA$ac_delim
50753 MISDN_LIB!$MISDN_LIB$ac_delim
50754 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
50755 MISDN_DIR!$MISDN_DIR$ac_delim
50756 PBX_MISDN!$PBX_MISDN$ac_delim
50757 NBS_LIB!$NBS_LIB$ac_delim
50758 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
50759 NBS_DIR!$NBS_DIR$ac_delim
50760 PBX_NBS!$PBX_NBS$ac_delim
50761 NCURSES_LIB!$NCURSES_LIB$ac_delim
50762 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
50763 NCURSES_DIR!$NCURSES_DIR$ac_delim
50764 PBX_NCURSES!$PBX_NCURSES$ac_delim
50765 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
50766 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
50767 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
50768 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
50769 NEWT_LIB!$NEWT_LIB$ac_delim
50770 _ACEOF
50772 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50773 break
50774 elif $ac_last_try; then
50775 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50776 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50777 { (exit 1); exit 1; }; }
50778 else
50779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50781 done
50783 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50784 if test -n "$ac_eof"; then
50785 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50786 ac_eof=`expr $ac_eof + 1`
50789 cat >>$CONFIG_STATUS <<_ACEOF
50790 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50792 _ACEOF
50793 sed '
50794 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50795 s/^/s,@/; s/!/@,|#_!!_#|/
50798 s/'"$ac_delim"'$/,g/; t
50799 s/$/\\/; p
50800 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50801 ' >>$CONFIG_STATUS <conf$$subs.sed
50802 rm -f conf$$subs.sed
50803 cat >>$CONFIG_STATUS <<_ACEOF
50804 CEOF$ac_eof
50805 _ACEOF
50808 ac_delim='%!_!# '
50809 for ac_last_try in false false false false false :; do
50810 cat >conf$$subs.sed <<_ACEOF
50811 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
50812 NEWT_DIR!$NEWT_DIR$ac_delim
50813 PBX_NEWT!$PBX_NEWT$ac_delim
50814 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
50815 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
50816 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
50817 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
50818 OGG_LIB!$OGG_LIB$ac_delim
50819 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
50820 OGG_DIR!$OGG_DIR$ac_delim
50821 PBX_OGG!$PBX_OGG$ac_delim
50822 OSPTK_LIB!$OSPTK_LIB$ac_delim
50823 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
50824 OSPTK_DIR!$OSPTK_DIR$ac_delim
50825 PBX_OSPTK!$PBX_OSPTK$ac_delim
50826 OSS_LIB!$OSS_LIB$ac_delim
50827 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
50828 OSS_DIR!$OSS_DIR$ac_delim
50829 PBX_OSS!$PBX_OSS$ac_delim
50830 PGSQL_LIB!$PGSQL_LIB$ac_delim
50831 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
50832 PGSQL_DIR!$PGSQL_DIR$ac_delim
50833 PBX_PGSQL!$PBX_PGSQL$ac_delim
50834 POPT_LIB!$POPT_LIB$ac_delim
50835 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
50836 POPT_DIR!$POPT_DIR$ac_delim
50837 PBX_POPT!$PBX_POPT$ac_delim
50838 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
50839 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
50840 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
50841 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
50842 PRI_LIB!$PRI_LIB$ac_delim
50843 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
50844 PRI_DIR!$PRI_DIR$ac_delim
50845 PBX_PRI!$PBX_PRI$ac_delim
50846 SS7_LIB!$SS7_LIB$ac_delim
50847 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
50848 SS7_DIR!$SS7_DIR$ac_delim
50849 PBX_SS7!$PBX_SS7$ac_delim
50850 PWLIB_LIB!$PWLIB_LIB$ac_delim
50851 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
50852 PWLIB_DIR!$PWLIB_DIR$ac_delim
50853 PBX_PWLIB!$PBX_PWLIB$ac_delim
50854 OPENH323_LIB!$OPENH323_LIB$ac_delim
50855 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
50856 OPENH323_DIR!$OPENH323_DIR$ac_delim
50857 PBX_OPENH323!$PBX_OPENH323$ac_delim
50858 RADIUS_LIB!$RADIUS_LIB$ac_delim
50859 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
50860 RADIUS_DIR!$RADIUS_DIR$ac_delim
50861 PBX_RADIUS!$PBX_RADIUS$ac_delim
50862 SDL_LIB!$SDL_LIB$ac_delim
50863 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
50864 SDL_DIR!$SDL_DIR$ac_delim
50865 PBX_SDL!$PBX_SDL$ac_delim
50866 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
50867 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
50868 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
50869 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
50870 SPEEX_LIB!$SPEEX_LIB$ac_delim
50871 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
50872 SPEEX_DIR!$SPEEX_DIR$ac_delim
50873 PBX_SPEEX!$PBX_SPEEX$ac_delim
50874 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
50875 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
50876 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
50877 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
50878 SQLITE_LIB!$SQLITE_LIB$ac_delim
50879 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
50880 SQLITE_DIR!$SQLITE_DIR$ac_delim
50881 PBX_SQLITE!$PBX_SQLITE$ac_delim
50882 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
50883 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
50884 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
50885 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
50886 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
50887 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
50888 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
50889 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
50890 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
50891 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
50892 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
50893 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
50894 FREETDS_LIB!$FREETDS_LIB$ac_delim
50895 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
50896 FREETDS_DIR!$FREETDS_DIR$ac_delim
50897 PBX_FREETDS!$PBX_FREETDS$ac_delim
50898 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
50899 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
50900 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
50901 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
50902 TINFO_LIB!$TINFO_LIB$ac_delim
50903 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
50904 TINFO_DIR!$TINFO_DIR$ac_delim
50905 PBX_TINFO!$PBX_TINFO$ac_delim
50906 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
50907 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
50908 _ACEOF
50910 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50911 break
50912 elif $ac_last_try; then
50913 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50914 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50915 { (exit 1); exit 1; }; }
50916 else
50917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50919 done
50921 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50922 if test -n "$ac_eof"; then
50923 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50924 ac_eof=`expr $ac_eof + 1`
50927 cat >>$CONFIG_STATUS <<_ACEOF
50928 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
50929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50930 _ACEOF
50931 sed '
50932 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50933 s/^/s,@/; s/!/@,|#_!!_#|/
50936 s/'"$ac_delim"'$/,g/; t
50937 s/$/\\/; p
50938 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50939 ' >>$CONFIG_STATUS <conf$$subs.sed
50940 rm -f conf$$subs.sed
50941 cat >>$CONFIG_STATUS <<_ACEOF
50942 CEOF$ac_eof
50943 _ACEOF
50946 ac_delim='%!_!# '
50947 for ac_last_try in false false false false false :; do
50948 cat >conf$$subs.sed <<_ACEOF
50949 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
50950 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
50951 USB_LIB!$USB_LIB$ac_delim
50952 USB_INCLUDE!$USB_INCLUDE$ac_delim
50953 USB_DIR!$USB_DIR$ac_delim
50954 PBX_USB!$PBX_USB$ac_delim
50955 VORBIS_LIB!$VORBIS_LIB$ac_delim
50956 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
50957 VORBIS_DIR!$VORBIS_DIR$ac_delim
50958 PBX_VORBIS!$PBX_VORBIS$ac_delim
50959 VPB_LIB!$VPB_LIB$ac_delim
50960 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
50961 VPB_DIR!$VPB_DIR$ac_delim
50962 PBX_VPB!$PBX_VPB$ac_delim
50963 X11_LIB!$X11_LIB$ac_delim
50964 X11_INCLUDE!$X11_INCLUDE$ac_delim
50965 X11_DIR!$X11_DIR$ac_delim
50966 PBX_X11!$PBX_X11$ac_delim
50967 ZLIB_LIB!$ZLIB_LIB$ac_delim
50968 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
50969 ZLIB_DIR!$ZLIB_DIR$ac_delim
50970 PBX_ZLIB!$PBX_ZLIB$ac_delim
50971 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
50972 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
50973 ZAPTEL_DIR!$ZAPTEL_DIR$ac_delim
50974 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
50975 ALLOCA!$ALLOCA$ac_delim
50976 LIBOBJS!$LIBOBJS$ac_delim
50977 POW_LIB!$POW_LIB$ac_delim
50978 HAS_POLL!$HAS_POLL$ac_delim
50979 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
50980 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
50981 GC_CFLAGS!$GC_CFLAGS$ac_delim
50982 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
50983 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
50984 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
50985 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
50986 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
50987 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
50988 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
50989 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
50990 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
50991 PG_CONFIG!$PG_CONFIG$ac_delim
50992 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
50993 PWLIBDIR!$PWLIBDIR$ac_delim
50994 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
50995 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
50996 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
50997 OPENH323DIR!$OPENH323DIR$ac_delim
50998 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
50999 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
51000 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
51001 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
51002 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
51003 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
51004 PBX_ZAPTEL_VLDTMF!$PBX_ZAPTEL_VLDTMF$ac_delim
51005 PBX_ZAPTEL_ECHOCANPARAMS!$PBX_ZAPTEL_ECHOCANPARAMS$ac_delim
51006 PBX_ZAPTEL_TRANSCODE!$PBX_ZAPTEL_TRANSCODE$ac_delim
51007 PBX_ZAPTEL_HWGAIN!$PBX_ZAPTEL_HWGAIN$ac_delim
51008 PBX_ZAPTEL_NEONMWI!$PBX_ZAPTEL_NEONMWI$ac_delim
51009 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
51010 PBX_H323!$PBX_H323$ac_delim
51011 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
51012 CONFIG_SDL!$CONFIG_SDL$ac_delim
51013 CONFIG_GTK!$CONFIG_GTK$ac_delim
51014 PKGCONFIG!$PKGCONFIG$ac_delim
51015 CURL_CONFIG!$CURL_CONFIG$ac_delim
51016 LTLIBOBJS!$LTLIBOBJS$ac_delim
51017 _ACEOF
51019 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
51020 break
51021 elif $ac_last_try; then
51022 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51023 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51024 { (exit 1); exit 1; }; }
51025 else
51026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51028 done
51030 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51031 if test -n "$ac_eof"; then
51032 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51033 ac_eof=`expr $ac_eof + 1`
51036 cat >>$CONFIG_STATUS <<_ACEOF
51037 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
51038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
51039 _ACEOF
51040 sed '
51041 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51042 s/^/s,@/; s/!/@,|#_!!_#|/
51045 s/'"$ac_delim"'$/,g/; t
51046 s/$/\\/; p
51047 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51048 ' >>$CONFIG_STATUS <conf$$subs.sed
51049 rm -f conf$$subs.sed
51050 cat >>$CONFIG_STATUS <<_ACEOF
51051 :end
51052 s/|#_!!_#|//g
51053 CEOF$ac_eof
51054 _ACEOF
51057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51059 # trailing colons and then remove the whole line if VPATH becomes empty
51060 # (actually we leave an empty line to preserve line numbers).
51061 if test "x$srcdir" = x.; then
51062 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51063 s/:*\$(srcdir):*/:/
51064 s/:*\${srcdir}:*/:/
51065 s/:*@srcdir@:*/:/
51066 s/^\([^=]*=[ ]*\):*/\1/
51067 s/:*$//
51068 s/^[^=]*=[ ]*$//
51072 cat >>$CONFIG_STATUS <<\_ACEOF
51073 fi # test -n "$CONFIG_FILES"
51076 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
51078 case $ac_tag in
51079 :[FHLC]) ac_mode=$ac_tag; continue;;
51080 esac
51081 case $ac_mode$ac_tag in
51082 :[FHL]*:*);;
51083 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
51084 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
51085 { (exit 1); exit 1; }; };;
51086 :[FH]-) ac_tag=-:-;;
51087 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51088 esac
51089 ac_save_IFS=$IFS
51090 IFS=:
51091 set x $ac_tag
51092 IFS=$ac_save_IFS
51093 shift
51094 ac_file=$1
51095 shift
51097 case $ac_mode in
51098 :L) ac_source=$1;;
51099 :[FH])
51100 ac_file_inputs=
51101 for ac_f
51103 case $ac_f in
51104 -) ac_f="$tmp/stdin";;
51105 *) # Look for the file first in the build tree, then in the source tree
51106 # (if the path is not absolute). The absolute path cannot be DOS-style,
51107 # because $ac_f cannot contain `:'.
51108 test -f "$ac_f" ||
51109 case $ac_f in
51110 [\\/$]*) false;;
51111 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51112 esac ||
51113 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
51114 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
51115 { (exit 1); exit 1; }; };;
51116 esac
51117 ac_file_inputs="$ac_file_inputs $ac_f"
51118 done
51120 # Let's still pretend it is `configure' which instantiates (i.e., don't
51121 # use $as_me), people would be surprised to read:
51122 # /* config.h. Generated by config.status. */
51123 configure_input="Generated from "`IFS=:
51124 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
51125 if test x"$ac_file" != x-; then
51126 configure_input="$ac_file. $configure_input"
51127 { echo "$as_me:$LINENO: creating $ac_file" >&5
51128 echo "$as_me: creating $ac_file" >&6;}
51131 case $ac_tag in
51132 *:-:* | *:-) cat >"$tmp/stdin";;
51133 esac
51135 esac
51137 ac_dir=`$as_dirname -- "$ac_file" ||
51138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51139 X"$ac_file" : 'X\(//\)[^/]' \| \
51140 X"$ac_file" : 'X\(//\)$' \| \
51141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51142 echo X"$ac_file" |
51143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51144 s//\1/
51147 /^X\(\/\/\)[^/].*/{
51148 s//\1/
51151 /^X\(\/\/\)$/{
51152 s//\1/
51155 /^X\(\/\).*/{
51156 s//\1/
51159 s/.*/./; q'`
51160 { as_dir="$ac_dir"
51161 case $as_dir in #(
51162 -*) as_dir=./$as_dir;;
51163 esac
51164 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51165 as_dirs=
51166 while :; do
51167 case $as_dir in #(
51168 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
51169 *) as_qdir=$as_dir;;
51170 esac
51171 as_dirs="'$as_qdir' $as_dirs"
51172 as_dir=`$as_dirname -- "$as_dir" ||
51173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51174 X"$as_dir" : 'X\(//\)[^/]' \| \
51175 X"$as_dir" : 'X\(//\)$' \| \
51176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51177 echo X"$as_dir" |
51178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51179 s//\1/
51182 /^X\(\/\/\)[^/].*/{
51183 s//\1/
51186 /^X\(\/\/\)$/{
51187 s//\1/
51190 /^X\(\/\).*/{
51191 s//\1/
51194 s/.*/./; q'`
51195 test -d "$as_dir" && break
51196 done
51197 test -z "$as_dirs" || eval "mkdir $as_dirs"
51198 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
51199 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51200 { (exit 1); exit 1; }; }; }
51201 ac_builddir=.
51203 case "$ac_dir" in
51204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51206 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51207 # A ".." for each directory in $ac_dir_suffix.
51208 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
51209 case $ac_top_builddir_sub in
51210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51212 esac ;;
51213 esac
51214 ac_abs_top_builddir=$ac_pwd
51215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51216 # for backward compatibility:
51217 ac_top_builddir=$ac_top_build_prefix
51219 case $srcdir in
51220 .) # We are building in place.
51221 ac_srcdir=.
51222 ac_top_srcdir=$ac_top_builddir_sub
51223 ac_abs_top_srcdir=$ac_pwd ;;
51224 [\\/]* | ?:[\\/]* ) # Absolute name.
51225 ac_srcdir=$srcdir$ac_dir_suffix;
51226 ac_top_srcdir=$srcdir
51227 ac_abs_top_srcdir=$srcdir ;;
51228 *) # Relative name.
51229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51230 ac_top_srcdir=$ac_top_build_prefix$srcdir
51231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51232 esac
51233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51236 case $ac_mode in
51239 # CONFIG_FILE
51242 case $INSTALL in
51243 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51244 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51245 esac
51246 _ACEOF
51248 cat >>$CONFIG_STATUS <<\_ACEOF
51249 # If the template does not know about datarootdir, expand it.
51250 # FIXME: This hack should be removed a few years after 2.60.
51251 ac_datarootdir_hack=; ac_datarootdir_seen=
51253 case `sed -n '/datarootdir/ {
51257 /@datadir@/p
51258 /@docdir@/p
51259 /@infodir@/p
51260 /@localedir@/p
51261 /@mandir@/p
51262 ' $ac_file_inputs` in
51263 *datarootdir*) ac_datarootdir_seen=yes;;
51264 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51265 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51266 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51267 _ACEOF
51268 cat >>$CONFIG_STATUS <<_ACEOF
51269 ac_datarootdir_hack='
51270 s&@datadir@&$datadir&g
51271 s&@docdir@&$docdir&g
51272 s&@infodir@&$infodir&g
51273 s&@localedir@&$localedir&g
51274 s&@mandir@&$mandir&g
51275 s&\\\${datarootdir}&$datarootdir&g' ;;
51276 esac
51277 _ACEOF
51279 # Neutralize VPATH when `$srcdir' = `.'.
51280 # Shell code in configure.ac might set extrasub.
51281 # FIXME: do we really want to maintain this feature?
51282 cat >>$CONFIG_STATUS <<_ACEOF
51283 sed "$ac_vpsub
51284 $extrasub
51285 _ACEOF
51286 cat >>$CONFIG_STATUS <<\_ACEOF
51288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51289 s&@configure_input@&$configure_input&;t t
51290 s&@top_builddir@&$ac_top_builddir_sub&;t t
51291 s&@srcdir@&$ac_srcdir&;t t
51292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51293 s&@top_srcdir@&$ac_top_srcdir&;t t
51294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51295 s&@builddir@&$ac_builddir&;t t
51296 s&@abs_builddir@&$ac_abs_builddir&;t t
51297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51298 s&@INSTALL@&$ac_INSTALL&;t t
51299 $ac_datarootdir_hack
51300 " $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
51302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51303 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
51304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
51305 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51306 which seems to be undefined. Please make sure it is defined." >&5
51307 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51308 which seems to be undefined. Please make sure it is defined." >&2;}
51310 rm -f "$tmp/stdin"
51311 case $ac_file in
51312 -) cat "$tmp/out"; rm -f "$tmp/out";;
51313 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
51314 esac
51318 # CONFIG_HEADER
51320 _ACEOF
51322 # Transform confdefs.h into a sed script `conftest.defines', that
51323 # substitutes the proper values into config.h.in to produce config.h.
51324 rm -f conftest.defines conftest.tail
51325 # First, append a space to every undef/define line, to ease matching.
51326 echo 's/$/ /' >conftest.defines
51327 # Then, protect against being on the right side of a sed subst, or in
51328 # an unquoted here document, in config.status. If some macros were
51329 # called several times there might be several #defines for the same
51330 # symbol, which is useless. But do not sort them, since the last
51331 # AC_DEFINE must be honored.
51332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51333 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
51334 # NAME is the cpp macro being defined, VALUE is the value it is being given.
51335 # PARAMS is the parameter list in the macro definition--in most cases, it's
51336 # just an empty string.
51337 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
51338 ac_dB='\\)[ (].*,\\1define\\2'
51339 ac_dC=' '
51340 ac_dD=' ,'
51342 uniq confdefs.h |
51343 sed -n '
51344 t rset
51345 :rset
51346 s/^[ ]*#[ ]*define[ ][ ]*//
51347 t ok
51350 s/[\\&,]/\\&/g
51351 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
51352 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
51353 ' >>conftest.defines
51355 # Remove the space that was appended to ease matching.
51356 # Then replace #undef with comments. This is necessary, for
51357 # example, in the case of _POSIX_SOURCE, which is predefined and required
51358 # on some systems where configure will not decide to define it.
51359 # (The regexp can be short, since the line contains either #define or #undef.)
51360 echo 's/ $//
51361 s,^[ #]*u.*,/* & */,' >>conftest.defines
51363 # Break up conftest.defines:
51364 ac_max_sed_lines=50
51366 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
51367 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
51368 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
51369 # et cetera.
51370 ac_in='$ac_file_inputs'
51371 ac_out='"$tmp/out1"'
51372 ac_nxt='"$tmp/out2"'
51374 while :
51376 # Write a here document:
51377 cat >>$CONFIG_STATUS <<_ACEOF
51378 # First, check the format of the line:
51379 cat >"\$tmp/defines.sed" <<\\CEOF
51380 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
51381 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
51383 :def
51384 _ACEOF
51385 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
51386 echo 'CEOF
51387 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
51388 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
51389 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
51390 grep . conftest.tail >/dev/null || break
51391 rm -f conftest.defines
51392 mv conftest.tail conftest.defines
51393 done
51394 rm -f conftest.defines conftest.tail
51396 echo "ac_result=$ac_in" >>$CONFIG_STATUS
51397 cat >>$CONFIG_STATUS <<\_ACEOF
51398 if test x"$ac_file" != x-; then
51399 echo "/* $configure_input */" >"$tmp/config.h"
51400 cat "$ac_result" >>"$tmp/config.h"
51401 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
51402 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51403 echo "$as_me: $ac_file is unchanged" >&6;}
51404 else
51405 rm -f $ac_file
51406 mv "$tmp/config.h" $ac_file
51408 else
51409 echo "/* $configure_input */"
51410 cat "$ac_result"
51412 rm -f "$tmp/out12"
51416 esac
51418 done # for ac_tag
51421 { (exit 0); exit 0; }
51422 _ACEOF
51423 chmod +x $CONFIG_STATUS
51424 ac_clean_files=$ac_clean_files_save
51427 # configure is writing to config.log, and then calls config.status.
51428 # config.status does its own redirection, appending to config.log.
51429 # Unfortunately, on DOS this fails, as config.log is still kept open
51430 # by configure, so config.status won't be able to write to it; its
51431 # output is simply discarded. So we exec the FD to /dev/null,
51432 # effectively closing config.log, so it can be properly (re)opened and
51433 # appended to by config.status. When coming back to configure, we
51434 # need to make the FD available again.
51435 if test "$no_create" != yes; then
51436 ac_cs_success=:
51437 ac_config_status_args=
51438 test "$silent" = yes &&
51439 ac_config_status_args="$ac_config_status_args --quiet"
51440 exec 5>/dev/null
51441 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51442 exec 5>>config.log
51443 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51444 # would make configure fail if this is the last instruction.
51445 $ac_cs_success || { (exit 1); exit 1; }
51449 if test "x${silent}" != "xyes" ; then
51450 echo
51451 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
51452 echo " .\$7\$7.. .7\$\$7:. "
51453 echo " .\$\$:. ,\$7.7 "
51454 echo " .\$7. 7\$\$\$\$ .\$\$77 "
51455 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
51456 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
51457 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
51458 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
51459 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
51460 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
51461 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
51462 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
51463 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
51464 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
51465 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
51466 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
51467 echo " \$\$\$\$\$ \$\$\$ "
51468 echo " \$\$\$\$7. \$\$ (TM) "
51469 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
51470 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
51471 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
51472 echo
51475 { echo "$as_me:$LINENO: Package configured for: " >&5
51476 echo "$as_me: Package configured for: " >&6;}
51477 { echo "$as_me:$LINENO: OS type : $host_os" >&5
51478 echo "$as_me: OS type : $host_os" >&6;}
51479 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
51480 echo "$as_me: Host CPU : $host_cpu" >&6;}
51481 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
51482 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
51483 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
51484 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
51485 if test "${cross_compiling}" = "yes"; then
51486 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
51487 echo "$as_me: Cross Compilation = YES" >&6;}