- Make res_timing_pthread allow a max rate of 100/sec instead of 50/sec
[asterisk-bristuff.git] / configure
blobf1fe54ff09a030903cc84a62d86185a2fcff877e
1 #! /bin/sh
2 # From configure.ac Revision: 122234 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
13 # "Asterisk"
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 emulate sh
22 NULLCMD=:
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
30 esac
37 # PATH needs CR
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
49 chmod +x conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 PATH_SEPARATOR=';'
52 else
53 PATH_SEPARATOR=:
55 rm -f conf$$.sh
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 as_unset=unset
61 else
62 as_unset=false
66 # IFS
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
71 as_nl='
73 IFS=" "" $as_nl"
75 # Find who we are. Look in the path if we contain no directory separator.
76 case $0 in
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 for as_dir in $PATH
81 IFS=$as_save_IFS
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 done
85 IFS=$as_save_IFS
88 esac
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
92 as_myself=$0
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 { (exit 1); exit 1; }
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 done
103 PS1='$ '
104 PS2='> '
105 PS4='+ '
107 # NLS nuisances.
108 for as_var in \
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 LC_TELEPHONE LC_TIME
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
115 else
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 done
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 as_expr=expr
124 else
125 as_expr=false
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 as_basename=basename
130 else
131 as_basename=false
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 echo X/"$0" |
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
142 s//\1/
145 /^X\/\(\/\/\)$/{
146 s//\1/
149 /^X\/\(\/\).*/{
150 s//\1/
153 s/.*/./; q'`
155 # CDPATH.
156 $as_unset CDPATH
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
161 as_have_required=yes
162 else
163 as_have_required=no
166 if test $as_have_required = yes && (eval ":
167 (as_func_return () {
168 (exit \$1)
170 as_func_success () {
171 as_func_return 0
173 as_func_failure () {
174 as_func_return 1
176 as_func_ret_success () {
177 return 0
179 as_func_ret_failure () {
180 return 1
183 exitcode=0
184 if as_func_success; then
186 else
187 exitcode=1
188 echo as_func_success failed.
191 if as_func_failure; then
192 exitcode=1
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
198 else
199 exitcode=1
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
204 exitcode=1
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 else
211 exitcode=1
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
218 as_lineno_1=\$LINENO
219 as_lineno_2=\$LINENO
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
224 else
225 as_candidate_shells=
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 IFS=$as_save_IFS
230 test -z "$as_dir" && as_dir=.
231 case $as_dir in
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 done;;
236 esac
237 done
238 IFS=$as_save_IFS
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 emulate sh
247 NULLCMD=:
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
251 setopt NO_GLOB_SUBST
252 else
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
255 esac
261 _ASEOF
262 }; then
263 CONFIG_SHELL=$as_shell
264 as_have_required=yes
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 emulate sh
268 NULLCMD=:
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273 else
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
276 esac
282 (as_func_return () {
283 (exit $1)
285 as_func_success () {
286 as_func_return 0
288 as_func_failure () {
289 as_func_return 1
291 as_func_ret_success () {
292 return 0
294 as_func_ret_failure () {
295 return 1
298 exitcode=0
299 if as_func_success; then
301 else
302 exitcode=1
303 echo as_func_success failed.
306 if as_func_failure; then
307 exitcode=1
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
313 else
314 exitcode=1
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
319 exitcode=1
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 else
326 exitcode=1
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
333 as_lineno_1=$LINENO
334 as_lineno_2=$LINENO
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 _ASEOF
339 }; then
340 break
345 done
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 done
351 export CONFIG_SHELL
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
372 (exit \$1)
374 as_func_success () {
375 as_func_return 0
377 as_func_failure () {
378 as_func_return 1
380 as_func_ret_success () {
381 return 0
383 as_func_ret_failure () {
384 return 1
387 exitcode=0
388 if as_func_success; then
390 else
391 exitcode=1
392 echo as_func_success failed.
395 if as_func_failure; then
396 exitcode=1
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
402 else
403 exitcode=1
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
408 exitcode=1
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 else
415 exitcode=1
416 echo positional parameters were not saved.
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
423 echo message
428 as_lineno_1=$LINENO
429 as_lineno_2=$LINENO
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
439 # case at line end.
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
443 sed -n '
445 /[$]LINENO/=
446 ' <$as_myself |
447 sed '
448 s/[$]LINENO.*/&-/
449 t lineno
451 :lineno
453 :loop
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 t loop
456 s/-\n.*//
457 ' >$as_me.lineno &&
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
465 . "./$as_me.lineno"
466 # Exit status is that of the last command.
467 exit
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 as_dirname=dirname
473 else
474 as_dirname=false
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in
479 -n*)
480 case `echo 'x\c'` in
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
482 *) ECHO_C='\c';;
483 esac;;
485 ECHO_N='-n';;
486 esac
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 as_expr=expr
491 else
492 as_expr=false
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
498 else
499 rm -f conf$$.dir
500 mkdir conf$$.dir
502 echo >conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 as_ln_s='ln -s'
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 as_ln_s='cp -p'
511 elif ln conf$$.file conf$$ 2>/dev/null; then
512 as_ln_s=ln
513 else
514 as_ln_s='cp -p'
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
519 if mkdir -p . 2>/dev/null; then
520 as_mkdir_p=:
521 else
522 test -d ./-p && rmdir ./-p
523 as_mkdir_p=false
526 if test -x / >/dev/null 2>&1; then
527 as_test_x='test -x'
528 else
529 if ls -dL / >/dev/null 2>&1; then
530 as_ls_L_option=L
531 else
532 as_ls_L_option=
534 as_test_x='
535 eval sh -c '\''
536 if test -d "$1"; then
537 test -d "$1/.";
538 else
539 case $1 in
540 -*)set "./$1";;
541 esac;
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
544 '\'' sh
547 as_executable_p=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev/null 6>&1
559 # Name of the host.
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 # Initializations.
567 ac_default_prefix=/usr/local
568 ac_clean_files=
569 ac_config_libobj_dir=.
570 LIBOBJS=
571 cross_compiling=no
572 subdirs=
573 MFLAGS=
574 MAKEFLAGS=
575 SHELL=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME='asterisk'
579 PACKAGE_TARNAME='asterisk'
580 PACKAGE_VERSION='1.6'
581 PACKAGE_STRING='asterisk 1.6'
582 PACKAGE_BUGREPORT='www.asterisk.org'
584 ac_unique_file="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_header_list=
622 ac_subst_vars='SHELL
623 PATH_SEPARATOR
624 PACKAGE_NAME
625 PACKAGE_TARNAME
626 PACKAGE_VERSION
627 PACKAGE_STRING
628 PACKAGE_BUGREPORT
629 exec_prefix
630 prefix
631 program_transform_name
632 bindir
633 sbindir
634 libexecdir
635 datarootdir
636 datadir
637 sysconfdir
638 sharedstatedir
639 localstatedir
640 includedir
641 oldincludedir
642 docdir
643 infodir
644 htmldir
645 dvidir
646 pdfdir
647 psdir
648 libdir
649 localedir
650 mandir
651 DEFS
652 ECHO_C
653 ECHO_N
654 ECHO_T
655 LIBS
656 build_alias
657 host_alias
658 target_alias
659 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 BUILD_PLATFORM
678 BUILD_CPU
679 BUILD_VENDOR
680 BUILD_OS
681 HOST_PLATFORM
682 HOST_CPU
683 HOST_VENDOR
684 HOST_OS
685 OSARCH
686 WINARCH
687 UNAME
688 PBX_OSREV
691 RANLIB
692 CXXFLAGS
693 ac_ct_CXX
694 CXXCPP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LN_S
701 GNU_MAKE
702 STRIP
704 GNU_LD
705 FIND
706 COMPRESS
707 BASENAME
709 DIRNAME
712 WGET
713 RUBBER
714 KPATHSEA
715 FETCH
716 DOWNLOAD
717 SOXMIX
718 acx_pthread_config
719 PTHREAD_CC
720 PTHREAD_LIBS
721 PTHREAD_CFLAGS
722 AST_DEVMODE
723 ALSA_LIB
724 ALSA_INCLUDE
725 ALSA_DIR
726 PBX_ALSA
727 BKTR_LIB
728 BKTR_INCLUDE
729 BKTR_DIR
730 PBX_BKTR
731 CAP_LIB
732 CAP_INCLUDE
733 CAP_DIR
734 PBX_CAP
735 CURL_LIB
736 CURL_INCLUDE
737 CURL_DIR
738 PBX_CURL
739 CURSES_LIB
740 CURSES_INCLUDE
741 CURSES_DIR
742 PBX_CURSES
743 CRYPTO_LIB
744 CRYPTO_INCLUDE
745 CRYPTO_DIR
746 PBX_CRYPTO
747 DAHDI_LIB
748 DAHDI_INCLUDE
749 DAHDI_DIR
750 PBX_DAHDI
751 FFMPEG_LIB
752 FFMPEG_INCLUDE
753 FFMPEG_DIR
754 PBX_FFMPEG
755 GSM_LIB
756 GSM_INCLUDE
757 GSM_DIR
758 PBX_GSM
759 GTK_LIB
760 GTK_INCLUDE
761 GTK_DIR
762 PBX_GTK
763 GTK2_LIB
764 GTK2_INCLUDE
765 GTK2_DIR
766 PBX_GTK2
767 GMIME_LIB
768 GMIME_INCLUDE
769 GMIME_DIR
770 PBX_GMIME
771 ICONV_LIB
772 ICONV_INCLUDE
773 ICONV_DIR
774 PBX_ICONV
775 IKSEMEL_LIB
776 IKSEMEL_INCLUDE
777 IKSEMEL_DIR
778 PBX_IKSEMEL
779 IMAP_TK_LIB
780 IMAP_TK_INCLUDE
781 IMAP_TK_DIR
782 PBX_IMAP_TK
783 ISDNNET_LIB
784 ISDNNET_INCLUDE
785 ISDNNET_DIR
786 PBX_ISDNNET
787 JACK_LIB
788 JACK_INCLUDE
789 JACK_DIR
790 PBX_JACK
791 LDAP_LIB
792 LDAP_INCLUDE
793 LDAP_DIR
794 PBX_LDAP
795 LTDL_LIB
796 LTDL_INCLUDE
797 LTDL_DIR
798 PBX_LTDL
799 LUA_LIB
800 LUA_INCLUDE
801 LUA_DIR
802 PBX_LUA
803 MISDN_LIB
804 MISDN_INCLUDE
805 MISDN_DIR
806 PBX_MISDN
807 NBS_LIB
808 NBS_INCLUDE
809 NBS_DIR
810 PBX_NBS
811 NCURSES_LIB
812 NCURSES_INCLUDE
813 NCURSES_DIR
814 PBX_NCURSES
815 NETSNMP_LIB
816 NETSNMP_INCLUDE
817 NETSNMP_DIR
818 PBX_NETSNMP
819 NEWT_LIB
820 NEWT_INCLUDE
821 NEWT_DIR
822 PBX_NEWT
823 UNIXODBC_LIB
824 UNIXODBC_INCLUDE
825 UNIXODBC_DIR
826 PBX_UNIXODBC
827 OGG_LIB
828 OGG_INCLUDE
829 OGG_DIR
830 PBX_OGG
831 OSPTK_LIB
832 OSPTK_INCLUDE
833 OSPTK_DIR
834 PBX_OSPTK
835 OSS_LIB
836 OSS_INCLUDE
837 OSS_DIR
838 PBX_OSS
839 PGSQL_LIB
840 PGSQL_INCLUDE
841 PGSQL_DIR
842 PBX_PGSQL
843 POPT_LIB
844 POPT_INCLUDE
845 POPT_DIR
846 PBX_POPT
847 PORTAUDIO_LIB
848 PORTAUDIO_INCLUDE
849 PORTAUDIO_DIR
850 PBX_PORTAUDIO
851 PRI_LIB
852 PRI_INCLUDE
853 PRI_DIR
854 PBX_PRI
855 SPANDSP_LIB
856 SPANDSP_INCLUDE
857 SPANDSP_DIR
858 PBX_SPANDSP
859 SS7_LIB
860 SS7_INCLUDE
861 SS7_DIR
862 PBX_SS7
863 PWLIB_LIB
864 PWLIB_INCLUDE
865 PWLIB_DIR
866 PBX_PWLIB
867 OPENH323_LIB
868 OPENH323_INCLUDE
869 OPENH323_DIR
870 PBX_OPENH323
871 RADIUS_LIB
872 RADIUS_INCLUDE
873 RADIUS_DIR
874 PBX_RADIUS
875 SDL_LIB
876 SDL_INCLUDE
877 SDL_DIR
878 PBX_SDL
879 SDL_IMAGE_LIB
880 SDL_IMAGE_INCLUDE
881 SDL_IMAGE_DIR
882 PBX_SDL_IMAGE
883 SACLM_LIB
884 SACLM_INCLUDE
885 SACLM_DIR
886 PBX_SACLM
887 SAEVT_LIB
888 SAEVT_INCLUDE
889 SAEVT_DIR
890 PBX_SAEVT
891 SPEEX_LIB
892 SPEEX_INCLUDE
893 SPEEX_DIR
894 PBX_SPEEX
895 SPEEXDSP_LIB
896 SPEEXDSP_INCLUDE
897 SPEEXDSP_DIR
898 PBX_SPEEXDSP
899 SQLITE_LIB
900 SQLITE_INCLUDE
901 SQLITE_DIR
902 PBX_SQLITE
903 SQLITE3_LIB
904 SQLITE3_INCLUDE
905 SQLITE3_DIR
906 PBX_SQLITE3
907 SUPPSERV_LIB
908 SUPPSERV_INCLUDE
909 SUPPSERV_DIR
910 PBX_SUPPSERV
911 OPENSSL_LIB
912 OPENSSL_INCLUDE
913 OPENSSL_DIR
914 PBX_OPENSSL
915 FREETDS_LIB
916 FREETDS_INCLUDE
917 FREETDS_DIR
918 PBX_FREETDS
919 TERMCAP_LIB
920 TERMCAP_INCLUDE
921 TERMCAP_DIR
922 PBX_TERMCAP
923 TINFO_LIB
924 TINFO_INCLUDE
925 TINFO_DIR
926 PBX_TINFO
927 TONEZONE_LIB
928 TONEZONE_INCLUDE
929 TONEZONE_DIR
930 PBX_TONEZONE
931 USB_LIB
932 USB_INCLUDE
933 USB_DIR
934 PBX_USB
935 VORBIS_LIB
936 VORBIS_INCLUDE
937 VORBIS_DIR
938 PBX_VORBIS
939 VPB_LIB
940 VPB_INCLUDE
941 VPB_DIR
942 PBX_VPB
943 X11_LIB
944 X11_INCLUDE
945 X11_DIR
946 PBX_X11
947 ZLIB_LIB
948 ZLIB_INCLUDE
949 ZLIB_DIR
950 PBX_ZLIB
951 ALLOCA
952 LIBOBJS
953 POW_LIB
954 HAS_POLL
955 PBX_PTHREAD_RWLOCK_INITIALIZER
956 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
957 GC_CFLAGS
958 GC_LDFLAGS
959 AST_DECLARATION_AFTER_STATEMENT
960 AST_NO_STRICT_OVERFLOW
961 PBX_RTLD_NOLOAD
962 PBX_IP_MTU_DISCOVER
963 GSM_INTERNAL
964 PBX_MISDN_FAC_RESULT
965 PBX_MISDN_FAC_ERROR
966 CONFIG_NETSNMP
967 PG_CONFIG
968 PTLIB_CONFIG
969 PWLIBDIR
970 PWLIB_INCDIR
971 PWLIB_LIBDIR
972 PWLIB_PLATFORM
973 OPENH323DIR
974 OPENH323_INCDIR
975 OPENH323_LIBDIR
976 OPENH323_SUFFIX
977 OPENH323_BUILD
978 PBX_SPEEX_PREPROCESS
979 CONFIG_GMIME
980 EDITLINE_LIB
981 PBX_H323
982 PBX_IXJUSER
983 CONFIG_SDL
984 CONFIG_GTK
985 PKGCONFIG
986 CURL_CONFIG
987 LTLIBOBJS'
988 ac_subst_files=''
989 ac_precious_vars='build_alias
990 host_alias
991 target_alias
993 CFLAGS
994 LDFLAGS
995 LIBS
996 CPPFLAGS
999 CXXFLAGS
1001 CXXCPP'
1004 # Initialize some variables set by options.
1005 ac_init_help=
1006 ac_init_version=false
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1010 exec_prefix=NONE
1011 no_create=
1012 no_recursion=
1013 prefix=NONE
1014 program_prefix=NONE
1015 program_suffix=NONE
1016 program_transform_name=s,x,x,
1017 silent=
1018 site=
1019 srcdir=
1020 verbose=
1021 x_includes=NONE
1022 x_libraries=NONE
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1041 infodir='${datarootdir}/info'
1042 htmldir='${docdir}'
1043 dvidir='${docdir}'
1044 pdfdir='${docdir}'
1045 psdir='${docdir}'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1050 ac_prev=
1051 ac_dashdash=
1052 for ac_option
1054 # If the previous option needs an argument, assign it.
1055 if test -n "$ac_prev"; then
1056 eval $ac_prev=\$ac_option
1057 ac_prev=
1058 continue
1061 case $ac_option in
1062 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063 *) ac_optarg=yes ;;
1064 esac
1066 # Accept the important Cygnus configure options, so we can diagnose typos.
1068 case $ac_dashdash$ac_option in
1070 ac_dashdash=yes ;;
1072 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1073 ac_prev=bindir ;;
1074 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1075 bindir=$ac_optarg ;;
1077 -build | --build | --buil | --bui | --bu)
1078 ac_prev=build_alias ;;
1079 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1080 build_alias=$ac_optarg ;;
1082 -cache-file | --cache-file | --cache-fil | --cache-fi \
1083 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1084 ac_prev=cache_file ;;
1085 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1086 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1087 cache_file=$ac_optarg ;;
1089 --config-cache | -C)
1090 cache_file=config.cache ;;
1092 -datadir | --datadir | --datadi | --datad)
1093 ac_prev=datadir ;;
1094 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1095 datadir=$ac_optarg ;;
1097 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1098 | --dataroo | --dataro | --datar)
1099 ac_prev=datarootdir ;;
1100 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1101 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1102 datarootdir=$ac_optarg ;;
1104 -disable-* | --disable-*)
1105 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1109 { (exit 1); exit 1; }; }
1110 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1111 eval enable_$ac_feature=no ;;
1113 -docdir | --docdir | --docdi | --doc | --do)
1114 ac_prev=docdir ;;
1115 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116 docdir=$ac_optarg ;;
1118 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119 ac_prev=dvidir ;;
1120 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121 dvidir=$ac_optarg ;;
1123 -enable-* | --enable-*)
1124 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1128 { (exit 1); exit 1; }; }
1129 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1130 eval enable_$ac_feature=\$ac_optarg ;;
1132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134 | --exec | --exe | --ex)
1135 ac_prev=exec_prefix ;;
1136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138 | --exec=* | --exe=* | --ex=*)
1139 exec_prefix=$ac_optarg ;;
1141 -gas | --gas | --ga | --g)
1142 # Obsolete; use --with-gas.
1143 with_gas=yes ;;
1145 -help | --help | --hel | --he | -h)
1146 ac_init_help=long ;;
1147 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148 ac_init_help=recursive ;;
1149 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150 ac_init_help=short ;;
1152 -host | --host | --hos | --ho)
1153 ac_prev=host_alias ;;
1154 -host=* | --host=* | --hos=* | --ho=*)
1155 host_alias=$ac_optarg ;;
1157 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1158 ac_prev=htmldir ;;
1159 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1160 | --ht=*)
1161 htmldir=$ac_optarg ;;
1163 -includedir | --includedir | --includedi | --included | --include \
1164 | --includ | --inclu | --incl | --inc)
1165 ac_prev=includedir ;;
1166 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167 | --includ=* | --inclu=* | --incl=* | --inc=*)
1168 includedir=$ac_optarg ;;
1170 -infodir | --infodir | --infodi | --infod | --info | --inf)
1171 ac_prev=infodir ;;
1172 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173 infodir=$ac_optarg ;;
1175 -libdir | --libdir | --libdi | --libd)
1176 ac_prev=libdir ;;
1177 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1178 libdir=$ac_optarg ;;
1180 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181 | --libexe | --libex | --libe)
1182 ac_prev=libexecdir ;;
1183 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184 | --libexe=* | --libex=* | --libe=*)
1185 libexecdir=$ac_optarg ;;
1187 -localedir | --localedir | --localedi | --localed | --locale)
1188 ac_prev=localedir ;;
1189 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190 localedir=$ac_optarg ;;
1192 -localstatedir | --localstatedir | --localstatedi | --localstated \
1193 | --localstate | --localstat | --localsta | --localst | --locals)
1194 ac_prev=localstatedir ;;
1195 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197 localstatedir=$ac_optarg ;;
1199 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1200 ac_prev=mandir ;;
1201 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202 mandir=$ac_optarg ;;
1204 -nfp | --nfp | --nf)
1205 # Obsolete; use --without-fp.
1206 with_fp=no ;;
1208 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209 | --no-cr | --no-c | -n)
1210 no_create=yes ;;
1212 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1214 no_recursion=yes ;;
1216 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218 | --oldin | --oldi | --old | --ol | --o)
1219 ac_prev=oldincludedir ;;
1220 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223 oldincludedir=$ac_optarg ;;
1225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1226 ac_prev=prefix ;;
1227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228 prefix=$ac_optarg ;;
1230 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1231 | --program-pre | --program-pr | --program-p)
1232 ac_prev=program_prefix ;;
1233 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1234 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235 program_prefix=$ac_optarg ;;
1237 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1238 | --program-suf | --program-su | --program-s)
1239 ac_prev=program_suffix ;;
1240 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1241 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242 program_suffix=$ac_optarg ;;
1244 -program-transform-name | --program-transform-name \
1245 | --program-transform-nam | --program-transform-na \
1246 | --program-transform-n | --program-transform- \
1247 | --program-transform | --program-transfor \
1248 | --program-transfo | --program-transf \
1249 | --program-trans | --program-tran \
1250 | --progr-tra | --program-tr | --program-t)
1251 ac_prev=program_transform_name ;;
1252 -program-transform-name=* | --program-transform-name=* \
1253 | --program-transform-nam=* | --program-transform-na=* \
1254 | --program-transform-n=* | --program-transform-=* \
1255 | --program-transform=* | --program-transfor=* \
1256 | --program-transfo=* | --program-transf=* \
1257 | --program-trans=* | --program-tran=* \
1258 | --progr-tra=* | --program-tr=* | --program-t=*)
1259 program_transform_name=$ac_optarg ;;
1261 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1262 ac_prev=pdfdir ;;
1263 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264 pdfdir=$ac_optarg ;;
1266 -psdir | --psdir | --psdi | --psd | --ps)
1267 ac_prev=psdir ;;
1268 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1269 psdir=$ac_optarg ;;
1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272 | -silent | --silent | --silen | --sile | --sil)
1273 silent=yes ;;
1275 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1276 ac_prev=sbindir ;;
1277 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1278 | --sbi=* | --sb=*)
1279 sbindir=$ac_optarg ;;
1281 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1282 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1283 | --sharedst | --shareds | --shared | --share | --shar \
1284 | --sha | --sh)
1285 ac_prev=sharedstatedir ;;
1286 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1287 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1288 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1289 | --sha=* | --sh=*)
1290 sharedstatedir=$ac_optarg ;;
1292 -site | --site | --sit)
1293 ac_prev=site ;;
1294 -site=* | --site=* | --sit=*)
1295 site=$ac_optarg ;;
1297 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1298 ac_prev=srcdir ;;
1299 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1300 srcdir=$ac_optarg ;;
1302 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1303 | --syscon | --sysco | --sysc | --sys | --sy)
1304 ac_prev=sysconfdir ;;
1305 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1306 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1307 sysconfdir=$ac_optarg ;;
1309 -target | --target | --targe | --targ | --tar | --ta | --t)
1310 ac_prev=target_alias ;;
1311 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1312 target_alias=$ac_optarg ;;
1314 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1315 verbose=yes ;;
1317 -version | --version | --versio | --versi | --vers | -V)
1318 ac_init_version=: ;;
1320 -with-* | --with-*)
1321 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid package name: $ac_package" >&2
1325 { (exit 1); exit 1; }; }
1326 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1327 eval with_$ac_package=\$ac_optarg ;;
1329 -without-* | --without-*)
1330 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid package name: $ac_package" >&2
1334 { (exit 1); exit 1; }; }
1335 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1336 eval with_$ac_package=no ;;
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) { echo "$as_me: error: unrecognized option: $ac_option
1357 Try \`$0 --help' for more information." >&2
1358 { (exit 1); exit 1; }; }
1361 *=*)
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1365 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1366 { (exit 1); exit 1; }; }
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378 esac
1379 done
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 { echo "$as_me: error: missing argument to $ac_option" >&2
1384 { (exit 1); exit 1; }; }
1387 # Be sure to have absolute directory names.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val=\$$ac_var
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1399 { (exit 1); exit 1; }; }
1400 done
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1405 build=$build_alias
1406 host=$host_alias
1407 target=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1416 cross_compiling=yes
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423 test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 { echo "$as_me: error: Working directory cannot be determined" >&2
1430 { (exit 1); exit 1; }; }
1431 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432 { echo "$as_me: error: pwd does not report name of working directory" >&2
1433 { (exit 1); exit 1; }; }
1436 # Find the source files, if location was not specified.
1437 if test -z "$srcdir"; then
1438 ac_srcdir_defaulted=yes
1439 # Try the directory containing this script, then the parent directory.
1440 ac_confdir=`$as_dirname -- "$0" ||
1441 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442 X"$0" : 'X\(//\)[^/]' \| \
1443 X"$0" : 'X\(//\)$' \| \
1444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1445 echo X"$0" |
1446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 s//\1/
1450 /^X\(\/\/\)[^/].*/{
1451 s//\1/
1454 /^X\(\/\/\)$/{
1455 s//\1/
1458 /^X\(\/\).*/{
1459 s//\1/
1462 s/.*/./; q'`
1463 srcdir=$ac_confdir
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 srcdir=..
1467 else
1468 ac_srcdir_defaulted=no
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1473 { (exit 1); exit 1; }; }
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1476 ac_abs_confdir=`(
1477 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1478 { (exit 1); exit 1; }; }
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1559 cat <<\_ACEOF
1561 System types:
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1564 _ACEOF
1567 if test -n "$ac_init_help"; then
1568 case $ac_init_help in
1569 short | recursive ) echo "Configuration of asterisk 1.6:";;
1570 esac
1571 cat <<\_ACEOF
1573 Optional Features:
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-dev-mode Turn on developer mode
1577 --disable-largefile omit support for large files
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1584 --with-execinfo=PATH use Stack Backtrace support files in PATH
1585 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1586 --with-curl=PATH use cURL files in PATH
1587 --with-curses=PATH use curses files in PATH
1588 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1589 --with-dahdi=PATH use DAHDI files in PATH
1590 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1591 --with-gsm=PATH use External GSM library files in PATH , use
1592 'internal' GSM otherwise
1593 --with-gtk=PATH use gtk libraries files in PATH
1594 --with-gtk2=PATH use gtk2 libraries files in PATH
1595 --with-gmime=PATH use GMime library files in PATH
1596 --with-iconv=PATH use Iconv Library files in PATH
1597 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1598 --with-imap=PATH use UW IMAP Toolkit files in PATH
1599 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1600 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1601 --with-ldap=PATH use OpenLDAP files in PATH
1602 --with-ltdl=PATH use libtool files in PATH
1603 --with-lua=PATH use Lua files in PATH
1604 --with-misdn=PATH use mISDN User Library files in PATH
1605 --with-nbs=PATH use Network Broadcast Sound files in PATH
1606 --with-ncurses=PATH use ncurses files in PATH
1607 --with-netsnmp=PATH use Net-SNMP files in PATH
1608 --with-newt=PATH use newt files in PATH
1609 --with-odbc=PATH use unixODBC files in PATH
1610 --with-ogg=PATH use OGG files in PATH
1611 --with-osptk=PATH use OSP Toolkit files in PATH
1612 --with-oss=PATH use Open Sound System files in PATH
1613 --with-postgres=PATH use PostgreSQL files in PATH
1614 --with-popt=PATH use popt files in PATH
1615 --with-portaudio=PATH use PortAudio files in PATH
1616 --with-pri=PATH use ISDN PRI files in PATH
1617 --with-spandsp=PATH use SPANDSP files in PATH
1618 --with-ss7=PATH use ISDN SS7 files in PATH
1619 --with-pwlib=PATH use PWlib files in PATH
1620 --with-h323=PATH use OpenH323 files in PATH
1621 --with-radius=PATH use Radius Client files in PATH
1622 --with-sdl=PATH use Sdl files in PATH
1623 --with-SDL_image=PATH use Sdl Image library files in PATH
1624 --with-SaClm=PATH use SAForum AIS CLM files in PATH
1625 --with-SaEvt=PATH use SAForum AIS EVT files in PATH
1626 --with-speex=PATH use Speex files in PATH
1627 --with-speexdsp=PATH use Speexdsp files in PATH
1628 --with-sqlite=PATH use SQLite files in PATH
1629 --with-sqlite3=PATH use SQLite files in PATH
1630 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1631 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1632 PATH
1633 --with-tds=PATH use FreeTDS files in PATH
1634 --with-termcap=PATH use Termcap files in PATH
1635 --with-tinfo=PATH use Term Info files in PATH
1636 --with-tonezone=PATH use tonezone files in PATH
1637 --with-usb=PATH use usb files in PATH
1638 --with-vorbis=PATH use Vorbis files in PATH
1639 --with-vpb=PATH use Voicetronix API files in PATH
1640 --with-x11=PATH use X11 support files in PATH
1641 --with-z=PATH use zlib files in PATH
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1651 CPP C preprocessor
1652 CXX C++ compiler command
1653 CXXFLAGS C++ compiler flags
1654 CXXCPP C++ preprocessor
1656 Use these variables to override the choices made by `configure' or to help
1657 it to find libraries and programs with nonstandard names/locations.
1659 Report bugs to <www.asterisk.org>.
1660 _ACEOF
1661 ac_status=$?
1664 if test "$ac_init_help" = "recursive"; then
1665 # If there are subdirs, report their specific --help.
1666 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1667 test -d "$ac_dir" || continue
1668 ac_builddir=.
1670 case "$ac_dir" in
1671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1674 # A ".." for each directory in $ac_dir_suffix.
1675 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1676 case $ac_top_builddir_sub in
1677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1679 esac ;;
1680 esac
1681 ac_abs_top_builddir=$ac_pwd
1682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1683 # for backward compatibility:
1684 ac_top_builddir=$ac_top_build_prefix
1686 case $srcdir in
1687 .) # We are building in place.
1688 ac_srcdir=.
1689 ac_top_srcdir=$ac_top_builddir_sub
1690 ac_abs_top_srcdir=$ac_pwd ;;
1691 [\\/]* | ?:[\\/]* ) # Absolute name.
1692 ac_srcdir=$srcdir$ac_dir_suffix;
1693 ac_top_srcdir=$srcdir
1694 ac_abs_top_srcdir=$srcdir ;;
1695 *) # Relative name.
1696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697 ac_top_srcdir=$ac_top_build_prefix$srcdir
1698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1699 esac
1700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1702 cd "$ac_dir" || { ac_status=$?; continue; }
1703 # Check for guested configure.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1705 echo &&
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure" --help=recursive
1710 else
1711 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 fi || ac_status=$?
1713 cd "$ac_pwd" || { ac_status=$?; break; }
1714 done
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1719 cat <<\_ACEOF
1720 asterisk configure 1.6
1721 generated by GNU Autoconf 2.61
1723 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1724 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1725 This configure script is free software; the Free Software Foundation
1726 gives unlimited permission to copy, distribute and modify it.
1728 "Asterisk"
1729 _ACEOF
1730 exit
1732 cat >config.log <<_ACEOF
1733 This file contains any messages produced by compilers while
1734 running configure, to aid debugging if configure makes a mistake.
1736 It was created by asterisk $as_me 1.6, which was
1737 generated by GNU Autoconf 2.61. Invocation command line was
1739 $ $0 $@
1741 _ACEOF
1742 exec 5>>config.log
1744 cat <<_ASUNAME
1745 ## --------- ##
1746 ## Platform. ##
1747 ## --------- ##
1749 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1750 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1751 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1752 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1753 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1756 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1759 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1760 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1761 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1762 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1763 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1764 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1766 _ASUNAME
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 echo "PATH: $as_dir"
1774 done
1775 IFS=$as_save_IFS
1777 } >&5
1779 cat >&5 <<_ACEOF
1782 ## ----------- ##
1783 ## Core tests. ##
1784 ## ----------- ##
1786 _ACEOF
1789 # Keep a trace of the command line.
1790 # Strip out --no-create and --no-recursion so they do not pile up.
1791 # Strip out --silent because we don't want to record it for future runs.
1792 # Also quote any args containing shell meta-characters.
1793 # Make two passes to allow for proper duplicate-argument suppression.
1794 ac_configure_args=
1795 ac_configure_args0=
1796 ac_configure_args1=
1797 ac_must_keep_next=false
1798 for ac_pass in 1 2
1800 for ac_arg
1802 case $ac_arg in
1803 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805 | -silent | --silent | --silen | --sile | --sil)
1806 continue ;;
1807 *\'*)
1808 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1809 esac
1810 case $ac_pass in
1811 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1814 if test $ac_must_keep_next = true; then
1815 ac_must_keep_next=false # Got value, back to normal.
1816 else
1817 case $ac_arg in
1818 *=* | --config-cache | -C | -disable-* | --disable-* \
1819 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1820 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1821 | -with-* | --with-* | -without-* | --without-* | --x)
1822 case "$ac_configure_args0 " in
1823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1824 esac
1826 -* ) ac_must_keep_next=true ;;
1827 esac
1829 ac_configure_args="$ac_configure_args '$ac_arg'"
1831 esac
1832 done
1833 done
1834 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1835 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837 # When interrupted or exit'd, cleanup temporary files, and complete
1838 # config.log. We remove comments because anyway the quotes in there
1839 # would cause problems or look ugly.
1840 # WARNING: Use '\'' to represent an apostrophe within the trap.
1841 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1842 trap 'exit_status=$?
1843 # Save into config.log some information that might help in debugging.
1845 echo
1847 cat <<\_ASBOX
1848 ## ---------------- ##
1849 ## Cache variables. ##
1850 ## ---------------- ##
1851 _ASBOX
1852 echo
1853 # The following way of writing the cache mishandles newlines in values,
1855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1856 eval ac_val=\$$ac_var
1857 case $ac_val in #(
1858 *${as_nl}*)
1859 case $ac_var in #(
1860 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1861 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1862 esac
1863 case $ac_var in #(
1864 _ | IFS | as_nl) ;; #(
1865 *) $as_unset $ac_var ;;
1866 esac ;;
1867 esac
1868 done
1869 (set) 2>&1 |
1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871 *${as_nl}ac_space=\ *)
1872 sed -n \
1873 "s/'\''/'\''\\\\'\'''\''/g;
1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1875 ;; #(
1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1879 esac |
1880 sort
1882 echo
1884 cat <<\_ASBOX
1885 ## ----------------- ##
1886 ## Output variables. ##
1887 ## ----------------- ##
1888 _ASBOX
1889 echo
1890 for ac_var in $ac_subst_vars
1892 eval ac_val=\$$ac_var
1893 case $ac_val in
1894 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 esac
1896 echo "$ac_var='\''$ac_val'\''"
1897 done | sort
1898 echo
1900 if test -n "$ac_subst_files"; then
1901 cat <<\_ASBOX
1902 ## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##
1905 _ASBOX
1906 echo
1907 for ac_var in $ac_subst_files
1909 eval ac_val=\$$ac_var
1910 case $ac_val in
1911 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 esac
1913 echo "$ac_var='\''$ac_val'\''"
1914 done | sort
1915 echo
1918 if test -s confdefs.h; then
1919 cat <<\_ASBOX
1920 ## ----------- ##
1921 ## confdefs.h. ##
1922 ## ----------- ##
1923 _ASBOX
1924 echo
1925 cat confdefs.h
1926 echo
1928 test "$ac_signal" != 0 &&
1929 echo "$as_me: caught signal $ac_signal"
1930 echo "$as_me: exit $exit_status"
1931 } >&5
1932 rm -f core *.core core.conftest.* &&
1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934 exit $exit_status
1936 for ac_signal in 1 2 13 15; do
1937 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1938 done
1939 ac_signal=0
1941 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1942 rm -f -r conftest* confdefs.h
1944 # Predefined preprocessor variables.
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_NAME "$PACKAGE_NAME"
1948 _ACEOF
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1953 _ACEOF
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1958 _ACEOF
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_STRING "$PACKAGE_STRING"
1963 _ACEOF
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1968 _ACEOF
1971 # Let the site file select an alternate cache file if it wants to.
1972 # Prefer explicitly selected file to automatically selected ones.
1973 if test -n "$CONFIG_SITE"; then
1974 set x "$CONFIG_SITE"
1975 elif test "x$prefix" != xNONE; then
1976 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1977 else
1978 set x "$ac_default_prefix/share/config.site" \
1979 "$ac_default_prefix/etc/config.site"
1981 shift
1982 for ac_site_file
1984 if test -r "$ac_site_file"; then
1985 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1986 echo "$as_me: loading site script $ac_site_file" >&6;}
1987 sed 's/^/| /' "$ac_site_file" >&5
1988 . "$ac_site_file"
1990 done
1992 if test -r "$cache_file"; then
1993 # Some versions of bash will fail to source /dev/null (special
1994 # files actually), so we avoid doing that.
1995 if test -f "$cache_file"; then
1996 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1997 echo "$as_me: loading cache $cache_file" >&6;}
1998 case $cache_file in
1999 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2000 *) . "./$cache_file";;
2001 esac
2003 else
2004 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2005 echo "$as_me: creating cache $cache_file" >&6;}
2006 >$cache_file
2009 ac_header_list="$ac_header_list utime.h"
2010 # Check that the precious variables saved in the cache have kept the same
2011 # value.
2012 ac_cache_corrupted=false
2013 for ac_var in $ac_precious_vars; do
2014 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2015 eval ac_new_set=\$ac_env_${ac_var}_set
2016 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2017 eval ac_new_val=\$ac_env_${ac_var}_value
2018 case $ac_old_set,$ac_new_set in
2019 set,)
2020 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2021 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2022 ac_cache_corrupted=: ;;
2023 ,set)
2024 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2025 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2027 ,);;
2029 if test "x$ac_old_val" != "x$ac_new_val"; then
2030 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2031 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2032 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2033 echo "$as_me: former value: $ac_old_val" >&2;}
2034 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2035 echo "$as_me: current value: $ac_new_val" >&2;}
2036 ac_cache_corrupted=:
2037 fi;;
2038 esac
2039 # Pass precious variables to config.status.
2040 if test "$ac_new_set" = set; then
2041 case $ac_new_val in
2042 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 *) ac_arg=$ac_var=$ac_new_val ;;
2044 esac
2045 case " $ac_configure_args " in
2046 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2047 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2048 esac
2050 done
2051 if $ac_cache_corrupted; then
2052 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2053 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2054 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2055 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2056 { (exit 1); exit 1; }; }
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091 # cross-compile macros
2092 ac_aux_dir=
2093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2094 if test -f "$ac_dir/install-sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install-sh -c"
2097 break
2098 elif test -f "$ac_dir/install.sh"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/install.sh -c"
2101 break
2102 elif test -f "$ac_dir/shtool"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/shtool install -c"
2105 break
2107 done
2108 if test -z "$ac_aux_dir"; then
2109 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2110 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2111 { (exit 1); exit 1; }; }
2114 # These three variables are undocumented and unsupported,
2115 # and are intended to be withdrawn in a future Autoconf release.
2116 # They can cause serious problems if a builder's source tree is in a directory
2117 # whose full name contains unusual characters.
2118 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2119 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2120 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123 # Make sure we can run config.sub.
2124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2125 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2127 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: checking build system type" >&5
2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_build+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 ac_build_alias=$build_alias
2135 test "x$ac_build_alias" = x &&
2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2137 test "x$ac_build_alias" = x &&
2138 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
2141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148 echo "${ECHO_T}$ac_cv_build" >&6; }
2149 case $ac_cv_build in
2150 *-*-*) ;;
2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152 echo "$as_me: error: invalid value of canonical build" >&2;}
2153 { (exit 1); exit 1; }; };;
2154 esac
2155 build=$ac_cv_build
2156 ac_save_IFS=$IFS; IFS='-'
2157 set x $ac_cv_build
2158 shift
2159 build_cpu=$1
2160 build_vendor=$2
2161 shift; shift
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2164 build_os=$*
2165 IFS=$ac_save_IFS
2166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169 { echo "$as_me:$LINENO: checking host system type" >&5
2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2171 if test "${ac_cv_host+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test "x$host_alias" = x; then
2175 ac_cv_host=$ac_cv_build
2176 else
2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2184 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2185 echo "${ECHO_T}$ac_cv_host" >&6; }
2186 case $ac_cv_host in
2187 *-*-*) ;;
2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189 echo "$as_me: error: invalid value of canonical host" >&2;}
2190 { (exit 1); exit 1; }; };;
2191 esac
2192 host=$ac_cv_host
2193 ac_save_IFS=$IFS; IFS='-'
2194 set x $ac_cv_host
2195 shift
2196 host_cpu=$1
2197 host_vendor=$2
2198 shift; shift
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2201 host_os=$*
2202 IFS=$ac_save_IFS
2203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2207 # check existence of the package
2210 # specify output header file
2211 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2218 cat >>confdefs.h <<\_ACEOF
2219 #define _GNU_SOURCE 1
2220 _ACEOF
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 if test -n "$ac_tool_prefix"; then
2229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2250 done
2251 done
2252 IFS=$as_save_IFS
2256 CC=$ac_cv_prog_CC
2257 if test -n "$CC"; then
2258 { echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6; }
2260 else
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2267 if test -z "$ac_cv_prog_CC"; then
2268 ac_ct_CC=$CC
2269 # Extract the first word of "gcc", so it can be a program name with args.
2270 set dummy gcc; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_ac_ct_CC="gcc"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2290 done
2291 done
2292 IFS=$as_save_IFS
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6; }
2300 else
2301 { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2305 if test "x$ac_ct_CC" = x; then
2306 CC=""
2307 else
2308 case $cross_compiling:$ac_tool_warned in
2309 yes:)
2310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2311 whose name does not start with the host triplet. If you think this
2312 configuration is useful to you, please write to autoconf@gnu.org." >&5
2313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2314 whose name does not start with the host triplet. If you think this
2315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2316 ac_tool_warned=yes ;;
2317 esac
2318 CC=$ac_ct_CC
2320 else
2321 CC="$ac_cv_prog_CC"
2324 if test -z "$CC"; then
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2327 set dummy ${ac_tool_prefix}cc; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_CC="${ac_tool_prefix}cc"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2347 done
2348 done
2349 IFS=$as_save_IFS
2353 CC=$ac_cv_prog_CC
2354 if test -n "$CC"; then
2355 { echo "$as_me:$LINENO: result: $CC" >&5
2356 echo "${ECHO_T}$CC" >&6; }
2357 else
2358 { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2365 if test -z "$CC"; then
2366 # Extract the first word of "cc", so it can be a program name with args.
2367 set dummy cc; ac_word=$2
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370 if test "${ac_cv_prog_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373 if test -n "$CC"; then
2374 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 else
2376 ac_prog_rejected=no
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2385 ac_prog_rejected=yes
2386 continue
2388 ac_cv_prog_CC="cc"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2392 done
2393 done
2394 IFS=$as_save_IFS
2396 if test $ac_prog_rejected = yes; then
2397 # We found a bogon in the path, so make sure we never use it.
2398 set dummy $ac_cv_prog_CC
2399 shift
2400 if test $# != 0; then
2401 # We chose a different compiler from the bogus one.
2402 # However, it has the same basename, so the bogon will be chosen
2403 # first if we set CC to just the basename; use the full file name.
2404 shift
2405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2410 CC=$ac_cv_prog_CC
2411 if test -n "$CC"; then
2412 { echo "$as_me:$LINENO: result: $CC" >&5
2413 echo "${ECHO_T}$CC" >&6; }
2414 else
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2421 if test -z "$CC"; then
2422 if test -n "$ac_tool_prefix"; then
2423 for ac_prog in cl.exe
2425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2446 done
2447 done
2448 IFS=$as_save_IFS
2452 CC=$ac_cv_prog_CC
2453 if test -n "$CC"; then
2454 { echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6; }
2456 else
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2462 test -n "$CC" && break
2463 done
2465 if test -z "$CC"; then
2466 ac_ct_CC=$CC
2467 for ac_prog in cl.exe
2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2470 set dummy $ac_prog; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_ac_ct_CC="$ac_prog"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2490 done
2491 done
2492 IFS=$as_save_IFS
2496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497 if test -n "$ac_ct_CC"; then
2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499 echo "${ECHO_T}$ac_ct_CC" >&6; }
2500 else
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2506 test -n "$ac_ct_CC" && break
2507 done
2509 if test "x$ac_ct_CC" = x; then
2510 CC=""
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513 yes:)
2514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&5
2517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520 ac_tool_warned=yes ;;
2521 esac
2522 CC=$ac_ct_CC
2529 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2530 See \`config.log' for more details." >&5
2531 echo "$as_me: error: no acceptable C compiler found in \$PATH
2532 See \`config.log' for more details." >&2;}
2533 { (exit 1); exit 1; }; }
2535 # Provide some information about the compiler.
2536 echo "$as_me:$LINENO: checking for C compiler version" >&5
2537 ac_compiler=`set X $ac_compile; echo $2`
2538 { (ac_try="$ac_compiler --version >&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 --version >&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); }
2558 { (ac_try="$ac_compiler -V >&5"
2559 case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compiler -V >&5") 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }
2569 cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h. */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2577 main ()
2581 return 0;
2583 _ACEOF
2584 ac_clean_files_save=$ac_clean_files
2585 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2586 # Try to create an executable without -o first, disregard a.out.
2587 # It will help us diagnose broken compilers, and finding out an intuition
2588 # of exeext.
2589 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2590 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2591 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2593 # List of possible output files, starting from the most likely.
2594 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2595 # only as a last resort. b.out is created by i960 compilers.
2596 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2598 # The IRIX 6 linker writes into existing files which may not be
2599 # executable, retaining their permissions. Remove them first so a
2600 # subsequent execution test works.
2601 ac_rmfiles=
2602 for ac_file in $ac_files
2604 case $ac_file in
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2606 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2607 esac
2608 done
2609 rm -f $ac_rmfiles
2611 if { (ac_try="$ac_link_default"
2612 case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_link_default") 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; then
2621 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2622 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2623 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2624 # so that the user can short-circuit this test for compilers unknown to
2625 # Autoconf.
2626 for ac_file in $ac_files ''
2628 test -f "$ac_file" || continue
2629 case $ac_file in
2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2632 [ab].out )
2633 # We found the default executable, but exeext='' is most
2634 # certainly right.
2635 break;;
2636 *.* )
2637 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2638 then :; else
2639 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 # We set ac_cv_exeext here because the later test for it is not
2642 # safe: cross compilers may not add the suffix if given an `-o'
2643 # argument, so we may need to know it at that point already.
2644 # Even if this section looks crufty: it has the advantage of
2645 # actually working.
2646 break;;
2648 break;;
2649 esac
2650 done
2651 test "$ac_cv_exeext" = no && ac_cv_exeext=
2653 else
2654 ac_file=''
2657 { echo "$as_me:$LINENO: result: $ac_file" >&5
2658 echo "${ECHO_T}$ac_file" >&6; }
2659 if test -z "$ac_file"; then
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: C compiler cannot create executables
2666 See \`config.log' for more details." >&2;}
2667 { (exit 77); exit 77; }; }
2670 ac_exeext=$ac_cv_exeext
2672 # Check that the compiler produces executables we can run. If not, either
2673 # the compiler is broken, or we cross compile.
2674 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2675 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2676 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2677 # If not cross compiling, check that we can run a simple program.
2678 if test "$cross_compiling" != yes; then
2679 if { ac_try='./$ac_file'
2680 { (case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_try") 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2689 cross_compiling=no
2690 else
2691 if test "$cross_compiling" = maybe; then
2692 cross_compiling=yes
2693 else
2694 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2695 If you meant to cross compile, use \`--host'.
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: cannot run C compiled programs.
2698 If you meant to cross compile, use \`--host'.
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2704 { echo "$as_me:$LINENO: result: yes" >&5
2705 echo "${ECHO_T}yes" >&6; }
2707 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2708 ac_clean_files=$ac_clean_files_save
2709 # Check that the compiler produces executables we can run. If not, either
2710 # the compiler is broken, or we cross compile.
2711 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2712 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2713 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2714 echo "${ECHO_T}$cross_compiling" >&6; }
2716 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2717 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2718 if { (ac_try="$ac_link"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_link") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; then
2728 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2729 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2730 # work properly (i.e., refer to `conftest.exe'), while it won't with
2731 # `rm'.
2732 for ac_file in conftest.exe conftest conftest.*; do
2733 test -f "$ac_file" || continue
2734 case $ac_file in
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2737 break;;
2738 * ) break;;
2739 esac
2740 done
2741 else
2742 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2743 See \`config.log' for more details." >&5
2744 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2745 See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
2749 rm -f conftest$ac_cv_exeext
2750 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2751 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2753 rm -f conftest.$ac_ext
2754 EXEEXT=$ac_cv_exeext
2755 ac_exeext=$EXEEXT
2756 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2757 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2758 if test "${ac_cv_objext+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2769 main ()
2773 return 0;
2775 _ACEOF
2776 rm -f conftest.o conftest.obj
2777 if { (ac_try="$ac_compile"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
2787 for ac_file in conftest.o conftest.obj conftest.*; do
2788 test -f "$ac_file" || continue;
2789 case $ac_file in
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2792 break;;
2793 esac
2794 done
2795 else
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2802 See \`config.log' for more details." >&2;}
2803 { (exit 1); exit 1; }; }
2806 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2808 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2809 echo "${ECHO_T}$ac_cv_objext" >&6; }
2810 OBJEXT=$ac_cv_objext
2811 ac_objext=$OBJEXT
2812 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2813 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2814 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2825 main ()
2827 #ifndef __GNUC__
2828 choke me
2829 #endif
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } && {
2849 test -z "$ac_c_werror_flag" ||
2850 test ! -s conftest.err
2851 } && test -s conftest.$ac_objext; then
2852 ac_compiler_gnu=yes
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 ac_compiler_gnu=no
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2864 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2865 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2866 GCC=`test $ac_compiler_gnu = yes && echo yes`
2867 ac_test_CFLAGS=${CFLAGS+set}
2868 ac_save_CFLAGS=$CFLAGS
2869 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2870 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2871 if test "${ac_cv_prog_cc_g+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 ac_save_c_werror_flag=$ac_c_werror_flag
2875 ac_c_werror_flag=yes
2876 ac_cv_prog_cc_g=no
2877 CFLAGS="-g"
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2886 main ()
2890 return 0;
2892 _ACEOF
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2895 case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
2901 ac_status=$?
2902 grep -v '^ *+' conftest.er1 >conftest.err
2903 rm -f conftest.er1
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && {
2907 test -z "$ac_c_werror_flag" ||
2908 test ! -s conftest.err
2909 } && test -s conftest.$ac_objext; then
2910 ac_cv_prog_cc_g=yes
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2915 CFLAGS=""
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2924 main ()
2928 return 0;
2930 _ACEOF
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 ac_c_werror_flag=$ac_save_c_werror_flag
2954 CFLAGS="-g"
2955 cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h. */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2963 main ()
2967 return 0;
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && {
2984 test -z "$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 } && test -s conftest.$ac_objext; then
2987 ac_cv_prog_cc_g=yes
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_c_werror_flag=$ac_save_c_werror_flag
3004 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3005 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3006 if test "$ac_test_CFLAGS" = set; then
3007 CFLAGS=$ac_save_CFLAGS
3008 elif test $ac_cv_prog_cc_g = yes; then
3009 if test "$GCC" = yes; then
3010 CFLAGS="-g -O2"
3011 else
3012 CFLAGS="-g"
3014 else
3015 if test "$GCC" = yes; then
3016 CFLAGS="-O2"
3017 else
3018 CFLAGS=
3021 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3022 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cc_c89+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 ac_cv_prog_cc_c89=no
3027 ac_save_CC=$CC
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 #include <stdarg.h>
3035 #include <stdio.h>
3036 #include <sys/types.h>
3037 #include <sys/stat.h>
3038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3039 struct buf { int x; };
3040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3041 static char *e (p, i)
3042 char **p;
3043 int i;
3045 return p[i];
3047 static char *f (char * (*g) (char **, int), char **p, ...)
3049 char *s;
3050 va_list v;
3051 va_start (v,p);
3052 s = g (p, va_arg (v,int));
3053 va_end (v);
3054 return s;
3057 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3058 function prototypes and stuff, but not '\xHH' hex character constants.
3059 These don't provoke an error unfortunately, instead are silently treated
3060 as 'x'. The following induces an error, until -std is added to get
3061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3062 array size at least. It's necessary to write '\x00'==0 to get something
3063 that's true only with -std. */
3064 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3066 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3067 inside strings and character constants. */
3068 #define FOO(x) 'x'
3069 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3071 int test (int i, double x);
3072 struct s1 {int (*f) (int a);};
3073 struct s2 {int (*f) (double a);};
3074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3075 int argc;
3076 char **argv;
3078 main ()
3080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3082 return 0;
3084 _ACEOF
3085 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3086 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3088 CC="$ac_save_CC $ac_arg"
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } && {
3103 test -z "$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 } && test -s conftest.$ac_objext; then
3106 ac_cv_prog_cc_c89=$ac_arg
3107 else
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f core conftest.err conftest.$ac_objext
3115 test "x$ac_cv_prog_cc_c89" != "xno" && break
3116 done
3117 rm -f conftest.$ac_ext
3118 CC=$ac_save_CC
3121 # AC_CACHE_VAL
3122 case "x$ac_cv_prog_cc_c89" in
3124 { echo "$as_me:$LINENO: result: none needed" >&5
3125 echo "${ECHO_T}none needed" >&6; } ;;
3126 xno)
3127 { echo "$as_me:$LINENO: result: unsupported" >&5
3128 echo "${ECHO_T}unsupported" >&6; } ;;
3130 CC="$CC $ac_cv_prog_cc_c89"
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3133 esac
3136 ac_ext=c
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3149 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3150 # On Suns, sometimes $CPP names a directory.
3151 if test -n "$CPP" && test -d "$CPP"; then
3152 CPP=
3154 if test -z "$CPP"; then
3155 if test "${ac_cv_prog_CPP+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158 # Double quotes because CPP needs to be expanded
3159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3161 ac_preproc_ok=false
3162 for ac_c_preproc_warn_flag in '' yes
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h. */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3176 #ifdef __STDC__
3177 # include <limits.h>
3178 #else
3179 # include <assert.h>
3180 #endif
3181 Syntax error
3182 _ACEOF
3183 if { (ac_try="$ac_cpp conftest.$ac_ext"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev/null && {
3196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 }; then
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 # Broken: fails on valid input.
3205 continue
3208 rm -f conftest.err conftest.$ac_ext
3210 # OK, works on sane cases. Now check whether nonexistent headers
3211 # can be detected and how.
3212 cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h. */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #include <ac_nonexistent.h>
3219 _ACEOF
3220 if { (ac_try="$ac_cpp conftest.$ac_ext"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } >/dev/null && {
3233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 }; then
3236 # Broken: success on invalid input.
3237 continue
3238 else
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3242 # Passes both tests.
3243 ac_preproc_ok=:
3244 break
3247 rm -f conftest.err conftest.$ac_ext
3249 done
3250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3251 rm -f conftest.err conftest.$ac_ext
3252 if $ac_preproc_ok; then
3253 break
3256 done
3257 ac_cv_prog_CPP=$CPP
3260 CPP=$ac_cv_prog_CPP
3261 else
3262 ac_cv_prog_CPP=$CPP
3264 { echo "$as_me:$LINENO: result: $CPP" >&5
3265 echo "${ECHO_T}$CPP" >&6; }
3266 ac_preproc_ok=false
3267 for ac_c_preproc_warn_flag in '' yes
3269 # Use a header file that comes with gcc, so configuring glibc
3270 # with a fresh cross-compiler works.
3271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3272 # <limits.h> exists even on freestanding compilers.
3273 # On the NeXT, cc -E runs the code through the compiler's parser,
3274 # not just through cpp. "Syntax error" is here to catch this case.
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #ifdef __STDC__
3282 # include <limits.h>
3283 #else
3284 # include <assert.h>
3285 #endif
3286 Syntax error
3287 _ACEOF
3288 if { (ac_try="$ac_cpp conftest.$ac_ext"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } >/dev/null && {
3301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3302 test ! -s conftest.err
3303 }; then
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Broken: fails on valid input.
3310 continue
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether nonexistent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <ac_nonexistent.h>
3324 _ACEOF
3325 if { (ac_try="$ac_cpp conftest.$ac_ext"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null && {
3338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3339 test ! -s conftest.err
3340 }; then
3341 # Broken: success on invalid input.
3342 continue
3343 else
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 # Passes both tests.
3348 ac_preproc_ok=:
3349 break
3352 rm -f conftest.err conftest.$ac_ext
3354 done
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then
3359 else
3360 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3375 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3376 if test "${ac_cv_path_GREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 # Extract the first word of "grep ggrep" to use in msg output
3380 if test -z "$GREP"; then
3381 set dummy grep ggrep; ac_prog_name=$2
3382 if test "${ac_cv_path_GREP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 ac_path_GREP_found=false
3386 # Loop through the user's path and test for each of PROGNAME-LIST
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_prog in grep ggrep; do
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3395 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3396 # Check for GNU ac_path_GREP and select it if it is found.
3397 # Check for GNU $ac_path_GREP
3398 case `"$ac_path_GREP" --version 2>&1` in
3399 *GNU*)
3400 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3402 ac_count=0
3403 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3404 while :
3406 cat "conftest.in" "conftest.in" >"conftest.tmp"
3407 mv "conftest.tmp" "conftest.in"
3408 cp "conftest.in" "conftest.nl"
3409 echo 'GREP' >> "conftest.nl"
3410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3412 ac_count=`expr $ac_count + 1`
3413 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3414 # Best one so far, save it but keep looking for a better one
3415 ac_cv_path_GREP="$ac_path_GREP"
3416 ac_path_GREP_max=$ac_count
3418 # 10*(2^10) chars as input seems more than enough
3419 test $ac_count -gt 10 && break
3420 done
3421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3422 esac
3425 $ac_path_GREP_found && break 3
3426 done
3427 done
3429 done
3430 IFS=$as_save_IFS
3435 GREP="$ac_cv_path_GREP"
3436 if test -z "$GREP"; then
3437 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3438 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3439 { (exit 1); exit 1; }; }
3442 else
3443 ac_cv_path_GREP=$GREP
3448 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3449 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3450 GREP="$ac_cv_path_GREP"
3453 { echo "$as_me:$LINENO: checking for egrep" >&5
3454 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3455 if test "${ac_cv_path_EGREP+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3459 then ac_cv_path_EGREP="$GREP -E"
3460 else
3461 # Extract the first word of "egrep" to use in msg output
3462 if test -z "$EGREP"; then
3463 set dummy egrep; ac_prog_name=$2
3464 if test "${ac_cv_path_EGREP+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467 ac_path_EGREP_found=false
3468 # Loop through the user's path and test for each of PROGNAME-LIST
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_prog in egrep; do
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3478 # Check for GNU ac_path_EGREP and select it if it is found.
3479 # Check for GNU $ac_path_EGREP
3480 case `"$ac_path_EGREP" --version 2>&1` in
3481 *GNU*)
3482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3484 ac_count=0
3485 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3486 while :
3488 cat "conftest.in" "conftest.in" >"conftest.tmp"
3489 mv "conftest.tmp" "conftest.in"
3490 cp "conftest.in" "conftest.nl"
3491 echo 'EGREP' >> "conftest.nl"
3492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3494 ac_count=`expr $ac_count + 1`
3495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3496 # Best one so far, save it but keep looking for a better one
3497 ac_cv_path_EGREP="$ac_path_EGREP"
3498 ac_path_EGREP_max=$ac_count
3500 # 10*(2^10) chars as input seems more than enough
3501 test $ac_count -gt 10 && break
3502 done
3503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3504 esac
3507 $ac_path_EGREP_found && break 3
3508 done
3509 done
3511 done
3512 IFS=$as_save_IFS
3517 EGREP="$ac_cv_path_EGREP"
3518 if test -z "$EGREP"; then
3519 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3520 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3521 { (exit 1); exit 1; }; }
3524 else
3525 ac_cv_path_EGREP=$EGREP
3531 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3532 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3533 EGREP="$ac_cv_path_EGREP"
3537 { echo "$as_me:$LINENO: checking for AIX" >&5
3538 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #ifdef _AIX
3547 #endif
3549 _ACEOF
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 $EGREP "yes" >/dev/null 2>&1; then
3552 { echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6; }
3554 cat >>confdefs.h <<\_ACEOF
3555 #define _ALL_SOURCE 1
3556 _ACEOF
3558 else
3559 { echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6; }
3562 rm -f conftest*
3565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3567 if test "${ac_cv_header_stdc+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <stdlib.h>
3577 #include <stdarg.h>
3578 #include <string.h>
3579 #include <float.h>
3582 main ()
3586 return 0;
3588 _ACEOF
3589 rm -f conftest.$ac_objext
3590 if { (ac_try="$ac_compile"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } && {
3603 test -z "$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3605 } && test -s conftest.$ac_objext; then
3606 ac_cv_header_stdc=yes
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 ac_cv_header_stdc=no
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 if test $ac_cv_header_stdc = yes; then
3617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 #include <string.h>
3626 _ACEOF
3627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3628 $EGREP "memchr" >/dev/null 2>&1; then
3630 else
3631 ac_cv_header_stdc=no
3633 rm -f conftest*
3637 if test $ac_cv_header_stdc = yes; then
3638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include <stdlib.h>
3647 _ACEOF
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 $EGREP "free" >/dev/null 2>&1; then
3651 else
3652 ac_cv_header_stdc=no
3654 rm -f conftest*
3658 if test $ac_cv_header_stdc = yes; then
3659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3660 if test "$cross_compiling" = yes; then
3662 else
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #include <ctype.h>
3670 #include <stdlib.h>
3671 #if ((' ' & 0x0FF) == 0x020)
3672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3674 #else
3675 # define ISLOWER(c) \
3676 (('a' <= (c) && (c) <= 'i') \
3677 || ('j' <= (c) && (c) <= 'r') \
3678 || ('s' <= (c) && (c) <= 'z'))
3679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3680 #endif
3682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3684 main ()
3686 int i;
3687 for (i = 0; i < 256; i++)
3688 if (XOR (islower (i), ISLOWER (i))
3689 || toupper (i) != TOUPPER (i))
3690 return 2;
3691 return 0;
3693 _ACEOF
3694 rm -f conftest$ac_exeext
3695 if { (ac_try="$ac_link"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_link") 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3705 { (case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_try") 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3715 else
3716 echo "$as_me: program exited with status $ac_status" >&5
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 ( exit $ac_status )
3721 ac_cv_header_stdc=no
3723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3729 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3730 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3731 if test $ac_cv_header_stdc = yes; then
3733 cat >>confdefs.h <<\_ACEOF
3734 #define STDC_HEADERS 1
3735 _ACEOF
3739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3750 inttypes.h stdint.h unistd.h
3752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3766 #include <$ac_header>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (ac_try="$ac_compile"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3785 eval "$as_ac_Header=yes"
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 eval "$as_ac_Header=no"
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 ac_res=`eval echo '${'$as_ac_Header'}'`
3796 { echo "$as_me:$LINENO: result: $ac_res" >&5
3797 echo "${ECHO_T}$ac_res" >&6; }
3798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3799 cat >>confdefs.h <<_ACEOF
3800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3801 _ACEOF
3805 done
3808 if test "${ac_cv_header_minix_config_h+set}" = set; then
3809 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3810 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_minix_config_h+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3815 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3816 else
3817 # Is the header compilable?
3818 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3819 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 $ac_includes_default
3827 #include <minix/config.h>
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (ac_try="$ac_compile"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_compile") 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest.$ac_objext; then
3846 ac_header_compiler=yes
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_header_compiler=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3856 echo "${ECHO_T}$ac_header_compiler" >&6; }
3858 # Is the header present?
3859 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3860 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 #include <minix/config.h>
3868 _ACEOF
3869 if { (ac_try="$ac_cpp conftest.$ac_ext"
3870 case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } >/dev/null && {
3882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3883 test ! -s conftest.err
3884 }; then
3885 ac_header_preproc=yes
3886 else
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 ac_header_preproc=no
3893 rm -f conftest.err conftest.$ac_ext
3894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3895 echo "${ECHO_T}$ac_header_preproc" >&6; }
3897 # So? What about this header?
3898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3899 yes:no: )
3900 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3901 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3903 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3904 ac_header_preproc=yes
3906 no:yes:* )
3907 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3908 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3910 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3912 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3914 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3916 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3918 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3919 ( cat <<\_ASBOX
3920 ## ------------------------------- ##
3921 ## Report this to www.asterisk.org ##
3922 ## ------------------------------- ##
3923 _ASBOX
3924 ) | sed "s/^/$as_me: WARNING: /" >&2
3926 esac
3927 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3928 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3929 if test "${ac_cv_header_minix_config_h+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932 ac_cv_header_minix_config_h=$ac_header_preproc
3934 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3935 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3938 if test $ac_cv_header_minix_config_h = yes; then
3939 MINIX=yes
3940 else
3941 MINIX=
3945 if test "$MINIX" = yes; then
3947 cat >>confdefs.h <<\_ACEOF
3948 #define _POSIX_SOURCE 1
3949 _ACEOF
3952 cat >>confdefs.h <<\_ACEOF
3953 #define _POSIX_1_SOURCE 2
3954 _ACEOF
3957 cat >>confdefs.h <<\_ACEOF
3958 #define _MINIX 1
3959 _ACEOF
3973 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3974 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3975 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3985 # define __EXTENSIONS__ 1
3986 $ac_includes_default
3988 main ()
3992 return 0;
3994 _ACEOF
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4012 ac_cv_safe_to_define___extensions__=yes
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 ac_cv_safe_to_define___extensions__=no
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4024 test $ac_cv_safe_to_define___extensions__ = yes &&
4025 cat >>confdefs.h <<\_ACEOF
4026 #define __EXTENSIONS__ 1
4027 _ACEOF
4029 cat >>confdefs.h <<\_ACEOF
4030 #define _POSIX_PTHREAD_SEMANTICS 1
4031 _ACEOF
4033 cat >>confdefs.h <<\_ACEOF
4034 #define _TANDEM_SOURCE 1
4035 _ACEOF
4037 # note- does not work on FreeBSD
4039 case "${host_os}" in
4040 freebsd*)
4041 ac_default_prefix=/usr/local
4042 CPPFLAGS=-I/usr/local/include
4043 LDFLAGS=-L/usr/local/lib
4047 ac_default_prefix=/usr
4048 if test ${sysconfdir} = '${prefix}/etc'; then
4049 sysconfdir=/etc
4051 if test ${mandir} = '${prefix}/man'; then
4052 mandir=/usr/share/man
4055 esac
4057 if test ${localstatedir} = '${prefix}/var'; then
4058 localstatedir=/var
4061 BUILD_PLATFORM=${build}
4062 BUILD_CPU=${build_cpu}
4063 BUILD_VENDOR=${build_vendor}
4064 BUILD_OS=${build_os}
4071 HOST_PLATFORM=${host}
4072 HOST_CPU=${host_cpu}
4073 HOST_VENDOR=${host_vendor}
4074 HOST_OS=${host_os}
4081 WINARCH=0
4083 case "${host_os}" in
4084 freebsd*)
4085 OSARCH=FreeBSD
4087 netbsd*)
4088 OSARCH=NetBSD
4090 openbsd*)
4091 OSARCH=OpenBSD
4093 solaris*)
4094 OSARCH=SunOS
4096 mingw32)
4097 OSARCH=mingw32
4098 WINARCH=1
4100 cygwin)
4101 OSARCH=cygwin
4102 WINARCH=1
4105 OSARCH=${host_os}
4107 esac
4112 # check for uname
4113 if test -n "$ac_tool_prefix"; then
4114 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4115 set dummy ${ac_tool_prefix}uname; ac_word=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_path_UNAME+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 case $UNAME in
4122 [\\/]* | ?:[\\/]*)
4123 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4137 done
4138 done
4139 IFS=$as_save_IFS
4142 esac
4144 UNAME=$ac_cv_path_UNAME
4145 if test -n "$UNAME"; then
4146 { echo "$as_me:$LINENO: result: $UNAME" >&5
4147 echo "${ECHO_T}$UNAME" >&6; }
4148 else
4149 { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4155 if test -z "$ac_cv_path_UNAME"; then
4156 ac_pt_UNAME=$UNAME
4157 # Extract the first word of "uname", so it can be a program name with args.
4158 set dummy uname; ac_word=$2
4159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4161 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164 case $ac_pt_UNAME in
4165 [\\/]* | ?:[\\/]*)
4166 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4180 done
4181 done
4182 IFS=$as_save_IFS
4185 esac
4187 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4188 if test -n "$ac_pt_UNAME"; then
4189 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4190 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4191 else
4192 { echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6; }
4196 if test "x$ac_pt_UNAME" = x; then
4197 UNAME="No"
4198 else
4199 case $cross_compiling:$ac_tool_warned in
4200 yes:)
4201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4202 whose name does not start with the host triplet. If you think this
4203 configuration is useful to you, please write to autoconf@gnu.org." >&5
4204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4205 whose name does not start with the host triplet. If you think this
4206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4207 ac_tool_warned=yes ;;
4208 esac
4209 UNAME=$ac_pt_UNAME
4211 else
4212 UNAME="$ac_cv_path_UNAME"
4215 if test ! x"${UNAME}" = xNo; then
4216 PBX_OSREV=$(${UNAME} -r)
4226 # cross-compile checks
4227 if test "${cross_compiling}" = "yes";
4228 then
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4234 if test "${ac_cv_prog_CC+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4251 done
4252 done
4253 IFS=$as_save_IFS
4257 CC=$ac_cv_prog_CC
4258 if test -n "$CC"; then
4259 { echo "$as_me:$LINENO: result: $CC" >&5
4260 echo "${ECHO_T}$CC" >&6; }
4261 else
4262 { echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6; }
4268 if test -z "$ac_cv_prog_CC"; then
4269 ac_ct_CC=$CC
4270 # Extract the first word of "gcc", so it can be a program name with args.
4271 set dummy gcc; ac_word=$2
4272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277 if test -n "$ac_ct_CC"; then
4278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_ac_ct_CC="gcc"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4298 if test -n "$ac_ct_CC"; then
4299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4300 echo "${ECHO_T}$ac_ct_CC" >&6; }
4301 else
4302 { echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6; }
4306 if test "x$ac_ct_CC" = x; then
4307 CC=":"
4308 else
4309 case $cross_compiling:$ac_tool_warned in
4310 yes:)
4311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4312 whose name does not start with the host triplet. If you think this
4313 configuration is useful to you, please write to autoconf@gnu.org." >&5
4314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4315 whose name does not start with the host triplet. If you think this
4316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319 CC=$ac_ct_CC
4321 else
4322 CC="$ac_cv_prog_CC"
4325 if test -n "$ac_tool_prefix"; then
4326 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4327 set dummy ${ac_tool_prefix}g++; ac_word=$2
4328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4330 if test "${ac_cv_prog_CXX+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333 if test -n "$CXX"; then
4334 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4347 done
4348 done
4349 IFS=$as_save_IFS
4353 CXX=$ac_cv_prog_CXX
4354 if test -n "$CXX"; then
4355 { echo "$as_me:$LINENO: result: $CXX" >&5
4356 echo "${ECHO_T}$CXX" >&6; }
4357 else
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4364 if test -z "$ac_cv_prog_CXX"; then
4365 ac_ct_CXX=$CXX
4366 # Extract the first word of "g++", so it can be a program name with args.
4367 set dummy g++; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 if test -n "$ac_ct_CXX"; then
4374 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_ac_ct_CXX="g++"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4387 done
4388 done
4389 IFS=$as_save_IFS
4393 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4394 if test -n "$ac_ct_CXX"; then
4395 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4396 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4397 else
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4402 if test "x$ac_ct_CXX" = x; then
4403 CXX=":"
4404 else
4405 case $cross_compiling:$ac_tool_warned in
4406 yes:)
4407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4408 whose name does not start with the host triplet. If you think this
4409 configuration is useful to you, please write to autoconf@gnu.org." >&5
4410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4411 whose name does not start with the host triplet. If you think this
4412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4413 ac_tool_warned=yes ;;
4414 esac
4415 CXX=$ac_ct_CXX
4417 else
4418 CXX="$ac_cv_prog_CXX"
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}ld; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_LD+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429 if test -n "$LD"; then
4430 ac_cv_prog_LD="$LD" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_LD="${ac_tool_prefix}ld"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4443 done
4444 done
4445 IFS=$as_save_IFS
4449 LD=$ac_cv_prog_LD
4450 if test -n "$LD"; then
4451 { echo "$as_me:$LINENO: result: $LD" >&5
4452 echo "${ECHO_T}$LD" >&6; }
4453 else
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4460 if test -z "$ac_cv_prog_LD"; then
4461 ac_ct_LD=$LD
4462 # Extract the first word of "ld", so it can be a program name with args.
4463 set dummy ld; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469 if test -n "$ac_ct_LD"; then
4470 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_LD="ld"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4483 done
4484 done
4485 IFS=$as_save_IFS
4489 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4490 if test -n "$ac_ct_LD"; then
4491 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4492 echo "${ECHO_T}$ac_ct_LD" >&6; }
4493 else
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4498 if test "x$ac_ct_LD" = x; then
4499 LD=":"
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502 yes:)
4503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4504 whose name does not start with the host triplet. If you think this
4505 configuration is useful to you, please write to autoconf@gnu.org." >&5
4506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4509 ac_tool_warned=yes ;;
4510 esac
4511 LD=$ac_ct_LD
4513 else
4514 LD="$ac_cv_prog_LD"
4517 if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4522 if test "${ac_cv_prog_RANLIB+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 if test -n "$RANLIB"; then
4526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 RANLIB=$ac_cv_prog_RANLIB
4546 if test -n "$RANLIB"; then
4547 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4548 echo "${ECHO_T}$RANLIB" >&6; }
4549 else
4550 { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4556 if test -z "$ac_cv_prog_RANLIB"; then
4557 ac_ct_RANLIB=$RANLIB
4558 # Extract the first word of "ranlib", so it can be a program name with args.
4559 set dummy ranlib; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$ac_ct_RANLIB"; then
4566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_ac_ct_RANLIB="ranlib"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4579 done
4580 done
4581 IFS=$as_save_IFS
4585 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4586 if test -n "$ac_ct_RANLIB"; then
4587 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4588 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4589 else
4590 { echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6; }
4594 if test "x$ac_ct_RANLIB" = x; then
4595 RANLIB=":"
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598 yes:)
4599 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4600 whose name does not start with the host triplet. If you think this
4601 configuration is useful to you, please write to autoconf@gnu.org." >&5
4602 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4605 ac_tool_warned=yes ;;
4606 esac
4607 RANLIB=$ac_ct_RANLIB
4609 else
4610 RANLIB="$ac_cv_prog_RANLIB"
4615 # Checks for programs.
4616 ac_ext=c
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_CC+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 if test -n "$CC"; then
4630 ac_cv_prog_CC="$CC" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4643 done
4644 done
4645 IFS=$as_save_IFS
4649 CC=$ac_cv_prog_CC
4650 if test -n "$CC"; then
4651 { echo "$as_me:$LINENO: result: $CC" >&5
4652 echo "${ECHO_T}$CC" >&6; }
4653 else
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4660 if test -z "$ac_cv_prog_CC"; then
4661 ac_ct_CC=$CC
4662 # Extract the first word of "gcc", so it can be a program name with args.
4663 set dummy gcc; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_ac_ct_CC="gcc"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4683 done
4684 done
4685 IFS=$as_save_IFS
4689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4692 echo "${ECHO_T}$ac_ct_CC" >&6; }
4693 else
4694 { echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6; }
4698 if test "x$ac_ct_CC" = x; then
4699 CC=""
4700 else
4701 case $cross_compiling:$ac_tool_warned in
4702 yes:)
4703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4704 whose name does not start with the host triplet. If you think this
4705 configuration is useful to you, please write to autoconf@gnu.org." >&5
4706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4707 whose name does not start with the host triplet. If you think this
4708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4709 ac_tool_warned=yes ;;
4710 esac
4711 CC=$ac_ct_CC
4713 else
4714 CC="$ac_cv_prog_CC"
4717 if test -z "$CC"; then
4718 if test -n "$ac_tool_prefix"; then
4719 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4720 set dummy ${ac_tool_prefix}cc; ac_word=$2
4721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723 if test "${ac_cv_prog_CC+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726 if test -n "$CC"; then
4727 ac_cv_prog_CC="$CC" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_CC="${ac_tool_prefix}cc"
4737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4740 done
4741 done
4742 IFS=$as_save_IFS
4746 CC=$ac_cv_prog_CC
4747 if test -n "$CC"; then
4748 { echo "$as_me:$LINENO: result: $CC" >&5
4749 echo "${ECHO_T}$CC" >&6; }
4750 else
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4758 if test -z "$CC"; then
4759 # Extract the first word of "cc", so it can be a program name with args.
4760 set dummy cc; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_prog_CC+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 if test -n "$CC"; then
4767 ac_cv_prog_CC="$CC" # Let the user override the test.
4768 else
4769 ac_prog_rejected=no
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4778 ac_prog_rejected=yes
4779 continue
4781 ac_cv_prog_CC="cc"
4782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4785 done
4786 done
4787 IFS=$as_save_IFS
4789 if test $ac_prog_rejected = yes; then
4790 # We found a bogon in the path, so make sure we never use it.
4791 set dummy $ac_cv_prog_CC
4792 shift
4793 if test $# != 0; then
4794 # We chose a different compiler from the bogus one.
4795 # However, it has the same basename, so the bogon will be chosen
4796 # first if we set CC to just the basename; use the full file name.
4797 shift
4798 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4803 CC=$ac_cv_prog_CC
4804 if test -n "$CC"; then
4805 { echo "$as_me:$LINENO: result: $CC" >&5
4806 echo "${ECHO_T}$CC" >&6; }
4807 else
4808 { echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6; }
4814 if test -z "$CC"; then
4815 if test -n "$ac_tool_prefix"; then
4816 for ac_prog in cl.exe
4818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test -n "$CC"; then
4826 ac_cv_prog_CC="$CC" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4841 IFS=$as_save_IFS
4845 CC=$ac_cv_prog_CC
4846 if test -n "$CC"; then
4847 { echo "$as_me:$LINENO: result: $CC" >&5
4848 echo "${ECHO_T}$CC" >&6; }
4849 else
4850 { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4855 test -n "$CC" && break
4856 done
4858 if test -z "$CC"; then
4859 ac_ct_CC=$CC
4860 for ac_prog in cl.exe
4862 # Extract the first word of "$ac_prog", so it can be a program name with args.
4863 set dummy $ac_prog; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 if test -n "$ac_ct_CC"; then
4870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_CC="$ac_prog"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4883 done
4884 done
4885 IFS=$as_save_IFS
4889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4890 if test -n "$ac_ct_CC"; then
4891 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4892 echo "${ECHO_T}$ac_ct_CC" >&6; }
4893 else
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 test -n "$ac_ct_CC" && break
4900 done
4902 if test "x$ac_ct_CC" = x; then
4903 CC=""
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4908 whose name does not start with the host triplet. If you think this
4909 configuration is useful to you, please write to autoconf@gnu.org." >&5
4910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4911 whose name does not start with the host triplet. If you think this
4912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4913 ac_tool_warned=yes ;;
4914 esac
4915 CC=$ac_ct_CC
4922 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4923 See \`config.log' for more details." >&5
4924 echo "$as_me: error: no acceptable C compiler found in \$PATH
4925 See \`config.log' for more details." >&2;}
4926 { (exit 1); exit 1; }; }
4928 # Provide some information about the compiler.
4929 echo "$as_me:$LINENO: checking for C compiler version" >&5
4930 ac_compiler=`set X $ac_compile; echo $2`
4931 { (ac_try="$ac_compiler --version >&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 --version >&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); }
4951 { (ac_try="$ac_compiler -V >&5"
4952 case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955 esac
4956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957 (eval "$ac_compiler -V >&5") 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }
4962 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4975 main ()
4977 #ifndef __GNUC__
4978 choke me
4979 #endif
4982 return 0;
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (ac_try="$ac_compile"
4987 case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990 esac
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_compile") 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } && {
4999 test -z "$ac_c_werror_flag" ||
5000 test ! -s conftest.err
5001 } && test -s conftest.$ac_objext; then
5002 ac_compiler_gnu=yes
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 ac_compiler_gnu=no
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5014 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5015 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5016 GCC=`test $ac_compiler_gnu = yes && echo yes`
5017 ac_test_CFLAGS=${CFLAGS+set}
5018 ac_save_CFLAGS=$CFLAGS
5019 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5020 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5021 if test "${ac_cv_prog_cc_g+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 ac_save_c_werror_flag=$ac_c_werror_flag
5025 ac_c_werror_flag=yes
5026 ac_cv_prog_cc_g=no
5027 CFLAGS="-g"
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5036 main ()
5040 return 0;
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (ac_try="$ac_compile"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_compile") 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && {
5057 test -z "$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 } && test -s conftest.$ac_objext; then
5060 ac_cv_prog_cc_g=yes
5061 else
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 CFLAGS=""
5066 cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5074 main ()
5078 return 0;
5080 _ACEOF
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_compile") 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && {
5095 test -z "$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 } && test -s conftest.$ac_objext; then
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 ac_c_werror_flag=$ac_save_c_werror_flag
5104 CFLAGS="-g"
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5113 main ()
5117 return 0;
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (ac_try="$ac_compile"
5122 case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_compile") 2>conftest.er1
5128 ac_status=$?
5129 grep -v '^ *+' conftest.er1 >conftest.err
5130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } && {
5134 test -z "$ac_c_werror_flag" ||
5135 test ! -s conftest.err
5136 } && test -s conftest.$ac_objext; then
5137 ac_cv_prog_cc_g=yes
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 ac_c_werror_flag=$ac_save_c_werror_flag
5154 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5155 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5156 if test "$ac_test_CFLAGS" = set; then
5157 CFLAGS=$ac_save_CFLAGS
5158 elif test $ac_cv_prog_cc_g = yes; then
5159 if test "$GCC" = yes; then
5160 CFLAGS="-g -O2"
5161 else
5162 CFLAGS="-g"
5164 else
5165 if test "$GCC" = yes; then
5166 CFLAGS="-O2"
5167 else
5168 CFLAGS=
5171 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5172 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5173 if test "${ac_cv_prog_cc_c89+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176 ac_cv_prog_cc_c89=no
5177 ac_save_CC=$CC
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 #include <stdarg.h>
5185 #include <stdio.h>
5186 #include <sys/types.h>
5187 #include <sys/stat.h>
5188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5189 struct buf { int x; };
5190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5191 static char *e (p, i)
5192 char **p;
5193 int i;
5195 return p[i];
5197 static char *f (char * (*g) (char **, int), char **p, ...)
5199 char *s;
5200 va_list v;
5201 va_start (v,p);
5202 s = g (p, va_arg (v,int));
5203 va_end (v);
5204 return s;
5207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5208 function prototypes and stuff, but not '\xHH' hex character constants.
5209 These don't provoke an error unfortunately, instead are silently treated
5210 as 'x'. The following induces an error, until -std is added to get
5211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5212 array size at least. It's necessary to write '\x00'==0 to get something
5213 that's true only with -std. */
5214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5217 inside strings and character constants. */
5218 #define FOO(x) 'x'
5219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5221 int test (int i, double x);
5222 struct s1 {int (*f) (int a);};
5223 struct s2 {int (*f) (double a);};
5224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5225 int argc;
5226 char **argv;
5228 main ()
5230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5232 return 0;
5234 _ACEOF
5235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5238 CC="$ac_save_CC $ac_arg"
5239 rm -f conftest.$ac_objext
5240 if { (ac_try="$ac_compile"
5241 case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_compile") 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest.$ac_objext; then
5256 ac_cv_prog_cc_c89=$ac_arg
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5264 rm -f core conftest.err conftest.$ac_objext
5265 test "x$ac_cv_prog_cc_c89" != "xno" && break
5266 done
5267 rm -f conftest.$ac_ext
5268 CC=$ac_save_CC
5271 # AC_CACHE_VAL
5272 case "x$ac_cv_prog_cc_c89" in
5274 { echo "$as_me:$LINENO: result: none needed" >&5
5275 echo "${ECHO_T}none needed" >&6; } ;;
5276 xno)
5277 { echo "$as_me:$LINENO: result: unsupported" >&5
5278 echo "${ECHO_T}unsupported" >&6; } ;;
5280 CC="$CC $ac_cv_prog_cc_c89"
5281 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5282 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5283 esac
5286 ac_ext=c
5287 ac_cpp='$CPP $CPPFLAGS'
5288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292 ac_ext=cpp
5293 ac_cpp='$CXXCPP $CPPFLAGS'
5294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5297 if test -z "$CXX"; then
5298 if test -n "$CCC"; then
5299 CXX=$CCC
5300 else
5301 if test -n "$ac_tool_prefix"; then
5302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5308 if test "${ac_cv_prog_CXX+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 if test -n "$CXX"; then
5312 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5325 done
5326 done
5327 IFS=$as_save_IFS
5331 CXX=$ac_cv_prog_CXX
5332 if test -n "$CXX"; then
5333 { echo "$as_me:$LINENO: result: $CXX" >&5
5334 echo "${ECHO_T}$CXX" >&6; }
5335 else
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5341 test -n "$CXX" && break
5342 done
5344 if test -z "$CXX"; then
5345 ac_ct_CXX=$CXX
5346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5348 # Extract the first word of "$ac_prog", so it can be a program name with args.
5349 set dummy $ac_prog; ac_word=$2
5350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5352 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355 if test -n "$ac_ct_CXX"; then
5356 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_ac_ct_CXX="$ac_prog"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5369 done
5370 done
5371 IFS=$as_save_IFS
5375 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5376 if test -n "$ac_ct_CXX"; then
5377 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5378 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5379 else
5380 { echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6; }
5385 test -n "$ac_ct_CXX" && break
5386 done
5388 if test "x$ac_ct_CXX" = x; then
5389 CXX="g++"
5390 else
5391 case $cross_compiling:$ac_tool_warned in
5392 yes:)
5393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5394 whose name does not start with the host triplet. If you think this
5395 configuration is useful to you, please write to autoconf@gnu.org." >&5
5396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5397 whose name does not start with the host triplet. If you think this
5398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5399 ac_tool_warned=yes ;;
5400 esac
5401 CXX=$ac_ct_CXX
5407 # Provide some information about the compiler.
5408 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5409 ac_compiler=`set X $ac_compile; echo $2`
5410 { (ac_try="$ac_compiler --version >&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 --version >&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); }
5430 { (ac_try="$ac_compiler -V >&5"
5431 case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434 esac
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_compiler -V >&5") 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }
5441 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5442 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5443 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5454 main ()
5456 #ifndef __GNUC__
5457 choke me
5458 #endif
5461 return 0;
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_cxx_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_compiler_gnu=yes
5482 else
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_compiler_gnu=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5493 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5494 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5495 GXX=`test $ac_compiler_gnu = yes && echo yes`
5496 ac_test_CXXFLAGS=${CXXFLAGS+set}
5497 ac_save_CXXFLAGS=$CXXFLAGS
5498 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5499 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5500 if test "${ac_cv_prog_cxx_g+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5504 ac_cxx_werror_flag=yes
5505 ac_cv_prog_cxx_g=no
5506 CXXFLAGS="-g"
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5515 main ()
5519 return 0;
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && {
5536 test -z "$ac_cxx_werror_flag" ||
5537 test ! -s conftest.err
5538 } && test -s conftest.$ac_objext; then
5539 ac_cv_prog_cxx_g=yes
5540 else
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 CXXFLAGS=""
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5553 main ()
5557 return 0;
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_cxx_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5583 CXXFLAGS="-g"
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5592 main ()
5596 return 0;
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_cxx_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
5616 ac_cv_prog_cxx_g=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5633 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5634 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5635 if test "$ac_test_CXXFLAGS" = set; then
5636 CXXFLAGS=$ac_save_CXXFLAGS
5637 elif test $ac_cv_prog_cxx_g = yes; then
5638 if test "$GXX" = yes; then
5639 CXXFLAGS="-g -O2"
5640 else
5641 CXXFLAGS="-g"
5643 else
5644 if test "$GXX" = yes; then
5645 CXXFLAGS="-O2"
5646 else
5647 CXXFLAGS=
5650 ac_ext=c
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656 ac_ext=c
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5662 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5663 # On Suns, sometimes $CPP names a directory.
5664 if test -n "$CPP" && test -d "$CPP"; then
5665 CPP=
5667 if test -z "$CPP"; then
5668 if test "${ac_cv_prog_CPP+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 # Double quotes because CPP needs to be expanded
5672 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5674 ac_preproc_ok=false
5675 for ac_c_preproc_warn_flag in '' yes
5677 # Use a header file that comes with gcc, so configuring glibc
5678 # with a fresh cross-compiler works.
5679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680 # <limits.h> exists even on freestanding compilers.
5681 # On the NeXT, cc -E runs the code through the compiler's parser,
5682 # not just through cpp. "Syntax error" is here to catch this case.
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 #ifdef __STDC__
5690 # include <limits.h>
5691 #else
5692 # include <assert.h>
5693 #endif
5694 Syntax error
5695 _ACEOF
5696 if { (ac_try="$ac_cpp conftest.$ac_ext"
5697 case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5703 ac_status=$?
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } >/dev/null && {
5709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5710 test ! -s conftest.err
5711 }; then
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 # Broken: fails on valid input.
5718 continue
5721 rm -f conftest.err conftest.$ac_ext
5723 # OK, works on sane cases. Now check whether nonexistent headers
5724 # can be detected and how.
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <ac_nonexistent.h>
5732 _ACEOF
5733 if { (ac_try="$ac_cpp conftest.$ac_ext"
5734 case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } >/dev/null && {
5746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5747 test ! -s conftest.err
5748 }; then
5749 # Broken: success on invalid input.
5750 continue
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 # Passes both tests.
5756 ac_preproc_ok=:
5757 break
5760 rm -f conftest.err conftest.$ac_ext
5762 done
5763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5764 rm -f conftest.err conftest.$ac_ext
5765 if $ac_preproc_ok; then
5766 break
5769 done
5770 ac_cv_prog_CPP=$CPP
5773 CPP=$ac_cv_prog_CPP
5774 else
5775 ac_cv_prog_CPP=$CPP
5777 { echo "$as_me:$LINENO: result: $CPP" >&5
5778 echo "${ECHO_T}$CPP" >&6; }
5779 ac_preproc_ok=false
5780 for ac_c_preproc_warn_flag in '' yes
5782 # Use a header file that comes with gcc, so configuring glibc
5783 # with a fresh cross-compiler works.
5784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5785 # <limits.h> exists even on freestanding compilers.
5786 # On the NeXT, cc -E runs the code through the compiler's parser,
5787 # not just through cpp. "Syntax error" is here to catch this case.
5788 cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h. */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794 #ifdef __STDC__
5795 # include <limits.h>
5796 #else
5797 # include <assert.h>
5798 #endif
5799 Syntax error
5800 _ACEOF
5801 if { (ac_try="$ac_cpp conftest.$ac_ext"
5802 case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } >/dev/null && {
5814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 }; then
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 # Broken: fails on valid input.
5823 continue
5826 rm -f conftest.err conftest.$ac_ext
5828 # OK, works on sane cases. Now check whether nonexistent headers
5829 # can be detected and how.
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #include <ac_nonexistent.h>
5837 _ACEOF
5838 if { (ac_try="$ac_cpp conftest.$ac_ext"
5839 case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } >/dev/null && {
5851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 }; then
5854 # Broken: success on invalid input.
5855 continue
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 # Passes both tests.
5861 ac_preproc_ok=:
5862 break
5865 rm -f conftest.err conftest.$ac_ext
5867 done
5868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5869 rm -f conftest.err conftest.$ac_ext
5870 if $ac_preproc_ok; then
5872 else
5873 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5874 See \`config.log' for more details." >&5
5875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5876 See \`config.log' for more details." >&2;}
5877 { (exit 1); exit 1; }; }
5880 ac_ext=c
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5886 ac_ext=cpp
5887 ac_cpp='$CXXCPP $CPPFLAGS'
5888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5891 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5892 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5893 if test -z "$CXXCPP"; then
5894 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 # Double quotes because CXXCPP needs to be expanded
5898 for CXXCPP in "$CXX -E" "/lib/cpp"
5900 ac_preproc_ok=false
5901 for ac_cxx_preproc_warn_flag in '' yes
5903 # Use a header file that comes with gcc, so configuring glibc
5904 # with a fresh cross-compiler works.
5905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5906 # <limits.h> exists even on freestanding compilers.
5907 # On the NeXT, cc -E runs the code through the compiler's parser,
5908 # not just through cpp. "Syntax error" is here to catch this case.
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #ifdef __STDC__
5916 # include <limits.h>
5917 #else
5918 # include <assert.h>
5919 #endif
5920 Syntax error
5921 _ACEOF
5922 if { (ac_try="$ac_cpp conftest.$ac_ext"
5923 case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } >/dev/null && {
5935 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5936 test ! -s conftest.err
5937 }; then
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 # Broken: fails on valid input.
5944 continue
5947 rm -f conftest.err conftest.$ac_ext
5949 # OK, works on sane cases. Now check whether nonexistent headers
5950 # can be detected and how.
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 #include <ac_nonexistent.h>
5958 _ACEOF
5959 if { (ac_try="$ac_cpp conftest.$ac_ext"
5960 case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963 esac
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } >/dev/null && {
5972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5973 test ! -s conftest.err
5974 }; then
5975 # Broken: success on invalid input.
5976 continue
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 # Passes both tests.
5982 ac_preproc_ok=:
5983 break
5986 rm -f conftest.err conftest.$ac_ext
5988 done
5989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5990 rm -f conftest.err conftest.$ac_ext
5991 if $ac_preproc_ok; then
5992 break
5995 done
5996 ac_cv_prog_CXXCPP=$CXXCPP
5999 CXXCPP=$ac_cv_prog_CXXCPP
6000 else
6001 ac_cv_prog_CXXCPP=$CXXCPP
6003 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6004 echo "${ECHO_T}$CXXCPP" >&6; }
6005 ac_preproc_ok=false
6006 for ac_cxx_preproc_warn_flag in '' yes
6008 # Use a header file that comes with gcc, so configuring glibc
6009 # with a fresh cross-compiler works.
6010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6011 # <limits.h> exists even on freestanding compilers.
6012 # On the NeXT, cc -E runs the code through the compiler's parser,
6013 # not just through cpp. "Syntax error" is here to catch this case.
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #ifdef __STDC__
6021 # include <limits.h>
6022 #else
6023 # include <assert.h>
6024 #endif
6025 Syntax error
6026 _ACEOF
6027 if { (ac_try="$ac_cpp conftest.$ac_ext"
6028 case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031 esac
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } >/dev/null && {
6040 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6041 test ! -s conftest.err
6042 }; then
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6048 # Broken: fails on valid input.
6049 continue
6052 rm -f conftest.err conftest.$ac_ext
6054 # OK, works on sane cases. Now check whether nonexistent headers
6055 # can be detected and how.
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <ac_nonexistent.h>
6063 _ACEOF
6064 if { (ac_try="$ac_cpp conftest.$ac_ext"
6065 case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068 esac
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } >/dev/null && {
6077 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6078 test ! -s conftest.err
6079 }; then
6080 # Broken: success on invalid input.
6081 continue
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 # Passes both tests.
6087 ac_preproc_ok=:
6088 break
6091 rm -f conftest.err conftest.$ac_ext
6093 done
6094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6095 rm -f conftest.err conftest.$ac_ext
6096 if $ac_preproc_ok; then
6098 else
6099 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6100 See \`config.log' for more details." >&5
6101 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6102 See \`config.log' for more details." >&2;}
6103 { (exit 1); exit 1; }; }
6106 ac_ext=c
6107 ac_cpp='$CPP $CPPFLAGS'
6108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6112 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
6113 # the developers regenerating the configure script don't have to install libtool.
6114 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6115 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6116 if test "${ac_cv_path_SED+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6120 for ac_i in 1 2 3 4 5 6 7; do
6121 ac_script="$ac_script$as_nl$ac_script"
6122 done
6123 echo "$ac_script" | sed 99q >conftest.sed
6124 $as_unset ac_script || ac_script=
6125 # Extract the first word of "sed gsed" to use in msg output
6126 if test -z "$SED"; then
6127 set dummy sed gsed; ac_prog_name=$2
6128 if test "${ac_cv_path_SED+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 ac_path_SED_found=false
6132 # Loop through the user's path and test for each of PROGNAME-LIST
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_prog in sed gsed; do
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6141 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6142 # Check for GNU ac_path_SED and select it if it is found.
6143 # Check for GNU $ac_path_SED
6144 case `"$ac_path_SED" --version 2>&1` in
6145 *GNU*)
6146 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6148 ac_count=0
6149 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6150 while :
6152 cat "conftest.in" "conftest.in" >"conftest.tmp"
6153 mv "conftest.tmp" "conftest.in"
6154 cp "conftest.in" "conftest.nl"
6155 echo '' >> "conftest.nl"
6156 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6158 ac_count=`expr $ac_count + 1`
6159 if test $ac_count -gt ${ac_path_SED_max-0}; then
6160 # Best one so far, save it but keep looking for a better one
6161 ac_cv_path_SED="$ac_path_SED"
6162 ac_path_SED_max=$ac_count
6164 # 10*(2^10) chars as input seems more than enough
6165 test $ac_count -gt 10 && break
6166 done
6167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6168 esac
6171 $ac_path_SED_found && break 3
6172 done
6173 done
6175 done
6176 IFS=$as_save_IFS
6181 SED="$ac_cv_path_SED"
6182 if test -z "$SED"; then
6183 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
6184 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
6185 { (exit 1); exit 1; }; }
6188 else
6189 ac_cv_path_SED=$SED
6193 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6194 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
6195 SED="$ac_cv_path_SED"
6196 rm -f conftest.sed
6198 { echo "$as_me:$LINENO: checking for egrep" >&5
6199 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6200 if test "${ac_cv_prog_egrep+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6204 then ac_cv_prog_egrep='grep -E'
6205 else ac_cv_prog_egrep='egrep'
6208 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6209 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
6210 EGREP=$ac_cv_prog_egrep
6214 # Check whether --with-gnu-ld was given.
6215 if test "${with_gnu_ld+set}" = set; then
6216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6217 else
6218 with_gnu_ld=no
6221 ac_prog=ld
6222 if test "$GCC" = yes; then
6223 # Check if gcc -print-prog-name=ld gives a path.
6224 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6225 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6226 case $host in
6227 *-*-mingw*)
6228 # gcc leaves a trailing carriage return which upsets mingw
6229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6232 esac
6233 case $ac_prog in
6234 # Accept absolute paths.
6235 [\\/]* | ?:[\\/]*)
6236 re_direlt='/[^/][^/]*/\.\./'
6237 # Canonicalize the pathname of ld
6238 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6239 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6240 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6241 done
6242 test -z "$LD" && LD="$ac_prog"
6245 # If it fails, then pretend we aren't using GCC.
6246 ac_prog=ld
6249 # If it is relative, then search for the first ld in PATH.
6250 with_gnu_ld=unknown
6252 esac
6253 elif test "$with_gnu_ld" = yes; then
6254 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6255 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6256 else
6257 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6258 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6260 if test "${lt_cv_path_LD+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 if test -z "$LD"; then
6264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6265 for ac_dir in $PATH; do
6266 IFS="$lt_save_ifs"
6267 test -z "$ac_dir" && ac_dir=.
6268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6269 lt_cv_path_LD="$ac_dir/$ac_prog"
6270 # Check to see if the program is GNU ld. I'd rather use --version,
6271 # but apparently some variants of GNU ld only accept -v.
6272 # Break only if it was the GNU/non-GNU ld that we prefer.
6273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6274 *GNU* | *'with BFD'*)
6275 test "$with_gnu_ld" != no && break
6278 test "$with_gnu_ld" != yes && break
6280 esac
6282 done
6283 IFS="$lt_save_ifs"
6284 else
6285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6289 LD="$lt_cv_path_LD"
6290 if test -n "$LD"; then
6291 { echo "$as_me:$LINENO: result: $LD" >&5
6292 echo "${ECHO_T}$LD" >&6; }
6293 else
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6297 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6298 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6299 { (exit 1); exit 1; }; }
6300 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6301 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6302 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6306 case `$LD -v 2>&1 </dev/null` in
6307 *GNU* | *'with BFD'*)
6308 lt_cv_prog_gnu_ld=yes
6311 lt_cv_prog_gnu_ld=no
6313 esac
6315 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6316 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6317 with_gnu_ld=$lt_cv_prog_gnu_ld
6319 # note, does not work on FreeBSD
6320 for ac_prog in gawk mawk nawk awk
6322 # Extract the first word of "$ac_prog", so it can be a program name with args.
6323 set dummy $ac_prog; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_prog_AWK+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 if test -n "$AWK"; then
6330 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_AWK="$ac_prog"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6343 done
6344 done
6345 IFS=$as_save_IFS
6349 AWK=$ac_cv_prog_AWK
6350 if test -n "$AWK"; then
6351 { echo "$as_me:$LINENO: result: $AWK" >&5
6352 echo "${ECHO_T}$AWK" >&6; }
6353 else
6354 { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6359 test -n "$AWK" && break
6360 done
6362 # Find a good install program. We prefer a C program (faster),
6363 # so one script is as good as another. But avoid the broken or
6364 # incompatible versions:
6365 # SysV /etc/install, /usr/sbin/install
6366 # SunOS /usr/etc/install
6367 # IRIX /sbin/install
6368 # AIX /bin/install
6369 # AmigaOS /C/install, which installs bootblocks on floppy discs
6370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6373 # OS/2's system install, which has a completely different semantic
6374 # ./install, which can be erroneously created by make from ./install.sh.
6375 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6376 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6377 if test -z "$INSTALL"; then
6378 if test "${ac_cv_path_install+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 # Account for people who put trailing slashes in PATH elements.
6387 case $as_dir/ in
6388 ./ | .// | /cC/* | \
6389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6390 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6391 /usr/ucb/* ) ;;
6393 # OSF1 and SCO ODT 3.0 have their own names for install.
6394 # Don't use installbsd from OSF since it installs stuff as root
6395 # by default.
6396 for ac_prog in ginstall scoinst install; do
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6399 if test $ac_prog = install &&
6400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6401 # AIX install. It has an incompatible calling convention.
6403 elif test $ac_prog = install &&
6404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6405 # program-specific install script used by HP pwplus--don't use.
6407 else
6408 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6409 break 3
6412 done
6413 done
6415 esac
6416 done
6417 IFS=$as_save_IFS
6421 if test "${ac_cv_path_install+set}" = set; then
6422 INSTALL=$ac_cv_path_install
6423 else
6424 # As a last resort, use the slow shell script. Don't cache a
6425 # value for INSTALL within a source directory, because that will
6426 # break other packages using the cache if that directory is
6427 # removed, or if the value is a relative name.
6428 INSTALL=$ac_install_sh
6431 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6432 echo "${ECHO_T}$INSTALL" >&6; }
6434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6435 # It thinks the first close brace ends the variable substitution.
6436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6442 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6443 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6444 LN_S=$as_ln_s
6445 if test "$LN_S" = "ln -s"; then
6446 { echo "$as_me:$LINENO: result: yes" >&5
6447 echo "${ECHO_T}yes" >&6; }
6448 else
6449 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6450 echo "${ECHO_T}no, using $LN_S" >&6; }
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_prog_RANLIB+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 if test -n "$RANLIB"; then
6462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6475 done
6476 done
6477 IFS=$as_save_IFS
6481 RANLIB=$ac_cv_prog_RANLIB
6482 if test -n "$RANLIB"; then
6483 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6484 echo "${ECHO_T}$RANLIB" >&6; }
6485 else
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6492 if test -z "$ac_cv_prog_RANLIB"; then
6493 ac_ct_RANLIB=$RANLIB
6494 # Extract the first word of "ranlib", so it can be a program name with args.
6495 set dummy ranlib; ac_word=$2
6496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501 if test -n "$ac_ct_RANLIB"; then
6502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_RANLIB="ranlib"
6512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6515 done
6516 done
6517 IFS=$as_save_IFS
6521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6522 if test -n "$ac_ct_RANLIB"; then
6523 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6524 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6525 else
6526 { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6530 if test "x$ac_ct_RANLIB" = x; then
6531 RANLIB=":"
6532 else
6533 case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6536 whose name does not start with the host triplet. If you think this
6537 configuration is useful to you, please write to autoconf@gnu.org." >&5
6538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6539 whose name does not start with the host triplet. If you think this
6540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543 RANLIB=$ac_ct_RANLIB
6545 else
6546 RANLIB="$ac_cv_prog_RANLIB"
6549 { echo "$as_me:$LINENO: checking for GNU make" >&5
6550 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6551 if test "${GNU_MAKE+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 GNU_MAKE='Not Found' ;
6555 GNU_MAKE_VERSION_MAJOR=0 ;
6556 GNU_MAKE_VERSION_MINOR=0 ;
6557 for a in make gmake gnumake ; do
6558 if test -z "$a" ; then continue ; fi ;
6559 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
6560 GNU_MAKE=$a ;
6561 GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
6562 GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
6563 break;
6565 done ;
6568 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
6569 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
6570 if test "x$GNU_MAKE" = "xNot Found" ; then
6571 { { echo "$as_me:$LINENO: error: *** Please install GNU make. It is required to build Asterisk!" >&5
6572 echo "$as_me: error: *** Please install GNU make. It is required to build Asterisk!" >&2;}
6573 { (exit 1); exit 1; }; }
6574 exit 1
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}strip; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_STRIP+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 case $STRIP in
6588 [\\/]* | ?:[\\/]*)
6589 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6603 done
6604 done
6605 IFS=$as_save_IFS
6608 esac
6610 STRIP=$ac_cv_path_STRIP
6611 if test -n "$STRIP"; then
6612 { echo "$as_me:$LINENO: result: $STRIP" >&5
6613 echo "${ECHO_T}$STRIP" >&6; }
6614 else
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6621 if test -z "$ac_cv_path_STRIP"; then
6622 ac_pt_STRIP=$STRIP
6623 # Extract the first word of "strip", so it can be a program name with args.
6624 set dummy strip; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_ac_pt_STRIP+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 case $ac_pt_STRIP in
6631 [\\/]* | ?:[\\/]*)
6632 ac_cv_path_ac_pt_STRIP="$ac_pt_STRIP" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_ac_pt_STRIP="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6651 esac
6653 ac_pt_STRIP=$ac_cv_path_ac_pt_STRIP
6654 if test -n "$ac_pt_STRIP"; then
6655 { echo "$as_me:$LINENO: result: $ac_pt_STRIP" >&5
6656 echo "${ECHO_T}$ac_pt_STRIP" >&6; }
6657 else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6662 if test "x$ac_pt_STRIP" = x; then
6663 STRIP=":"
6664 else
6665 case $cross_compiling:$ac_tool_warned in
6666 yes:)
6667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6668 whose name does not start with the host triplet. If you think this
6669 configuration is useful to you, please write to autoconf@gnu.org." >&5
6670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6671 whose name does not start with the host triplet. If you think this
6672 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6673 ac_tool_warned=yes ;;
6674 esac
6675 STRIP=$ac_pt_STRIP
6677 else
6678 STRIP="$ac_cv_path_STRIP"
6681 if test -n "$ac_tool_prefix"; then
6682 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6683 set dummy ${ac_tool_prefix}ar; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_AR+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689 case $AR in
6690 [\\/]* | ?:[\\/]*)
6691 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6705 done
6706 done
6707 IFS=$as_save_IFS
6710 esac
6712 AR=$ac_cv_path_AR
6713 if test -n "$AR"; then
6714 { echo "$as_me:$LINENO: result: $AR" >&5
6715 echo "${ECHO_T}$AR" >&6; }
6716 else
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6723 if test -z "$ac_cv_path_AR"; then
6724 ac_pt_AR=$AR
6725 # Extract the first word of "ar", so it can be a program name with args.
6726 set dummy ar; ac_word=$2
6727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 case $ac_pt_AR in
6733 [\\/]* | ?:[\\/]*)
6734 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6748 done
6749 done
6750 IFS=$as_save_IFS
6753 esac
6755 ac_pt_AR=$ac_cv_path_ac_pt_AR
6756 if test -n "$ac_pt_AR"; then
6757 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6758 echo "${ECHO_T}$ac_pt_AR" >&6; }
6759 else
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6764 if test "x$ac_pt_AR" = x; then
6765 AR=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6770 whose name does not start with the host triplet. If you think this
6771 configuration is useful to you, please write to autoconf@gnu.org." >&5
6772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6773 whose name does not start with the host triplet. If you think this
6774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 AR=$ac_pt_AR
6779 else
6780 AR="$ac_cv_path_AR"
6784 GNU_LD=0
6785 if test "x$with_gnu_ld" = "xyes" ; then
6786 GNU_LD=1
6790 # Extract the first word of "grep", so it can be a program name with args.
6791 set dummy grep; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_GREP+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 case $GREP in
6798 [\\/]* | ?:[\\/]*)
6799 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6813 done
6814 done
6815 IFS=$as_save_IFS
6817 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
6819 esac
6821 GREP=$ac_cv_path_GREP
6822 if test -n "$GREP"; then
6823 { echo "$as_me:$LINENO: result: $GREP" >&5
6824 echo "${ECHO_T}$GREP" >&6; }
6825 else
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6831 # Extract the first word of "find", so it can be a program name with args.
6832 set dummy find; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_FIND+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 case $FIND in
6839 [\\/]* | ?:[\\/]*)
6840 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6854 done
6855 done
6856 IFS=$as_save_IFS
6858 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
6860 esac
6862 FIND=$ac_cv_path_FIND
6863 if test -n "$FIND"; then
6864 { echo "$as_me:$LINENO: result: $FIND" >&5
6865 echo "${ECHO_T}$FIND" >&6; }
6866 else
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 # Extract the first word of "compress", so it can be a program name with args.
6873 set dummy compress; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_COMPRESS+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 case $COMPRESS in
6880 [\\/]* | ?:[\\/]*)
6881 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6899 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
6901 esac
6903 COMPRESS=$ac_cv_path_COMPRESS
6904 if test -n "$COMPRESS"; then
6905 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
6906 echo "${ECHO_T}$COMPRESS" >&6; }
6907 else
6908 { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6913 # Extract the first word of "basename", so it can be a program name with args.
6914 set dummy basename; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_BASENAME+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 case $BASENAME in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6936 done
6937 done
6938 IFS=$as_save_IFS
6940 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
6942 esac
6944 BASENAME=$ac_cv_path_BASENAME
6945 if test -n "$BASENAME"; then
6946 { echo "$as_me:$LINENO: result: $BASENAME" >&5
6947 echo "${ECHO_T}$BASENAME" >&6; }
6948 else
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 # Extract the first word of "id", so it can be a program name with args.
6955 set dummy id; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_ID+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 case $ID in
6962 [\\/]* | ?:[\\/]*)
6963 ac_cv_path_ID="$ID" # Let the user override the test with a path.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_ID="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6981 test -z "$ac_cv_path_ID" && ac_cv_path_ID=":"
6983 esac
6985 ID=$ac_cv_path_ID
6986 if test -n "$ID"; then
6987 { echo "$as_me:$LINENO: result: $ID" >&5
6988 echo "${ECHO_T}$ID" >&6; }
6989 else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6995 # Extract the first word of "dirname", so it can be a program name with args.
6996 set dummy dirname; ac_word=$2
6997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999 if test "${ac_cv_path_DIRNAME+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002 case $DIRNAME in
7003 [\\/]* | ?:[\\/]*)
7004 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7018 done
7019 done
7020 IFS=$as_save_IFS
7022 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
7024 esac
7026 DIRNAME=$ac_cv_path_DIRNAME
7027 if test -n "$DIRNAME"; then
7028 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
7029 echo "${ECHO_T}$DIRNAME" >&6; }
7030 else
7031 { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7036 # Extract the first word of "sh", so it can be a program name with args.
7037 set dummy sh; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_SHELL+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043 case $SHELL in
7044 [\\/]* | ?:[\\/]*)
7045 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7063 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
7065 esac
7067 SHELL=$ac_cv_path_SHELL
7068 if test -n "$SHELL"; then
7069 { echo "$as_me:$LINENO: result: $SHELL" >&5
7070 echo "${ECHO_T}$SHELL" >&6; }
7071 else
7072 { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7077 # Extract the first word of "ln", so it can be a program name with args.
7078 set dummy ln; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_LN+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 case $LN in
7085 [\\/]* | ?:[\\/]*)
7086 ac_cv_path_LN="$LN" # Let the user override the test with a path.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7100 done
7101 done
7102 IFS=$as_save_IFS
7104 test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
7106 esac
7108 LN=$ac_cv_path_LN
7109 if test -n "$LN"; then
7110 { echo "$as_me:$LINENO: result: $LN" >&5
7111 echo "${ECHO_T}$LN" >&6; }
7112 else
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 # Extract the first word of "dot", so it can be a program name with args.
7119 set dummy dot; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_DOT+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 case $DOT in
7126 [\\/]* | ?:[\\/]*)
7127 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7141 done
7142 done
7143 IFS=$as_save_IFS
7145 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
7147 esac
7149 DOT=$ac_cv_path_DOT
7150 if test -n "$DOT"; then
7151 { echo "$as_me:$LINENO: result: $DOT" >&5
7152 echo "${ECHO_T}$DOT" >&6; }
7153 else
7154 { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; }
7159 # Extract the first word of "wget", so it can be a program name with args.
7160 set dummy wget; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_WGET+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 case $WGET in
7167 [\\/]* | ?:[\\/]*)
7168 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7182 done
7183 done
7184 IFS=$as_save_IFS
7186 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
7188 esac
7190 WGET=$ac_cv_path_WGET
7191 if test -n "$WGET"; then
7192 { echo "$as_me:$LINENO: result: $WGET" >&5
7193 echo "${ECHO_T}$WGET" >&6; }
7194 else
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 # Extract the first word of "rubber", so it can be a program name with args.
7201 set dummy rubber; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_RUBBER+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 case $RUBBER in
7208 [\\/]* | ?:[\\/]*)
7209 ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7223 done
7224 done
7225 IFS=$as_save_IFS
7227 test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
7229 esac
7231 RUBBER=$ac_cv_path_RUBBER
7232 if test -n "$RUBBER"; then
7233 { echo "$as_me:$LINENO: result: $RUBBER" >&5
7234 echo "${ECHO_T}$RUBBER" >&6; }
7235 else
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 # Extract the first word of "kpsewhich", so it can be a program name with args.
7242 set dummy kpsewhich; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_KPATHSEA+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 case $KPATHSEA in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7266 IFS=$as_save_IFS
7268 test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
7270 esac
7272 KPATHSEA=$ac_cv_path_KPATHSEA
7273 if test -n "$KPATHSEA"; then
7274 { echo "$as_me:$LINENO: result: $KPATHSEA" >&5
7275 echo "${ECHO_T}$KPATHSEA" >&6; }
7276 else
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 if test "${WGET}" != ":" ; then
7283 DOWNLOAD=${WGET}
7284 else
7285 # Extract the first word of "fetch", so it can be a program name with args.
7286 set dummy fetch; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_FETCH+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 case $FETCH in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
7305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7308 done
7309 done
7310 IFS=$as_save_IFS
7312 test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
7314 esac
7316 FETCH=$ac_cv_path_FETCH
7317 if test -n "$FETCH"; then
7318 { echo "$as_me:$LINENO: result: $FETCH" >&5
7319 echo "${ECHO_T}$FETCH" >&6; }
7320 else
7321 { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7326 DOWNLOAD=${FETCH}
7330 if test -n "$ac_tool_prefix"; then
7331 # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}soxmix; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_prog_SOXMIX+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 if test -n "$SOXMIX"; then
7339 ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7352 done
7353 done
7354 IFS=$as_save_IFS
7358 SOXMIX=$ac_cv_prog_SOXMIX
7359 if test -n "$SOXMIX"; then
7360 { echo "$as_me:$LINENO: result: $SOXMIX" >&5
7361 echo "${ECHO_T}$SOXMIX" >&6; }
7362 else
7363 { echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6; }
7369 if test -z "$ac_cv_prog_SOXMIX"; then
7370 ac_ct_SOXMIX=$SOXMIX
7371 # Extract the first word of "soxmix", so it can be a program name with args.
7372 set dummy soxmix; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_prog_ac_ct_SOXMIX+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 if test -n "$ac_ct_SOXMIX"; then
7379 ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_prog_ac_ct_SOXMIX="soxmix"
7389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7392 done
7393 done
7394 IFS=$as_save_IFS
7398 ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
7399 if test -n "$ac_ct_SOXMIX"; then
7400 { echo "$as_me:$LINENO: result: $ac_ct_SOXMIX" >&5
7401 echo "${ECHO_T}$ac_ct_SOXMIX" >&6; }
7402 else
7403 { echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6; }
7407 if test "x$ac_ct_SOXMIX" = x; then
7408 SOXMIX=":"
7409 else
7410 case $cross_compiling:$ac_tool_warned in
7411 yes:)
7412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7413 whose name does not start with the host triplet. If you think this
7414 configuration is useful to you, please write to autoconf@gnu.org." >&5
7415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7416 whose name does not start with the host triplet. If you think this
7417 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420 SOXMIX=$ac_ct_SOXMIX
7422 else
7423 SOXMIX="$ac_cv_prog_SOXMIX"
7426 if test "${SOXMIX}" != ":" ; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_SOXMIX 1
7430 _ACEOF
7437 ac_ext=c
7438 ac_cpp='$CPP $CPPFLAGS'
7439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443 acx_pthread_ok=no
7445 # We used to check for pthread.h first, but this fails if pthread.h
7446 # requires special compiler flags (e.g. on True64 or Sequent).
7447 # It gets checked for in the link test anyway.
7449 # First of all, check if the user has set any of the PTHREAD_LIBS,
7450 # etcetera environment variables, and if threads linking works using
7451 # them:
7452 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7453 save_CFLAGS="$CFLAGS"
7454 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7455 save_LIBS="$LIBS"
7456 LIBS="$PTHREAD_LIBS $LIBS"
7457 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7458 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7466 /* Override any GCC internal prototype to avoid an error.
7467 Use char because int might match the return type of a GCC
7468 builtin and then its argument prototype would still apply. */
7469 #ifdef __cplusplus
7470 extern "C"
7471 #endif
7472 char pthread_join ();
7474 main ()
7476 return pthread_join ();
7478 return 0;
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (ac_try="$ac_link"
7483 case "(($ac_try" in
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7486 esac
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_link") 2>conftest.er1
7489 ac_status=$?
7490 grep -v '^ *+' conftest.er1 >conftest.err
7491 rm -f conftest.er1
7492 cat conftest.err >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest$ac_exeext &&
7498 $as_test_x conftest$ac_exeext; then
7499 acx_pthread_ok=yes
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7508 conftest$ac_exeext conftest.$ac_ext
7509 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7510 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7511 if test x"$acx_pthread_ok" = xno; then
7512 PTHREAD_LIBS=""
7513 PTHREAD_CFLAGS=""
7515 LIBS="$save_LIBS"
7516 CFLAGS="$save_CFLAGS"
7519 # We must check for the threads library under a number of different
7520 # names; the ordering is very important because some systems
7521 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7522 # libraries is broken (non-POSIX).
7524 # Create a list of thread flags to try. Items starting with a "-" are
7525 # C compiler flags, and other items are library names, except for "none"
7526 # which indicates that we try without any flags at all, and "pthread-config"
7527 # which is a program returning the flags for the Pth emulation library.
7529 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7531 # The ordering *is* (sometimes) important. Some notes on the
7532 # individual items follow:
7534 # pthreads: AIX (must check this before -lpthread)
7535 # none: in case threads are in libc; should be tried before -Kthread and
7536 # other compiler flags to prevent continual compiler warnings
7537 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7538 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7539 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7540 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7541 # -pthreads: Solaris/gcc
7542 # -mthreads: Mingw32/gcc, Lynx/gcc
7543 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7544 # doesn't hurt to check since this sometimes defines pthreads too;
7545 # also defines -D_REENTRANT)
7546 # ... -mt is also the pthreads flag for HP/aCC
7547 # pthread: Linux, etcetera
7548 # --thread-safe: KAI C++
7549 # pthread-config: use pthread-config program (for GNU Pth library)
7551 case "${host_cpu}-${host_os}" in
7552 *solaris*)
7554 # On Solaris (at least, for some versions), libc contains stubbed
7555 # (non-functional) versions of the pthreads routines, so link-based
7556 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7557 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7558 # a function called by this macro, so we could check for that, but
7559 # who knows whether they'll stub that too in a future libc.) So,
7560 # we'll just look for -pthreads and -lpthread first:
7562 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7564 esac
7566 if test x"$acx_pthread_ok" = xno; then
7567 for flag in $acx_pthread_flags; do
7569 case $flag in
7570 none)
7571 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7572 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
7576 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7577 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
7578 PTHREAD_CFLAGS="$flag"
7581 pthread-config)
7582 # Extract the first word of "pthread-config", so it can be a program name with args.
7583 set dummy pthread-config; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 if test -n "$acx_pthread_config"; then
7590 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_prog_acx_pthread_config="yes"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7603 done
7604 done
7605 IFS=$as_save_IFS
7607 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7610 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7611 if test -n "$acx_pthread_config"; then
7612 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7613 echo "${ECHO_T}$acx_pthread_config" >&6; }
7614 else
7615 { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7620 if test x"$acx_pthread_config" = xno; then continue; fi
7621 PTHREAD_CFLAGS="`pthread-config --cflags`"
7622 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7626 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7627 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
7628 PTHREAD_LIBS="-l$flag"
7630 esac
7632 save_LIBS="$LIBS"
7633 save_CFLAGS="$CFLAGS"
7634 LIBS="$PTHREAD_LIBS $LIBS"
7635 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7637 # Check for various functions. We must include pthread.h,
7638 # since some functions may be macros. (On the Sequent, we
7639 # need a special flag -Kthread to make this header compile.)
7640 # We check for pthread_join because it is in -lpthread on IRIX
7641 # while pthread_create is in libc. We check for pthread_attr_init
7642 # due to DEC craziness with -lpthreads. We check for
7643 # pthread_cleanup_push because it is one of the few pthread
7644 # functions on Solaris that doesn't have a non-functional libc stub.
7645 # We try pthread_create on general principles.
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 #include <pthread.h>
7654 main ()
7656 pthread_t th; pthread_join(th, 0);
7657 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7658 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7660 return 0;
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (ac_try="$ac_link"
7665 case "(($ac_try" in
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7668 esac
7669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670 (eval "$ac_link") 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest$ac_exeext &&
7680 $as_test_x conftest$ac_exeext; then
7681 acx_pthread_ok=yes
7682 else
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7690 conftest$ac_exeext conftest.$ac_ext
7692 LIBS="$save_LIBS"
7693 CFLAGS="$save_CFLAGS"
7695 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7696 echo "${ECHO_T}$acx_pthread_ok" >&6; }
7697 if test "x$acx_pthread_ok" = xyes; then
7698 break;
7701 PTHREAD_LIBS=""
7702 PTHREAD_CFLAGS=""
7703 done
7706 # Various other checks:
7707 if test "x$acx_pthread_ok" = xyes; then
7708 save_LIBS="$LIBS"
7709 LIBS="$PTHREAD_LIBS $LIBS"
7710 save_CFLAGS="$CFLAGS"
7711 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7713 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7714 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7715 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
7716 attr_name=unknown
7717 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 #include <pthread.h>
7726 main ()
7728 int attr=$attr; return attr;
7730 return 0;
7732 _ACEOF
7733 rm -f conftest.$ac_objext conftest$ac_exeext
7734 if { (ac_try="$ac_link"
7735 case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738 esac
7739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740 (eval "$ac_link") 2>conftest.er1
7741 ac_status=$?
7742 grep -v '^ *+' conftest.er1 >conftest.err
7743 rm -f conftest.er1
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest$ac_exeext &&
7750 $as_test_x conftest$ac_exeext; then
7751 attr_name=$attr; break
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7760 conftest$ac_exeext conftest.$ac_ext
7761 done
7762 { echo "$as_me:$LINENO: result: $attr_name" >&5
7763 echo "${ECHO_T}$attr_name" >&6; }
7764 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7766 cat >>confdefs.h <<_ACEOF
7767 #define PTHREAD_CREATE_JOINABLE $attr_name
7768 _ACEOF
7772 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7773 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
7774 flag=no
7775 case "${host_cpu}-${host_os}" in
7776 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7777 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7778 esac
7779 { echo "$as_me:$LINENO: result: ${flag}" >&5
7780 echo "${ECHO_T}${flag}" >&6; }
7781 if test "x$flag" != xno; then
7782 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7785 LIBS="$save_LIBS"
7786 CFLAGS="$save_CFLAGS"
7788 # More AIX lossage: must compile with xlc_r or cc_r
7789 if test x"$GCC" != xyes; then
7790 for ac_prog in xlc_r cc_r
7792 # Extract the first word of "$ac_prog", so it can be a program name with args.
7793 set dummy $ac_prog; ac_word=$2
7794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799 if test -n "$PTHREAD_CC"; then
7800 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_PTHREAD_CC="$ac_prog"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7813 done
7814 done
7815 IFS=$as_save_IFS
7819 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7820 if test -n "$PTHREAD_CC"; then
7821 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7822 echo "${ECHO_T}$PTHREAD_CC" >&6; }
7823 else
7824 { echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6; }
7829 test -n "$PTHREAD_CC" && break
7830 done
7831 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7833 else
7834 PTHREAD_CC=$CC
7836 else
7837 PTHREAD_CC="$CC"
7844 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7845 if test x"$acx_pthread_ok" = xyes; then
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_PTHREAD 1
7849 _ACEOF
7852 else
7853 acx_pthread_ok=no
7856 ac_ext=c
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864 ac_ext=c
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871 # Check whether --enable-dev-mode was given.
7872 if test "${enable_dev_mode+set}" = set; then
7873 enableval=$enable_dev_mode; case "${enableval}" in
7874 y|ye|yes) AST_DEVMODE=yes ;;
7875 n|no) AST_DEVMODE=no ;;
7876 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
7877 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
7878 { (exit 1); exit 1; }; } ;;
7879 esac
7884 # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
7885 # various packages.
7886 # $1 is the prefix for the variables in makeopts and autoconfig.h
7887 # $2 is the short comment, $4 is the long comment
7888 # $3 is the name used in --with- or --without- flags for configure.
7890 # Package option names should be in alphabetical order
7891 # by the --with option name (the third field),
7892 # to make things easier for the users.
7895 ALSA_DESCRIP="Advanced Linux Sound Architecture"
7896 ALSA_OPTION="asound"
7898 # Check whether --with-asound was given.
7899 if test "${with_asound+set}" = set; then
7900 withval=$with_asound;
7901 case ${withval} in
7902 n|no)
7903 USE_ALSA=no
7905 y|ye|yes)
7906 ac_mandatory_list="${ac_mandatory_list} ALSA"
7909 ALSA_DIR="${withval}"
7910 ac_mandatory_list="${ac_mandatory_list} ALSA"
7912 esac
7916 PBX_ALSA=0
7923 # BKTR is used for backtrace support on platforms that do not
7924 # have it natively.
7926 BKTR_DESCRIP="Stack Backtrace support"
7927 BKTR_OPTION="execinfo"
7929 # Check whether --with-execinfo was given.
7930 if test "${with_execinfo+set}" = set; then
7931 withval=$with_execinfo;
7932 case ${withval} in
7933 n|no)
7934 USE_BKTR=no
7936 y|ye|yes)
7937 ac_mandatory_list="${ac_mandatory_list} BKTR"
7940 BKTR_DIR="${withval}"
7941 ac_mandatory_list="${ac_mandatory_list} BKTR"
7943 esac
7947 PBX_BKTR=0
7954 CAP_DESCRIP="POSIX 1.e capabilities"
7955 CAP_OPTION="cap"
7957 # Check whether --with-cap was given.
7958 if test "${with_cap+set}" = set; then
7959 withval=$with_cap;
7960 case ${withval} in
7961 n|no)
7962 USE_CAP=no
7964 y|ye|yes)
7965 ac_mandatory_list="${ac_mandatory_list} CAP"
7968 CAP_DIR="${withval}"
7969 ac_mandatory_list="${ac_mandatory_list} CAP"
7971 esac
7975 PBX_CAP=0
7982 CURL_DESCRIP="cURL"
7983 CURL_OPTION="curl"
7985 # Check whether --with-curl was given.
7986 if test "${with_curl+set}" = set; then
7987 withval=$with_curl;
7988 case ${withval} in
7989 n|no)
7990 USE_CURL=no
7992 y|ye|yes)
7993 ac_mandatory_list="${ac_mandatory_list} CURL"
7996 CURL_DIR="${withval}"
7997 ac_mandatory_list="${ac_mandatory_list} CURL"
7999 esac
8003 PBX_CURL=0
8010 CURSES_DESCRIP="curses"
8011 CURSES_OPTION="curses"
8013 # Check whether --with-curses was given.
8014 if test "${with_curses+set}" = set; then
8015 withval=$with_curses;
8016 case ${withval} in
8017 n|no)
8018 USE_CURSES=no
8020 y|ye|yes)
8021 ac_mandatory_list="${ac_mandatory_list} CURSES"
8024 CURSES_DIR="${withval}"
8025 ac_mandatory_list="${ac_mandatory_list} CURSES"
8027 esac
8031 PBX_CURSES=0
8038 CRYPTO_DESCRIP="OpenSSL Cryptography support"
8039 CRYPTO_OPTION="crypto"
8041 # Check whether --with-crypto was given.
8042 if test "${with_crypto+set}" = set; then
8043 withval=$with_crypto;
8044 case ${withval} in
8045 n|no)
8046 USE_CRYPTO=no
8048 y|ye|yes)
8049 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8052 CRYPTO_DIR="${withval}"
8053 ac_mandatory_list="${ac_mandatory_list} CRYPTO"
8055 esac
8059 PBX_CRYPTO=0
8066 DAHDI_DESCRIP="DAHDI"
8067 DAHDI_OPTION="dahdi"
8069 # Check whether --with-dahdi was given.
8070 if test "${with_dahdi+set}" = set; then
8071 withval=$with_dahdi;
8072 case ${withval} in
8073 n|no)
8074 USE_DAHDI=no
8076 y|ye|yes)
8077 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8080 DAHDI_DIR="${withval}"
8081 ac_mandatory_list="${ac_mandatory_list} DAHDI"
8083 esac
8087 PBX_DAHDI=0
8094 FFMPEG_DESCRIP="Ffmpeg and avcodec library"
8095 FFMPEG_OPTION="avcodec"
8097 # Check whether --with-avcodec was given.
8098 if test "${with_avcodec+set}" = set; then
8099 withval=$with_avcodec;
8100 case ${withval} in
8101 n|no)
8102 USE_FFMPEG=no
8104 y|ye|yes)
8105 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8108 FFMPEG_DIR="${withval}"
8109 ac_mandatory_list="${ac_mandatory_list} FFMPEG"
8111 esac
8115 PBX_FFMPEG=0
8122 GSM_DESCRIP="External GSM library"
8123 GSM_OPTION="gsm"
8125 # Check whether --with-gsm was given.
8126 if test "${with_gsm+set}" = set; then
8127 withval=$with_gsm;
8128 case ${withval} in
8129 n|no)
8130 USE_GSM=no
8132 y|ye|yes)
8133 ac_mandatory_list="${ac_mandatory_list} GSM"
8136 GSM_DIR="${withval}"
8137 ac_mandatory_list="${ac_mandatory_list} GSM"
8139 esac
8143 PBX_GSM=0
8150 GTK_DESCRIP="gtk libraries"
8151 GTK_OPTION="gtk"
8153 # Check whether --with-gtk was given.
8154 if test "${with_gtk+set}" = set; then
8155 withval=$with_gtk;
8156 case ${withval} in
8157 n|no)
8158 USE_GTK=no
8160 y|ye|yes)
8161 ac_mandatory_list="${ac_mandatory_list} GTK"
8164 GTK_DIR="${withval}"
8165 ac_mandatory_list="${ac_mandatory_list} GTK"
8167 esac
8171 PBX_GTK=0
8178 GTK2_DESCRIP="gtk2 libraries"
8179 GTK2_OPTION="gtk2"
8181 # Check whether --with-gtk2 was given.
8182 if test "${with_gtk2+set}" = set; then
8183 withval=$with_gtk2;
8184 case ${withval} in
8185 n|no)
8186 USE_GTK2=no
8188 y|ye|yes)
8189 ac_mandatory_list="${ac_mandatory_list} GTK2"
8192 GTK2_DIR="${withval}"
8193 ac_mandatory_list="${ac_mandatory_list} GTK2"
8195 esac
8199 PBX_GTK2=0
8206 GMIME_DESCRIP="GMime library"
8207 GMIME_OPTION="gmime"
8209 # Check whether --with-gmime was given.
8210 if test "${with_gmime+set}" = set; then
8211 withval=$with_gmime;
8212 case ${withval} in
8213 n|no)
8214 USE_GMIME=no
8216 y|ye|yes)
8217 ac_mandatory_list="${ac_mandatory_list} GMIME"
8220 GMIME_DIR="${withval}"
8221 ac_mandatory_list="${ac_mandatory_list} GMIME"
8223 esac
8227 PBX_GMIME=0
8234 ICONV_DESCRIP="Iconv Library"
8235 ICONV_OPTION="iconv"
8237 # Check whether --with-iconv was given.
8238 if test "${with_iconv+set}" = set; then
8239 withval=$with_iconv;
8240 case ${withval} in
8241 n|no)
8242 USE_ICONV=no
8244 y|ye|yes)
8245 ac_mandatory_list="${ac_mandatory_list} ICONV"
8248 ICONV_DIR="${withval}"
8249 ac_mandatory_list="${ac_mandatory_list} ICONV"
8251 esac
8255 PBX_ICONV=0
8262 IKSEMEL_DESCRIP="Iksemel Jabber Library"
8263 IKSEMEL_OPTION="iksemel"
8265 # Check whether --with-iksemel was given.
8266 if test "${with_iksemel+set}" = set; then
8267 withval=$with_iksemel;
8268 case ${withval} in
8269 n|no)
8270 USE_IKSEMEL=no
8272 y|ye|yes)
8273 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8276 IKSEMEL_DIR="${withval}"
8277 ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
8279 esac
8283 PBX_IKSEMEL=0
8290 IMAP_TK_DESCRIP="UW IMAP Toolkit"
8291 IMAP_TK_OPTION="imap"
8293 # Check whether --with-imap was given.
8294 if test "${with_imap+set}" = set; then
8295 withval=$with_imap;
8296 case ${withval} in
8297 n|no)
8298 USE_IMAP_TK=no
8300 y|ye|yes)
8301 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8304 IMAP_TK_DIR="${withval}"
8305 ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
8307 esac
8311 PBX_IMAP_TK=0
8318 ISDNNET_DESCRIP="ISDN4Linux Library"
8319 ISDNNET_OPTION="isdnnet"
8321 # Check whether --with-isdnnet was given.
8322 if test "${with_isdnnet+set}" = set; then
8323 withval=$with_isdnnet;
8324 case ${withval} in
8325 n|no)
8326 USE_ISDNNET=no
8328 y|ye|yes)
8329 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8332 ISDNNET_DIR="${withval}"
8333 ac_mandatory_list="${ac_mandatory_list} ISDNNET"
8335 esac
8339 PBX_ISDNNET=0
8346 JACK_DESCRIP="Jack Audio Connection Kit"
8347 JACK_OPTION="jack"
8349 # Check whether --with-jack was given.
8350 if test "${with_jack+set}" = set; then
8351 withval=$with_jack;
8352 case ${withval} in
8353 n|no)
8354 USE_JACK=no
8356 y|ye|yes)
8357 ac_mandatory_list="${ac_mandatory_list} JACK"
8360 JACK_DIR="${withval}"
8361 ac_mandatory_list="${ac_mandatory_list} JACK"
8363 esac
8367 PBX_JACK=0
8374 LDAP_DESCRIP="OpenLDAP"
8375 LDAP_OPTION="ldap"
8377 # Check whether --with-ldap was given.
8378 if test "${with_ldap+set}" = set; then
8379 withval=$with_ldap;
8380 case ${withval} in
8381 n|no)
8382 USE_LDAP=no
8384 y|ye|yes)
8385 ac_mandatory_list="${ac_mandatory_list} LDAP"
8388 LDAP_DIR="${withval}"
8389 ac_mandatory_list="${ac_mandatory_list} LDAP"
8391 esac
8395 PBX_LDAP=0
8402 LTDL_DESCRIP="libtool"
8403 LTDL_OPTION="ltdl"
8405 # Check whether --with-ltdl was given.
8406 if test "${with_ltdl+set}" = set; then
8407 withval=$with_ltdl;
8408 case ${withval} in
8409 n|no)
8410 USE_LTDL=no
8412 y|ye|yes)
8413 ac_mandatory_list="${ac_mandatory_list} LTDL"
8416 LTDL_DIR="${withval}"
8417 ac_mandatory_list="${ac_mandatory_list} LTDL"
8419 esac
8423 PBX_LTDL=0
8430 LUA_DESCRIP="Lua"
8431 LUA_OPTION="lua"
8433 # Check whether --with-lua was given.
8434 if test "${with_lua+set}" = set; then
8435 withval=$with_lua;
8436 case ${withval} in
8437 n|no)
8438 USE_LUA=no
8440 y|ye|yes)
8441 ac_mandatory_list="${ac_mandatory_list} LUA"
8444 LUA_DIR="${withval}"
8445 ac_mandatory_list="${ac_mandatory_list} LUA"
8447 esac
8451 PBX_LUA=0
8458 MISDN_DESCRIP="mISDN User Library"
8459 MISDN_OPTION="misdn"
8461 # Check whether --with-misdn was given.
8462 if test "${with_misdn+set}" = set; then
8463 withval=$with_misdn;
8464 case ${withval} in
8465 n|no)
8466 USE_MISDN=no
8468 y|ye|yes)
8469 ac_mandatory_list="${ac_mandatory_list} MISDN"
8472 MISDN_DIR="${withval}"
8473 ac_mandatory_list="${ac_mandatory_list} MISDN"
8475 esac
8479 PBX_MISDN=0
8486 NBS_DESCRIP="Network Broadcast Sound"
8487 NBS_OPTION="nbs"
8489 # Check whether --with-nbs was given.
8490 if test "${with_nbs+set}" = set; then
8491 withval=$with_nbs;
8492 case ${withval} in
8493 n|no)
8494 USE_NBS=no
8496 y|ye|yes)
8497 ac_mandatory_list="${ac_mandatory_list} NBS"
8500 NBS_DIR="${withval}"
8501 ac_mandatory_list="${ac_mandatory_list} NBS"
8503 esac
8507 PBX_NBS=0
8514 NCURSES_DESCRIP="ncurses"
8515 NCURSES_OPTION="ncurses"
8517 # Check whether --with-ncurses was given.
8518 if test "${with_ncurses+set}" = set; then
8519 withval=$with_ncurses;
8520 case ${withval} in
8521 n|no)
8522 USE_NCURSES=no
8524 y|ye|yes)
8525 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8528 NCURSES_DIR="${withval}"
8529 ac_mandatory_list="${ac_mandatory_list} NCURSES"
8531 esac
8535 PBX_NCURSES=0
8542 NETSNMP_DESCRIP="Net-SNMP"
8543 NETSNMP_OPTION="netsnmp"
8545 # Check whether --with-netsnmp was given.
8546 if test "${with_netsnmp+set}" = set; then
8547 withval=$with_netsnmp;
8548 case ${withval} in
8549 n|no)
8550 USE_NETSNMP=no
8552 y|ye|yes)
8553 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8556 NETSNMP_DIR="${withval}"
8557 ac_mandatory_list="${ac_mandatory_list} NETSNMP"
8559 esac
8563 PBX_NETSNMP=0
8570 NEWT_DESCRIP="newt"
8571 NEWT_OPTION="newt"
8573 # Check whether --with-newt was given.
8574 if test "${with_newt+set}" = set; then
8575 withval=$with_newt;
8576 case ${withval} in
8577 n|no)
8578 USE_NEWT=no
8580 y|ye|yes)
8581 ac_mandatory_list="${ac_mandatory_list} NEWT"
8584 NEWT_DIR="${withval}"
8585 ac_mandatory_list="${ac_mandatory_list} NEWT"
8587 esac
8591 PBX_NEWT=0
8598 UNIXODBC_DESCRIP="unixODBC"
8599 UNIXODBC_OPTION="odbc"
8601 # Check whether --with-odbc was given.
8602 if test "${with_odbc+set}" = set; then
8603 withval=$with_odbc;
8604 case ${withval} in
8605 n|no)
8606 USE_UNIXODBC=no
8608 y|ye|yes)
8609 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8612 UNIXODBC_DIR="${withval}"
8613 ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
8615 esac
8619 PBX_UNIXODBC=0
8626 OGG_DESCRIP="OGG"
8627 OGG_OPTION="ogg"
8629 # Check whether --with-ogg was given.
8630 if test "${with_ogg+set}" = set; then
8631 withval=$with_ogg;
8632 case ${withval} in
8633 n|no)
8634 USE_OGG=no
8636 y|ye|yes)
8637 ac_mandatory_list="${ac_mandatory_list} OGG"
8640 OGG_DIR="${withval}"
8641 ac_mandatory_list="${ac_mandatory_list} OGG"
8643 esac
8647 PBX_OGG=0
8654 OSPTK_DESCRIP="OSP Toolkit"
8655 OSPTK_OPTION="osptk"
8657 # Check whether --with-osptk was given.
8658 if test "${with_osptk+set}" = set; then
8659 withval=$with_osptk;
8660 case ${withval} in
8661 n|no)
8662 USE_OSPTK=no
8664 y|ye|yes)
8665 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8668 OSPTK_DIR="${withval}"
8669 ac_mandatory_list="${ac_mandatory_list} OSPTK"
8671 esac
8675 PBX_OSPTK=0
8682 OSS_DESCRIP="Open Sound System"
8683 OSS_OPTION="oss"
8685 # Check whether --with-oss was given.
8686 if test "${with_oss+set}" = set; then
8687 withval=$with_oss;
8688 case ${withval} in
8689 n|no)
8690 USE_OSS=no
8692 y|ye|yes)
8693 ac_mandatory_list="${ac_mandatory_list} OSS"
8696 OSS_DIR="${withval}"
8697 ac_mandatory_list="${ac_mandatory_list} OSS"
8699 esac
8703 PBX_OSS=0
8710 PGSQL_DESCRIP="PostgreSQL"
8711 PGSQL_OPTION="postgres"
8713 # Check whether --with-postgres was given.
8714 if test "${with_postgres+set}" = set; then
8715 withval=$with_postgres;
8716 case ${withval} in
8717 n|no)
8718 USE_PGSQL=no
8720 y|ye|yes)
8721 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8724 PGSQL_DIR="${withval}"
8725 ac_mandatory_list="${ac_mandatory_list} PGSQL"
8727 esac
8731 PBX_PGSQL=0
8738 POPT_DESCRIP="popt"
8739 POPT_OPTION="popt"
8741 # Check whether --with-popt was given.
8742 if test "${with_popt+set}" = set; then
8743 withval=$with_popt;
8744 case ${withval} in
8745 n|no)
8746 USE_POPT=no
8748 y|ye|yes)
8749 ac_mandatory_list="${ac_mandatory_list} POPT"
8752 POPT_DIR="${withval}"
8753 ac_mandatory_list="${ac_mandatory_list} POPT"
8755 esac
8759 PBX_POPT=0
8766 PORTAUDIO_DESCRIP="PortAudio"
8767 PORTAUDIO_OPTION="portaudio"
8769 # Check whether --with-portaudio was given.
8770 if test "${with_portaudio+set}" = set; then
8771 withval=$with_portaudio;
8772 case ${withval} in
8773 n|no)
8774 USE_PORTAUDIO=no
8776 y|ye|yes)
8777 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8780 PORTAUDIO_DIR="${withval}"
8781 ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
8783 esac
8787 PBX_PORTAUDIO=0
8794 PRI_DESCRIP="ISDN PRI"
8795 PRI_OPTION="pri"
8797 # Check whether --with-pri was given.
8798 if test "${with_pri+set}" = set; then
8799 withval=$with_pri;
8800 case ${withval} in
8801 n|no)
8802 USE_PRI=no
8804 y|ye|yes)
8805 ac_mandatory_list="${ac_mandatory_list} PRI"
8808 PRI_DIR="${withval}"
8809 ac_mandatory_list="${ac_mandatory_list} PRI"
8811 esac
8815 PBX_PRI=0
8822 SPANDSP_DESCRIP="SPANDSP"
8823 SPANDSP_OPTION="spandsp"
8825 # Check whether --with-spandsp was given.
8826 if test "${with_spandsp+set}" = set; then
8827 withval=$with_spandsp;
8828 case ${withval} in
8829 n|no)
8830 USE_SPANDSP=no
8832 y|ye|yes)
8833 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8836 SPANDSP_DIR="${withval}"
8837 ac_mandatory_list="${ac_mandatory_list} SPANDSP"
8839 esac
8843 PBX_SPANDSP=0
8850 SS7_DESCRIP="ISDN SS7"
8851 SS7_OPTION="ss7"
8853 # Check whether --with-ss7 was given.
8854 if test "${with_ss7+set}" = set; then
8855 withval=$with_ss7;
8856 case ${withval} in
8857 n|no)
8858 USE_SS7=no
8860 y|ye|yes)
8861 ac_mandatory_list="${ac_mandatory_list} SS7"
8864 SS7_DIR="${withval}"
8865 ac_mandatory_list="${ac_mandatory_list} SS7"
8867 esac
8871 PBX_SS7=0
8878 PWLIB_DESCRIP="PWlib"
8879 PWLIB_OPTION="pwlib"
8881 # Check whether --with-pwlib was given.
8882 if test "${with_pwlib+set}" = set; then
8883 withval=$with_pwlib;
8884 case ${withval} in
8885 n|no)
8886 USE_PWLIB=no
8888 y|ye|yes)
8889 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8892 PWLIB_DIR="${withval}"
8893 ac_mandatory_list="${ac_mandatory_list} PWLIB"
8895 esac
8899 PBX_PWLIB=0
8906 OPENH323_DESCRIP="OpenH323"
8907 OPENH323_OPTION="h323"
8909 # Check whether --with-h323 was given.
8910 if test "${with_h323+set}" = set; then
8911 withval=$with_h323;
8912 case ${withval} in
8913 n|no)
8914 USE_OPENH323=no
8916 y|ye|yes)
8917 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8920 OPENH323_DIR="${withval}"
8921 ac_mandatory_list="${ac_mandatory_list} OPENH323"
8923 esac
8927 PBX_OPENH323=0
8934 RADIUS_DESCRIP="Radius Client"
8935 RADIUS_OPTION="radius"
8937 # Check whether --with-radius was given.
8938 if test "${with_radius+set}" = set; then
8939 withval=$with_radius;
8940 case ${withval} in
8941 n|no)
8942 USE_RADIUS=no
8944 y|ye|yes)
8945 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8948 RADIUS_DIR="${withval}"
8949 ac_mandatory_list="${ac_mandatory_list} RADIUS"
8951 esac
8955 PBX_RADIUS=0
8962 SDL_DESCRIP="Sdl"
8963 SDL_OPTION="sdl"
8965 # Check whether --with-sdl was given.
8966 if test "${with_sdl+set}" = set; then
8967 withval=$with_sdl;
8968 case ${withval} in
8969 n|no)
8970 USE_SDL=no
8972 y|ye|yes)
8973 ac_mandatory_list="${ac_mandatory_list} SDL"
8976 SDL_DIR="${withval}"
8977 ac_mandatory_list="${ac_mandatory_list} SDL"
8979 esac
8983 PBX_SDL=0
8990 SDL_IMAGE_DESCRIP="Sdl Image library"
8991 SDL_IMAGE_OPTION="SDL_image"
8993 # Check whether --with-SDL_image was given.
8994 if test "${with_SDL_image+set}" = set; then
8995 withval=$with_SDL_image;
8996 case ${withval} in
8997 n|no)
8998 USE_SDL_IMAGE=no
9000 y|ye|yes)
9001 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
9004 SDL_IMAGE_DIR="${withval}"
9005 ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
9007 esac
9011 PBX_SDL_IMAGE=0
9018 SACLM_DESCRIP="SAForum AIS CLM"
9019 SACLM_OPTION="SaClm"
9021 # Check whether --with-SaClm was given.
9022 if test "${with_SaClm+set}" = set; then
9023 withval=$with_SaClm;
9024 case ${withval} in
9025 n|no)
9026 USE_SACLM=no
9028 y|ye|yes)
9029 ac_mandatory_list="${ac_mandatory_list} SACLM"
9032 SACLM_DIR="${withval}"
9033 ac_mandatory_list="${ac_mandatory_list} SACLM"
9035 esac
9039 PBX_SACLM=0
9046 SAEVT_DESCRIP="SAForum AIS EVT"
9047 SAEVT_OPTION="SaEvt"
9049 # Check whether --with-SaEvt was given.
9050 if test "${with_SaEvt+set}" = set; then
9051 withval=$with_SaEvt;
9052 case ${withval} in
9053 n|no)
9054 USE_SAEVT=no
9056 y|ye|yes)
9057 ac_mandatory_list="${ac_mandatory_list} SAEVT"
9060 SAEVT_DIR="${withval}"
9061 ac_mandatory_list="${ac_mandatory_list} SAEVT"
9063 esac
9067 PBX_SAEVT=0
9074 SPEEX_DESCRIP="Speex"
9075 SPEEX_OPTION="speex"
9077 # Check whether --with-speex was given.
9078 if test "${with_speex+set}" = set; then
9079 withval=$with_speex;
9080 case ${withval} in
9081 n|no)
9082 USE_SPEEX=no
9084 y|ye|yes)
9085 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9088 SPEEX_DIR="${withval}"
9089 ac_mandatory_list="${ac_mandatory_list} SPEEX"
9091 esac
9095 PBX_SPEEX=0
9102 SPEEXDSP_DESCRIP="Speexdsp"
9103 SPEEXDSP_OPTION="speexdsp"
9105 # Check whether --with-speexdsp was given.
9106 if test "${with_speexdsp+set}" = set; then
9107 withval=$with_speexdsp;
9108 case ${withval} in
9109 n|no)
9110 USE_SPEEXDSP=no
9112 y|ye|yes)
9113 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9116 SPEEXDSP_DIR="${withval}"
9117 ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
9119 esac
9123 PBX_SPEEXDSP=0
9130 SQLITE_DESCRIP="SQLite"
9131 SQLITE_OPTION="sqlite"
9133 # Check whether --with-sqlite was given.
9134 if test "${with_sqlite+set}" = set; then
9135 withval=$with_sqlite;
9136 case ${withval} in
9137 n|no)
9138 USE_SQLITE=no
9140 y|ye|yes)
9141 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9144 SQLITE_DIR="${withval}"
9145 ac_mandatory_list="${ac_mandatory_list} SQLITE"
9147 esac
9151 PBX_SQLITE=0
9158 SQLITE3_DESCRIP="SQLite"
9159 SQLITE3_OPTION="sqlite3"
9161 # Check whether --with-sqlite3 was given.
9162 if test "${with_sqlite3+set}" = set; then
9163 withval=$with_sqlite3;
9164 case ${withval} in
9165 n|no)
9166 USE_SQLITE3=no
9168 y|ye|yes)
9169 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9172 SQLITE3_DIR="${withval}"
9173 ac_mandatory_list="${ac_mandatory_list} SQLITE3"
9175 esac
9179 PBX_SQLITE3=0
9186 SUPPSERV_DESCRIP="mISDN Supplemental Services"
9187 SUPPSERV_OPTION="suppserv"
9189 # Check whether --with-suppserv was given.
9190 if test "${with_suppserv+set}" = set; then
9191 withval=$with_suppserv;
9192 case ${withval} in
9193 n|no)
9194 USE_SUPPSERV=no
9196 y|ye|yes)
9197 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9200 SUPPSERV_DIR="${withval}"
9201 ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
9203 esac
9207 PBX_SUPPSERV=0
9214 OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer support"
9215 OPENSSL_OPTION="ssl"
9217 # Check whether --with-ssl was given.
9218 if test "${with_ssl+set}" = set; then
9219 withval=$with_ssl;
9220 case ${withval} in
9221 n|no)
9222 USE_OPENSSL=no
9224 y|ye|yes)
9225 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9228 OPENSSL_DIR="${withval}"
9229 ac_mandatory_list="${ac_mandatory_list} OPENSSL"
9231 esac
9235 PBX_OPENSSL=0
9242 FREETDS_DESCRIP="FreeTDS"
9243 FREETDS_OPTION="tds"
9245 # Check whether --with-tds was given.
9246 if test "${with_tds+set}" = set; then
9247 withval=$with_tds;
9248 case ${withval} in
9249 n|no)
9250 USE_FREETDS=no
9252 y|ye|yes)
9253 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9256 FREETDS_DIR="${withval}"
9257 ac_mandatory_list="${ac_mandatory_list} FREETDS"
9259 esac
9263 PBX_FREETDS=0
9270 TERMCAP_DESCRIP="Termcap"
9271 TERMCAP_OPTION="termcap"
9273 # Check whether --with-termcap was given.
9274 if test "${with_termcap+set}" = set; then
9275 withval=$with_termcap;
9276 case ${withval} in
9277 n|no)
9278 USE_TERMCAP=no
9280 y|ye|yes)
9281 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9284 TERMCAP_DIR="${withval}"
9285 ac_mandatory_list="${ac_mandatory_list} TERMCAP"
9287 esac
9291 PBX_TERMCAP=0
9298 TINFO_DESCRIP="Term Info"
9299 TINFO_OPTION="tinfo"
9301 # Check whether --with-tinfo was given.
9302 if test "${with_tinfo+set}" = set; then
9303 withval=$with_tinfo;
9304 case ${withval} in
9305 n|no)
9306 USE_TINFO=no
9308 y|ye|yes)
9309 ac_mandatory_list="${ac_mandatory_list} TINFO"
9312 TINFO_DIR="${withval}"
9313 ac_mandatory_list="${ac_mandatory_list} TINFO"
9315 esac
9319 PBX_TINFO=0
9326 TONEZONE_DESCRIP="tonezone"
9327 TONEZONE_OPTION="tonezone"
9329 # Check whether --with-tonezone was given.
9330 if test "${with_tonezone+set}" = set; then
9331 withval=$with_tonezone;
9332 case ${withval} in
9333 n|no)
9334 USE_TONEZONE=no
9336 y|ye|yes)
9337 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9340 TONEZONE_DIR="${withval}"
9341 ac_mandatory_list="${ac_mandatory_list} TONEZONE"
9343 esac
9347 PBX_TONEZONE=0
9354 USB_DESCRIP="usb"
9355 USB_OPTION="usb"
9357 # Check whether --with-usb was given.
9358 if test "${with_usb+set}" = set; then
9359 withval=$with_usb;
9360 case ${withval} in
9361 n|no)
9362 USE_USB=no
9364 y|ye|yes)
9365 ac_mandatory_list="${ac_mandatory_list} USB"
9368 USB_DIR="${withval}"
9369 ac_mandatory_list="${ac_mandatory_list} USB"
9371 esac
9375 PBX_USB=0
9382 VORBIS_DESCRIP="Vorbis"
9383 VORBIS_OPTION="vorbis"
9385 # Check whether --with-vorbis was given.
9386 if test "${with_vorbis+set}" = set; then
9387 withval=$with_vorbis;
9388 case ${withval} in
9389 n|no)
9390 USE_VORBIS=no
9392 y|ye|yes)
9393 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9396 VORBIS_DIR="${withval}"
9397 ac_mandatory_list="${ac_mandatory_list} VORBIS"
9399 esac
9403 PBX_VORBIS=0
9410 VPB_DESCRIP="Voicetronix API"
9411 VPB_OPTION="vpb"
9413 # Check whether --with-vpb was given.
9414 if test "${with_vpb+set}" = set; then
9415 withval=$with_vpb;
9416 case ${withval} in
9417 n|no)
9418 USE_VPB=no
9420 y|ye|yes)
9421 ac_mandatory_list="${ac_mandatory_list} VPB"
9424 VPB_DIR="${withval}"
9425 ac_mandatory_list="${ac_mandatory_list} VPB"
9427 esac
9431 PBX_VPB=0
9438 X11_DESCRIP="X11 support"
9439 X11_OPTION="x11"
9441 # Check whether --with-x11 was given.
9442 if test "${with_x11+set}" = set; then
9443 withval=$with_x11;
9444 case ${withval} in
9445 n|no)
9446 USE_X11=no
9448 y|ye|yes)
9449 ac_mandatory_list="${ac_mandatory_list} X11"
9452 X11_DIR="${withval}"
9453 ac_mandatory_list="${ac_mandatory_list} X11"
9455 esac
9459 PBX_X11=0
9466 ZLIB_DESCRIP="zlib"
9467 ZLIB_OPTION="z"
9469 # Check whether --with-z was given.
9470 if test "${with_z+set}" = set; then
9471 withval=$with_z;
9472 case ${withval} in
9473 n|no)
9474 USE_ZLIB=no
9476 y|ye|yes)
9477 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9480 ZLIB_DIR="${withval}"
9481 ac_mandatory_list="${ac_mandatory_list} ZLIB"
9483 esac
9487 PBX_ZLIB=0
9494 # check for basic system features and functionality before
9495 # checking for package libraries
9497 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9498 # for constant arguments. Useless!
9499 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9500 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9501 if test "${ac_cv_working_alloca_h+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 #include <alloca.h>
9512 main ()
9514 char *p = (char *) alloca (2 * sizeof (int));
9515 if (p) return 0;
9517 return 0;
9519 _ACEOF
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (ac_try="$ac_link"
9522 case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_link") 2>conftest.er1
9528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && {
9534 test -z "$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9536 } && test -s conftest$ac_exeext &&
9537 $as_test_x conftest$ac_exeext; then
9538 ac_cv_working_alloca_h=yes
9539 else
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_working_alloca_h=no
9546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9547 conftest$ac_exeext conftest.$ac_ext
9549 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9550 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9551 if test $ac_cv_working_alloca_h = yes; then
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_ALLOCA_H 1
9555 _ACEOF
9559 { echo "$as_me:$LINENO: checking for alloca" >&5
9560 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9561 if test "${ac_cv_func_alloca_works+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 #ifdef __GNUC__
9571 # define alloca __builtin_alloca
9572 #else
9573 # ifdef _MSC_VER
9574 # include <malloc.h>
9575 # define alloca _alloca
9576 # else
9577 # ifdef HAVE_ALLOCA_H
9578 # include <alloca.h>
9579 # else
9580 # ifdef _AIX
9581 #pragma alloca
9582 # else
9583 # ifndef alloca /* predefined by HP cc +Olibcalls */
9584 char *alloca ();
9585 # endif
9586 # endif
9587 # endif
9588 # endif
9589 #endif
9592 main ()
9594 char *p = (char *) alloca (1);
9595 if (p) return 0;
9597 return 0;
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9602 case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest$ac_exeext &&
9617 $as_test_x conftest$ac_exeext; then
9618 ac_cv_func_alloca_works=yes
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_cv_func_alloca_works=no
9626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9627 conftest$ac_exeext conftest.$ac_ext
9629 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9630 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9632 if test $ac_cv_func_alloca_works = yes; then
9634 cat >>confdefs.h <<\_ACEOF
9635 #define HAVE_ALLOCA 1
9636 _ACEOF
9638 else
9639 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9640 # that cause trouble. Some versions do not even contain alloca or
9641 # contain a buggy version. If you still want to use their alloca,
9642 # use ar to extract alloca.o from them instead of compiling alloca.c.
9644 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9646 cat >>confdefs.h <<\_ACEOF
9647 #define C_ALLOCA 1
9648 _ACEOF
9651 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9652 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9653 if test "${ac_cv_os_cray+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 #if defined CRAY && ! defined CRAY2
9663 webecray
9664 #else
9665 wenotbecray
9666 #endif
9668 _ACEOF
9669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9670 $EGREP "webecray" >/dev/null 2>&1; then
9671 ac_cv_os_cray=yes
9672 else
9673 ac_cv_os_cray=no
9675 rm -f conftest*
9678 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9679 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9680 if test $ac_cv_os_cray = yes; then
9681 for ac_func in _getb67 GETB67 getb67; do
9682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9696 #define $ac_func innocuous_$ac_func
9698 /* System header to define __stub macros and hopefully few prototypes,
9699 which can conflict with char $ac_func (); below.
9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701 <limits.h> exists even on freestanding compilers. */
9703 #ifdef __STDC__
9704 # include <limits.h>
9705 #else
9706 # include <assert.h>
9707 #endif
9709 #undef $ac_func
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 char $ac_func ();
9718 /* The GNU C library defines this for functions which it implements
9719 to always fail with ENOSYS. Some functions are actually named
9720 something starting with __ and the normal name is an alias. */
9721 #if defined __stub_$ac_func || defined __stub___$ac_func
9722 choke me
9723 #endif
9726 main ()
9728 return $ac_func ();
9730 return 0;
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9735 case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext &&
9750 $as_test_x conftest$ac_exeext; then
9751 eval "$as_ac_var=yes"
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 eval "$as_ac_var=no"
9759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9760 conftest$ac_exeext conftest.$ac_ext
9762 ac_res=`eval echo '${'$as_ac_var'}'`
9763 { echo "$as_me:$LINENO: result: $ac_res" >&5
9764 echo "${ECHO_T}$ac_res" >&6; }
9765 if test `eval echo '${'$as_ac_var'}'` = yes; then
9767 cat >>confdefs.h <<_ACEOF
9768 #define CRAY_STACKSEG_END $ac_func
9769 _ACEOF
9771 break
9774 done
9777 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9778 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9779 if test "${ac_cv_c_stack_direction+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 if test "$cross_compiling" = yes; then
9783 ac_cv_c_stack_direction=0
9784 else
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h. */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 $ac_includes_default
9793 find_stack_direction ()
9795 static char *addr = 0;
9796 auto char dummy;
9797 if (addr == 0)
9799 addr = &dummy;
9800 return find_stack_direction ();
9802 else
9803 return (&dummy > addr) ? 1 : -1;
9807 main ()
9809 return find_stack_direction () < 0;
9811 _ACEOF
9812 rm -f conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9814 case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_c_stack_direction=1
9833 else
9834 echo "$as_me: program exited with status $ac_status" >&5
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 ( exit $ac_status )
9839 ac_cv_c_stack_direction=-1
9841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9846 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9847 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9849 cat >>confdefs.h <<_ACEOF
9850 #define STACK_DIRECTION $ac_cv_c_stack_direction
9851 _ACEOF
9861 ac_header_dirent=no
9862 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9863 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9864 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9865 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 #include <sys/types.h>
9876 #include <$ac_hdr>
9879 main ()
9881 if ((DIR *) 0)
9882 return 0;
9884 return 0;
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (ac_try="$ac_compile"
9889 case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_compile") 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest.$ac_objext; then
9904 eval "$as_ac_Header=yes"
9905 else
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 eval "$as_ac_Header=no"
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9914 ac_res=`eval echo '${'$as_ac_Header'}'`
9915 { echo "$as_me:$LINENO: result: $ac_res" >&5
9916 echo "${ECHO_T}$ac_res" >&6; }
9917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9918 cat >>confdefs.h <<_ACEOF
9919 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9920 _ACEOF
9922 ac_header_dirent=$ac_hdr; break
9925 done
9926 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9927 if test $ac_header_dirent = dirent.h; then
9928 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9929 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9930 if test "${ac_cv_search_opendir+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933 ac_func_search_save_LIBS=$LIBS
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h. */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9941 /* Override any GCC internal prototype to avoid an error.
9942 Use char because int might match the return type of a GCC
9943 builtin and then its argument prototype would still apply. */
9944 #ifdef __cplusplus
9945 extern "C"
9946 #endif
9947 char opendir ();
9949 main ()
9951 return opendir ();
9953 return 0;
9955 _ACEOF
9956 for ac_lib in '' dir; do
9957 if test -z "$ac_lib"; then
9958 ac_res="none required"
9959 else
9960 ac_res=-l$ac_lib
9961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9965 case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest$ac_exeext &&
9980 $as_test_x conftest$ac_exeext; then
9981 ac_cv_search_opendir=$ac_res
9982 else
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9990 conftest$ac_exeext
9991 if test "${ac_cv_search_opendir+set}" = set; then
9992 break
9994 done
9995 if test "${ac_cv_search_opendir+set}" = set; then
9997 else
9998 ac_cv_search_opendir=no
10000 rm conftest.$ac_ext
10001 LIBS=$ac_func_search_save_LIBS
10003 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10004 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10005 ac_res=$ac_cv_search_opendir
10006 if test "$ac_res" != no; then
10007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10011 else
10012 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10013 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10014 if test "${ac_cv_search_opendir+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 ac_func_search_save_LIBS=$LIBS
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char opendir ();
10033 main ()
10035 return opendir ();
10037 return 0;
10039 _ACEOF
10040 for ac_lib in '' x; do
10041 if test -z "$ac_lib"; then
10042 ac_res="none required"
10043 else
10044 ac_res=-l$ac_lib
10045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest$ac_exeext &&
10064 $as_test_x conftest$ac_exeext; then
10065 ac_cv_search_opendir=$ac_res
10066 else
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074 conftest$ac_exeext
10075 if test "${ac_cv_search_opendir+set}" = set; then
10076 break
10078 done
10079 if test "${ac_cv_search_opendir+set}" = set; then
10081 else
10082 ac_cv_search_opendir=no
10084 rm conftest.$ac_ext
10085 LIBS=$ac_func_search_save_LIBS
10087 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10088 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10089 ac_res=$ac_cv_search_opendir
10090 if test "$ac_res" != no; then
10091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10097 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10099 if test "${ac_cv_header_stdc+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102 cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h. */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 #include <stdlib.h>
10109 #include <stdarg.h>
10110 #include <string.h>
10111 #include <float.h>
10114 main ()
10118 return 0;
10120 _ACEOF
10121 rm -f conftest.$ac_objext
10122 if { (ac_try="$ac_compile"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_compile") 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest.$ac_objext; then
10138 ac_cv_header_stdc=yes
10139 else
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_cv_header_stdc=no
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 if test $ac_cv_header_stdc = yes; then
10149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 #include <string.h>
10158 _ACEOF
10159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10160 $EGREP "memchr" >/dev/null 2>&1; then
10162 else
10163 ac_cv_header_stdc=no
10165 rm -f conftest*
10169 if test $ac_cv_header_stdc = yes; then
10170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h. */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 #include <stdlib.h>
10179 _ACEOF
10180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10181 $EGREP "free" >/dev/null 2>&1; then
10183 else
10184 ac_cv_header_stdc=no
10186 rm -f conftest*
10190 if test $ac_cv_header_stdc = yes; then
10191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10192 if test "$cross_compiling" = yes; then
10194 else
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h. */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 #include <ctype.h>
10202 #include <stdlib.h>
10203 #if ((' ' & 0x0FF) == 0x020)
10204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10206 #else
10207 # define ISLOWER(c) \
10208 (('a' <= (c) && (c) <= 'i') \
10209 || ('j' <= (c) && (c) <= 'r') \
10210 || ('s' <= (c) && (c) <= 'z'))
10211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10212 #endif
10214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10216 main ()
10218 int i;
10219 for (i = 0; i < 256; i++)
10220 if (XOR (islower (i), ISLOWER (i))
10221 || toupper (i) != TOUPPER (i))
10222 return 2;
10223 return 0;
10225 _ACEOF
10226 rm -f conftest$ac_exeext
10227 if { (ac_try="$ac_link"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_link") 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10237 { (case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_try") 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10247 else
10248 echo "$as_me: program exited with status $ac_status" >&5
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 ( exit $ac_status )
10253 ac_cv_header_stdc=no
10255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10261 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10262 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10263 if test $ac_cv_header_stdc = yes; then
10265 cat >>confdefs.h <<\_ACEOF
10266 #define STDC_HEADERS 1
10267 _ACEOF
10271 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10272 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10273 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h. */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 #include <sys/types.h>
10283 #include <sys/wait.h>
10284 #ifndef WEXITSTATUS
10285 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10286 #endif
10287 #ifndef WIFEXITED
10288 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10289 #endif
10292 main ()
10294 int s;
10295 wait (&s);
10296 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10298 return 0;
10300 _ACEOF
10301 rm -f conftest.$ac_objext
10302 if { (ac_try="$ac_compile"
10303 case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_compile") 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest.$ac_objext; then
10318 ac_cv_header_sys_wait_h=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_cv_header_sys_wait_h=no
10326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10329 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10330 if test $ac_cv_header_sys_wait_h = yes; then
10332 cat >>confdefs.h <<\_ACEOF
10333 #define HAVE_SYS_WAIT_H 1
10334 _ACEOF
10362 for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h
10364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 ac_res=`eval echo '${'$as_ac_Header'}'`
10372 { echo "$as_me:$LINENO: result: $ac_res" >&5
10373 echo "${ECHO_T}$ac_res" >&6; }
10374 else
10375 # Is the header compilable?
10376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h. */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 $ac_includes_default
10385 #include <$ac_header>
10386 _ACEOF
10387 rm -f conftest.$ac_objext
10388 if { (ac_try="$ac_compile"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 ac_header_compiler=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_header_compiler=no
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10414 echo "${ECHO_T}$ac_header_compiler" >&6; }
10416 # Is the header present?
10417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10419 cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h. */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10425 #include <$ac_header>
10426 _ACEOF
10427 if { (ac_try="$ac_cpp conftest.$ac_ext"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } >/dev/null && {
10440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 }; then
10443 ac_header_preproc=yes
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 ac_header_preproc=no
10451 rm -f conftest.err conftest.$ac_ext
10452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10453 echo "${ECHO_T}$ac_header_preproc" >&6; }
10455 # So? What about this header?
10456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10457 yes:no: )
10458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10462 ac_header_preproc=yes
10464 no:yes:* )
10465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10477 ( cat <<\_ASBOX
10478 ## ------------------------------- ##
10479 ## Report this to www.asterisk.org ##
10480 ## ------------------------------- ##
10481 _ASBOX
10482 ) | sed "s/^/$as_me: WARNING: /" >&2
10484 esac
10485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 eval "$as_ac_Header=\$ac_header_preproc"
10492 ac_res=`eval echo '${'$as_ac_Header'}'`
10493 { echo "$as_me:$LINENO: result: $ac_res" >&5
10494 echo "${ECHO_T}$ac_res" >&6; }
10497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10498 cat >>confdefs.h <<_ACEOF
10499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10500 _ACEOF
10504 done
10509 for ac_header in winsock.h winsock2.h
10511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 ac_res=`eval echo '${'$as_ac_Header'}'`
10519 { echo "$as_me:$LINENO: result: $ac_res" >&5
10520 echo "${ECHO_T}$ac_res" >&6; }
10521 else
10522 # Is the header compilable?
10523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10525 cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h. */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 $ac_includes_default
10532 #include <$ac_header>
10533 _ACEOF
10534 rm -f conftest.$ac_objext
10535 if { (ac_try="$ac_compile"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_compile") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest.$ac_objext; then
10551 ac_header_compiler=yes
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_header_compiler=no
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10561 echo "${ECHO_T}$ac_header_compiler" >&6; }
10563 # Is the header present?
10564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h. */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <$ac_header>
10573 _ACEOF
10574 if { (ac_try="$ac_cpp conftest.$ac_ext"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } >/dev/null && {
10587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 }; then
10590 ac_header_preproc=yes
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_header_preproc=no
10598 rm -f conftest.err conftest.$ac_ext
10599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10600 echo "${ECHO_T}$ac_header_preproc" >&6; }
10602 # So? What about this header?
10603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10604 yes:no: )
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10609 ac_header_preproc=yes
10611 no:yes:* )
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10624 ( cat <<\_ASBOX
10625 ## ------------------------------- ##
10626 ## Report this to www.asterisk.org ##
10627 ## ------------------------------- ##
10628 _ASBOX
10629 ) | sed "s/^/$as_me: WARNING: /" >&2
10631 esac
10632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637 eval "$as_ac_Header=\$ac_header_preproc"
10639 ac_res=`eval echo '${'$as_ac_Header'}'`
10640 { echo "$as_me:$LINENO: result: $ac_res" >&5
10641 echo "${ECHO_T}$ac_res" >&6; }
10644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10645 cat >>confdefs.h <<_ACEOF
10646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10647 _ACEOF
10651 done
10654 # Check whether --enable-largefile was given.
10655 if test "${enable_largefile+set}" = set; then
10656 enableval=$enable_largefile;
10659 if test "$enable_largefile" != no; then
10661 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10662 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10663 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 else
10666 ac_cv_sys_largefile_CC=no
10667 if test "$GCC" != yes; then
10668 ac_save_CC=$CC
10669 while :; do
10670 # IRIX 6.2 and later do not support large files by default,
10671 # so use the C compiler's -n32 option if that helps.
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h. */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 #include <sys/types.h>
10679 /* Check that off_t can represent 2**63 - 1 correctly.
10680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10681 since some C++ compilers masquerading as C compilers
10682 incorrectly reject 9223372036854775807. */
10683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10685 && LARGE_OFF_T % 2147483647 == 1)
10686 ? 1 : -1];
10688 main ()
10692 return 0;
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (ac_try="$ac_compile"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest.$ac_objext; then
10712 break
10713 else
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10720 rm -f core conftest.err conftest.$ac_objext
10721 CC="$CC -n32"
10722 rm -f conftest.$ac_objext
10723 if { (ac_try="$ac_compile"
10724 case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_compile") 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest.$ac_objext; then
10739 ac_cv_sys_largefile_CC=' -n32'; break
10740 else
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10747 rm -f core conftest.err conftest.$ac_objext
10748 break
10749 done
10750 CC=$ac_save_CC
10751 rm -f conftest.$ac_ext
10754 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10755 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10756 if test "$ac_cv_sys_largefile_CC" != no; then
10757 CC=$CC$ac_cv_sys_largefile_CC
10760 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10761 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10762 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765 while :; do
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h. */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 #include <sys/types.h>
10773 /* Check that off_t can represent 2**63 - 1 correctly.
10774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10775 since some C++ compilers masquerading as C compilers
10776 incorrectly reject 9223372036854775807. */
10777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10779 && LARGE_OFF_T % 2147483647 == 1)
10780 ? 1 : -1];
10782 main ()
10786 return 0;
10788 _ACEOF
10789 rm -f conftest.$ac_objext
10790 if { (ac_try="$ac_compile"
10791 case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_compile") 2>conftest.er1
10797 ac_status=$?
10798 grep -v '^ *+' conftest.er1 >conftest.err
10799 rm -f conftest.er1
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } && {
10803 test -z "$ac_c_werror_flag" ||
10804 test ! -s conftest.err
10805 } && test -s conftest.$ac_objext; then
10806 ac_cv_sys_file_offset_bits=no; break
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821 #define _FILE_OFFSET_BITS 64
10822 #include <sys/types.h>
10823 /* Check that off_t can represent 2**63 - 1 correctly.
10824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10825 since some C++ compilers masquerading as C compilers
10826 incorrectly reject 9223372036854775807. */
10827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10829 && LARGE_OFF_T % 2147483647 == 1)
10830 ? 1 : -1];
10832 main ()
10836 return 0;
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (ac_try="$ac_compile"
10841 case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_compile") 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && {
10853 test -z "$ac_c_werror_flag" ||
10854 test ! -s conftest.err
10855 } && test -s conftest.$ac_objext; then
10856 ac_cv_sys_file_offset_bits=64; break
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 ac_cv_sys_file_offset_bits=unknown
10866 break
10867 done
10869 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10870 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10871 case $ac_cv_sys_file_offset_bits in #(
10872 no | unknown) ;;
10874 cat >>confdefs.h <<_ACEOF
10875 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10876 _ACEOF
10878 esac
10879 rm -f conftest*
10880 if test $ac_cv_sys_file_offset_bits = unknown; then
10881 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10882 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10883 if test "${ac_cv_sys_large_files+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 while :; do
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h. */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 #include <sys/types.h>
10894 /* Check that off_t can represent 2**63 - 1 correctly.
10895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10896 since some C++ compilers masquerading as C compilers
10897 incorrectly reject 9223372036854775807. */
10898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10900 && LARGE_OFF_T % 2147483647 == 1)
10901 ? 1 : -1];
10903 main ()
10907 return 0;
10909 _ACEOF
10910 rm -f conftest.$ac_objext
10911 if { (ac_try="$ac_compile"
10912 case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_compile") 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest.$ac_objext; then
10927 ac_cv_sys_large_files=no; break
10928 else
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h. */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10942 #define _LARGE_FILES 1
10943 #include <sys/types.h>
10944 /* Check that off_t can represent 2**63 - 1 correctly.
10945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10946 since some C++ compilers masquerading as C compilers
10947 incorrectly reject 9223372036854775807. */
10948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10950 && LARGE_OFF_T % 2147483647 == 1)
10951 ? 1 : -1];
10953 main ()
10957 return 0;
10959 _ACEOF
10960 rm -f conftest.$ac_objext
10961 if { (ac_try="$ac_compile"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_compile") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest.$ac_objext; then
10977 ac_cv_sys_large_files=1; break
10978 else
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 ac_cv_sys_large_files=unknown
10987 break
10988 done
10990 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10991 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10992 case $ac_cv_sys_large_files in #(
10993 no | unknown) ;;
10995 cat >>confdefs.h <<_ACEOF
10996 #define _LARGE_FILES $ac_cv_sys_large_files
10997 _ACEOF
10999 esac
11000 rm -f conftest*
11005 # Checks for typedefs, structures, and compiler characteristics.
11006 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11007 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11008 if test "${ac_cv_header_stdbool_h+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h. */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11018 #include <stdbool.h>
11019 #ifndef bool
11020 "error: bool is not defined"
11021 #endif
11022 #ifndef false
11023 "error: false is not defined"
11024 #endif
11025 #if false
11026 "error: false is not 0"
11027 #endif
11028 #ifndef true
11029 "error: true is not defined"
11030 #endif
11031 #if true != 1
11032 "error: true is not 1"
11033 #endif
11034 #ifndef __bool_true_false_are_defined
11035 "error: __bool_true_false_are_defined is not defined"
11036 #endif
11038 struct s { _Bool s: 1; _Bool t; } s;
11040 char a[true == 1 ? 1 : -1];
11041 char b[false == 0 ? 1 : -1];
11042 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11043 char d[(bool) 0.5 == true ? 1 : -1];
11044 bool e = &s;
11045 char f[(_Bool) 0.0 == false ? 1 : -1];
11046 char g[true];
11047 char h[sizeof (_Bool)];
11048 char i[sizeof s.t];
11049 enum { j = false, k = true, l = false * true, m = true * 256 };
11050 _Bool n[m];
11051 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11052 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11053 # if defined __xlc__ || defined __GNUC__
11054 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11055 reported by James Lemley on 2005-10-05; see
11056 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11057 This test is not quite right, since xlc is allowed to
11058 reject this program, as the initializer for xlcbug is
11059 not one of the forms that C requires support for.
11060 However, doing the test right would require a runtime
11061 test, and that would make cross-compilation harder.
11062 Let us hope that IBM fixes the xlc bug, and also adds
11063 support for this kind of constant expression. In the
11064 meantime, this test will reject xlc, which is OK, since
11065 our stdbool.h substitute should suffice. We also test
11066 this with GCC, where it should work, to detect more
11067 quickly whether someone messes up the test in the
11068 future. */
11069 char digs[] = "0123456789";
11070 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11071 # endif
11072 /* Catch a bug in an HP-UX C compiler. See
11073 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11074 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11076 _Bool q = true;
11077 _Bool *pq = &q;
11080 main ()
11083 *pq |= q;
11084 *pq |= ! q;
11085 /* Refer to every declared value, to avoid compiler optimizations. */
11086 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11087 + !m + !n + !o + !p + !q + !pq);
11090 return 0;
11092 _ACEOF
11093 rm -f conftest.$ac_objext
11094 if { (ac_try="$ac_compile"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_compile") 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && {
11107 test -z "$ac_c_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest.$ac_objext; then
11110 ac_cv_header_stdbool_h=yes
11111 else
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 ac_cv_header_stdbool_h=no
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11121 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11122 { echo "$as_me:$LINENO: checking for _Bool" >&5
11123 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11124 if test "${ac_cv_type__Bool+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h. */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 $ac_includes_default
11134 typedef _Bool ac__type_new_;
11136 main ()
11138 if ((ac__type_new_ *) 0)
11139 return 0;
11140 if (sizeof (ac__type_new_))
11141 return 0;
11143 return 0;
11145 _ACEOF
11146 rm -f conftest.$ac_objext
11147 if { (ac_try="$ac_compile"
11148 case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_compile") 2>conftest.er1
11154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } && {
11160 test -z "$ac_c_werror_flag" ||
11161 test ! -s conftest.err
11162 } && test -s conftest.$ac_objext; then
11163 ac_cv_type__Bool=yes
11164 else
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_cv_type__Bool=no
11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11174 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11175 if test $ac_cv_type__Bool = yes; then
11177 cat >>confdefs.h <<_ACEOF
11178 #define HAVE__BOOL 1
11179 _ACEOF
11184 if test $ac_cv_header_stdbool_h = yes; then
11186 cat >>confdefs.h <<\_ACEOF
11187 #define HAVE_STDBOOL_H 1
11188 _ACEOF
11192 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11193 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11194 if test "${ac_cv_c_const+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11205 main ()
11207 /* FIXME: Include the comments suggested by Paul. */
11208 #ifndef __cplusplus
11209 /* Ultrix mips cc rejects this. */
11210 typedef int charset[2];
11211 const charset cs;
11212 /* SunOS 4.1.1 cc rejects this. */
11213 char const *const *pcpcc;
11214 char **ppc;
11215 /* NEC SVR4.0.2 mips cc rejects this. */
11216 struct point {int x, y;};
11217 static struct point const zero = {0,0};
11218 /* AIX XL C 1.02.0.0 rejects this.
11219 It does not let you subtract one const X* pointer from another in
11220 an arm of an if-expression whose if-part is not a constant
11221 expression */
11222 const char *g = "string";
11223 pcpcc = &g + (g ? g-g : 0);
11224 /* HPUX 7.0 cc rejects these. */
11225 ++pcpcc;
11226 ppc = (char**) pcpcc;
11227 pcpcc = (char const *const *) ppc;
11228 { /* SCO 3.2v4 cc rejects this. */
11229 char *t;
11230 char const *s = 0 ? (char *) 0 : (char const *) 0;
11232 *t++ = 0;
11233 if (s) return 0;
11235 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11236 int x[] = {25, 17};
11237 const int *foo = &x[0];
11238 ++foo;
11240 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11241 typedef const int *iptr;
11242 iptr p = 0;
11243 ++p;
11245 { /* AIX XL C 1.02.0.0 rejects this saying
11246 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11247 struct s { int j; const int *ap[3]; };
11248 struct s *b; b->j = 5;
11250 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11251 const int foo = 10;
11252 if (!foo) return 0;
11254 return !cs[0] && !zero.x;
11255 #endif
11258 return 0;
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_const=yes
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 ac_cv_c_const=no
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11289 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11290 if test $ac_cv_c_const = no; then
11292 cat >>confdefs.h <<\_ACEOF
11293 #define const
11294 _ACEOF
11298 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11299 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11300 if test "${ac_cv_type_uid_t+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h. */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #include <sys/types.h>
11311 _ACEOF
11312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11313 $EGREP "uid_t" >/dev/null 2>&1; then
11314 ac_cv_type_uid_t=yes
11315 else
11316 ac_cv_type_uid_t=no
11318 rm -f conftest*
11321 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11322 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11323 if test $ac_cv_type_uid_t = no; then
11325 cat >>confdefs.h <<\_ACEOF
11326 #define uid_t int
11327 _ACEOF
11330 cat >>confdefs.h <<\_ACEOF
11331 #define gid_t int
11332 _ACEOF
11336 { echo "$as_me:$LINENO: checking for inline" >&5
11337 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11338 if test "${ac_cv_c_inline+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341 ac_cv_c_inline=no
11342 for ac_kw in inline __inline__ __inline; do
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #ifndef __cplusplus
11350 typedef int foo_t;
11351 static $ac_kw foo_t static_foo () {return 0; }
11352 $ac_kw foo_t foo () {return 0; }
11353 #endif
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 ac_cv_c_inline=$ac_kw
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382 test "$ac_cv_c_inline" != no && break
11383 done
11386 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11387 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11390 case $ac_cv_c_inline in
11391 inline | yes) ;;
11393 case $ac_cv_c_inline in
11394 no) ac_val=;;
11395 *) ac_val=$ac_cv_c_inline;;
11396 esac
11397 cat >>confdefs.h <<_ACEOF
11398 #ifndef __cplusplus
11399 #define inline $ac_val
11400 #endif
11401 _ACEOF
11403 esac
11405 { echo "$as_me:$LINENO: checking for mode_t" >&5
11406 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11407 if test "${ac_cv_type_mode_t+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 $ac_includes_default
11417 typedef mode_t ac__type_new_;
11419 main ()
11421 if ((ac__type_new_ *) 0)
11422 return 0;
11423 if (sizeof (ac__type_new_))
11424 return 0;
11426 return 0;
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (ac_try="$ac_compile"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_compile") 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } && {
11443 test -z "$ac_c_werror_flag" ||
11444 test ! -s conftest.err
11445 } && test -s conftest.$ac_objext; then
11446 ac_cv_type_mode_t=yes
11447 else
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_cv_type_mode_t=no
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11457 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11458 if test $ac_cv_type_mode_t = yes; then
11460 else
11462 cat >>confdefs.h <<_ACEOF
11463 #define mode_t int
11464 _ACEOF
11468 { echo "$as_me:$LINENO: checking for off_t" >&5
11469 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11470 if test "${ac_cv_type_off_t+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h. */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 $ac_includes_default
11480 typedef off_t ac__type_new_;
11482 main ()
11484 if ((ac__type_new_ *) 0)
11485 return 0;
11486 if (sizeof (ac__type_new_))
11487 return 0;
11489 return 0;
11491 _ACEOF
11492 rm -f conftest.$ac_objext
11493 if { (ac_try="$ac_compile"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497 esac
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_compile") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } && {
11506 test -z "$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11508 } && test -s conftest.$ac_objext; then
11509 ac_cv_type_off_t=yes
11510 else
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11514 ac_cv_type_off_t=no
11517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11520 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11521 if test $ac_cv_type_off_t = yes; then
11523 else
11525 cat >>confdefs.h <<_ACEOF
11526 #define off_t long int
11527 _ACEOF
11531 { echo "$as_me:$LINENO: checking for pid_t" >&5
11532 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11533 if test "${ac_cv_type_pid_t+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 $ac_includes_default
11543 typedef pid_t ac__type_new_;
11545 main ()
11547 if ((ac__type_new_ *) 0)
11548 return 0;
11549 if (sizeof (ac__type_new_))
11550 return 0;
11552 return 0;
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (ac_try="$ac_compile"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_compile") 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest.$ac_objext; then
11572 ac_cv_type_pid_t=yes
11573 else
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_cv_type_pid_t=no
11580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11582 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11583 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11584 if test $ac_cv_type_pid_t = yes; then
11586 else
11588 cat >>confdefs.h <<_ACEOF
11589 #define pid_t int
11590 _ACEOF
11594 { echo "$as_me:$LINENO: checking for size_t" >&5
11595 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11596 if test "${ac_cv_type_size_t+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 typedef size_t ac__type_new_;
11608 main ()
11610 if ((ac__type_new_ *) 0)
11611 return 0;
11612 if (sizeof (ac__type_new_))
11613 return 0;
11615 return 0;
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest.$ac_objext; then
11635 ac_cv_type_size_t=yes
11636 else
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11640 ac_cv_type_size_t=no
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11646 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11647 if test $ac_cv_type_size_t = yes; then
11649 else
11651 cat >>confdefs.h <<_ACEOF
11652 #define size_t unsigned int
11653 _ACEOF
11657 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11658 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
11659 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 $ac_includes_default
11670 main ()
11672 static struct stat ac_aggr;
11673 if (ac_aggr.st_blksize)
11674 return 0;
11676 return 0;
11678 _ACEOF
11679 rm -f conftest.$ac_objext
11680 if { (ac_try="$ac_compile"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_compile") 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest.$ac_objext; then
11696 ac_cv_member_struct_stat_st_blksize=yes
11697 else
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h. */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11707 $ac_includes_default
11709 main ()
11711 static struct stat ac_aggr;
11712 if (sizeof ac_aggr.st_blksize)
11713 return 0;
11715 return 0;
11717 _ACEOF
11718 rm -f conftest.$ac_objext
11719 if { (ac_try="$ac_compile"
11720 case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_compile") 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && {
11732 test -z "$ac_c_werror_flag" ||
11733 test ! -s conftest.err
11734 } && test -s conftest.$ac_objext; then
11735 ac_cv_member_struct_stat_st_blksize=yes
11736 else
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11740 ac_cv_member_struct_stat_st_blksize=no
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11749 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
11750 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11752 cat >>confdefs.h <<_ACEOF
11753 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11754 _ACEOF
11759 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11760 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11761 if test "${ac_cv_header_time+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #include <sys/types.h>
11771 #include <sys/time.h>
11772 #include <time.h>
11775 main ()
11777 if ((struct tm *) 0)
11778 return 0;
11780 return 0;
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (ac_try="$ac_compile"
11785 case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_compile") 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } && {
11797 test -z "$ac_c_werror_flag" ||
11798 test ! -s conftest.err
11799 } && test -s conftest.$ac_objext; then
11800 ac_cv_header_time=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_cv_header_time=no
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11811 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11812 if test $ac_cv_header_time = yes; then
11814 cat >>confdefs.h <<\_ACEOF
11815 #define TIME_WITH_SYS_TIME 1
11816 _ACEOF
11820 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11821 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11822 if test "${ac_cv_struct_tm+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 #include <sys/types.h>
11832 #include <time.h>
11835 main ()
11837 struct tm tm;
11838 int *p = &tm.tm_sec;
11839 return !p;
11841 return 0;
11843 _ACEOF
11844 rm -f conftest.$ac_objext
11845 if { (ac_try="$ac_compile"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_compile") 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest.$ac_objext; then
11861 ac_cv_struct_tm=time.h
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_cv_struct_tm=sys/time.h
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11872 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11873 if test $ac_cv_struct_tm = sys/time.h; then
11875 cat >>confdefs.h <<\_ACEOF
11876 #define TM_IN_SYS_TIME 1
11877 _ACEOF
11881 { echo "$as_me:$LINENO: checking for working volatile" >&5
11882 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11883 if test "${ac_cv_c_volatile+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h. */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11894 main ()
11897 volatile int x;
11898 int * volatile y = (int *) 0;
11899 return !x && !y;
11901 return 0;
11903 _ACEOF
11904 rm -f conftest.$ac_objext
11905 if { (ac_try="$ac_compile"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_compile") 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } && {
11918 test -z "$ac_c_werror_flag" ||
11919 test ! -s conftest.err
11920 } && test -s conftest.$ac_objext; then
11921 ac_cv_c_volatile=yes
11922 else
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11926 ac_cv_c_volatile=no
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11932 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11933 if test $ac_cv_c_volatile = no; then
11935 cat >>confdefs.h <<\_ACEOF
11936 #define volatile
11937 _ACEOF
11941 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11942 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11943 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 $ac_includes_default
11953 typedef ptrdiff_t ac__type_new_;
11955 main ()
11957 if ((ac__type_new_ *) 0)
11958 return 0;
11959 if (sizeof (ac__type_new_))
11960 return 0;
11962 return 0;
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (ac_try="$ac_compile"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11982 ac_cv_type_ptrdiff_t=yes
11983 else
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_cv_type_ptrdiff_t=no
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11993 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11994 if test $ac_cv_type_ptrdiff_t = yes; then
11996 cat >>confdefs.h <<_ACEOF
11997 #define HAVE_PTRDIFF_T 1
11998 _ACEOF
12004 # Checks for library functions.
12006 for ac_header in unistd.h
12008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 ac_res=`eval echo '${'$as_ac_Header'}'`
12016 { echo "$as_me:$LINENO: result: $ac_res" >&5
12017 echo "${ECHO_T}$ac_res" >&6; }
12018 else
12019 # Is the header compilable?
12020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12022 cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h. */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 $ac_includes_default
12029 #include <$ac_header>
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (ac_try="$ac_compile"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_compile") 2>conftest.er1
12039 ac_status=$?
12040 grep -v '^ *+' conftest.er1 >conftest.err
12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } && {
12045 test -z "$ac_c_werror_flag" ||
12046 test ! -s conftest.err
12047 } && test -s conftest.$ac_objext; then
12048 ac_header_compiler=yes
12049 else
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_header_compiler=no
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12058 echo "${ECHO_T}$ac_header_compiler" >&6; }
12060 # Is the header present?
12061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
12070 _ACEOF
12071 if { (ac_try="$ac_cpp conftest.$ac_ext"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } >/dev/null && {
12084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12085 test ! -s conftest.err
12086 }; then
12087 ac_header_preproc=yes
12088 else
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 ac_header_preproc=no
12095 rm -f conftest.err conftest.$ac_ext
12096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12097 echo "${ECHO_T}$ac_header_preproc" >&6; }
12099 # So? What about this header?
12100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12101 yes:no: )
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12106 ac_header_preproc=yes
12108 no:yes:* )
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12121 ( cat <<\_ASBOX
12122 ## ------------------------------- ##
12123 ## Report this to www.asterisk.org ##
12124 ## ------------------------------- ##
12125 _ASBOX
12126 ) | sed "s/^/$as_me: WARNING: /" >&2
12128 esac
12129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 eval "$as_ac_Header=\$ac_header_preproc"
12136 ac_res=`eval echo '${'$as_ac_Header'}'`
12137 { echo "$as_me:$LINENO: result: $ac_res" >&5
12138 echo "${ECHO_T}$ac_res" >&6; }
12141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12142 cat >>confdefs.h <<_ACEOF
12143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12144 _ACEOF
12148 done
12150 { echo "$as_me:$LINENO: checking for working chown" >&5
12151 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
12152 if test "${ac_cv_func_chown_works+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 if test "$cross_compiling" = yes; then
12156 ac_cv_func_chown_works=no
12157 else
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h. */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 $ac_includes_default
12165 #include <fcntl.h>
12168 main ()
12170 char *f = "conftest.chown";
12171 struct stat before, after;
12173 if (creat (f, 0600) < 0)
12174 return 1;
12175 if (stat (f, &before) < 0)
12176 return 1;
12177 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12178 return 1;
12179 if (stat (f, &after) < 0)
12180 return 1;
12181 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12184 return 0;
12186 _ACEOF
12187 rm -f conftest$ac_exeext
12188 if { (ac_try="$ac_link"
12189 case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192 esac
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_link") 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12198 { (case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_try") 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_func_chown_works=yes
12208 else
12209 echo "$as_me: program exited with status $ac_status" >&5
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 ( exit $ac_status )
12214 ac_cv_func_chown_works=no
12216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12220 rm -f conftest.chown
12223 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
12224 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
12225 if test $ac_cv_func_chown_works = yes; then
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_CHOWN 1
12229 _ACEOF
12233 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12234 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12235 if test "${ac_cv_func_closedir_void+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 if test "$cross_compiling" = yes; then
12239 ac_cv_func_closedir_void=yes
12240 else
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 $ac_includes_default
12248 #include <$ac_header_dirent>
12249 #ifndef __cplusplus
12250 int closedir ();
12251 #endif
12254 main ()
12256 return closedir (opendir (".")) != 0;
12258 return 0;
12260 _ACEOF
12261 rm -f conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_link") 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12272 { (case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 ac_cv_func_closedir_void=no
12282 else
12283 echo "$as_me: program exited with status $ac_status" >&5
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ( exit $ac_status )
12288 ac_cv_func_closedir_void=yes
12290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12295 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12296 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12297 if test $ac_cv_func_closedir_void = yes; then
12299 cat >>confdefs.h <<\_ACEOF
12300 #define CLOSEDIR_VOID 1
12301 _ACEOF
12305 { echo "$as_me:$LINENO: checking for error_at_line" >&5
12306 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
12307 if test "${ac_cv_lib_error_at_line+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <error.h>
12318 main ()
12320 error_at_line (0, 0, "", 0, "an error occurred");
12322 return 0;
12324 _ACEOF
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_link") 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest$ac_exeext &&
12342 $as_test_x conftest$ac_exeext; then
12343 ac_cv_lib_error_at_line=yes
12344 else
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_cv_lib_error_at_line=no
12351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12352 conftest$ac_exeext conftest.$ac_ext
12354 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
12355 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
12356 if test $ac_cv_lib_error_at_line = no; then
12357 case " $LIBOBJS " in
12358 *" error.$ac_objext "* ) ;;
12359 *) LIBOBJS="$LIBOBJS error.$ac_objext"
12361 esac
12366 for ac_header in vfork.h
12368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 ac_res=`eval echo '${'$as_ac_Header'}'`
12376 { echo "$as_me:$LINENO: result: $ac_res" >&5
12377 echo "${ECHO_T}$ac_res" >&6; }
12378 else
12379 # Is the header compilable?
12380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h. */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 $ac_includes_default
12389 #include <$ac_header>
12390 _ACEOF
12391 rm -f conftest.$ac_objext
12392 if { (ac_try="$ac_compile"
12393 case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_compile") 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest.$ac_objext; then
12408 ac_header_compiler=yes
12409 else
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12413 ac_header_compiler=no
12416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12418 echo "${ECHO_T}$ac_header_compiler" >&6; }
12420 # Is the header present?
12421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h. */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 #include <$ac_header>
12430 _ACEOF
12431 if { (ac_try="$ac_cpp conftest.$ac_ext"
12432 case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } >/dev/null && {
12444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12445 test ! -s conftest.err
12446 }; then
12447 ac_header_preproc=yes
12448 else
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12452 ac_header_preproc=no
12455 rm -f conftest.err conftest.$ac_ext
12456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12457 echo "${ECHO_T}$ac_header_preproc" >&6; }
12459 # So? What about this header?
12460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12461 yes:no: )
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12466 ac_header_preproc=yes
12468 no:yes:* )
12469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12481 ( cat <<\_ASBOX
12482 ## ------------------------------- ##
12483 ## Report this to www.asterisk.org ##
12484 ## ------------------------------- ##
12485 _ASBOX
12486 ) | sed "s/^/$as_me: WARNING: /" >&2
12488 esac
12489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 eval "$as_ac_Header=\$ac_header_preproc"
12496 ac_res=`eval echo '${'$as_ac_Header'}'`
12497 { echo "$as_me:$LINENO: result: $ac_res" >&5
12498 echo "${ECHO_T}$ac_res" >&6; }
12501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12504 _ACEOF
12508 done
12512 for ac_func in fork vfork
12514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12528 #define $ac_func innocuous_$ac_func
12530 /* System header to define __stub macros and hopefully few prototypes,
12531 which can conflict with char $ac_func (); below.
12532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12533 <limits.h> exists even on freestanding compilers. */
12535 #ifdef __STDC__
12536 # include <limits.h>
12537 #else
12538 # include <assert.h>
12539 #endif
12541 #undef $ac_func
12543 /* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12546 #ifdef __cplusplus
12547 extern "C"
12548 #endif
12549 char $ac_func ();
12550 /* The GNU C library defines this for functions which it implements
12551 to always fail with ENOSYS. Some functions are actually named
12552 something starting with __ and the normal name is an alias. */
12553 #if defined __stub_$ac_func || defined __stub___$ac_func
12554 choke me
12555 #endif
12558 main ()
12560 return $ac_func ();
12562 return 0;
12564 _ACEOF
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12570 esac
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_link") 2>conftest.er1
12573 ac_status=$?
12574 grep -v '^ *+' conftest.er1 >conftest.err
12575 rm -f conftest.er1
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } && {
12579 test -z "$ac_c_werror_flag" ||
12580 test ! -s conftest.err
12581 } && test -s conftest$ac_exeext &&
12582 $as_test_x conftest$ac_exeext; then
12583 eval "$as_ac_var=yes"
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 eval "$as_ac_var=no"
12591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12592 conftest$ac_exeext conftest.$ac_ext
12594 ac_res=`eval echo '${'$as_ac_var'}'`
12595 { echo "$as_me:$LINENO: result: $ac_res" >&5
12596 echo "${ECHO_T}$ac_res" >&6; }
12597 if test `eval echo '${'$as_ac_var'}'` = yes; then
12598 cat >>confdefs.h <<_ACEOF
12599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12600 _ACEOF
12603 done
12605 if test "x$ac_cv_func_fork" = xyes; then
12606 { echo "$as_me:$LINENO: checking for working fork" >&5
12607 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12608 if test "${ac_cv_func_fork_works+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611 if test "$cross_compiling" = yes; then
12612 ac_cv_func_fork_works=cross
12613 else
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12622 main ()
12625 /* By Ruediger Kuhlmann. */
12626 return fork () < 0;
12629 return 0;
12631 _ACEOF
12632 rm -f conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_link") 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_cv_func_fork_works=yes
12653 else
12654 echo "$as_me: program exited with status $ac_status" >&5
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ( exit $ac_status )
12659 ac_cv_func_fork_works=no
12661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12666 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12667 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12669 else
12670 ac_cv_func_fork_works=$ac_cv_func_fork
12672 if test "x$ac_cv_func_fork_works" = xcross; then
12673 case $host in
12674 *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* | *-*-linux-uclibc* )
12675 # Override, as these systems have only a dummy fork() stub
12676 ac_cv_func_fork_works=no
12679 ac_cv_func_fork_works=yes
12681 esac
12682 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12683 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12685 ac_cv_func_vfork_works=$ac_cv_func_vfork
12686 if test "x$ac_cv_func_vfork" = xyes; then
12687 { echo "$as_me:$LINENO: checking for working vfork" >&5
12688 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12689 if test "${ac_cv_func_vfork_works+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692 if test "$cross_compiling" = yes; then
12693 ac_cv_func_vfork_works=cross
12694 else
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 /* Thanks to Paul Eggert for this test. */
12702 $ac_includes_default
12703 #include <sys/wait.h>
12704 #ifdef HAVE_VFORK_H
12705 # include <vfork.h>
12706 #endif
12707 /* On some sparc systems, changes by the child to local and incoming
12708 argument registers are propagated back to the parent. The compiler
12709 is told about this with #include <vfork.h>, but some compilers
12710 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12711 static variable whose address is put into a register that is
12712 clobbered by the vfork. */
12713 static void
12714 #ifdef __cplusplus
12715 sparc_address_test (int arg)
12716 # else
12717 sparc_address_test (arg) int arg;
12718 #endif
12720 static pid_t child;
12721 if (!child) {
12722 child = vfork ();
12723 if (child < 0) {
12724 perror ("vfork");
12725 _exit(2);
12727 if (!child) {
12728 arg = getpid();
12729 write(-1, "", 0);
12730 _exit (arg);
12736 main ()
12738 pid_t parent = getpid ();
12739 pid_t child;
12741 sparc_address_test (0);
12743 child = vfork ();
12745 if (child == 0) {
12746 /* Here is another test for sparc vfork register problems. This
12747 test uses lots of local variables, at least as many local
12748 variables as main has allocated so far including compiler
12749 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12750 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12751 reuse the register of parent for one of the local variables,
12752 since it will think that parent can't possibly be used any more
12753 in this routine. Assigning to the local variable will thus
12754 munge parent in the parent process. */
12755 pid_t
12756 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12757 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12758 /* Convince the compiler that p..p7 are live; otherwise, it might
12759 use the same hardware register for all 8 local variables. */
12760 if (p != p1 || p != p2 || p != p3 || p != p4
12761 || p != p5 || p != p6 || p != p7)
12762 _exit(1);
12764 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12765 from child file descriptors. If the child closes a descriptor
12766 before it execs or exits, this munges the parent's descriptor
12767 as well. Test for this by closing stdout in the child. */
12768 _exit(close(fileno(stdout)) != 0);
12769 } else {
12770 int status;
12771 struct stat st;
12773 while (wait(&status) != child)
12775 return (
12776 /* Was there some problem with vforking? */
12777 child < 0
12779 /* Did the child fail? (This shouldn't happen.) */
12780 || status
12782 /* Did the vfork/compiler bug occur? */
12783 || parent != getpid()
12785 /* Did the file descriptor bug occur? */
12786 || fstat(fileno(stdout), &st) != 0
12790 _ACEOF
12791 rm -f conftest$ac_exeext
12792 if { (ac_try="$ac_link"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_link") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_func_vfork_works=yes
12812 else
12813 echo "$as_me: program exited with status $ac_status" >&5
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ( exit $ac_status )
12818 ac_cv_func_vfork_works=no
12820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12825 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12826 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12829 if test "x$ac_cv_func_fork_works" = xcross; then
12830 ac_cv_func_vfork_works=$ac_cv_func_vfork
12831 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12832 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12835 if test "x$ac_cv_func_vfork_works" = xyes; then
12837 cat >>confdefs.h <<\_ACEOF
12838 #define HAVE_WORKING_VFORK 1
12839 _ACEOF
12841 else
12843 cat >>confdefs.h <<\_ACEOF
12844 #define vfork fork
12845 _ACEOF
12848 if test "x$ac_cv_func_fork_works" = xyes; then
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_WORKING_FORK 1
12852 _ACEOF
12856 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12857 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
12858 if test "${ac_cv_sys_largefile_source+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861 while :; do
12862 cat >conftest.$ac_ext <<_ACEOF
12863 /* confdefs.h. */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 #include <sys/types.h> /* for off_t */
12869 #include <stdio.h>
12871 main ()
12873 int (*fp) (FILE *, off_t, int) = fseeko;
12874 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12876 return 0;
12878 _ACEOF
12879 rm -f conftest.$ac_objext conftest$ac_exeext
12880 if { (ac_try="$ac_link"
12881 case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_link") 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } && {
12893 test -z "$ac_c_werror_flag" ||
12894 test ! -s conftest.err
12895 } && test -s conftest$ac_exeext &&
12896 $as_test_x conftest$ac_exeext; then
12897 ac_cv_sys_largefile_source=no; break
12898 else
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12906 conftest$ac_exeext conftest.$ac_ext
12907 cat >conftest.$ac_ext <<_ACEOF
12908 /* confdefs.h. */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 #define _LARGEFILE_SOURCE 1
12914 #include <sys/types.h> /* for off_t */
12915 #include <stdio.h>
12917 main ()
12919 int (*fp) (FILE *, off_t, int) = fseeko;
12920 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12922 return 0;
12924 _ACEOF
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_link") 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } && {
12939 test -z "$ac_c_werror_flag" ||
12940 test ! -s conftest.err
12941 } && test -s conftest$ac_exeext &&
12942 $as_test_x conftest$ac_exeext; then
12943 ac_cv_sys_largefile_source=1; break
12944 else
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12952 conftest$ac_exeext conftest.$ac_ext
12953 ac_cv_sys_largefile_source=unknown
12954 break
12955 done
12957 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12958 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
12959 case $ac_cv_sys_largefile_source in #(
12960 no | unknown) ;;
12962 cat >>confdefs.h <<_ACEOF
12963 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12964 _ACEOF
12966 esac
12967 rm -f conftest*
12969 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12970 # in glibc 2.1.3, but that breaks too many other things.
12971 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12972 if test $ac_cv_sys_largefile_source != unknown; then
12974 cat >>confdefs.h <<\_ACEOF
12975 #define HAVE_FSEEKO 1
12976 _ACEOF
12980 if test $ac_cv_c_compiler_gnu = yes; then
12981 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12982 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12983 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986 ac_pattern="Autoconf.*'x'"
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h. */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 #include <sgtty.h>
12994 Autoconf TIOCGETP
12995 _ACEOF
12996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12997 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12998 ac_cv_prog_gcc_traditional=yes
12999 else
13000 ac_cv_prog_gcc_traditional=no
13002 rm -f conftest*
13005 if test $ac_cv_prog_gcc_traditional = no; then
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 #include <termio.h>
13013 Autoconf TCGETA
13014 _ACEOF
13015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13016 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13017 ac_cv_prog_gcc_traditional=yes
13019 rm -f conftest*
13023 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13024 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
13025 if test $ac_cv_prog_gcc_traditional = yes; then
13026 CC="$CC -traditional"
13030 # XXX: these are commented out until we determine whether it matters if our malloc()
13031 # acts exactly like glibc's or not
13032 # AC_FUNC_MALLOC
13033 # AC_FUNC_REALLOC
13034 { echo "$as_me:$LINENO: checking for working memcmp" >&5
13035 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
13036 if test "${ac_cv_func_memcmp_working+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039 if test "$cross_compiling" = yes; then
13040 ac_cv_func_memcmp_working=no
13041 else
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048 $ac_includes_default
13050 main ()
13053 /* Some versions of memcmp are not 8-bit clean. */
13054 char c0 = '\100', c1 = '\200', c2 = '\201';
13055 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13056 return 1;
13058 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13059 or more and with at least one buffer not starting on a 4-byte boundary.
13060 William Lewis provided this test program. */
13062 char foo[21];
13063 char bar[21];
13064 int i;
13065 for (i = 0; i < 4; i++)
13067 char *a = foo + i;
13068 char *b = bar + i;
13069 strcpy (a, "--------01111111");
13070 strcpy (b, "--------10000000");
13071 if (memcmp (a, b, 16) >= 0)
13072 return 1;
13074 return 0;
13078 return 0;
13080 _ACEOF
13081 rm -f conftest$ac_exeext
13082 if { (ac_try="$ac_link"
13083 case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_link") 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_func_memcmp_working=yes
13102 else
13103 echo "$as_me: program exited with status $ac_status" >&5
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ( exit $ac_status )
13108 ac_cv_func_memcmp_working=no
13110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13115 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13116 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13117 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13118 *" memcmp.$ac_objext "* ) ;;
13119 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13121 esac
13126 for ac_header in stdlib.h unistd.h
13128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 ac_res=`eval echo '${'$as_ac_Header'}'`
13136 { echo "$as_me:$LINENO: result: $ac_res" >&5
13137 echo "${ECHO_T}$ac_res" >&6; }
13138 else
13139 # Is the header compilable?
13140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h. */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 $ac_includes_default
13149 #include <$ac_header>
13150 _ACEOF
13151 rm -f conftest.$ac_objext
13152 if { (ac_try="$ac_compile"
13153 case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_compile") 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } && {
13165 test -z "$ac_c_werror_flag" ||
13166 test ! -s conftest.err
13167 } && test -s conftest.$ac_objext; then
13168 ac_header_compiler=yes
13169 else
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ac_header_compiler=no
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13178 echo "${ECHO_T}$ac_header_compiler" >&6; }
13180 # Is the header present?
13181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 #include <$ac_header>
13190 _ACEOF
13191 if { (ac_try="$ac_cpp conftest.$ac_ext"
13192 case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } >/dev/null && {
13204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13205 test ! -s conftest.err
13206 }; then
13207 ac_header_preproc=yes
13208 else
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13212 ac_header_preproc=no
13215 rm -f conftest.err conftest.$ac_ext
13216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13217 echo "${ECHO_T}$ac_header_preproc" >&6; }
13219 # So? What about this header?
13220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13221 yes:no: )
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13226 ac_header_preproc=yes
13228 no:yes:* )
13229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13241 ( cat <<\_ASBOX
13242 ## ------------------------------- ##
13243 ## Report this to www.asterisk.org ##
13244 ## ------------------------------- ##
13245 _ASBOX
13246 ) | sed "s/^/$as_me: WARNING: /" >&2
13248 esac
13249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254 eval "$as_ac_Header=\$ac_header_preproc"
13256 ac_res=`eval echo '${'$as_ac_Header'}'`
13257 { echo "$as_me:$LINENO: result: $ac_res" >&5
13258 echo "${ECHO_T}$ac_res" >&6; }
13261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13262 cat >>confdefs.h <<_ACEOF
13263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13264 _ACEOF
13268 done
13271 for ac_func in getpagesize
13273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13287 #define $ac_func innocuous_$ac_func
13289 /* System header to define __stub macros and hopefully few prototypes,
13290 which can conflict with char $ac_func (); below.
13291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13292 <limits.h> exists even on freestanding compilers. */
13294 #ifdef __STDC__
13295 # include <limits.h>
13296 #else
13297 # include <assert.h>
13298 #endif
13300 #undef $ac_func
13302 /* Override any GCC internal prototype to avoid an error.
13303 Use char because int might match the return type of a GCC
13304 builtin and then its argument prototype would still apply. */
13305 #ifdef __cplusplus
13306 extern "C"
13307 #endif
13308 char $ac_func ();
13309 /* The GNU C library defines this for functions which it implements
13310 to always fail with ENOSYS. Some functions are actually named
13311 something starting with __ and the normal name is an alias. */
13312 #if defined __stub_$ac_func || defined __stub___$ac_func
13313 choke me
13314 #endif
13317 main ()
13319 return $ac_func ();
13321 return 0;
13323 _ACEOF
13324 rm -f conftest.$ac_objext conftest$ac_exeext
13325 if { (ac_try="$ac_link"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_link") 2>conftest.er1
13332 ac_status=$?
13333 grep -v '^ *+' conftest.er1 >conftest.err
13334 rm -f conftest.er1
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } && {
13338 test -z "$ac_c_werror_flag" ||
13339 test ! -s conftest.err
13340 } && test -s conftest$ac_exeext &&
13341 $as_test_x conftest$ac_exeext; then
13342 eval "$as_ac_var=yes"
13343 else
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 eval "$as_ac_var=no"
13350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13351 conftest$ac_exeext conftest.$ac_ext
13353 ac_res=`eval echo '${'$as_ac_var'}'`
13354 { echo "$as_me:$LINENO: result: $ac_res" >&5
13355 echo "${ECHO_T}$ac_res" >&6; }
13356 if test `eval echo '${'$as_ac_var'}'` = yes; then
13357 cat >>confdefs.h <<_ACEOF
13358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13359 _ACEOF
13362 done
13364 { echo "$as_me:$LINENO: checking for working mmap" >&5
13365 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
13366 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369 if test "$cross_compiling" = yes; then
13370 ac_cv_func_mmap_fixed_mapped=no
13371 else
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 $ac_includes_default
13379 /* malloc might have been renamed as rpl_malloc. */
13380 #undef malloc
13382 /* Thanks to Mike Haertel and Jim Avera for this test.
13383 Here is a matrix of mmap possibilities:
13384 mmap private not fixed
13385 mmap private fixed at somewhere currently unmapped
13386 mmap private fixed at somewhere already mapped
13387 mmap shared not fixed
13388 mmap shared fixed at somewhere currently unmapped
13389 mmap shared fixed at somewhere already mapped
13390 For private mappings, we should verify that changes cannot be read()
13391 back from the file, nor mmap's back from the file at a different
13392 address. (There have been systems where private was not correctly
13393 implemented like the infamous i386 svr4.0, and systems where the
13394 VM page cache was not coherent with the file system buffer cache
13395 like early versions of FreeBSD and possibly contemporary NetBSD.)
13396 For shared mappings, we should conversely verify that changes get
13397 propagated back to all the places they're supposed to be.
13399 Grep wants private fixed already mapped.
13400 The main things grep needs to know about mmap are:
13401 * does it exist and is it safe to write into the mmap'd area
13402 * how to use it (BSD variants) */
13404 #include <fcntl.h>
13405 #include <sys/mman.h>
13407 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13408 char *malloc ();
13409 #endif
13411 /* This mess was copied from the GNU getpagesize.h. */
13412 #ifndef HAVE_GETPAGESIZE
13413 /* Assume that all systems that can run configure have sys/param.h. */
13414 # ifndef HAVE_SYS_PARAM_H
13415 # define HAVE_SYS_PARAM_H 1
13416 # endif
13418 # ifdef _SC_PAGESIZE
13419 # define getpagesize() sysconf(_SC_PAGESIZE)
13420 # else /* no _SC_PAGESIZE */
13421 # ifdef HAVE_SYS_PARAM_H
13422 # include <sys/param.h>
13423 # ifdef EXEC_PAGESIZE
13424 # define getpagesize() EXEC_PAGESIZE
13425 # else /* no EXEC_PAGESIZE */
13426 # ifdef NBPG
13427 # define getpagesize() NBPG * CLSIZE
13428 # ifndef CLSIZE
13429 # define CLSIZE 1
13430 # endif /* no CLSIZE */
13431 # else /* no NBPG */
13432 # ifdef NBPC
13433 # define getpagesize() NBPC
13434 # else /* no NBPC */
13435 # ifdef PAGESIZE
13436 # define getpagesize() PAGESIZE
13437 # endif /* PAGESIZE */
13438 # endif /* no NBPC */
13439 # endif /* no NBPG */
13440 # endif /* no EXEC_PAGESIZE */
13441 # else /* no HAVE_SYS_PARAM_H */
13442 # define getpagesize() 8192 /* punt totally */
13443 # endif /* no HAVE_SYS_PARAM_H */
13444 # endif /* no _SC_PAGESIZE */
13446 #endif /* no HAVE_GETPAGESIZE */
13449 main ()
13451 char *data, *data2, *data3;
13452 int i, pagesize;
13453 int fd;
13455 pagesize = getpagesize ();
13457 /* First, make a file with some known garbage in it. */
13458 data = (char *) malloc (pagesize);
13459 if (!data)
13460 return 1;
13461 for (i = 0; i < pagesize; ++i)
13462 *(data + i) = rand ();
13463 umask (0);
13464 fd = creat ("conftest.mmap", 0600);
13465 if (fd < 0)
13466 return 1;
13467 if (write (fd, data, pagesize) != pagesize)
13468 return 1;
13469 close (fd);
13471 /* Next, try to mmap the file at a fixed address which already has
13472 something else allocated at it. If we can, also make sure that
13473 we see the same garbage. */
13474 fd = open ("conftest.mmap", O_RDWR);
13475 if (fd < 0)
13476 return 1;
13477 data2 = (char *) malloc (2 * pagesize);
13478 if (!data2)
13479 return 1;
13480 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13481 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13482 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13483 return 1;
13484 for (i = 0; i < pagesize; ++i)
13485 if (*(data + i) != *(data2 + i))
13486 return 1;
13488 /* Finally, make sure that changes to the mapped area do not
13489 percolate back to the file as seen by read(). (This is a bug on
13490 some variants of i386 svr4.0.) */
13491 for (i = 0; i < pagesize; ++i)
13492 *(data2 + i) = *(data2 + i) + 1;
13493 data3 = (char *) malloc (pagesize);
13494 if (!data3)
13495 return 1;
13496 if (read (fd, data3, pagesize) != pagesize)
13497 return 1;
13498 for (i = 0; i < pagesize; ++i)
13499 if (*(data + i) != *(data3 + i))
13500 return 1;
13501 close (fd);
13502 return 0;
13504 _ACEOF
13505 rm -f conftest$ac_exeext
13506 if { (ac_try="$ac_link"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_link") 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13516 { (case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_try") 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 ac_cv_func_mmap_fixed_mapped=yes
13526 else
13527 echo "$as_me: program exited with status $ac_status" >&5
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 ( exit $ac_status )
13532 ac_cv_func_mmap_fixed_mapped=no
13534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13539 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13540 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13541 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_MMAP 1
13545 _ACEOF
13548 rm -f conftest.mmap
13552 for ac_header in sys/select.h sys/socket.h
13554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 ac_res=`eval echo '${'$as_ac_Header'}'`
13562 { echo "$as_me:$LINENO: result: $ac_res" >&5
13563 echo "${ECHO_T}$ac_res" >&6; }
13564 else
13565 # Is the header compilable?
13566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13568 cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h. */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 $ac_includes_default
13575 #include <$ac_header>
13576 _ACEOF
13577 rm -f conftest.$ac_objext
13578 if { (ac_try="$ac_compile"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_compile") 2>conftest.er1
13585 ac_status=$?
13586 grep -v '^ *+' conftest.er1 >conftest.err
13587 rm -f conftest.er1
13588 cat conftest.err >&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && {
13591 test -z "$ac_c_werror_flag" ||
13592 test ! -s conftest.err
13593 } && test -s conftest.$ac_objext; then
13594 ac_header_compiler=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_header_compiler=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13604 echo "${ECHO_T}$ac_header_compiler" >&6; }
13606 # Is the header present?
13607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
13616 _ACEOF
13617 if { (ac_try="$ac_cpp conftest.$ac_ext"
13618 case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } >/dev/null && {
13630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 }; then
13633 ac_header_preproc=yes
13634 else
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_header_preproc=no
13641 rm -f conftest.err conftest.$ac_ext
13642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13643 echo "${ECHO_T}$ac_header_preproc" >&6; }
13645 # So? What about this header?
13646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13647 yes:no: )
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13652 ac_header_preproc=yes
13654 no:yes:* )
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13667 ( cat <<\_ASBOX
13668 ## ------------------------------- ##
13669 ## Report this to www.asterisk.org ##
13670 ## ------------------------------- ##
13671 _ASBOX
13672 ) | sed "s/^/$as_me: WARNING: /" >&2
13674 esac
13675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 eval "$as_ac_Header=\$ac_header_preproc"
13682 ac_res=`eval echo '${'$as_ac_Header'}'`
13683 { echo "$as_me:$LINENO: result: $ac_res" >&5
13684 echo "${ECHO_T}$ac_res" >&6; }
13687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13688 cat >>confdefs.h <<_ACEOF
13689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13690 _ACEOF
13694 done
13696 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
13697 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
13698 if test "${ac_cv_func_select_args+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13702 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13703 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 $ac_includes_default
13711 #ifdef HAVE_SYS_SELECT_H
13712 # include <sys/select.h>
13713 #endif
13714 #ifdef HAVE_SYS_SOCKET_H
13715 # include <sys/socket.h>
13716 #endif
13719 main ()
13721 extern int select ($ac_arg1,
13722 $ac_arg234, $ac_arg234, $ac_arg234,
13723 $ac_arg5);
13725 return 0;
13727 _ACEOF
13728 rm -f conftest.$ac_objext
13729 if { (ac_try="$ac_compile"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13733 esac
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_compile") 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } && {
13742 test -z "$ac_c_werror_flag" ||
13743 test ! -s conftest.err
13744 } && test -s conftest.$ac_objext; then
13745 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13746 else
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 done
13755 done
13756 done
13757 # Provide a safe default value.
13758 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13761 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13762 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
13763 ac_save_IFS=$IFS; IFS=','
13764 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13765 IFS=$ac_save_IFS
13766 shift
13768 cat >>confdefs.h <<_ACEOF
13769 #define SELECT_TYPE_ARG1 $1
13770 _ACEOF
13773 cat >>confdefs.h <<_ACEOF
13774 #define SELECT_TYPE_ARG234 ($2)
13775 _ACEOF
13778 cat >>confdefs.h <<_ACEOF
13779 #define SELECT_TYPE_ARG5 ($3)
13780 _ACEOF
13782 rm -f conftest*
13784 { echo "$as_me:$LINENO: checking for function prototypes" >&5
13785 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
13786 if test "$ac_cv_prog_cc_c89" != no; then
13787 { echo "$as_me:$LINENO: result: yes" >&5
13788 echo "${ECHO_T}yes" >&6; }
13790 cat >>confdefs.h <<\_ACEOF
13791 #define PROTOTYPES 1
13792 _ACEOF
13795 cat >>confdefs.h <<\_ACEOF
13796 #define __PROTOTYPES 1
13797 _ACEOF
13799 else
13800 { echo "$as_me:$LINENO: result: no" >&5
13801 echo "${ECHO_T}no" >&6; }
13804 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
13805 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
13806 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 ac_cv_func_setvbuf_reversed=no
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h. */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <stdio.h>
13817 # ifdef PROTOTYPES
13818 int (setvbuf) (FILE *, int, char *, size_t);
13819 # endif
13821 main ()
13823 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
13825 return 0;
13827 _ACEOF
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_link") 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } && {
13842 test -z "$ac_c_werror_flag" ||
13843 test ! -s conftest.err
13844 } && test -s conftest$ac_exeext &&
13845 $as_test_x conftest$ac_exeext; then
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852 #include <stdio.h>
13853 # ifdef PROTOTYPES
13854 int (setvbuf) (FILE *, int, char *, size_t);
13855 # endif
13857 main ()
13859 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
13861 return 0;
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext &&
13881 $as_test_x conftest$ac_exeext; then
13882 # It compiles and links either way, so it must not be declared
13883 # with a prototype and most likely this is a K&R C compiler.
13884 # Try running it.
13885 if test "$cross_compiling" = yes; then
13886 : # Assume setvbuf is not reversed when cross-compiling.
13887 else
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $ac_includes_default
13896 main ()
13898 /* This call has the arguments reversed.
13899 A reversed system may check and see that the address of buf
13900 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
13901 char buf;
13902 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
13903 return 1;
13904 putchar ('\r');
13905 return 0; /* Non-reversed systems SEGV here. */
13907 return 0;
13909 _ACEOF
13910 rm -f conftest$ac_exeext
13911 if { (ac_try="$ac_link"
13912 case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915 esac
13916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13917 (eval "$ac_link") 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13921 { (case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_try") 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_cv_func_setvbuf_reversed=yes
13931 else
13932 echo "$as_me: program exited with status $ac_status" >&5
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13941 ac_cv_func_setvbuf_reversed=yes
13942 else
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13950 conftest$ac_exeext conftest.$ac_ext
13951 else
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13959 conftest$ac_exeext conftest.$ac_ext
13961 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
13962 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
13963 if test $ac_cv_func_setvbuf_reversed = yes; then
13965 cat >>confdefs.h <<\_ACEOF
13966 #define SETVBUF_REVERSED 1
13967 _ACEOF
13971 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13972 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13973 if test "${ac_cv_type_signal+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h. */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #include <sys/types.h>
13983 #include <signal.h>
13986 main ()
13988 return *(signal (0, 0)) (0) == 1;
13990 return 0;
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (ac_try="$ac_compile"
13995 case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_compile") 2>conftest.er1
14001 ac_status=$?
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } && {
14007 test -z "$ac_c_werror_flag" ||
14008 test ! -s conftest.err
14009 } && test -s conftest.$ac_objext; then
14010 ac_cv_type_signal=int
14011 else
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 ac_cv_type_signal=void
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14021 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14023 cat >>confdefs.h <<_ACEOF
14024 #define RETSIGTYPE $ac_cv_type_signal
14025 _ACEOF
14028 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14029 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
14030 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033 rm -f conftest.sym conftest.file
14034 echo >conftest.file
14035 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14036 if test "$cross_compiling" = yes; then
14037 ac_cv_func_lstat_dereferences_slashed_symlink=no
14038 else
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h. */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 $ac_includes_default
14047 main ()
14049 struct stat sbuf;
14050 /* Linux will dereference the symlink and fail.
14051 That is better in the sense that it means we will not
14052 have to compile and use the lstat wrapper. */
14053 return lstat ("conftest.sym/", &sbuf) == 0;
14055 return 0;
14057 _ACEOF
14058 rm -f conftest$ac_exeext
14059 if { (ac_try="$ac_link"
14060 case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_link") 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14069 { (case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_try") 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14079 else
14080 echo "$as_me: program exited with status $ac_status" >&5
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14084 ( exit $ac_status )
14085 ac_cv_func_lstat_dereferences_slashed_symlink=no
14087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14091 else
14092 # If the `ln -s' command failed, then we probably don't even
14093 # have an lstat function.
14094 ac_cv_func_lstat_dereferences_slashed_symlink=no
14096 rm -f conftest.sym conftest.file
14099 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14100 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14102 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14104 cat >>confdefs.h <<_ACEOF
14105 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14106 _ACEOF
14109 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14110 case " $LIBOBJS " in
14111 *" lstat.$ac_objext "* ) ;;
14112 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14114 esac
14118 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
14119 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
14120 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123 if test "$cross_compiling" = yes; then
14124 ac_cv_func_stat_empty_string_bug=yes
14125 else
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 $ac_includes_default
14134 main ()
14136 struct stat sbuf;
14137 return stat ("", &sbuf) == 0;
14139 return 0;
14141 _ACEOF
14142 rm -f conftest$ac_exeext
14143 if { (ac_try="$ac_link"
14144 case "(($ac_try" in
14145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14147 esac
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_link") 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_func_stat_empty_string_bug=no
14163 else
14164 echo "$as_me: program exited with status $ac_status" >&5
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 ( exit $ac_status )
14169 ac_cv_func_stat_empty_string_bug=yes
14171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14176 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
14177 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
14178 if test $ac_cv_func_stat_empty_string_bug = yes; then
14179 case " $LIBOBJS " in
14180 *" stat.$ac_objext "* ) ;;
14181 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14183 esac
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_STAT_EMPTY_STRING_BUG 1
14188 _ACEOF
14192 { echo "$as_me:$LINENO: checking for working strcoll" >&5
14193 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
14194 if test "${ac_cv_func_strcoll_works+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 if test "$cross_compiling" = yes; then
14198 ac_cv_func_strcoll_works=no
14199 else
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 $ac_includes_default
14208 main ()
14210 return (strcoll ("abc", "def") >= 0 ||
14211 strcoll ("ABC", "DEF") >= 0 ||
14212 strcoll ("123", "456") >= 0)
14214 return 0;
14216 _ACEOF
14217 rm -f conftest$ac_exeext
14218 if { (ac_try="$ac_link"
14219 case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_link") 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_func_strcoll_works=yes
14238 else
14239 echo "$as_me: program exited with status $ac_status" >&5
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ( exit $ac_status )
14244 ac_cv_func_strcoll_works=no
14246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14251 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
14252 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
14253 if test $ac_cv_func_strcoll_works = yes; then
14255 cat >>confdefs.h <<\_ACEOF
14256 #define HAVE_STRCOLL 1
14257 _ACEOF
14262 for ac_func in strftime
14264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h. */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14278 #define $ac_func innocuous_$ac_func
14280 /* System header to define __stub macros and hopefully few prototypes,
14281 which can conflict with char $ac_func (); below.
14282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14283 <limits.h> exists even on freestanding compilers. */
14285 #ifdef __STDC__
14286 # include <limits.h>
14287 #else
14288 # include <assert.h>
14289 #endif
14291 #undef $ac_func
14293 /* Override any GCC internal prototype to avoid an error.
14294 Use char because int might match the return type of a GCC
14295 builtin and then its argument prototype would still apply. */
14296 #ifdef __cplusplus
14297 extern "C"
14298 #endif
14299 char $ac_func ();
14300 /* The GNU C library defines this for functions which it implements
14301 to always fail with ENOSYS. Some functions are actually named
14302 something starting with __ and the normal name is an alias. */
14303 #if defined __stub_$ac_func || defined __stub___$ac_func
14304 choke me
14305 #endif
14308 main ()
14310 return $ac_func ();
14312 return 0;
14314 _ACEOF
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (ac_try="$ac_link"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_link") 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest$ac_exeext &&
14332 $as_test_x conftest$ac_exeext; then
14333 eval "$as_ac_var=yes"
14334 else
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 eval "$as_ac_var=no"
14341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14342 conftest$ac_exeext conftest.$ac_ext
14344 ac_res=`eval echo '${'$as_ac_var'}'`
14345 { echo "$as_me:$LINENO: result: $ac_res" >&5
14346 echo "${ECHO_T}$ac_res" >&6; }
14347 if test `eval echo '${'$as_ac_var'}'` = yes; then
14348 cat >>confdefs.h <<_ACEOF
14349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14350 _ACEOF
14352 else
14353 # strftime is in -lintl on SCO UNIX.
14354 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14355 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14356 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359 ac_check_lib_save_LIBS=$LIBS
14360 LIBS="-lintl $LIBS"
14361 cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h. */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14368 /* Override any GCC internal prototype to avoid an error.
14369 Use char because int might match the return type of a GCC
14370 builtin and then its argument prototype would still apply. */
14371 #ifdef __cplusplus
14372 extern "C"
14373 #endif
14374 char strftime ();
14376 main ()
14378 return strftime ();
14380 return 0;
14382 _ACEOF
14383 rm -f conftest.$ac_objext conftest$ac_exeext
14384 if { (ac_try="$ac_link"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388 esac
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_link") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } && {
14397 test -z "$ac_c_werror_flag" ||
14398 test ! -s conftest.err
14399 } && test -s conftest$ac_exeext &&
14400 $as_test_x conftest$ac_exeext; then
14401 ac_cv_lib_intl_strftime=yes
14402 else
14403 echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14406 ac_cv_lib_intl_strftime=no
14409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14410 conftest$ac_exeext conftest.$ac_ext
14411 LIBS=$ac_check_lib_save_LIBS
14413 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14414 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14415 if test $ac_cv_lib_intl_strftime = yes; then
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_STRFTIME 1
14418 _ACEOF
14420 LIBS="-lintl $LIBS"
14424 done
14426 { echo "$as_me:$LINENO: checking for working strnlen" >&5
14427 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
14428 if test "${ac_cv_func_strnlen_working+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431 if test "$cross_compiling" = yes; then
14432 ac_cv_func_strnlen_working=no
14433 else
14434 cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h. */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 $ac_includes_default
14442 main ()
14445 #define S "foobar"
14446 #define S_LEN (sizeof S - 1)
14448 /* At least one implementation is buggy: that of AIX 4.3 would
14449 give strnlen (S, 1) == 3. */
14451 int i;
14452 for (i = 0; i < S_LEN + 1; ++i)
14454 int expected = i <= S_LEN ? i : S_LEN;
14455 if (strnlen (S, i) != expected)
14456 return 1;
14458 return 0;
14461 return 0;
14463 _ACEOF
14464 rm -f conftest$ac_exeext
14465 if { (ac_try="$ac_link"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_link") 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14475 { (case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_try") 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_cv_func_strnlen_working=yes
14485 else
14486 echo "$as_me: program exited with status $ac_status" >&5
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 ( exit $ac_status )
14491 ac_cv_func_strnlen_working=no
14493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14498 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14499 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
14500 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
14501 *" strnlen.$ac_objext "* ) ;;
14502 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
14504 esac
14507 { echo "$as_me:$LINENO: checking for working strtod" >&5
14508 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
14509 if test "${ac_cv_func_strtod+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512 if test "$cross_compiling" = yes; then
14513 ac_cv_func_strtod=no
14514 else
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14522 $ac_includes_default
14523 #ifndef strtod
14524 double strtod ();
14525 #endif
14527 main()
14530 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
14531 char *string = " +69";
14532 char *term;
14533 double value;
14534 value = strtod (string, &term);
14535 if (value != 69 || term != (string + 4))
14536 return 1;
14540 /* Under Solaris 2.4, strtod returns the wrong value for the
14541 terminating character under some conditions. */
14542 char *string = "NaN";
14543 char *term;
14544 strtod (string, &term);
14545 if (term != string && *(term - 1) == 0)
14546 return 1;
14548 return 0;
14551 _ACEOF
14552 rm -f conftest$ac_exeext
14553 if { (ac_try="$ac_link"
14554 case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14557 esac
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_link") 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_cv_func_strtod=yes
14573 else
14574 echo "$as_me: program exited with status $ac_status" >&5
14575 echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ( exit $ac_status )
14579 ac_cv_func_strtod=no
14581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14586 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14587 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
14588 if test $ac_cv_func_strtod = no; then
14589 case " $LIBOBJS " in
14590 *" strtod.$ac_objext "* ) ;;
14591 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14593 esac
14595 { echo "$as_me:$LINENO: checking for pow" >&5
14596 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
14597 if test "${ac_cv_func_pow+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
14607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14608 #define pow innocuous_pow
14610 /* System header to define __stub macros and hopefully few prototypes,
14611 which can conflict with char pow (); below.
14612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14613 <limits.h> exists even on freestanding compilers. */
14615 #ifdef __STDC__
14616 # include <limits.h>
14617 #else
14618 # include <assert.h>
14619 #endif
14621 #undef pow
14623 /* Override any GCC internal prototype to avoid an error.
14624 Use char because int might match the return type of a GCC
14625 builtin and then its argument prototype would still apply. */
14626 #ifdef __cplusplus
14627 extern "C"
14628 #endif
14629 char pow ();
14630 /* The GNU C library defines this for functions which it implements
14631 to always fail with ENOSYS. Some functions are actually named
14632 something starting with __ and the normal name is an alias. */
14633 #if defined __stub_pow || defined __stub___pow
14634 choke me
14635 #endif
14638 main ()
14640 return pow ();
14642 return 0;
14644 _ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest$ac_exeext &&
14662 $as_test_x conftest$ac_exeext; then
14663 ac_cv_func_pow=yes
14664 else
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 ac_cv_func_pow=no
14671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14672 conftest$ac_exeext conftest.$ac_ext
14674 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14675 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
14677 if test $ac_cv_func_pow = no; then
14678 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
14679 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
14680 if test "${ac_cv_lib_m_pow+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683 ac_check_lib_save_LIBS=$LIBS
14684 LIBS="-lm $LIBS"
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14692 /* Override any GCC internal prototype to avoid an error.
14693 Use char because int might match the return type of a GCC
14694 builtin and then its argument prototype would still apply. */
14695 #ifdef __cplusplus
14696 extern "C"
14697 #endif
14698 char pow ();
14700 main ()
14702 return pow ();
14704 return 0;
14706 _ACEOF
14707 rm -f conftest.$ac_objext conftest$ac_exeext
14708 if { (ac_try="$ac_link"
14709 case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14712 esac
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_link") 2>conftest.er1
14715 ac_status=$?
14716 grep -v '^ *+' conftest.er1 >conftest.err
14717 rm -f conftest.er1
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } && {
14721 test -z "$ac_c_werror_flag" ||
14722 test ! -s conftest.err
14723 } && test -s conftest$ac_exeext &&
14724 $as_test_x conftest$ac_exeext; then
14725 ac_cv_lib_m_pow=yes
14726 else
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14730 ac_cv_lib_m_pow=no
14733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14734 conftest$ac_exeext conftest.$ac_ext
14735 LIBS=$ac_check_lib_save_LIBS
14737 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14738 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
14739 if test $ac_cv_lib_m_pow = yes; then
14740 POW_LIB=-lm
14741 else
14742 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14743 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14754 for ac_header in $ac_header_list
14756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 ac_res=`eval echo '${'$as_ac_Header'}'`
14764 { echo "$as_me:$LINENO: result: $ac_res" >&5
14765 echo "${ECHO_T}$ac_res" >&6; }
14766 else
14767 # Is the header compilable?
14768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14770 cat >conftest.$ac_ext <<_ACEOF
14771 /* confdefs.h. */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 $ac_includes_default
14777 #include <$ac_header>
14778 _ACEOF
14779 rm -f conftest.$ac_objext
14780 if { (ac_try="$ac_compile"
14781 case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_compile") 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } && {
14793 test -z "$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14795 } && test -s conftest.$ac_objext; then
14796 ac_header_compiler=yes
14797 else
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_header_compiler=no
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14806 echo "${ECHO_T}$ac_header_compiler" >&6; }
14808 # Is the header present?
14809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <$ac_header>
14818 _ACEOF
14819 if { (ac_try="$ac_cpp conftest.$ac_ext"
14820 case "(($ac_try" in
14821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822 *) ac_try_echo=$ac_try;;
14823 esac
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14826 ac_status=$?
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } >/dev/null && {
14832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14833 test ! -s conftest.err
14834 }; then
14835 ac_header_preproc=yes
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_header_preproc=no
14843 rm -f conftest.err conftest.$ac_ext
14844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14845 echo "${ECHO_T}$ac_header_preproc" >&6; }
14847 # So? What about this header?
14848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14849 yes:no: )
14850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14854 ac_header_preproc=yes
14856 no:yes:* )
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14869 ( cat <<\_ASBOX
14870 ## ------------------------------- ##
14871 ## Report this to www.asterisk.org ##
14872 ## ------------------------------- ##
14873 _ASBOX
14874 ) | sed "s/^/$as_me: WARNING: /" >&2
14876 esac
14877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882 eval "$as_ac_Header=\$ac_header_preproc"
14884 ac_res=`eval echo '${'$as_ac_Header'}'`
14885 { echo "$as_me:$LINENO: result: $ac_res" >&5
14886 echo "${ECHO_T}$ac_res" >&6; }
14889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14890 cat >>confdefs.h <<_ACEOF
14891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14892 _ACEOF
14896 done
14906 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
14907 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
14908 if test "${ac_cv_func_utime_null+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911 rm -f conftest.data; >conftest.data
14912 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
14913 if test "$cross_compiling" = yes; then
14914 ac_cv_func_utime_null=no
14915 else
14916 cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h. */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14922 $ac_includes_default
14923 #ifdef HAVE_UTIME_H
14924 # include <utime.h>
14925 #endif
14927 main ()
14929 struct stat s, t;
14930 return ! (stat ("conftest.data", &s) == 0
14931 && utime ("conftest.data", 0) == 0
14932 && stat ("conftest.data", &t) == 0
14933 && t.st_mtime >= s.st_mtime
14934 && t.st_mtime - s.st_mtime < 120);
14936 return 0;
14938 _ACEOF
14939 rm -f conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_link") 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14950 { (case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_try") 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_cv_func_utime_null=yes
14960 else
14961 echo "$as_me: program exited with status $ac_status" >&5
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ( exit $ac_status )
14966 ac_cv_func_utime_null=no
14968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14973 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
14974 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
14975 if test $ac_cv_func_utime_null = yes; then
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_UTIME_NULL 1
14979 _ACEOF
14982 rm -f conftest.data
14985 for ac_func in vprintf
14987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993 cat >conftest.$ac_ext <<_ACEOF
14994 /* confdefs.h. */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15001 #define $ac_func innocuous_$ac_func
15003 /* System header to define __stub macros and hopefully few prototypes,
15004 which can conflict with char $ac_func (); below.
15005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15006 <limits.h> exists even on freestanding compilers. */
15008 #ifdef __STDC__
15009 # include <limits.h>
15010 #else
15011 # include <assert.h>
15012 #endif
15014 #undef $ac_func
15016 /* Override any GCC internal prototype to avoid an error.
15017 Use char because int might match the return type of a GCC
15018 builtin and then its argument prototype would still apply. */
15019 #ifdef __cplusplus
15020 extern "C"
15021 #endif
15022 char $ac_func ();
15023 /* The GNU C library defines this for functions which it implements
15024 to always fail with ENOSYS. Some functions are actually named
15025 something starting with __ and the normal name is an alias. */
15026 #if defined __stub_$ac_func || defined __stub___$ac_func
15027 choke me
15028 #endif
15031 main ()
15033 return $ac_func ();
15035 return 0;
15037 _ACEOF
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (ac_try="$ac_link"
15040 case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043 esac
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>conftest.er1
15046 ac_status=$?
15047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } && {
15052 test -z "$ac_c_werror_flag" ||
15053 test ! -s conftest.err
15054 } && test -s conftest$ac_exeext &&
15055 $as_test_x conftest$ac_exeext; then
15056 eval "$as_ac_var=yes"
15057 else
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 eval "$as_ac_var=no"
15064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15065 conftest$ac_exeext conftest.$ac_ext
15067 ac_res=`eval echo '${'$as_ac_var'}'`
15068 { echo "$as_me:$LINENO: result: $ac_res" >&5
15069 echo "${ECHO_T}$ac_res" >&6; }
15070 if test `eval echo '${'$as_ac_var'}'` = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15073 _ACEOF
15075 { echo "$as_me:$LINENO: checking for _doprnt" >&5
15076 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
15077 if test "${ac_cv_func__doprnt+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h. */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
15087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15088 #define _doprnt innocuous__doprnt
15090 /* System header to define __stub macros and hopefully few prototypes,
15091 which can conflict with char _doprnt (); below.
15092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15093 <limits.h> exists even on freestanding compilers. */
15095 #ifdef __STDC__
15096 # include <limits.h>
15097 #else
15098 # include <assert.h>
15099 #endif
15101 #undef _doprnt
15103 /* Override any GCC internal prototype to avoid an error.
15104 Use char because int might match the return type of a GCC
15105 builtin and then its argument prototype would still apply. */
15106 #ifdef __cplusplus
15107 extern "C"
15108 #endif
15109 char _doprnt ();
15110 /* The GNU C library defines this for functions which it implements
15111 to always fail with ENOSYS. Some functions are actually named
15112 something starting with __ and the normal name is an alias. */
15113 #if defined __stub__doprnt || defined __stub____doprnt
15114 choke me
15115 #endif
15118 main ()
15120 return _doprnt ();
15122 return 0;
15124 _ACEOF
15125 rm -f conftest.$ac_objext conftest$ac_exeext
15126 if { (ac_try="$ac_link"
15127 case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130 esac
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>conftest.er1
15133 ac_status=$?
15134 grep -v '^ *+' conftest.er1 >conftest.err
15135 rm -f conftest.er1
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && {
15139 test -z "$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 } && test -s conftest$ac_exeext &&
15142 $as_test_x conftest$ac_exeext; then
15143 ac_cv_func__doprnt=yes
15144 else
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_cv_func__doprnt=no
15151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15152 conftest$ac_exeext conftest.$ac_ext
15154 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15155 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
15156 if test $ac_cv_func__doprnt = yes; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_DOPRNT 1
15160 _ACEOF
15165 done
15213 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
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
15308 for ac_func in glob
15310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316 cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h. */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15324 #define $ac_func innocuous_$ac_func
15326 /* System header to define __stub macros and hopefully few prototypes,
15327 which can conflict with char $ac_func (); below.
15328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15329 <limits.h> exists even on freestanding compilers. */
15331 #ifdef __STDC__
15332 # include <limits.h>
15333 #else
15334 # include <assert.h>
15335 #endif
15337 #undef $ac_func
15339 /* Override any GCC internal prototype to avoid an error.
15340 Use char because int might match the return type of a GCC
15341 builtin and then its argument prototype would still apply. */
15342 #ifdef __cplusplus
15343 extern "C"
15344 #endif
15345 char $ac_func ();
15346 /* The GNU C library defines this for functions which it implements
15347 to always fail with ENOSYS. Some functions are actually named
15348 something starting with __ and the normal name is an alias. */
15349 #if defined __stub_$ac_func || defined __stub___$ac_func
15350 choke me
15351 #endif
15354 main ()
15356 return $ac_func ();
15358 return 0;
15360 _ACEOF
15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (ac_try="$ac_link"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366 esac
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_link") 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } && {
15375 test -z "$ac_c_werror_flag" ||
15376 test ! -s conftest.err
15377 } && test -s conftest$ac_exeext &&
15378 $as_test_x conftest$ac_exeext; then
15379 eval "$as_ac_var=yes"
15380 else
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 eval "$as_ac_var=no"
15387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15388 conftest$ac_exeext conftest.$ac_ext
15390 ac_res=`eval echo '${'$as_ac_var'}'`
15391 { echo "$as_me:$LINENO: result: $ac_res" >&5
15392 echo "${ECHO_T}$ac_res" >&6; }
15393 if test `eval echo '${'$as_ac_var'}'` = yes; then
15394 cat >>confdefs.h <<_ACEOF
15395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15396 _ACEOF
15399 done
15402 { echo "$as_me:$LINENO: checking for timersub in time.h" >&5
15403 echo $ECHO_N "checking for timersub in time.h... $ECHO_C" >&6; }
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <sys/time.h>
15412 main ()
15414 struct timeval *a; timersub(a, a, a);
15416 return 0;
15418 _ACEOF
15419 rm -f conftest.$ac_objext conftest$ac_exeext
15420 if { (ac_try="$ac_link"
15421 case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_link") 2>conftest.er1
15427 ac_status=$?
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } && {
15433 test -z "$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15435 } && test -s conftest$ac_exeext &&
15436 $as_test_x conftest$ac_exeext; then
15437 { echo "$as_me:$LINENO: result: yes" >&5
15438 echo "${ECHO_T}yes" >&6; }
15440 cat >>confdefs.h <<\_ACEOF
15441 #define HAVE_TIMERSUB 1
15442 _ACEOF
15444 else
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 { echo "$as_me:$LINENO: result: no" >&5
15449 echo "${ECHO_T}no" >&6; }
15453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15454 conftest$ac_exeext conftest.$ac_ext
15456 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15457 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15458 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15459 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15463 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15464 else
15465 # Is the header compilable?
15466 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
15467 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 $ac_includes_default
15475 #include <sys/poll.h>
15476 _ACEOF
15477 rm -f conftest.$ac_objext
15478 if { (ac_try="$ac_compile"
15479 case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15482 esac
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_compile") 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } && {
15491 test -z "$ac_c_werror_flag" ||
15492 test ! -s conftest.err
15493 } && test -s conftest.$ac_objext; then
15494 ac_header_compiler=yes
15495 else
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_header_compiler=no
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15504 echo "${ECHO_T}$ac_header_compiler" >&6; }
15506 # Is the header present?
15507 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
15508 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 #include <sys/poll.h>
15516 _ACEOF
15517 if { (ac_try="$ac_cpp conftest.$ac_ext"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } >/dev/null && {
15530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 }; then
15533 ac_header_preproc=yes
15534 else
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 ac_header_preproc=no
15541 rm -f conftest.err conftest.$ac_ext
15542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15543 echo "${ECHO_T}$ac_header_preproc" >&6; }
15545 # So? What about this header?
15546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15547 yes:no: )
15548 { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
15549 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
15551 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
15552 ac_header_preproc=yes
15554 no:yes:* )
15555 { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
15556 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: sys/poll.h: check for missing prerequisite headers?" >&5
15558 echo "$as_me: WARNING: sys/poll.h: check for missing prerequisite headers?" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
15560 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&5
15562 echo "$as_me: WARNING: sys/poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
15564 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
15566 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
15567 ( cat <<\_ASBOX
15568 ## ------------------------------- ##
15569 ## Report this to www.asterisk.org ##
15570 ## ------------------------------- ##
15571 _ASBOX
15572 ) | sed "s/^/$as_me: WARNING: /" >&2
15574 esac
15575 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
15576 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
15577 if test "${ac_cv_header_sys_poll_h+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580 ac_cv_header_sys_poll_h=$ac_header_preproc
15582 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
15583 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
15586 if test $ac_cv_header_sys_poll_h = yes; then
15587 HAS_POLL=1
15589 cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_SYS_POLL_H 1
15591 _ACEOF
15598 # https support (in main/http.c) uses funopen on BSD systems,
15599 # fopencookie on linux
15602 for ac_func in funopen fopencookie
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
15697 for ac_func in inet_aton
15699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h. */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15713 #define $ac_func innocuous_$ac_func
15715 /* System header to define __stub macros and hopefully few prototypes,
15716 which can conflict with char $ac_func (); below.
15717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15718 <limits.h> exists even on freestanding compilers. */
15720 #ifdef __STDC__
15721 # include <limits.h>
15722 #else
15723 # include <assert.h>
15724 #endif
15726 #undef $ac_func
15728 /* Override any GCC internal prototype to avoid an error.
15729 Use char because int might match the return type of a GCC
15730 builtin and then its argument prototype would still apply. */
15731 #ifdef __cplusplus
15732 extern "C"
15733 #endif
15734 char $ac_func ();
15735 /* The GNU C library defines this for functions which it implements
15736 to always fail with ENOSYS. Some functions are actually named
15737 something starting with __ and the normal name is an alias. */
15738 #if defined __stub_$ac_func || defined __stub___$ac_func
15739 choke me
15740 #endif
15743 main ()
15745 return $ac_func ();
15747 return 0;
15749 _ACEOF
15750 rm -f conftest.$ac_objext conftest$ac_exeext
15751 if { (ac_try="$ac_link"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15755 esac
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_link") 2>conftest.er1
15758 ac_status=$?
15759 grep -v '^ *+' conftest.er1 >conftest.err
15760 rm -f conftest.er1
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest$ac_exeext &&
15767 $as_test_x conftest$ac_exeext; then
15768 eval "$as_ac_var=yes"
15769 else
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 eval "$as_ac_var=no"
15776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15777 conftest$ac_exeext conftest.$ac_ext
15779 ac_res=`eval echo '${'$as_ac_var'}'`
15780 { echo "$as_me:$LINENO: result: $ac_res" >&5
15781 echo "${ECHO_T}$ac_res" >&6; }
15782 if test `eval echo '${'$as_ac_var'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15785 _ACEOF
15788 done
15791 # check if we have IP_PKTINFO constant defined
15792 { echo "$as_me:$LINENO: checking for IP_PKTINFO" >&5
15793 echo $ECHO_N "checking for IP_PKTINFO... $ECHO_C" >&6; }
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <netinet/in.h>
15802 main ()
15804 int pi = IP_PKTINFO;
15806 return 0;
15808 _ACEOF
15809 rm -f conftest.$ac_objext conftest$ac_exeext
15810 if { (ac_try="$ac_link"
15811 case "(($ac_try" in
15812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15813 *) ac_try_echo=$ac_try;;
15814 esac
15815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816 (eval "$ac_link") 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } && {
15823 test -z "$ac_c_werror_flag" ||
15824 test ! -s conftest.err
15825 } && test -s conftest$ac_exeext &&
15826 $as_test_x conftest$ac_exeext; then
15827 { echo "$as_me:$LINENO: result: yes" >&5
15828 echo "${ECHO_T}yes" >&6; }
15830 cat >>confdefs.h <<\_ACEOF
15831 #define HAVE_PKTINFO 1
15832 _ACEOF
15834 else
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 { echo "$as_me:$LINENO: result: no" >&5
15839 echo "${ECHO_T}no" >&6; }
15843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15844 conftest$ac_exeext conftest.$ac_ext
15846 # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
15847 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
15848 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
15849 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 else
15852 ac_func_search_save_LIBS=$LIBS
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h. */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15860 /* Override any GCC internal prototype to avoid an error.
15861 Use char because int might match the return type of a GCC
15862 builtin and then its argument prototype would still apply. */
15863 #ifdef __cplusplus
15864 extern "C"
15865 #endif
15866 char gethostbyname_r ();
15868 main ()
15870 return gethostbyname_r ();
15872 return 0;
15874 _ACEOF
15875 for ac_lib in '' socket nsl; do
15876 if test -z "$ac_lib"; then
15877 ac_res="none required"
15878 else
15879 ac_res=-l$ac_lib
15880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15882 rm -f conftest.$ac_objext conftest$ac_exeext
15883 if { (ac_try="$ac_link"
15884 case "(($ac_try" in
15885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15886 *) ac_try_echo=$ac_try;;
15887 esac
15888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15889 (eval "$ac_link") 2>conftest.er1
15890 ac_status=$?
15891 grep -v '^ *+' conftest.er1 >conftest.err
15892 rm -f conftest.er1
15893 cat conftest.err >&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } && {
15896 test -z "$ac_c_werror_flag" ||
15897 test ! -s conftest.err
15898 } && test -s conftest$ac_exeext &&
15899 $as_test_x conftest$ac_exeext; then
15900 ac_cv_search_gethostbyname_r=$ac_res
15901 else
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15909 conftest$ac_exeext
15910 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15911 break
15913 done
15914 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
15916 else
15917 ac_cv_search_gethostbyname_r=no
15919 rm conftest.$ac_ext
15920 LIBS=$ac_func_search_save_LIBS
15922 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
15923 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
15924 ac_res=$ac_cv_search_gethostbyname_r
15925 if test "$ac_res" != no; then
15926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15931 { echo "$as_me:$LINENO: checking for gethostbyname_r with 6 arguments" >&5
15932 echo $ECHO_N "checking for gethostbyname_r with 6 arguments... $ECHO_C" >&6; }
15933 cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h. */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 #include <stdlib.h>
15940 #include <netdb.h>
15942 main ()
15944 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
15946 return 0;
15948 _ACEOF
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (ac_try="$ac_link"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_link") 2>conftest.er1
15957 ac_status=$?
15958 grep -v '^ *+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && {
15963 test -z "$ac_c_werror_flag" ||
15964 test ! -s conftest.err
15965 } && test -s conftest$ac_exeext &&
15966 $as_test_x conftest$ac_exeext; then
15967 { echo "$as_me:$LINENO: result: yes" >&5
15968 echo "${ECHO_T}yes" >&6; }
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_GETHOSTBYNAME_R_6 1
15972 _ACEOF
15974 else
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 { echo "$as_me:$LINENO: result: no" >&5
15979 echo "${ECHO_T}no" >&6; }
15983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15984 conftest$ac_exeext conftest.$ac_ext
15986 { echo "$as_me:$LINENO: checking for gethostbyname_r with 5 arguments" >&5
15987 echo $ECHO_N "checking for gethostbyname_r with 5 arguments... $ECHO_C" >&6; }
15988 cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h. */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15994 #include <stdlib.h>
15995 #include <netdb.h>
15997 main ()
15999 struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
16001 return 0;
16003 _ACEOF
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (ac_try="$ac_link"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_link") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } && {
16018 test -z "$ac_c_werror_flag" ||
16019 test ! -s conftest.err
16020 } && test -s conftest$ac_exeext &&
16021 $as_test_x conftest$ac_exeext; then
16022 { echo "$as_me:$LINENO: result: yes" >&5
16023 echo "${ECHO_T}yes" >&6; }
16025 cat >>confdefs.h <<\_ACEOF
16026 #define HAVE_GETHOSTBYNAME_R_5 1
16027 _ACEOF
16029 else
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 { echo "$as_me:$LINENO: result: no" >&5
16034 echo "${ECHO_T}no" >&6; }
16038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16039 conftest$ac_exeext conftest.$ac_ext
16041 if test "${ac_cv_header_byteswap_h+set}" = set; then
16042 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16043 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16044 if test "${ac_cv_header_byteswap_h+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16048 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16049 else
16050 # Is the header compilable?
16051 { echo "$as_me:$LINENO: checking byteswap.h usability" >&5
16052 echo $ECHO_N "checking byteswap.h usability... $ECHO_C" >&6; }
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h. */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 $ac_includes_default
16060 #include <byteswap.h>
16061 _ACEOF
16062 rm -f conftest.$ac_objext
16063 if { (ac_try="$ac_compile"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_compile") 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest.$ac_objext; then
16079 ac_header_compiler=yes
16080 else
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_header_compiler=no
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16089 echo "${ECHO_T}$ac_header_compiler" >&6; }
16091 # Is the header present?
16092 { echo "$as_me:$LINENO: checking byteswap.h presence" >&5
16093 echo $ECHO_N "checking byteswap.h presence... $ECHO_C" >&6; }
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h. */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 #include <byteswap.h>
16101 _ACEOF
16102 if { (ac_try="$ac_cpp conftest.$ac_ext"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16106 esac
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16109 ac_status=$?
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } >/dev/null && {
16115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16116 test ! -s conftest.err
16117 }; then
16118 ac_header_preproc=yes
16119 else
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ac_header_preproc=no
16126 rm -f conftest.err conftest.$ac_ext
16127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16128 echo "${ECHO_T}$ac_header_preproc" >&6; }
16130 # So? What about this header?
16131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16132 yes:no: )
16133 { echo "$as_me:$LINENO: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&5
16134 echo "$as_me: WARNING: byteswap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16135 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the compiler's result" >&5
16136 echo "$as_me: WARNING: byteswap.h: proceeding with the compiler's result" >&2;}
16137 ac_header_preproc=yes
16139 no:yes:* )
16140 { echo "$as_me:$LINENO: WARNING: byteswap.h: present but cannot be compiled" >&5
16141 echo "$as_me: WARNING: byteswap.h: present but cannot be compiled" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: byteswap.h: check for missing prerequisite headers?" >&5
16143 echo "$as_me: WARNING: byteswap.h: check for missing prerequisite headers?" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: byteswap.h: see the Autoconf documentation" >&5
16145 echo "$as_me: WARNING: byteswap.h: see the Autoconf documentation" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&5
16147 echo "$as_me: WARNING: byteswap.h: section \"Present But Cannot Be Compiled\"" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: byteswap.h: proceeding with the preprocessor's result" >&5
16149 echo "$as_me: WARNING: byteswap.h: proceeding with the preprocessor's result" >&2;}
16150 { echo "$as_me:$LINENO: WARNING: byteswap.h: in the future, the compiler will take precedence" >&5
16151 echo "$as_me: WARNING: byteswap.h: in the future, the compiler will take precedence" >&2;}
16152 ( cat <<\_ASBOX
16153 ## ------------------------------- ##
16154 ## Report this to www.asterisk.org ##
16155 ## ------------------------------- ##
16156 _ASBOX
16157 ) | sed "s/^/$as_me: WARNING: /" >&2
16159 esac
16160 { echo "$as_me:$LINENO: checking for byteswap.h" >&5
16161 echo $ECHO_N "checking for byteswap.h... $ECHO_C" >&6; }
16162 if test "${ac_cv_header_byteswap_h+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165 ac_cv_header_byteswap_h=$ac_header_preproc
16167 { echo "$as_me:$LINENO: result: $ac_cv_header_byteswap_h" >&5
16168 echo "${ECHO_T}$ac_cv_header_byteswap_h" >&6; }
16171 if test $ac_cv_header_byteswap_h = yes; then
16173 cat >>confdefs.h <<_ACEOF
16174 #define HAVE_BYTESWAP_H 1
16175 _ACEOF
16181 { echo "$as_me:$LINENO: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16182 echo $ECHO_N "checking for __swap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 #include <sys/endian.h>
16191 main ()
16193 int a = 1; int b = __swap16(a);
16195 return 0;
16197 _ACEOF
16198 rm -f conftest.$ac_objext conftest$ac_exeext
16199 if { (ac_try="$ac_link"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_link") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest$ac_exeext &&
16215 $as_test_x conftest$ac_exeext; then
16216 { echo "$as_me:$LINENO: result: yes" >&5
16217 echo "${ECHO_T}yes" >&6; }
16219 cat >>confdefs.h <<\_ACEOF
16220 #define HAVE_SYS_ENDIAN_SWAP16 1
16221 _ACEOF
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 { echo "$as_me:$LINENO: result: no" >&5
16228 echo "${ECHO_T}no" >&6; }
16232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16233 conftest$ac_exeext conftest.$ac_ext
16235 { echo "$as_me:$LINENO: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16236 echo $ECHO_N "checking for bswap16 variant of <sys/endian.h> byteswapping macros... $ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <sys/endian.h>
16245 main ()
16247 int a = 1; int b = bswap16(a);
16249 return 0;
16251 _ACEOF
16252 rm -f conftest.$ac_objext conftest$ac_exeext
16253 if { (ac_try="$ac_link"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_link") 2>conftest.er1
16260 ac_status=$?
16261 grep -v '^ *+' conftest.er1 >conftest.err
16262 rm -f conftest.er1
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && {
16266 test -z "$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 } && test -s conftest$ac_exeext &&
16269 $as_test_x conftest$ac_exeext; then
16270 { echo "$as_me:$LINENO: result: yes" >&5
16271 echo "${ECHO_T}yes" >&6; }
16273 cat >>confdefs.h <<\_ACEOF
16274 #define HAVE_SYS_ENDIAN_BSWAP16 1
16275 _ACEOF
16277 else
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 { echo "$as_me:$LINENO: result: no" >&5
16282 echo "${ECHO_T}no" >&6; }
16286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16287 conftest$ac_exeext conftest.$ac_ext
16289 if test "${cross_compiling}" = "no";
16290 then
16291 { echo "$as_me:$LINENO: checking for /dev/urandom" >&5
16292 echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6; }
16293 if test "${ac_cv_file__dev_urandom+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296 test "$cross_compiling" = yes &&
16297 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16298 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16299 { (exit 1); exit 1; }; }
16300 if test -r "/dev/urandom"; then
16301 ac_cv_file__dev_urandom=yes
16302 else
16303 ac_cv_file__dev_urandom=no
16306 { echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
16307 echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6; }
16308 if test $ac_cv_file__dev_urandom = yes; then
16310 cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_DEV_URANDOM 1
16312 _ACEOF
16319 if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
16320 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
16321 echo $ECHO_N "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... $ECHO_C" >&6; }
16322 saved_cppflags="${CPPFLAGS}"
16323 if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
16324 PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
16326 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
16328 cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h. */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 #include <pthread.h>
16336 main ()
16338 #if defined(PTHREAD_RWLOCK_INITIALIZER)
16339 int foo = 0;
16340 #else
16341 int foo = bar;
16342 #endif
16346 return 0;
16348 _ACEOF
16349 rm -f conftest.$ac_objext
16350 if { (ac_try="$ac_compile"
16351 case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_compile") 2>conftest.er1
16357 ac_status=$?
16358 grep -v '^ *+' conftest.er1 >conftest.err
16359 rm -f conftest.er1
16360 cat conftest.err >&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } && {
16363 test -z "$ac_c_werror_flag" ||
16364 test ! -s conftest.err
16365 } && test -s conftest.$ac_objext; then
16366 { echo "$as_me:$LINENO: result: yes" >&5
16367 echo "${ECHO_T}yes" >&6; }
16368 PBX_PTHREAD_RWLOCK_INITIALIZER=1
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_PTHREAD_RWLOCK_INITIALIZER 1
16372 _ACEOF
16375 cat >>confdefs.h <<\_ACEOF
16376 #define HAVE_PTHREAD_RWLOCK_INITIALIZER_VERSION
16377 _ACEOF
16380 else
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 { echo "$as_me:$LINENO: result: no" >&5
16385 echo "${ECHO_T}no" >&6; }
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 CPPFLAGS="${saved_cppflags}"
16395 { echo "$as_me:$LINENO: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
16396 echo $ECHO_N "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... $ECHO_C" >&6; }
16397 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 #include <pthread.h>
16405 main ()
16407 int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
16409 return 0;
16411 _ACEOF
16412 rm -f conftest.$ac_objext conftest$ac_exeext
16413 if { (ac_try="$ac_link"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417 esac
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_link") 2>conftest.er1
16420 ac_status=$?
16421 grep -v '^ *+' conftest.er1 >conftest.err
16422 rm -f conftest.er1
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } && {
16426 test -z "$ac_c_werror_flag" ||
16427 test ! -s conftest.err
16428 } && test -s conftest$ac_exeext &&
16429 $as_test_x conftest$ac_exeext; then
16430 { echo "$as_me:$LINENO: result: yes" >&5
16431 echo "${ECHO_T}yes" >&6; }
16433 cat >>confdefs.h <<\_ACEOF
16434 #define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1
16435 _ACEOF
16437 else
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 { echo "$as_me:$LINENO: result: no" >&5
16442 echo "${ECHO_T}no" >&6; }
16446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16447 conftest$ac_exeext conftest.$ac_ext
16449 { echo "$as_me:$LINENO: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
16450 echo $ECHO_N "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... $ECHO_C" >&6; }
16451 cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h. */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 #include <pthread.h>
16459 main ()
16461 int a = PTHREAD_MUTEX_RECURSIVE_NP;
16463 return 0;
16465 _ACEOF
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (ac_try="$ac_link"
16468 case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_link") 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } && {
16480 test -z "$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 } && test -s conftest$ac_exeext &&
16483 $as_test_x conftest$ac_exeext; then
16484 { echo "$as_me:$LINENO: result: yes" >&5
16485 echo "${ECHO_T}yes" >&6; }
16487 cat >>confdefs.h <<\_ACEOF
16488 #define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1
16489 _ACEOF
16491 else
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 { echo "$as_me:$LINENO: result: no" >&5
16496 echo "${ECHO_T}no" >&6; }
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501 conftest$ac_exeext conftest.$ac_ext
16504 if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
16505 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
16506 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... $ECHO_C" >&6; }
16507 saved_cppflags="${CPPFLAGS}"
16508 if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
16509 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
16511 CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h. */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 #include <pthread.h>
16521 main ()
16523 #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
16524 int foo = 0;
16525 #else
16526 int foo = bar;
16527 #endif
16531 return 0;
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (ac_try="$ac_compile"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_compile") 2>conftest.er1
16542 ac_status=$?
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest.$ac_objext; then
16551 { echo "$as_me:$LINENO: result: yes" >&5
16552 echo "${ECHO_T}yes" >&6; }
16553 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
16555 cat >>confdefs.h <<\_ACEOF
16556 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1
16557 _ACEOF
16560 cat >>confdefs.h <<\_ACEOF
16561 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
16562 _ACEOF
16565 else
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 CPPFLAGS="${saved_cppflags}"
16580 #if test "${cross_compiling}" = "no";
16581 #then
16582 #AC_MSG_CHECKING(for working epoll support)
16583 #AC_LINK_IFELSE(
16584 #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
16585 # if (res < 0)
16586 # return 1;
16587 # close (res);
16588 # return 0;]),
16589 #AC_MSG_RESULT(yes)
16590 #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
16591 #AC_MSG_RESULT(no)
16595 { echo "$as_me:$LINENO: checking for compiler atomic operations" >&5
16596 echo $ECHO_N "checking for compiler atomic operations... $ECHO_C" >&6; }
16597 cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h. */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16605 main ()
16607 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
16609 return 0;
16611 _ACEOF
16612 rm -f conftest.$ac_objext conftest$ac_exeext
16613 if { (ac_try="$ac_link"
16614 case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16617 esac
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_link") 2>conftest.er1
16620 ac_status=$?
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest$ac_exeext &&
16629 $as_test_x conftest$ac_exeext; then
16630 { echo "$as_me:$LINENO: result: yes" >&5
16631 echo "${ECHO_T}yes" >&6; }
16633 cat >>confdefs.h <<\_ACEOF
16634 #define HAVE_GCC_ATOMICS 1
16635 _ACEOF
16637 else
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16641 { echo "$as_me:$LINENO: result: no" >&5
16642 echo "${ECHO_T}no" >&6; }
16646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16647 conftest$ac_exeext conftest.$ac_ext
16650 { echo "$as_me:$LINENO: checking for compiler 'attribute pure' support" >&5
16651 echo $ECHO_N "checking for compiler 'attribute pure' support... $ECHO_C" >&6; }
16652 saved_CFLAGS="$CFLAGS"
16653 CFLAGS="$CFLAGS -Werror"
16654 cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h. */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16660 static void __attribute__((pure)) *test(void *muffin, ...) {}
16662 main ()
16666 return 0;
16668 _ACEOF
16669 rm -f conftest.$ac_objext
16670 if { (ac_try="$ac_compile"
16671 case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16674 esac
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_compile") 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } && {
16683 test -z "$ac_c_werror_flag" ||
16684 test ! -s conftest.err
16685 } && test -s conftest.$ac_objext; then
16686 { echo "$as_me:$LINENO: result: yes" >&5
16687 echo "${ECHO_T}yes" >&6; }
16689 cat >>confdefs.h <<_ACEOF
16690 #define HAVE_ATTRIBUTE_pure 1
16691 _ACEOF
16693 else
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 { echo "$as_me:$LINENO: result: no" >&5
16698 echo "${ECHO_T}no" >&6; }
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 CFLAGS="$saved_CFLAGS"
16706 { echo "$as_me:$LINENO: checking for compiler 'attribute malloc' support" >&5
16707 echo $ECHO_N "checking for compiler 'attribute malloc' support... $ECHO_C" >&6; }
16708 saved_CFLAGS="$CFLAGS"
16709 CFLAGS="$CFLAGS -Werror"
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 static void __attribute__((malloc)) *test(void *muffin, ...) {}
16718 main ()
16722 return 0;
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (ac_try="$ac_compile"
16727 case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_compile") 2>conftest.er1
16733 ac_status=$?
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } && {
16739 test -z "$ac_c_werror_flag" ||
16740 test ! -s conftest.err
16741 } && test -s conftest.$ac_objext; then
16742 { echo "$as_me:$LINENO: result: yes" >&5
16743 echo "${ECHO_T}yes" >&6; }
16745 cat >>confdefs.h <<_ACEOF
16746 #define HAVE_ATTRIBUTE_malloc 1
16747 _ACEOF
16749 else
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 { echo "$as_me:$LINENO: result: no" >&5
16754 echo "${ECHO_T}no" >&6; }
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 CFLAGS="$saved_CFLAGS"
16762 { echo "$as_me:$LINENO: checking for compiler 'attribute const' support" >&5
16763 echo $ECHO_N "checking for compiler 'attribute const' support... $ECHO_C" >&6; }
16764 saved_CFLAGS="$CFLAGS"
16765 CFLAGS="$CFLAGS -Werror"
16766 cat >conftest.$ac_ext <<_ACEOF
16767 /* confdefs.h. */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 static void __attribute__((const)) *test(void *muffin, ...) {}
16774 main ()
16778 return 0;
16780 _ACEOF
16781 rm -f conftest.$ac_objext
16782 if { (ac_try="$ac_compile"
16783 case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_compile") 2>conftest.er1
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } && {
16795 test -z "$ac_c_werror_flag" ||
16796 test ! -s conftest.err
16797 } && test -s conftest.$ac_objext; then
16798 { echo "$as_me:$LINENO: result: yes" >&5
16799 echo "${ECHO_T}yes" >&6; }
16801 cat >>confdefs.h <<_ACEOF
16802 #define HAVE_ATTRIBUTE_const 1
16803 _ACEOF
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 { echo "$as_me:$LINENO: result: no" >&5
16810 echo "${ECHO_T}no" >&6; }
16813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16815 CFLAGS="$saved_CFLAGS"
16818 { echo "$as_me:$LINENO: checking for compiler 'attribute unused' support" >&5
16819 echo $ECHO_N "checking for compiler 'attribute unused' support... $ECHO_C" >&6; }
16820 saved_CFLAGS="$CFLAGS"
16821 CFLAGS="$CFLAGS -Werror"
16822 cat >conftest.$ac_ext <<_ACEOF
16823 /* confdefs.h. */
16824 _ACEOF
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h. */
16828 static void __attribute__((unused)) *test(void *muffin, ...) {}
16830 main ()
16834 return 0;
16836 _ACEOF
16837 rm -f conftest.$ac_objext
16838 if { (ac_try="$ac_compile"
16839 case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16842 esac
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_compile") 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } && {
16851 test -z "$ac_c_werror_flag" ||
16852 test ! -s conftest.err
16853 } && test -s conftest.$ac_objext; then
16854 { echo "$as_me:$LINENO: result: yes" >&5
16855 echo "${ECHO_T}yes" >&6; }
16857 cat >>confdefs.h <<_ACEOF
16858 #define HAVE_ATTRIBUTE_unused 1
16859 _ACEOF
16861 else
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 { echo "$as_me:$LINENO: result: no" >&5
16866 echo "${ECHO_T}no" >&6; }
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 CFLAGS="$saved_CFLAGS"
16874 { echo "$as_me:$LINENO: checking for compiler 'attribute always_inline' support" >&5
16875 echo $ECHO_N "checking for compiler 'attribute always_inline' support... $ECHO_C" >&6; }
16876 saved_CFLAGS="$CFLAGS"
16877 CFLAGS="$CFLAGS -Werror"
16878 cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h. */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 static void __attribute__((always_inline)) *test(void *muffin, ...) {}
16886 main ()
16890 return 0;
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_compile") 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest.$ac_objext; then
16910 { echo "$as_me:$LINENO: result: yes" >&5
16911 echo "${ECHO_T}yes" >&6; }
16913 cat >>confdefs.h <<_ACEOF
16914 #define HAVE_ATTRIBUTE_always_inline 1
16915 _ACEOF
16917 else
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16921 { echo "$as_me:$LINENO: result: no" >&5
16922 echo "${ECHO_T}no" >&6; }
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927 CFLAGS="$saved_CFLAGS"
16930 { echo "$as_me:$LINENO: checking for compiler 'attribute deprecated' support" >&5
16931 echo $ECHO_N "checking for compiler 'attribute deprecated' support... $ECHO_C" >&6; }
16932 saved_CFLAGS="$CFLAGS"
16933 CFLAGS="$CFLAGS -Werror"
16934 cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h. */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 static void __attribute__((deprecated)) *test(void *muffin, ...) {}
16942 main ()
16946 return 0;
16948 _ACEOF
16949 rm -f conftest.$ac_objext
16950 if { (ac_try="$ac_compile"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_compile") 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && {
16963 test -z "$ac_c_werror_flag" ||
16964 test ! -s conftest.err
16965 } && test -s conftest.$ac_objext; then
16966 { echo "$as_me:$LINENO: result: yes" >&5
16967 echo "${ECHO_T}yes" >&6; }
16969 cat >>confdefs.h <<_ACEOF
16970 #define HAVE_ATTRIBUTE_deprecated 1
16971 _ACEOF
16973 else
16974 echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16977 { echo "$as_me:$LINENO: result: no" >&5
16978 echo "${ECHO_T}no" >&6; }
16981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983 CFLAGS="$saved_CFLAGS"
16986 { echo "$as_me:$LINENO: checking for compiler 'attribute sentinel' support" >&5
16987 echo $ECHO_N "checking for compiler 'attribute sentinel' support... $ECHO_C" >&6; }
16988 saved_CFLAGS="$CFLAGS"
16989 CFLAGS="$CFLAGS -Werror"
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 static void __attribute__((sentinel)) *test(void *muffin, ...) {}
16998 main ()
17002 return 0;
17004 _ACEOF
17005 rm -f conftest.$ac_objext
17006 if { (ac_try="$ac_compile"
17007 case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_compile") 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } && {
17019 test -z "$ac_c_werror_flag" ||
17020 test ! -s conftest.err
17021 } && test -s conftest.$ac_objext; then
17022 { echo "$as_me:$LINENO: result: yes" >&5
17023 echo "${ECHO_T}yes" >&6; }
17025 cat >>confdefs.h <<_ACEOF
17026 #define HAVE_ATTRIBUTE_sentinel 1
17027 _ACEOF
17029 else
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 { echo "$as_me:$LINENO: result: no" >&5
17034 echo "${ECHO_T}no" >&6; }
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 CFLAGS="$saved_CFLAGS"
17042 { echo "$as_me:$LINENO: checking for compiler 'attribute warn_unused_result' support" >&5
17043 echo $ECHO_N "checking for compiler 'attribute warn_unused_result' support... $ECHO_C" >&6; }
17044 saved_CFLAGS="$CFLAGS"
17045 CFLAGS="$CFLAGS -Werror"
17046 cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h. */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 static void __attribute__((warn_unused_result)) *test(void *muffin, ...) {}
17054 main ()
17058 return 0;
17060 _ACEOF
17061 rm -f conftest.$ac_objext
17062 if { (ac_try="$ac_compile"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_compile") 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest.$ac_objext; then
17078 { echo "$as_me:$LINENO: result: yes" >&5
17079 echo "${ECHO_T}yes" >&6; }
17081 cat >>confdefs.h <<_ACEOF
17082 #define HAVE_ATTRIBUTE_warn_unused_result 1
17083 _ACEOF
17085 else
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 { echo "$as_me:$LINENO: result: no" >&5
17090 echo "${ECHO_T}no" >&6; }
17093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17095 CFLAGS="$saved_CFLAGS"
17098 { echo "$as_me:$LINENO: checking for -ffunction-sections support" >&5
17099 echo $ECHO_N "checking for -ffunction-sections support... $ECHO_C" >&6; }
17100 saved_CFLAGS="${CFLAGS}"
17101 CFLAGS="${CFLAGS} -ffunction-sections"
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h. */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17110 main ()
17112 int x = 1;
17114 return 0;
17116 _ACEOF
17117 rm -f conftest.$ac_objext
17118 if { (ac_try="$ac_compile"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122 esac
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_compile") 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest.$ac_objext; then
17134 { echo "$as_me:$LINENO: result: yes" >&5
17135 echo "${ECHO_T}yes" >&6; }
17136 saved_LDFLAGS="${LDFLAGS}"
17137 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
17138 { echo "$as_me:$LINENO: checking for --gc-sections support" >&5
17139 echo $ECHO_N "checking for --gc-sections support... $ECHO_C" >&6; }
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17148 main ()
17150 int x = 1;
17152 return 0;
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest$ac_exeext &&
17172 $as_test_x conftest$ac_exeext; then
17173 { echo "$as_me:$LINENO: result: yes" >&5
17174 echo "${ECHO_T}yes" >&6; }
17175 GC_CFLAGS="-ffunction-sections"
17176 GC_LDFLAGS="-Wl,--gc-sections"
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 { echo "$as_me:$LINENO: result: no" >&5
17182 echo "${ECHO_T}no" >&6; }
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17188 LDFLAGS="${saved_LDFLAGS}"
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 { echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6; }
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199 CFLAGS="${saved_CFLAGS}"
17203 { echo "$as_me:$LINENO: checking for -Wdeclaration-after-statement support" >&5
17204 echo $ECHO_N "checking for -Wdeclaration-after-statement support... $ECHO_C" >&6; }
17205 if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17206 { echo "$as_me:$LINENO: result: yes" >&5
17207 echo "${ECHO_T}yes" >&6; }
17208 AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
17209 else
17210 { echo "$as_me:$LINENO: result: no" >&5
17211 echo "${ECHO_T}no" >&6; }
17212 AST_DECLARATION_AFTER_STATEMENT=
17216 { echo "$as_me:$LINENO: checking for -fno-strict-overflow" >&5
17217 echo $ECHO_N "checking for -fno-strict-overflow... $ECHO_C" >&6; }
17218 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
17219 { echo "$as_me:$LINENO: result: yes" >&5
17220 echo "${ECHO_T}yes" >&6; }
17221 AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
17222 else
17223 { echo "$as_me:$LINENO: result: no" >&5
17224 echo "${ECHO_T}no" >&6; }
17225 AST_NO_STRICT_OVERFLOW=
17229 { echo "$as_me:$LINENO: checking for sysinfo" >&5
17230 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 #include <sys/sysinfo.h>
17239 main ()
17241 struct sysinfo sys_info; int uptime = sys_info.uptime
17243 return 0;
17245 _ACEOF
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (ac_try="$ac_link"
17248 case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17251 esac
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_link") 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && {
17260 test -z "$ac_c_werror_flag" ||
17261 test ! -s conftest.err
17262 } && test -s conftest$ac_exeext &&
17263 $as_test_x conftest$ac_exeext; then
17264 { echo "$as_me:$LINENO: result: yes" >&5
17265 echo "${ECHO_T}yes" >&6; }
17267 cat >>confdefs.h <<\_ACEOF
17268 #define HAVE_SYSINFO 1
17269 _ACEOF
17271 else
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 { echo "$as_me:$LINENO: result: no" >&5
17276 echo "${ECHO_T}no" >&6; }
17280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17281 conftest$ac_exeext conftest.$ac_ext
17283 { echo "$as_me:$LINENO: checking for library containing res_9_ninit" >&5
17284 echo $ECHO_N "checking for library containing res_9_ninit... $ECHO_C" >&6; }
17285 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288 ac_func_search_save_LIBS=$LIBS
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17296 /* Override any GCC internal prototype to avoid an error.
17297 Use char because int might match the return type of a GCC
17298 builtin and then its argument prototype would still apply. */
17299 #ifdef __cplusplus
17300 extern "C"
17301 #endif
17302 char res_9_ninit ();
17304 main ()
17306 return res_9_ninit ();
17308 return 0;
17310 _ACEOF
17311 for ac_lib in '' resolv; do
17312 if test -z "$ac_lib"; then
17313 ac_res="none required"
17314 else
17315 ac_res=-l$ac_lib
17316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323 esac
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17326 ac_status=$?
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest$ac_exeext &&
17335 $as_test_x conftest$ac_exeext; then
17336 ac_cv_search_res_9_ninit=$ac_res
17337 else
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext
17346 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17347 break
17349 done
17350 if test "${ac_cv_search_res_9_ninit+set}" = set; then
17352 else
17353 ac_cv_search_res_9_ninit=no
17355 rm conftest.$ac_ext
17356 LIBS=$ac_func_search_save_LIBS
17358 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ninit" >&5
17359 echo "${ECHO_T}$ac_cv_search_res_9_ninit" >&6; }
17360 ac_res=$ac_cv_search_res_9_ninit
17361 if test "$ac_res" != no; then
17362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17366 { echo "$as_me:$LINENO: checking for res_ninit" >&5
17367 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6; }
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17375 #ifdef HAVE_SYS_SOCKET_H
17376 #include <sys/socket.h>
17377 #endif
17378 #ifdef HAVE_NETINET_IN_H
17379 #include <netinet/in.h>
17380 #endif
17381 #ifdef HAVE_ARPA_NAMESER_H
17382 #include <arpa/nameser.h>
17383 #endif
17384 #include <resolv.h>
17386 main ()
17388 int foo = res_ninit(NULL);
17390 return 0;
17392 _ACEOF
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && {
17407 test -z "$ac_c_werror_flag" ||
17408 test ! -s conftest.err
17409 } && test -s conftest$ac_exeext &&
17410 $as_test_x conftest$ac_exeext; then
17411 { echo "$as_me:$LINENO: result: yes" >&5
17412 echo "${ECHO_T}yes" >&6; }
17414 cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_RES_NINIT 1
17416 _ACEOF
17418 { echo "$as_me:$LINENO: checking for library containing res_9_ndestroy" >&5
17419 echo $ECHO_N "checking for library containing res_9_ndestroy... $ECHO_C" >&6; }
17420 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 else
17423 ac_func_search_save_LIBS=$LIBS
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17431 /* Override any GCC internal prototype to avoid an error.
17432 Use char because int might match the return type of a GCC
17433 builtin and then its argument prototype would still apply. */
17434 #ifdef __cplusplus
17435 extern "C"
17436 #endif
17437 char res_9_ndestroy ();
17439 main ()
17441 return res_9_ndestroy ();
17443 return 0;
17445 _ACEOF
17446 for ac_lib in '' resolv; do
17447 if test -z "$ac_lib"; then
17448 ac_res="none required"
17449 else
17450 ac_res=-l$ac_lib
17451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (ac_try="$ac_link"
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_link") 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); } && {
17467 test -z "$ac_c_werror_flag" ||
17468 test ! -s conftest.err
17469 } && test -s conftest$ac_exeext &&
17470 $as_test_x conftest$ac_exeext; then
17471 ac_cv_search_res_9_ndestroy=$ac_res
17472 else
17473 echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17480 conftest$ac_exeext
17481 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17482 break
17484 done
17485 if test "${ac_cv_search_res_9_ndestroy+set}" = set; then
17487 else
17488 ac_cv_search_res_9_ndestroy=no
17490 rm conftest.$ac_ext
17491 LIBS=$ac_func_search_save_LIBS
17493 { echo "$as_me:$LINENO: result: $ac_cv_search_res_9_ndestroy" >&5
17494 echo "${ECHO_T}$ac_cv_search_res_9_ndestroy" >&6; }
17495 ac_res=$ac_cv_search_res_9_ndestroy
17496 if test "$ac_res" != no; then
17497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17501 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
17502 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h. */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17510 #ifdef HAVE_SYS_SOCKET_H
17511 #include <sys/socket.h>
17512 #endif
17513 #ifdef HAVE_NETINET_IN_H
17514 #include <netinet/in.h>
17515 #endif
17516 #ifdef HAVE_ARPA_NAMESER_H
17517 #include <arpa/nameser.h>
17518 #endif
17519 #include <resolv.h>
17521 main ()
17523 res_ndestroy(NULL);
17525 return 0;
17527 _ACEOF
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (ac_try="$ac_link"
17530 case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533 esac
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_link") 2>conftest.er1
17536 ac_status=$?
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } && {
17542 test -z "$ac_c_werror_flag" ||
17543 test ! -s conftest.err
17544 } && test -s conftest$ac_exeext &&
17545 $as_test_x conftest$ac_exeext; then
17546 { echo "$as_me:$LINENO: result: yes" >&5
17547 echo "${ECHO_T}yes" >&6; }
17549 cat >>confdefs.h <<\_ACEOF
17550 #define HAVE_RES_NDESTROY 1
17551 _ACEOF
17553 else
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 { echo "$as_me:$LINENO: result: no" >&5
17558 echo "${ECHO_T}no" >&6; }
17562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563 conftest$ac_exeext conftest.$ac_ext
17564 else
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 { echo "$as_me:$LINENO: result: no" >&5
17569 echo "${ECHO_T}no" >&6; }
17573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17574 conftest$ac_exeext conftest.$ac_ext
17577 if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
17578 { echo "$as_me:$LINENO: checking for RTLD_NOLOAD in dlfcn.h" >&5
17579 echo $ECHO_N "checking for RTLD_NOLOAD in dlfcn.h... $ECHO_C" >&6; }
17580 saved_cppflags="${CPPFLAGS}"
17581 if test "x${RTLD_NOLOAD_DIR}" != "x"; then
17582 RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
17584 CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 #include <dlfcn.h>
17594 main ()
17596 #if defined(RTLD_NOLOAD)
17597 int foo = 0;
17598 #else
17599 int foo = bar;
17600 #endif
17604 return 0;
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_compile") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest.$ac_objext; then
17624 { echo "$as_me:$LINENO: result: yes" >&5
17625 echo "${ECHO_T}yes" >&6; }
17626 PBX_RTLD_NOLOAD=1
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_RTLD_NOLOAD 1
17630 _ACEOF
17633 cat >>confdefs.h <<\_ACEOF
17634 #define HAVE_RTLD_NOLOAD_VERSION
17635 _ACEOF
17638 else
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 { echo "$as_me:$LINENO: result: no" >&5
17643 echo "${ECHO_T}no" >&6; }
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648 CPPFLAGS="${saved_cppflags}"
17654 if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
17655 { echo "$as_me:$LINENO: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
17656 echo $ECHO_N "checking for IP_MTU_DISCOVER in netinet/in.h... $ECHO_C" >&6; }
17657 saved_cppflags="${CPPFLAGS}"
17658 if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
17659 IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
17661 CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
17663 cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h. */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 #include <netinet/in.h>
17671 main ()
17673 #if defined(IP_MTU_DISCOVER)
17674 int foo = 0;
17675 #else
17676 int foo = bar;
17677 #endif
17681 return 0;
17683 _ACEOF
17684 rm -f conftest.$ac_objext
17685 if { (ac_try="$ac_compile"
17686 case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_compile") 2>conftest.er1
17692 ac_status=$?
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } && {
17698 test -z "$ac_c_werror_flag" ||
17699 test ! -s conftest.err
17700 } && test -s conftest.$ac_objext; then
17701 { echo "$as_me:$LINENO: result: yes" >&5
17702 echo "${ECHO_T}yes" >&6; }
17703 PBX_IP_MTU_DISCOVER=1
17705 cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_IP_MTU_DISCOVER 1
17707 _ACEOF
17710 cat >>confdefs.h <<\_ACEOF
17711 #define HAVE_IP_MTU_DISCOVER_VERSION
17712 _ACEOF
17715 else
17716 echo "$as_me: failed program was:" >&5
17717 sed 's/^/| /' conftest.$ac_ext >&5
17719 { echo "$as_me:$LINENO: result: no" >&5
17720 echo "${ECHO_T}no" >&6; }
17724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725 CPPFLAGS="${saved_cppflags}"
17730 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17731 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17732 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17733 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17737 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17738 else
17739 # Is the header compilable?
17740 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
17741 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
17742 cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h. */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 $ac_includes_default
17749 #include <libkern/OSAtomic.h>
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17759 ac_status=$?
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest.$ac_objext; then
17768 ac_header_compiler=yes
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 ac_header_compiler=no
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17778 echo "${ECHO_T}$ac_header_compiler" >&6; }
17780 # Is the header present?
17781 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
17782 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 #include <libkern/OSAtomic.h>
17790 _ACEOF
17791 if { (ac_try="$ac_cpp conftest.$ac_ext"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17798 ac_status=$?
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } >/dev/null && {
17804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17806 }; then
17807 ac_header_preproc=yes
17808 else
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_header_preproc=no
17815 rm -f conftest.err conftest.$ac_ext
17816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17817 echo "${ECHO_T}$ac_header_preproc" >&6; }
17819 # So? What about this header?
17820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17821 yes:no: )
17822 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
17823 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17824 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
17825 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
17826 ac_header_preproc=yes
17828 no:yes:* )
17829 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
17830 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
17832 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
17833 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
17834 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
17835 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
17836 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
17837 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
17838 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
17839 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
17840 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
17841 ( cat <<\_ASBOX
17842 ## ------------------------------- ##
17843 ## Report this to www.asterisk.org ##
17844 ## ------------------------------- ##
17845 _ASBOX
17846 ) | sed "s/^/$as_me: WARNING: /" >&2
17848 esac
17849 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
17850 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
17851 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854 ac_cv_header_libkern_OSAtomic_h=$ac_header_preproc
17856 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
17857 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
17860 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
17862 cat >>confdefs.h <<_ACEOF
17863 #define HAVE_OSX_ATOMICS 1
17864 _ACEOF
17870 { echo "$as_me:$LINENO: checking for int" >&5
17871 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
17872 if test "${ac_cv_type_int+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 $ac_includes_default
17882 typedef int ac__type_new_;
17884 main ()
17886 if ((ac__type_new_ *) 0)
17887 return 0;
17888 if (sizeof (ac__type_new_))
17889 return 0;
17891 return 0;
17893 _ACEOF
17894 rm -f conftest.$ac_objext
17895 if { (ac_try="$ac_compile"
17896 case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_compile") 2>conftest.er1
17902 ac_status=$?
17903 grep -v '^ *+' conftest.er1 >conftest.err
17904 rm -f conftest.er1
17905 cat conftest.err >&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && {
17908 test -z "$ac_c_werror_flag" ||
17909 test ! -s conftest.err
17910 } && test -s conftest.$ac_objext; then
17911 ac_cv_type_int=yes
17912 else
17913 echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17916 ac_cv_type_int=no
17919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17922 echo "${ECHO_T}$ac_cv_type_int" >&6; }
17924 # The cast to long int works around a bug in the HP C Compiler
17925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17927 # This bug is HP SR number 8606223364.
17928 { echo "$as_me:$LINENO: checking size of int" >&5
17929 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
17930 if test "${ac_cv_sizeof_int+set}" = set; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 else
17933 if test "$cross_compiling" = yes; then
17934 # Depending upon the size, compute the lo and hi bounds.
17935 cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h. */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 $ac_includes_default
17942 typedef int ac__type_sizeof_;
17944 main ()
17946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17947 test_array [0] = 0
17950 return 0;
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (ac_try="$ac_compile"
17955 case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_compile") 2>conftest.er1
17961 ac_status=$?
17962 grep -v '^ *+' conftest.er1 >conftest.err
17963 rm -f conftest.er1
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } && {
17967 test -z "$ac_c_werror_flag" ||
17968 test ! -s conftest.err
17969 } && test -s conftest.$ac_objext; then
17970 ac_lo=0 ac_mid=0
17971 while :; do
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h. */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17978 $ac_includes_default
17979 typedef int ac__type_sizeof_;
17981 main ()
17983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17984 test_array [0] = 0
17987 return 0;
17989 _ACEOF
17990 rm -f conftest.$ac_objext
17991 if { (ac_try="$ac_compile"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_compile") 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } && {
18004 test -z "$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18006 } && test -s conftest.$ac_objext; then
18007 ac_hi=$ac_mid; break
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_lo=`expr $ac_mid + 1`
18013 if test $ac_lo -le $ac_mid; then
18014 ac_lo= ac_hi=
18015 break
18017 ac_mid=`expr 2 '*' $ac_mid + 1`
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 done
18022 else
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h. */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 $ac_includes_default
18033 typedef int ac__type_sizeof_;
18035 main ()
18037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18038 test_array [0] = 0
18041 return 0;
18043 _ACEOF
18044 rm -f conftest.$ac_objext
18045 if { (ac_try="$ac_compile"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_compile") 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } && {
18058 test -z "$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18060 } && test -s conftest.$ac_objext; then
18061 ac_hi=-1 ac_mid=-1
18062 while :; do
18063 cat >conftest.$ac_ext <<_ACEOF
18064 /* confdefs.h. */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 $ac_includes_default
18070 typedef int ac__type_sizeof_;
18072 main ()
18074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18075 test_array [0] = 0
18078 return 0;
18080 _ACEOF
18081 rm -f conftest.$ac_objext
18082 if { (ac_try="$ac_compile"
18083 case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_compile") 2>conftest.er1
18089 ac_status=$?
18090 grep -v '^ *+' conftest.er1 >conftest.err
18091 rm -f conftest.er1
18092 cat conftest.err >&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } && {
18095 test -z "$ac_c_werror_flag" ||
18096 test ! -s conftest.err
18097 } && test -s conftest.$ac_objext; then
18098 ac_lo=$ac_mid; break
18099 else
18100 echo "$as_me: failed program was:" >&5
18101 sed 's/^/| /' conftest.$ac_ext >&5
18103 ac_hi=`expr '(' $ac_mid ')' - 1`
18104 if test $ac_mid -le $ac_hi; then
18105 ac_lo= ac_hi=
18106 break
18108 ac_mid=`expr 2 '*' $ac_mid`
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 done
18113 else
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 ac_lo= ac_hi=
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124 # Binary search between lo and hi bounds.
18125 while test "x$ac_lo" != "x$ac_hi"; do
18126 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h. */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18134 typedef int ac__type_sizeof_;
18136 main ()
18138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18139 test_array [0] = 0
18142 return 0;
18144 _ACEOF
18145 rm -f conftest.$ac_objext
18146 if { (ac_try="$ac_compile"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_compile") 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } && {
18159 test -z "$ac_c_werror_flag" ||
18160 test ! -s conftest.err
18161 } && test -s conftest.$ac_objext; then
18162 ac_hi=$ac_mid
18163 else
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18167 ac_lo=`expr '(' $ac_mid ')' + 1`
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171 done
18172 case $ac_lo in
18173 ?*) ac_cv_sizeof_int=$ac_lo;;
18174 '') if test "$ac_cv_type_int" = yes; then
18175 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18176 See \`config.log' for more details." >&5
18177 echo "$as_me: error: cannot compute sizeof (int)
18178 See \`config.log' for more details." >&2;}
18179 { (exit 77); exit 77; }; }
18180 else
18181 ac_cv_sizeof_int=0
18182 fi ;;
18183 esac
18184 else
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 $ac_includes_default
18192 typedef int ac__type_sizeof_;
18193 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18194 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18195 #include <stdio.h>
18196 #include <stdlib.h>
18198 main ()
18201 FILE *f = fopen ("conftest.val", "w");
18202 if (! f)
18203 return 1;
18204 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18206 long int i = longval ();
18207 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18208 return 1;
18209 fprintf (f, "%ld\n", i);
18211 else
18213 unsigned long int i = ulongval ();
18214 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18215 return 1;
18216 fprintf (f, "%lu\n", i);
18218 return ferror (f) || fclose (f) != 0;
18221 return 0;
18223 _ACEOF
18224 rm -f conftest$ac_exeext
18225 if { (ac_try="$ac_link"
18226 case "(($ac_try" in
18227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228 *) ac_try_echo=$ac_try;;
18229 esac
18230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231 (eval "$ac_link") 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18244 ac_cv_sizeof_int=`cat conftest.val`
18245 else
18246 echo "$as_me: program exited with status $ac_status" >&5
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18250 ( exit $ac_status )
18251 if test "$ac_cv_type_int" = yes; then
18252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18253 See \`config.log' for more details." >&5
18254 echo "$as_me: error: cannot compute sizeof (int)
18255 See \`config.log' for more details." >&2;}
18256 { (exit 77); exit 77; }; }
18257 else
18258 ac_cv_sizeof_int=0
18261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18263 rm -f conftest.val
18265 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18266 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
18270 cat >>confdefs.h <<_ACEOF
18271 #define SIZEOF_INT $ac_cv_sizeof_int
18272 _ACEOF
18276 # do the package library checks now
18279 if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
18280 pbxlibdir=""
18281 # if --with-ALSA=DIR has been specified, use it.
18282 if test "x${ALSA_DIR}" != "x"; then
18283 if test -d ${ALSA_DIR}/lib; then
18284 pbxlibdir="-L${ALSA_DIR}/lib"
18285 else
18286 pbxlibdir="-L${ALSA_DIR}"
18289 pbxfuncname="snd_spcm_init"
18290 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18291 AST_ALSA_FOUND=yes
18292 else
18293 as_ac_Lib=`echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
18294 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lasound" >&5
18295 echo $ECHO_N "checking for ${pbxfuncname} in -lasound... $ECHO_C" >&6; }
18296 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char ${pbxfuncname} ();
18316 main ()
18318 return ${pbxfuncname} ();
18320 return 0;
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18340 $as_test_x conftest$ac_exeext; then
18341 eval "$as_ac_Lib=yes"
18342 else
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 eval "$as_ac_Lib=no"
18349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18350 conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18353 ac_res=`eval echo '${'$as_ac_Lib'}'`
18354 { echo "$as_me:$LINENO: result: $ac_res" >&5
18355 echo "${ECHO_T}$ac_res" >&6; }
18356 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18357 AST_ALSA_FOUND=yes
18358 else
18359 AST_ALSA_FOUND=no
18364 # now check for the header.
18365 if test "${AST_ALSA_FOUND}" = "yes"; then
18366 ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
18367 # if --with-ALSA=DIR has been specified, use it.
18368 if test "x${ALSA_DIR}" != "x"; then
18369 ALSA_INCLUDE="-I${ALSA_DIR}/include"
18371 ALSA_INCLUDE="${ALSA_INCLUDE} "
18372 if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
18373 ALSA_HEADER_FOUND="1"
18374 else # check for the header
18375 saved_cppflags="${CPPFLAGS}"
18376 CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE} "
18377 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18378 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18379 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18380 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18384 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18385 else
18386 # Is the header compilable?
18387 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
18388 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
18389 cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h. */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395 $ac_includes_default
18396 #include <alsa/asoundlib.h>
18397 _ACEOF
18398 rm -f conftest.$ac_objext
18399 if { (ac_try="$ac_compile"
18400 case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_compile") 2>conftest.er1
18406 ac_status=$?
18407 grep -v '^ *+' conftest.er1 >conftest.err
18408 rm -f conftest.er1
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } && {
18412 test -z "$ac_c_werror_flag" ||
18413 test ! -s conftest.err
18414 } && test -s conftest.$ac_objext; then
18415 ac_header_compiler=yes
18416 else
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18420 ac_header_compiler=no
18423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18425 echo "${ECHO_T}$ac_header_compiler" >&6; }
18427 # Is the header present?
18428 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
18429 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
18430 cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h. */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18436 #include <alsa/asoundlib.h>
18437 _ACEOF
18438 if { (ac_try="$ac_cpp conftest.$ac_ext"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } >/dev/null && {
18451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18452 test ! -s conftest.err
18453 }; then
18454 ac_header_preproc=yes
18455 else
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ac_header_preproc=no
18462 rm -f conftest.err conftest.$ac_ext
18463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18464 echo "${ECHO_T}$ac_header_preproc" >&6; }
18466 # So? What about this header?
18467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18468 yes:no: )
18469 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18470 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18471 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
18472 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
18473 ac_header_preproc=yes
18475 no:yes:* )
18476 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
18477 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
18479 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
18481 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
18482 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
18483 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18484 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
18485 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
18486 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
18487 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
18488 ( cat <<\_ASBOX
18489 ## ------------------------------- ##
18490 ## Report this to www.asterisk.org ##
18491 ## ------------------------------- ##
18492 _ASBOX
18493 ) | sed "s/^/$as_me: WARNING: /" >&2
18495 esac
18496 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
18497 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
18498 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
18503 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
18504 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
18507 if test $ac_cv_header_alsa_asoundlib_h = yes; then
18508 ALSA_HEADER_FOUND=1
18509 else
18510 ALSA_HEADER_FOUND=0
18514 CPPFLAGS="${saved_cppflags}"
18516 if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
18517 ALSA_LIB=""
18518 ALSA_INCLUDE=""
18519 else
18520 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18521 ALSA_LIB=""
18523 PBX_ALSA=1
18524 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18526 cat >>confdefs.h <<_ACEOF
18527 #define HAVE_ALSA 1
18528 _ACEOF
18531 cat >>confdefs.h <<_ACEOF
18532 #define HAVE_ALSA_VERSION
18533 _ACEOF
18541 if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
18542 pbxlibdir=""
18543 # if --with-CURSES=DIR has been specified, use it.
18544 if test "x${CURSES_DIR}" != "x"; then
18545 if test -d ${CURSES_DIR}/lib; then
18546 pbxlibdir="-L${CURSES_DIR}/lib"
18547 else
18548 pbxlibdir="-L${CURSES_DIR}"
18551 pbxfuncname="initscr"
18552 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18553 AST_CURSES_FOUND=yes
18554 else
18555 as_ac_Lib=`echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
18556 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcurses" >&5
18557 echo $ECHO_N "checking for ${pbxfuncname} in -lcurses... $ECHO_C" >&6; }
18558 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 ac_check_lib_save_LIBS=$LIBS
18562 LIBS="-lcurses ${pbxlibdir} $LIBS"
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h. */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18570 /* Override any GCC internal prototype to avoid an error.
18571 Use char because int might match the return type of a GCC
18572 builtin and then its argument prototype would still apply. */
18573 #ifdef __cplusplus
18574 extern "C"
18575 #endif
18576 char ${pbxfuncname} ();
18578 main ()
18580 return ${pbxfuncname} ();
18582 return 0;
18584 _ACEOF
18585 rm -f conftest.$ac_objext conftest$ac_exeext
18586 if { (ac_try="$ac_link"
18587 case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_link") 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } && {
18599 test -z "$ac_c_werror_flag" ||
18600 test ! -s conftest.err
18601 } && test -s conftest$ac_exeext &&
18602 $as_test_x conftest$ac_exeext; then
18603 eval "$as_ac_Lib=yes"
18604 else
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 eval "$as_ac_Lib=no"
18611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18612 conftest$ac_exeext conftest.$ac_ext
18613 LIBS=$ac_check_lib_save_LIBS
18615 ac_res=`eval echo '${'$as_ac_Lib'}'`
18616 { echo "$as_me:$LINENO: result: $ac_res" >&5
18617 echo "${ECHO_T}$ac_res" >&6; }
18618 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18619 AST_CURSES_FOUND=yes
18620 else
18621 AST_CURSES_FOUND=no
18626 # now check for the header.
18627 if test "${AST_CURSES_FOUND}" = "yes"; then
18628 CURSES_LIB="${pbxlibdir} -lcurses "
18629 # if --with-CURSES=DIR has been specified, use it.
18630 if test "x${CURSES_DIR}" != "x"; then
18631 CURSES_INCLUDE="-I${CURSES_DIR}/include"
18633 CURSES_INCLUDE="${CURSES_INCLUDE} "
18634 if test "xcurses.h" = "x" ; then # no header, assume found
18635 CURSES_HEADER_FOUND="1"
18636 else # check for the header
18637 saved_cppflags="${CPPFLAGS}"
18638 CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE} "
18639 if test "${ac_cv_header_curses_h+set}" = set; then
18640 { echo "$as_me:$LINENO: checking for curses.h" >&5
18641 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18642 if test "${ac_cv_header_curses_h+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18646 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18647 else
18648 # Is the header compilable?
18649 { echo "$as_me:$LINENO: checking curses.h usability" >&5
18650 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h. */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 $ac_includes_default
18658 #include <curses.h>
18659 _ACEOF
18660 rm -f conftest.$ac_objext
18661 if { (ac_try="$ac_compile"
18662 case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_compile") 2>conftest.er1
18668 ac_status=$?
18669 grep -v '^ *+' conftest.er1 >conftest.err
18670 rm -f conftest.er1
18671 cat conftest.err >&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } && {
18674 test -z "$ac_c_werror_flag" ||
18675 test ! -s conftest.err
18676 } && test -s conftest.$ac_objext; then
18677 ac_header_compiler=yes
18678 else
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ac_header_compiler=no
18685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18687 echo "${ECHO_T}$ac_header_compiler" >&6; }
18689 # Is the header present?
18690 { echo "$as_me:$LINENO: checking curses.h presence" >&5
18691 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 #include <curses.h>
18699 _ACEOF
18700 if { (ac_try="$ac_cpp conftest.$ac_ext"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18704 esac
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18707 ac_status=$?
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } >/dev/null && {
18713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18714 test ! -s conftest.err
18715 }; then
18716 ac_header_preproc=yes
18717 else
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 ac_header_preproc=no
18724 rm -f conftest.err conftest.$ac_ext
18725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18726 echo "${ECHO_T}$ac_header_preproc" >&6; }
18728 # So? What about this header?
18729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18730 yes:no: )
18731 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
18732 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
18734 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
18735 ac_header_preproc=yes
18737 no:yes:* )
18738 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
18739 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
18740 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
18741 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
18742 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
18743 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
18744 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
18745 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
18746 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
18747 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
18748 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
18749 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
18750 ( cat <<\_ASBOX
18751 ## ------------------------------- ##
18752 ## Report this to www.asterisk.org ##
18753 ## ------------------------------- ##
18754 _ASBOX
18755 ) | sed "s/^/$as_me: WARNING: /" >&2
18757 esac
18758 { echo "$as_me:$LINENO: checking for curses.h" >&5
18759 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
18760 if test "${ac_cv_header_curses_h+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763 ac_cv_header_curses_h=$ac_header_preproc
18765 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
18766 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
18769 if test $ac_cv_header_curses_h = yes; then
18770 CURSES_HEADER_FOUND=1
18771 else
18772 CURSES_HEADER_FOUND=0
18776 CPPFLAGS="${saved_cppflags}"
18778 if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
18779 CURSES_LIB=""
18780 CURSES_INCLUDE=""
18781 else
18782 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
18783 CURSES_LIB=""
18785 PBX_CURSES=1
18786 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
18788 cat >>confdefs.h <<_ACEOF
18789 #define HAVE_CURSES 1
18790 _ACEOF
18793 cat >>confdefs.h <<_ACEOF
18794 #define HAVE_CURSES_VERSION
18795 _ACEOF
18802 if test "x${host_os}" = "xlinux-gnu" ; then
18804 if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
18805 pbxlibdir=""
18806 # if --with-CAP=DIR has been specified, use it.
18807 if test "x${CAP_DIR}" != "x"; then
18808 if test -d ${CAP_DIR}/lib; then
18809 pbxlibdir="-L${CAP_DIR}/lib"
18810 else
18811 pbxlibdir="-L${CAP_DIR}"
18814 pbxfuncname="cap_from_text"
18815 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
18816 AST_CAP_FOUND=yes
18817 else
18818 as_ac_Lib=`echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
18819 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcap" >&5
18820 echo $ECHO_N "checking for ${pbxfuncname} in -lcap... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824 ac_check_lib_save_LIBS=$LIBS
18825 LIBS="-lcap ${pbxlibdir} $LIBS"
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h. */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18836 #ifdef __cplusplus
18837 extern "C"
18838 #endif
18839 char ${pbxfuncname} ();
18841 main ()
18843 return ${pbxfuncname} ();
18845 return 0;
18847 _ACEOF
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18853 esac
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_link") 2>conftest.er1
18856 ac_status=$?
18857 grep -v '^ *+' conftest.er1 >conftest.err
18858 rm -f conftest.er1
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } && {
18862 test -z "$ac_c_werror_flag" ||
18863 test ! -s conftest.err
18864 } && test -s conftest$ac_exeext &&
18865 $as_test_x conftest$ac_exeext; then
18866 eval "$as_ac_Lib=yes"
18867 else
18868 echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18871 eval "$as_ac_Lib=no"
18874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18875 conftest$ac_exeext conftest.$ac_ext
18876 LIBS=$ac_check_lib_save_LIBS
18878 ac_res=`eval echo '${'$as_ac_Lib'}'`
18879 { echo "$as_me:$LINENO: result: $ac_res" >&5
18880 echo "${ECHO_T}$ac_res" >&6; }
18881 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
18882 AST_CAP_FOUND=yes
18883 else
18884 AST_CAP_FOUND=no
18889 # now check for the header.
18890 if test "${AST_CAP_FOUND}" = "yes"; then
18891 CAP_LIB="${pbxlibdir} -lcap "
18892 # if --with-CAP=DIR has been specified, use it.
18893 if test "x${CAP_DIR}" != "x"; then
18894 CAP_INCLUDE="-I${CAP_DIR}/include"
18896 CAP_INCLUDE="${CAP_INCLUDE} "
18897 if test "xsys/capability.h" = "x" ; then # no header, assume found
18898 CAP_HEADER_FOUND="1"
18899 else # check for the header
18900 saved_cppflags="${CPPFLAGS}"
18901 CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE} "
18902 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18903 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
18904 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
18905 if test "${ac_cv_header_sys_capability_h+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
18909 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
18910 else
18911 # Is the header compilable?
18912 { echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
18913 echo $ECHO_N "checking sys/capability.h usability... $ECHO_C" >&6; }
18914 cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h. */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 $ac_includes_default
18921 #include <sys/capability.h>
18922 _ACEOF
18923 rm -f conftest.$ac_objext
18924 if { (ac_try="$ac_compile"
18925 case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_compile") 2>conftest.er1
18931 ac_status=$?
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && {
18937 test -z "$ac_c_werror_flag" ||
18938 test ! -s conftest.err
18939 } && test -s conftest.$ac_objext; then
18940 ac_header_compiler=yes
18941 else
18942 echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18945 ac_header_compiler=no
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18950 echo "${ECHO_T}$ac_header_compiler" >&6; }
18952 # Is the header present?
18953 { echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
18954 echo $ECHO_N "checking sys/capability.h presence... $ECHO_C" >&6; }
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 #include <sys/capability.h>
18962 _ACEOF
18963 if { (ac_try="$ac_cpp conftest.$ac_ext"
18964 case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18970 ac_status=$?
18971 grep -v '^ *+' conftest.er1 >conftest.err
18972 rm -f conftest.er1
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } >/dev/null && {
18976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18977 test ! -s conftest.err
18978 }; then
18979 ac_header_preproc=yes
18980 else
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ac_header_preproc=no
18987 rm -f conftest.err conftest.$ac_ext
18988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18989 echo "${ECHO_T}$ac_header_preproc" >&6; }
18991 # So? What about this header?
18992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18993 yes:no: )
18994 { echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
18995 echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
18997 echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
18998 ac_header_preproc=yes
19000 no:yes:* )
19001 { echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
19002 echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
19003 { echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
19004 echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
19005 { echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
19006 echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
19007 { echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
19008 echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
19009 { echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
19010 echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
19011 { echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
19012 echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
19013 ( cat <<\_ASBOX
19014 ## ------------------------------- ##
19015 ## Report this to www.asterisk.org ##
19016 ## ------------------------------- ##
19017 _ASBOX
19018 ) | sed "s/^/$as_me: WARNING: /" >&2
19020 esac
19021 { echo "$as_me:$LINENO: checking for sys/capability.h" >&5
19022 echo $ECHO_N "checking for sys/capability.h... $ECHO_C" >&6; }
19023 if test "${ac_cv_header_sys_capability_h+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19025 else
19026 ac_cv_header_sys_capability_h=$ac_header_preproc
19028 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
19029 echo "${ECHO_T}$ac_cv_header_sys_capability_h" >&6; }
19032 if test $ac_cv_header_sys_capability_h = yes; then
19033 CAP_HEADER_FOUND=1
19034 else
19035 CAP_HEADER_FOUND=0
19039 CPPFLAGS="${saved_cppflags}"
19041 if test "x${CAP_HEADER_FOUND}" = "x0" ; then
19042 CAP_LIB=""
19043 CAP_INCLUDE=""
19044 else
19045 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19046 CAP_LIB=""
19048 PBX_CAP=1
19049 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19051 cat >>confdefs.h <<_ACEOF
19052 #define HAVE_CAP 1
19053 _ACEOF
19056 cat >>confdefs.h <<_ACEOF
19057 #define HAVE_CAP_VERSION
19058 _ACEOF
19067 if test "x${PBX_DAHDI}" != "x1"; then
19068 { echo "$as_me:$LINENO: checking for DAHDI_CODE in dahdi/user.h" >&5
19069 echo $ECHO_N "checking for DAHDI_CODE in dahdi/user.h... $ECHO_C" >&6; }
19070 saved_cppflags="${CPPFLAGS}"
19071 if test "x${DAHDI_DIR}" != "x"; then
19072 DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
19074 CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
19076 cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h. */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19082 #include <dahdi/user.h>
19084 main ()
19086 #if defined(DAHDI_CODE)
19087 int foo = 0;
19088 #else
19089 int foo = bar;
19090 #endif
19094 return 0;
19096 _ACEOF
19097 rm -f conftest.$ac_objext
19098 if { (ac_try="$ac_compile"
19099 case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102 esac
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_compile") 2>conftest.er1
19105 ac_status=$?
19106 grep -v '^ *+' conftest.er1 >conftest.err
19107 rm -f conftest.er1
19108 cat conftest.err >&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } && {
19111 test -z "$ac_c_werror_flag" ||
19112 test ! -s conftest.err
19113 } && test -s conftest.$ac_objext; then
19114 { echo "$as_me:$LINENO: result: yes" >&5
19115 echo "${ECHO_T}yes" >&6; }
19116 PBX_DAHDI=1
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_DAHDI 1
19120 _ACEOF
19123 cat >>confdefs.h <<\_ACEOF
19124 #define HAVE_DAHDI_VERSION
19125 _ACEOF
19128 else
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19132 { echo "$as_me:$LINENO: result: no" >&5
19133 echo "${ECHO_T}no" >&6; }
19137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19138 CPPFLAGS="${saved_cppflags}"
19143 # BSD might not have exp2, and/or log2
19145 if test "x${PBX_EXP2L}" != "x1" -a "${USE_EXP2L}" != "no"; then
19146 pbxlibdir=""
19147 # if --with-EXP2L=DIR has been specified, use it.
19148 if test "x${EXP2L_DIR}" != "x"; then
19149 if test -d ${EXP2L_DIR}/lib; then
19150 pbxlibdir="-L${EXP2L_DIR}/lib"
19151 else
19152 pbxlibdir="-L${EXP2L_DIR}"
19155 pbxfuncname="exp2l"
19156 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19157 AST_EXP2L_FOUND=yes
19158 else
19159 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19160 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19161 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19162 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165 ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-lm ${pbxlibdir} $LIBS"
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19174 /* Override any GCC internal prototype to avoid an error.
19175 Use char because int might match the return type of a GCC
19176 builtin and then its argument prototype would still apply. */
19177 #ifdef __cplusplus
19178 extern "C"
19179 #endif
19180 char ${pbxfuncname} ();
19182 main ()
19184 return ${pbxfuncname} ();
19186 return 0;
19188 _ACEOF
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest$ac_exeext &&
19206 $as_test_x conftest$ac_exeext; then
19207 eval "$as_ac_Lib=yes"
19208 else
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 eval "$as_ac_Lib=no"
19215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19216 conftest$ac_exeext conftest.$ac_ext
19217 LIBS=$ac_check_lib_save_LIBS
19219 ac_res=`eval echo '${'$as_ac_Lib'}'`
19220 { echo "$as_me:$LINENO: result: $ac_res" >&5
19221 echo "${ECHO_T}$ac_res" >&6; }
19222 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19223 AST_EXP2L_FOUND=yes
19224 else
19225 AST_EXP2L_FOUND=no
19230 # now check for the header.
19231 if test "${AST_EXP2L_FOUND}" = "yes"; then
19232 EXP2L_LIB="${pbxlibdir} -lm "
19233 # if --with-EXP2L=DIR has been specified, use it.
19234 if test "x${EXP2L_DIR}" != "x"; then
19235 EXP2L_INCLUDE="-I${EXP2L_DIR}/include"
19237 EXP2L_INCLUDE="${EXP2L_INCLUDE} "
19238 if test "x" = "x" ; then # no header, assume found
19239 EXP2L_HEADER_FOUND="1"
19240 else # check for the header
19241 saved_cppflags="${CPPFLAGS}"
19242 CPPFLAGS="${CPPFLAGS} ${EXP2L_INCLUDE} "
19243 if test "${ac_cv_header_+set}" = set; then
19244 { echo "$as_me:$LINENO: checking for " >&5
19245 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19246 if test "${ac_cv_header_+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19250 echo "${ECHO_T}$ac_cv_header_" >&6; }
19251 else
19252 # Is the header compilable?
19253 { echo "$as_me:$LINENO: checking usability" >&5
19254 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19255 cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h. */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19261 $ac_includes_default
19262 #include <>
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (ac_try="$ac_compile"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_compile") 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } && {
19278 test -z "$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19280 } && test -s conftest.$ac_objext; then
19281 ac_header_compiler=yes
19282 else
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_header_compiler=no
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19291 echo "${ECHO_T}$ac_header_compiler" >&6; }
19293 # Is the header present?
19294 { echo "$as_me:$LINENO: checking presence" >&5
19295 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19296 cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h. */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 #include <>
19303 _ACEOF
19304 if { (ac_try="$ac_cpp conftest.$ac_ext"
19305 case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19308 esac
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } >/dev/null && {
19317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19318 test ! -s conftest.err
19319 }; then
19320 ac_header_preproc=yes
19321 else
19322 echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19325 ac_header_preproc=no
19328 rm -f conftest.err conftest.$ac_ext
19329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19330 echo "${ECHO_T}$ac_header_preproc" >&6; }
19332 # So? What about this header?
19333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19334 yes:no: )
19335 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19336 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19337 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19338 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19339 ac_header_preproc=yes
19341 no:yes:* )
19342 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19343 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19345 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19347 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19349 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19351 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19352 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19353 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19354 ( cat <<\_ASBOX
19355 ## ------------------------------- ##
19356 ## Report this to www.asterisk.org ##
19357 ## ------------------------------- ##
19358 _ASBOX
19359 ) | sed "s/^/$as_me: WARNING: /" >&2
19361 esac
19362 { echo "$as_me:$LINENO: checking for " >&5
19363 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19364 if test "${ac_cv_header_+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367 ac_cv_header_=$ac_header_preproc
19369 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19370 echo "${ECHO_T}$ac_cv_header_" >&6; }
19373 if test $ac_cv_header_ = yes; then
19374 EXP2L_HEADER_FOUND=1
19375 else
19376 EXP2L_HEADER_FOUND=0
19380 CPPFLAGS="${saved_cppflags}"
19382 if test "x${EXP2L_HEADER_FOUND}" = "x0" ; then
19383 EXP2L_LIB=""
19384 EXP2L_INCLUDE=""
19385 else
19386 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19387 EXP2L_LIB=""
19389 PBX_EXP2L=1
19390 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19392 cat >>confdefs.h <<_ACEOF
19393 #define HAVE_EXP2L 1
19394 _ACEOF
19397 cat >>confdefs.h <<_ACEOF
19398 #define HAVE_EXP2L_VERSION
19399 _ACEOF
19406 if test "x${PBX_LOG2L}" != "x1" -a "${USE_LOG2L}" != "no"; then
19407 pbxlibdir=""
19408 # if --with-LOG2L=DIR has been specified, use it.
19409 if test "x${LOG2L_DIR}" != "x"; then
19410 if test -d ${LOG2L_DIR}/lib; then
19411 pbxlibdir="-L${LOG2L_DIR}/lib"
19412 else
19413 pbxlibdir="-L${LOG2L_DIR}"
19416 pbxfuncname="log2l"
19417 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19418 AST_LOG2L_FOUND=yes
19419 else
19420 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19421 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19422 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19423 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426 ac_check_lib_save_LIBS=$LIBS
19427 LIBS="-lm ${pbxlibdir} $LIBS"
19428 cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h. */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19435 /* Override any GCC internal prototype to avoid an error.
19436 Use char because int might match the return type of a GCC
19437 builtin and then its argument prototype would still apply. */
19438 #ifdef __cplusplus
19439 extern "C"
19440 #endif
19441 char ${pbxfuncname} ();
19443 main ()
19445 return ${pbxfuncname} ();
19447 return 0;
19449 _ACEOF
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_link") 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } && {
19464 test -z "$ac_c_werror_flag" ||
19465 test ! -s conftest.err
19466 } && test -s conftest$ac_exeext &&
19467 $as_test_x conftest$ac_exeext; then
19468 eval "$as_ac_Lib=yes"
19469 else
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 eval "$as_ac_Lib=no"
19476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19477 conftest$ac_exeext conftest.$ac_ext
19478 LIBS=$ac_check_lib_save_LIBS
19480 ac_res=`eval echo '${'$as_ac_Lib'}'`
19481 { echo "$as_me:$LINENO: result: $ac_res" >&5
19482 echo "${ECHO_T}$ac_res" >&6; }
19483 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19484 AST_LOG2L_FOUND=yes
19485 else
19486 AST_LOG2L_FOUND=no
19491 # now check for the header.
19492 if test "${AST_LOG2L_FOUND}" = "yes"; then
19493 LOG2L_LIB="${pbxlibdir} -lm "
19494 # if --with-LOG2L=DIR has been specified, use it.
19495 if test "x${LOG2L_DIR}" != "x"; then
19496 LOG2L_INCLUDE="-I${LOG2L_DIR}/include"
19498 LOG2L_INCLUDE="${LOG2L_INCLUDE} "
19499 if test "x" = "x" ; then # no header, assume found
19500 LOG2L_HEADER_FOUND="1"
19501 else # check for the header
19502 saved_cppflags="${CPPFLAGS}"
19503 CPPFLAGS="${CPPFLAGS} ${LOG2L_INCLUDE} "
19504 if test "${ac_cv_header_+set}" = set; then
19505 { echo "$as_me:$LINENO: checking for " >&5
19506 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19507 if test "${ac_cv_header_+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19511 echo "${ECHO_T}$ac_cv_header_" >&6; }
19512 else
19513 # Is the header compilable?
19514 { echo "$as_me:$LINENO: checking usability" >&5
19515 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 $ac_includes_default
19523 #include <>
19524 _ACEOF
19525 rm -f conftest.$ac_objext
19526 if { (ac_try="$ac_compile"
19527 case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_compile") 2>conftest.er1
19533 ac_status=$?
19534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } && {
19539 test -z "$ac_c_werror_flag" ||
19540 test ! -s conftest.err
19541 } && test -s conftest.$ac_objext; then
19542 ac_header_compiler=yes
19543 else
19544 echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 ac_header_compiler=no
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19552 echo "${ECHO_T}$ac_header_compiler" >&6; }
19554 # Is the header present?
19555 { echo "$as_me:$LINENO: checking presence" >&5
19556 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h. */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 #include <>
19564 _ACEOF
19565 if { (ac_try="$ac_cpp conftest.$ac_ext"
19566 case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19569 esac
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19572 ac_status=$?
19573 grep -v '^ *+' conftest.er1 >conftest.err
19574 rm -f conftest.er1
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } >/dev/null && {
19578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19579 test ! -s conftest.err
19580 }; then
19581 ac_header_preproc=yes
19582 else
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586 ac_header_preproc=no
19589 rm -f conftest.err conftest.$ac_ext
19590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19591 echo "${ECHO_T}$ac_header_preproc" >&6; }
19593 # So? What about this header?
19594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19595 yes:no: )
19596 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19597 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19598 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19599 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19600 ac_header_preproc=yes
19602 no:yes:* )
19603 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19604 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19605 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19606 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19607 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19608 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19609 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19610 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19611 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19612 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19613 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19614 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19615 ( cat <<\_ASBOX
19616 ## ------------------------------- ##
19617 ## Report this to www.asterisk.org ##
19618 ## ------------------------------- ##
19619 _ASBOX
19620 ) | sed "s/^/$as_me: WARNING: /" >&2
19622 esac
19623 { echo "$as_me:$LINENO: checking for " >&5
19624 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19625 if test "${ac_cv_header_+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628 ac_cv_header_=$ac_header_preproc
19630 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19631 echo "${ECHO_T}$ac_cv_header_" >&6; }
19634 if test $ac_cv_header_ = yes; then
19635 LOG2L_HEADER_FOUND=1
19636 else
19637 LOG2L_HEADER_FOUND=0
19641 CPPFLAGS="${saved_cppflags}"
19643 if test "x${LOG2L_HEADER_FOUND}" = "x0" ; then
19644 LOG2L_LIB=""
19645 LOG2L_INCLUDE=""
19646 else
19647 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19648 LOG2L_LIB=""
19650 PBX_LOG2L=1
19651 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_LOG2L 1
19655 _ACEOF
19658 cat >>confdefs.h <<_ACEOF
19659 #define HAVE_LOG2L_VERSION
19660 _ACEOF
19667 if test "x${PBX_EXP10L}" != "x1" -a "${USE_EXP10L}" != "no"; then
19668 pbxlibdir=""
19669 # if --with-EXP10L=DIR has been specified, use it.
19670 if test "x${EXP10L_DIR}" != "x"; then
19671 if test -d ${EXP10L_DIR}/lib; then
19672 pbxlibdir="-L${EXP10L_DIR}/lib"
19673 else
19674 pbxlibdir="-L${EXP10L_DIR}"
19677 pbxfuncname="exp10l"
19678 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19679 AST_EXP10L_FOUND=yes
19680 else
19681 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19682 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19683 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19684 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 ac_check_lib_save_LIBS=$LIBS
19688 LIBS="-lm ${pbxlibdir} $LIBS"
19689 cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h. */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19696 /* Override any GCC internal prototype to avoid an error.
19697 Use char because int might match the return type of a GCC
19698 builtin and then its argument prototype would still apply. */
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 char ${pbxfuncname} ();
19704 main ()
19706 return ${pbxfuncname} ();
19708 return 0;
19710 _ACEOF
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (ac_try="$ac_link"
19713 case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_link") 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } && {
19725 test -z "$ac_c_werror_flag" ||
19726 test ! -s conftest.err
19727 } && test -s conftest$ac_exeext &&
19728 $as_test_x conftest$ac_exeext; then
19729 eval "$as_ac_Lib=yes"
19730 else
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 eval "$as_ac_Lib=no"
19737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19738 conftest$ac_exeext conftest.$ac_ext
19739 LIBS=$ac_check_lib_save_LIBS
19741 ac_res=`eval echo '${'$as_ac_Lib'}'`
19742 { echo "$as_me:$LINENO: result: $ac_res" >&5
19743 echo "${ECHO_T}$ac_res" >&6; }
19744 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
19745 AST_EXP10L_FOUND=yes
19746 else
19747 AST_EXP10L_FOUND=no
19752 # now check for the header.
19753 if test "${AST_EXP10L_FOUND}" = "yes"; then
19754 EXP10L_LIB="${pbxlibdir} -lm "
19755 # if --with-EXP10L=DIR has been specified, use it.
19756 if test "x${EXP10L_DIR}" != "x"; then
19757 EXP10L_INCLUDE="-I${EXP10L_DIR}/include"
19759 EXP10L_INCLUDE="${EXP10L_INCLUDE} "
19760 if test "x" = "x" ; then # no header, assume found
19761 EXP10L_HEADER_FOUND="1"
19762 else # check for the header
19763 saved_cppflags="${CPPFLAGS}"
19764 CPPFLAGS="${CPPFLAGS} ${EXP10L_INCLUDE} "
19765 if test "${ac_cv_header_+set}" = set; then
19766 { echo "$as_me:$LINENO: checking for " >&5
19767 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19768 if test "${ac_cv_header_+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19772 echo "${ECHO_T}$ac_cv_header_" >&6; }
19773 else
19774 # Is the header compilable?
19775 { echo "$as_me:$LINENO: checking usability" >&5
19776 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h. */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 $ac_includes_default
19784 #include <>
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (ac_try="$ac_compile"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_compile") 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest.$ac_objext; then
19803 ac_header_compiler=yes
19804 else
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19808 ac_header_compiler=no
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19813 echo "${ECHO_T}$ac_header_compiler" >&6; }
19815 # Is the header present?
19816 { echo "$as_me:$LINENO: checking presence" >&5
19817 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h. */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 #include <>
19825 _ACEOF
19826 if { (ac_try="$ac_cpp conftest.$ac_ext"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } >/dev/null && {
19839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 }; then
19842 ac_header_preproc=yes
19843 else
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19847 ac_header_preproc=no
19850 rm -f conftest.err conftest.$ac_ext
19851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19852 echo "${ECHO_T}$ac_header_preproc" >&6; }
19854 # So? What about this header?
19855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19856 yes:no: )
19857 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19858 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19859 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19860 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19861 ac_header_preproc=yes
19863 no:yes:* )
19864 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19865 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19867 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19869 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19871 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19873 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19875 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19876 ( cat <<\_ASBOX
19877 ## ------------------------------- ##
19878 ## Report this to www.asterisk.org ##
19879 ## ------------------------------- ##
19880 _ASBOX
19881 ) | sed "s/^/$as_me: WARNING: /" >&2
19883 esac
19884 { echo "$as_me:$LINENO: checking for " >&5
19885 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19886 if test "${ac_cv_header_+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 else
19889 ac_cv_header_=$ac_header_preproc
19891 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19892 echo "${ECHO_T}$ac_cv_header_" >&6; }
19895 if test $ac_cv_header_ = yes; then
19896 EXP10L_HEADER_FOUND=1
19897 else
19898 EXP10L_HEADER_FOUND=0
19902 CPPFLAGS="${saved_cppflags}"
19904 if test "x${EXP10L_HEADER_FOUND}" = "x0" ; then
19905 EXP10L_LIB=""
19906 EXP10L_INCLUDE=""
19907 else
19908 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
19909 EXP10L_LIB=""
19911 PBX_EXP10L=1
19912 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_EXP10L 1
19916 _ACEOF
19919 cat >>confdefs.h <<_ACEOF
19920 #define HAVE_EXP10L_VERSION
19921 _ACEOF
19928 if test "x${PBX_LOG10L}" != "x1" -a "${USE_LOG10L}" != "no"; then
19929 pbxlibdir=""
19930 # if --with-LOG10L=DIR has been specified, use it.
19931 if test "x${LOG10L_DIR}" != "x"; then
19932 if test -d ${LOG10L_DIR}/lib; then
19933 pbxlibdir="-L${LOG10L_DIR}/lib"
19934 else
19935 pbxlibdir="-L${LOG10L_DIR}"
19938 pbxfuncname="log10l"
19939 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
19940 AST_LOG10L_FOUND=yes
19941 else
19942 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
19943 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
19944 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
19945 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948 ac_check_lib_save_LIBS=$LIBS
19949 LIBS="-lm ${pbxlibdir} $LIBS"
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h. */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19957 /* Override any GCC internal prototype to avoid an error.
19958 Use char because int might match the return type of a GCC
19959 builtin and then its argument prototype would still apply. */
19960 #ifdef __cplusplus
19961 extern "C"
19962 #endif
19963 char ${pbxfuncname} ();
19965 main ()
19967 return ${pbxfuncname} ();
19969 return 0;
19971 _ACEOF
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (ac_try="$ac_link"
19974 case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_link") 2>conftest.er1
19980 ac_status=$?
19981 grep -v '^ *+' conftest.er1 >conftest.err
19982 rm -f conftest.er1
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } && {
19986 test -z "$ac_c_werror_flag" ||
19987 test ! -s conftest.err
19988 } && test -s conftest$ac_exeext &&
19989 $as_test_x conftest$ac_exeext; then
19990 eval "$as_ac_Lib=yes"
19991 else
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 eval "$as_ac_Lib=no"
19998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19999 conftest$ac_exeext conftest.$ac_ext
20000 LIBS=$ac_check_lib_save_LIBS
20002 ac_res=`eval echo '${'$as_ac_Lib'}'`
20003 { echo "$as_me:$LINENO: result: $ac_res" >&5
20004 echo "${ECHO_T}$ac_res" >&6; }
20005 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20006 AST_LOG10L_FOUND=yes
20007 else
20008 AST_LOG10L_FOUND=no
20013 # now check for the header.
20014 if test "${AST_LOG10L_FOUND}" = "yes"; then
20015 LOG10L_LIB="${pbxlibdir} -lm "
20016 # if --with-LOG10L=DIR has been specified, use it.
20017 if test "x${LOG10L_DIR}" != "x"; then
20018 LOG10L_INCLUDE="-I${LOG10L_DIR}/include"
20020 LOG10L_INCLUDE="${LOG10L_INCLUDE} "
20021 if test "x" = "x" ; then # no header, assume found
20022 LOG10L_HEADER_FOUND="1"
20023 else # check for the header
20024 saved_cppflags="${CPPFLAGS}"
20025 CPPFLAGS="${CPPFLAGS} ${LOG10L_INCLUDE} "
20026 if test "${ac_cv_header_+set}" = set; then
20027 { echo "$as_me:$LINENO: checking for " >&5
20028 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20029 if test "${ac_cv_header_+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20033 echo "${ECHO_T}$ac_cv_header_" >&6; }
20034 else
20035 # Is the header compilable?
20036 { echo "$as_me:$LINENO: checking usability" >&5
20037 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20038 cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h. */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044 $ac_includes_default
20045 #include <>
20046 _ACEOF
20047 rm -f conftest.$ac_objext
20048 if { (ac_try="$ac_compile"
20049 case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_compile") 2>conftest.er1
20055 ac_status=$?
20056 grep -v '^ *+' conftest.er1 >conftest.err
20057 rm -f conftest.er1
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } && {
20061 test -z "$ac_c_werror_flag" ||
20062 test ! -s conftest.err
20063 } && test -s conftest.$ac_objext; then
20064 ac_header_compiler=yes
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 ac_header_compiler=no
20072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20074 echo "${ECHO_T}$ac_header_compiler" >&6; }
20076 # Is the header present?
20077 { echo "$as_me:$LINENO: checking presence" >&5
20078 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20079 cat >conftest.$ac_ext <<_ACEOF
20080 /* confdefs.h. */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 #include <>
20086 _ACEOF
20087 if { (ac_try="$ac_cpp conftest.$ac_ext"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } >/dev/null && {
20100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 }; then
20103 ac_header_preproc=yes
20104 else
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 ac_header_preproc=no
20111 rm -f conftest.err conftest.$ac_ext
20112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20113 echo "${ECHO_T}$ac_header_preproc" >&6; }
20115 # So? What about this header?
20116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20117 yes:no: )
20118 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20119 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20121 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20122 ac_header_preproc=yes
20124 no:yes:* )
20125 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20126 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20127 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20128 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20130 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20132 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20134 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20136 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20137 ( cat <<\_ASBOX
20138 ## ------------------------------- ##
20139 ## Report this to www.asterisk.org ##
20140 ## ------------------------------- ##
20141 _ASBOX
20142 ) | sed "s/^/$as_me: WARNING: /" >&2
20144 esac
20145 { echo "$as_me:$LINENO: checking for " >&5
20146 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20147 if test "${ac_cv_header_+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150 ac_cv_header_=$ac_header_preproc
20152 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20153 echo "${ECHO_T}$ac_cv_header_" >&6; }
20156 if test $ac_cv_header_ = yes; then
20157 LOG10L_HEADER_FOUND=1
20158 else
20159 LOG10L_HEADER_FOUND=0
20163 CPPFLAGS="${saved_cppflags}"
20165 if test "x${LOG10L_HEADER_FOUND}" = "x0" ; then
20166 LOG10L_LIB=""
20167 LOG10L_INCLUDE=""
20168 else
20169 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20170 LOG10L_LIB=""
20172 PBX_LOG10L=1
20173 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20175 cat >>confdefs.h <<_ACEOF
20176 #define HAVE_LOG10L 1
20177 _ACEOF
20180 cat >>confdefs.h <<_ACEOF
20181 #define HAVE_LOG10L_VERSION
20182 _ACEOF
20189 if test "x${PBX_SINL}" != "x1" -a "${USE_SINL}" != "no"; then
20190 pbxlibdir=""
20191 # if --with-SINL=DIR has been specified, use it.
20192 if test "x${SINL_DIR}" != "x"; then
20193 if test -d ${SINL_DIR}/lib; then
20194 pbxlibdir="-L${SINL_DIR}/lib"
20195 else
20196 pbxlibdir="-L${SINL_DIR}"
20199 pbxfuncname="sinl"
20200 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20201 AST_SINL_FOUND=yes
20202 else
20203 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20204 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20205 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20206 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209 ac_check_lib_save_LIBS=$LIBS
20210 LIBS="-lm ${pbxlibdir} $LIBS"
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h. */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20221 #ifdef __cplusplus
20222 extern "C"
20223 #endif
20224 char ${pbxfuncname} ();
20226 main ()
20228 return ${pbxfuncname} ();
20230 return 0;
20232 _ACEOF
20233 rm -f conftest.$ac_objext conftest$ac_exeext
20234 if { (ac_try="$ac_link"
20235 case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_link") 2>conftest.er1
20241 ac_status=$?
20242 grep -v '^ *+' conftest.er1 >conftest.err
20243 rm -f conftest.er1
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && {
20247 test -z "$ac_c_werror_flag" ||
20248 test ! -s conftest.err
20249 } && test -s conftest$ac_exeext &&
20250 $as_test_x conftest$ac_exeext; then
20251 eval "$as_ac_Lib=yes"
20252 else
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 eval "$as_ac_Lib=no"
20259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20260 conftest$ac_exeext conftest.$ac_ext
20261 LIBS=$ac_check_lib_save_LIBS
20263 ac_res=`eval echo '${'$as_ac_Lib'}'`
20264 { echo "$as_me:$LINENO: result: $ac_res" >&5
20265 echo "${ECHO_T}$ac_res" >&6; }
20266 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20267 AST_SINL_FOUND=yes
20268 else
20269 AST_SINL_FOUND=no
20274 # now check for the header.
20275 if test "${AST_SINL_FOUND}" = "yes"; then
20276 SINL_LIB="${pbxlibdir} -lm "
20277 # if --with-SINL=DIR has been specified, use it.
20278 if test "x${SINL_DIR}" != "x"; then
20279 SINL_INCLUDE="-I${SINL_DIR}/include"
20281 SINL_INCLUDE="${SINL_INCLUDE} "
20282 if test "x" = "x" ; then # no header, assume found
20283 SINL_HEADER_FOUND="1"
20284 else # check for the header
20285 saved_cppflags="${CPPFLAGS}"
20286 CPPFLAGS="${CPPFLAGS} ${SINL_INCLUDE} "
20287 if test "${ac_cv_header_+set}" = set; then
20288 { echo "$as_me:$LINENO: checking for " >&5
20289 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20290 if test "${ac_cv_header_+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20294 echo "${ECHO_T}$ac_cv_header_" >&6; }
20295 else
20296 # Is the header compilable?
20297 { echo "$as_me:$LINENO: checking usability" >&5
20298 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20299 cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h. */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 $ac_includes_default
20306 #include <>
20307 _ACEOF
20308 rm -f conftest.$ac_objext
20309 if { (ac_try="$ac_compile"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_compile") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
20325 ac_header_compiler=yes
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_header_compiler=no
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20335 echo "${ECHO_T}$ac_header_compiler" >&6; }
20337 # Is the header present?
20338 { echo "$as_me:$LINENO: checking presence" >&5
20339 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20340 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h. */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 #include <>
20347 _ACEOF
20348 if { (ac_try="$ac_cpp conftest.$ac_ext"
20349 case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20352 esac
20353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20355 ac_status=$?
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } >/dev/null && {
20361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20362 test ! -s conftest.err
20363 }; then
20364 ac_header_preproc=yes
20365 else
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ac_header_preproc=no
20372 rm -f conftest.err conftest.$ac_ext
20373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20374 echo "${ECHO_T}$ac_header_preproc" >&6; }
20376 # So? What about this header?
20377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20378 yes:no: )
20379 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20380 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20381 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20382 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20383 ac_header_preproc=yes
20385 no:yes:* )
20386 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20387 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20389 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20391 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20392 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20393 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20394 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20395 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20396 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20397 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20398 ( cat <<\_ASBOX
20399 ## ------------------------------- ##
20400 ## Report this to www.asterisk.org ##
20401 ## ------------------------------- ##
20402 _ASBOX
20403 ) | sed "s/^/$as_me: WARNING: /" >&2
20405 esac
20406 { echo "$as_me:$LINENO: checking for " >&5
20407 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20408 if test "${ac_cv_header_+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411 ac_cv_header_=$ac_header_preproc
20413 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20414 echo "${ECHO_T}$ac_cv_header_" >&6; }
20417 if test $ac_cv_header_ = yes; then
20418 SINL_HEADER_FOUND=1
20419 else
20420 SINL_HEADER_FOUND=0
20424 CPPFLAGS="${saved_cppflags}"
20426 if test "x${SINL_HEADER_FOUND}" = "x0" ; then
20427 SINL_LIB=""
20428 SINL_INCLUDE=""
20429 else
20430 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20431 SINL_LIB=""
20433 PBX_SINL=1
20434 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20436 cat >>confdefs.h <<_ACEOF
20437 #define HAVE_SINL 1
20438 _ACEOF
20441 cat >>confdefs.h <<_ACEOF
20442 #define HAVE_SINL_VERSION
20443 _ACEOF
20450 if test "x${PBX_COSL}" != "x1" -a "${USE_COSL}" != "no"; then
20451 pbxlibdir=""
20452 # if --with-COSL=DIR has been specified, use it.
20453 if test "x${COSL_DIR}" != "x"; then
20454 if test -d ${COSL_DIR}/lib; then
20455 pbxlibdir="-L${COSL_DIR}/lib"
20456 else
20457 pbxlibdir="-L${COSL_DIR}"
20460 pbxfuncname="cosl"
20461 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20462 AST_COSL_FOUND=yes
20463 else
20464 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20465 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20466 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20467 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470 ac_check_lib_save_LIBS=$LIBS
20471 LIBS="-lm ${pbxlibdir} $LIBS"
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h. */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20479 /* Override any GCC internal prototype to avoid an error.
20480 Use char because int might match the return type of a GCC
20481 builtin and then its argument prototype would still apply. */
20482 #ifdef __cplusplus
20483 extern "C"
20484 #endif
20485 char ${pbxfuncname} ();
20487 main ()
20489 return ${pbxfuncname} ();
20491 return 0;
20493 _ACEOF
20494 rm -f conftest.$ac_objext conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_link") 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest$ac_exeext &&
20511 $as_test_x conftest$ac_exeext; then
20512 eval "$as_ac_Lib=yes"
20513 else
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 eval "$as_ac_Lib=no"
20520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521 conftest$ac_exeext conftest.$ac_ext
20522 LIBS=$ac_check_lib_save_LIBS
20524 ac_res=`eval echo '${'$as_ac_Lib'}'`
20525 { echo "$as_me:$LINENO: result: $ac_res" >&5
20526 echo "${ECHO_T}$ac_res" >&6; }
20527 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20528 AST_COSL_FOUND=yes
20529 else
20530 AST_COSL_FOUND=no
20535 # now check for the header.
20536 if test "${AST_COSL_FOUND}" = "yes"; then
20537 COSL_LIB="${pbxlibdir} -lm "
20538 # if --with-COSL=DIR has been specified, use it.
20539 if test "x${COSL_DIR}" != "x"; then
20540 COSL_INCLUDE="-I${COSL_DIR}/include"
20542 COSL_INCLUDE="${COSL_INCLUDE} "
20543 if test "x" = "x" ; then # no header, assume found
20544 COSL_HEADER_FOUND="1"
20545 else # check for the header
20546 saved_cppflags="${CPPFLAGS}"
20547 CPPFLAGS="${CPPFLAGS} ${COSL_INCLUDE} "
20548 if test "${ac_cv_header_+set}" = set; then
20549 { echo "$as_me:$LINENO: checking for " >&5
20550 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20551 if test "${ac_cv_header_+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20555 echo "${ECHO_T}$ac_cv_header_" >&6; }
20556 else
20557 # Is the header compilable?
20558 { echo "$as_me:$LINENO: checking usability" >&5
20559 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20560 cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h. */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 $ac_includes_default
20567 #include <>
20568 _ACEOF
20569 rm -f conftest.$ac_objext
20570 if { (ac_try="$ac_compile"
20571 case "(($ac_try" in
20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573 *) ac_try_echo=$ac_try;;
20574 esac
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576 (eval "$ac_compile") 2>conftest.er1
20577 ac_status=$?
20578 grep -v '^ *+' conftest.er1 >conftest.err
20579 rm -f conftest.er1
20580 cat conftest.err >&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && {
20583 test -z "$ac_c_werror_flag" ||
20584 test ! -s conftest.err
20585 } && test -s conftest.$ac_objext; then
20586 ac_header_compiler=yes
20587 else
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_header_compiler=no
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20596 echo "${ECHO_T}$ac_header_compiler" >&6; }
20598 # Is the header present?
20599 { echo "$as_me:$LINENO: checking presence" >&5
20600 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20601 cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h. */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20607 #include <>
20608 _ACEOF
20609 if { (ac_try="$ac_cpp conftest.$ac_ext"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } >/dev/null && {
20622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 }; then
20625 ac_header_preproc=yes
20626 else
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ac_header_preproc=no
20633 rm -f conftest.err conftest.$ac_ext
20634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20635 echo "${ECHO_T}$ac_header_preproc" >&6; }
20637 # So? What about this header?
20638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20639 yes:no: )
20640 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20641 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20643 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20644 ac_header_preproc=yes
20646 no:yes:* )
20647 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20648 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20650 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20652 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20654 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20656 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20658 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20659 ( cat <<\_ASBOX
20660 ## ------------------------------- ##
20661 ## Report this to www.asterisk.org ##
20662 ## ------------------------------- ##
20663 _ASBOX
20664 ) | sed "s/^/$as_me: WARNING: /" >&2
20666 esac
20667 { echo "$as_me:$LINENO: checking for " >&5
20668 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20669 if test "${ac_cv_header_+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672 ac_cv_header_=$ac_header_preproc
20674 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20675 echo "${ECHO_T}$ac_cv_header_" >&6; }
20678 if test $ac_cv_header_ = yes; then
20679 COSL_HEADER_FOUND=1
20680 else
20681 COSL_HEADER_FOUND=0
20685 CPPFLAGS="${saved_cppflags}"
20687 if test "x${COSL_HEADER_FOUND}" = "x0" ; then
20688 COSL_LIB=""
20689 COSL_INCLUDE=""
20690 else
20691 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20692 COSL_LIB=""
20694 PBX_COSL=1
20695 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_COSL 1
20699 _ACEOF
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_COSL_VERSION
20704 _ACEOF
20711 if test "x${PBX_TANL}" != "x1" -a "${USE_TANL}" != "no"; then
20712 pbxlibdir=""
20713 # if --with-TANL=DIR has been specified, use it.
20714 if test "x${TANL_DIR}" != "x"; then
20715 if test -d ${TANL_DIR}/lib; then
20716 pbxlibdir="-L${TANL_DIR}/lib"
20717 else
20718 pbxlibdir="-L${TANL_DIR}"
20721 pbxfuncname="tanl"
20722 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20723 AST_TANL_FOUND=yes
20724 else
20725 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20726 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20727 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20728 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 else
20731 ac_check_lib_save_LIBS=$LIBS
20732 LIBS="-lm ${pbxlibdir} $LIBS"
20733 cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h. */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20740 /* Override any GCC internal prototype to avoid an error.
20741 Use char because int might match the return type of a GCC
20742 builtin and then its argument prototype would still apply. */
20743 #ifdef __cplusplus
20744 extern "C"
20745 #endif
20746 char ${pbxfuncname} ();
20748 main ()
20750 return ${pbxfuncname} ();
20752 return 0;
20754 _ACEOF
20755 rm -f conftest.$ac_objext conftest$ac_exeext
20756 if { (ac_try="$ac_link"
20757 case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_link") 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && {
20769 test -z "$ac_c_werror_flag" ||
20770 test ! -s conftest.err
20771 } && test -s conftest$ac_exeext &&
20772 $as_test_x conftest$ac_exeext; then
20773 eval "$as_ac_Lib=yes"
20774 else
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20778 eval "$as_ac_Lib=no"
20781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20782 conftest$ac_exeext conftest.$ac_ext
20783 LIBS=$ac_check_lib_save_LIBS
20785 ac_res=`eval echo '${'$as_ac_Lib'}'`
20786 { echo "$as_me:$LINENO: result: $ac_res" >&5
20787 echo "${ECHO_T}$ac_res" >&6; }
20788 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20789 AST_TANL_FOUND=yes
20790 else
20791 AST_TANL_FOUND=no
20796 # now check for the header.
20797 if test "${AST_TANL_FOUND}" = "yes"; then
20798 TANL_LIB="${pbxlibdir} -lm "
20799 # if --with-TANL=DIR has been specified, use it.
20800 if test "x${TANL_DIR}" != "x"; then
20801 TANL_INCLUDE="-I${TANL_DIR}/include"
20803 TANL_INCLUDE="${TANL_INCLUDE} "
20804 if test "x" = "x" ; then # no header, assume found
20805 TANL_HEADER_FOUND="1"
20806 else # check for the header
20807 saved_cppflags="${CPPFLAGS}"
20808 CPPFLAGS="${CPPFLAGS} ${TANL_INCLUDE} "
20809 if test "${ac_cv_header_+set}" = set; then
20810 { echo "$as_me:$LINENO: checking for " >&5
20811 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20812 if test "${ac_cv_header_+set}" = set; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20816 echo "${ECHO_T}$ac_cv_header_" >&6; }
20817 else
20818 # Is the header compilable?
20819 { echo "$as_me:$LINENO: checking usability" >&5
20820 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 $ac_includes_default
20828 #include <>
20829 _ACEOF
20830 rm -f conftest.$ac_objext
20831 if { (ac_try="$ac_compile"
20832 case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20835 esac
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_compile") 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } && {
20844 test -z "$ac_c_werror_flag" ||
20845 test ! -s conftest.err
20846 } && test -s conftest.$ac_objext; then
20847 ac_header_compiler=yes
20848 else
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 ac_header_compiler=no
20855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20857 echo "${ECHO_T}$ac_header_compiler" >&6; }
20859 # Is the header present?
20860 { echo "$as_me:$LINENO: checking presence" >&5
20861 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <>
20869 _ACEOF
20870 if { (ac_try="$ac_cpp conftest.$ac_ext"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } >/dev/null && {
20883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 }; then
20886 ac_header_preproc=yes
20887 else
20888 echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_header_preproc=no
20894 rm -f conftest.err conftest.$ac_ext
20895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20896 echo "${ECHO_T}$ac_header_preproc" >&6; }
20898 # So? What about this header?
20899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20900 yes:no: )
20901 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
20902 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
20904 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
20905 ac_header_preproc=yes
20907 no:yes:* )
20908 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
20909 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
20911 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
20913 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
20915 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
20917 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
20918 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
20919 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
20920 ( cat <<\_ASBOX
20921 ## ------------------------------- ##
20922 ## Report this to www.asterisk.org ##
20923 ## ------------------------------- ##
20924 _ASBOX
20925 ) | sed "s/^/$as_me: WARNING: /" >&2
20927 esac
20928 { echo "$as_me:$LINENO: checking for " >&5
20929 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
20930 if test "${ac_cv_header_+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933 ac_cv_header_=$ac_header_preproc
20935 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
20936 echo "${ECHO_T}$ac_cv_header_" >&6; }
20939 if test $ac_cv_header_ = yes; then
20940 TANL_HEADER_FOUND=1
20941 else
20942 TANL_HEADER_FOUND=0
20946 CPPFLAGS="${saved_cppflags}"
20948 if test "x${TANL_HEADER_FOUND}" = "x0" ; then
20949 TANL_LIB=""
20950 TANL_INCLUDE=""
20951 else
20952 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
20953 TANL_LIB=""
20955 PBX_TANL=1
20956 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
20958 cat >>confdefs.h <<_ACEOF
20959 #define HAVE_TANL 1
20960 _ACEOF
20963 cat >>confdefs.h <<_ACEOF
20964 #define HAVE_TANL_VERSION
20965 _ACEOF
20972 if test "x${PBX_ASINL}" != "x1" -a "${USE_ASINL}" != "no"; then
20973 pbxlibdir=""
20974 # if --with-ASINL=DIR has been specified, use it.
20975 if test "x${ASINL_DIR}" != "x"; then
20976 if test -d ${ASINL_DIR}/lib; then
20977 pbxlibdir="-L${ASINL_DIR}/lib"
20978 else
20979 pbxlibdir="-L${ASINL_DIR}"
20982 pbxfuncname="asinl"
20983 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
20984 AST_ASINL_FOUND=yes
20985 else
20986 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
20987 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
20988 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
20989 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992 ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-lm ${pbxlibdir} $LIBS"
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21001 /* Override any GCC internal prototype to avoid an error.
21002 Use char because int might match the return type of a GCC
21003 builtin and then its argument prototype would still apply. */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 char ${pbxfuncname} ();
21009 main ()
21011 return ${pbxfuncname} ();
21013 return 0;
21015 _ACEOF
21016 rm -f conftest.$ac_objext conftest$ac_exeext
21017 if { (ac_try="$ac_link"
21018 case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21021 esac
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023 (eval "$ac_link") 2>conftest.er1
21024 ac_status=$?
21025 grep -v '^ *+' conftest.er1 >conftest.err
21026 rm -f conftest.er1
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && {
21030 test -z "$ac_c_werror_flag" ||
21031 test ! -s conftest.err
21032 } && test -s conftest$ac_exeext &&
21033 $as_test_x conftest$ac_exeext; then
21034 eval "$as_ac_Lib=yes"
21035 else
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 eval "$as_ac_Lib=no"
21042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21043 conftest$ac_exeext conftest.$ac_ext
21044 LIBS=$ac_check_lib_save_LIBS
21046 ac_res=`eval echo '${'$as_ac_Lib'}'`
21047 { echo "$as_me:$LINENO: result: $ac_res" >&5
21048 echo "${ECHO_T}$ac_res" >&6; }
21049 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21050 AST_ASINL_FOUND=yes
21051 else
21052 AST_ASINL_FOUND=no
21057 # now check for the header.
21058 if test "${AST_ASINL_FOUND}" = "yes"; then
21059 ASINL_LIB="${pbxlibdir} -lm "
21060 # if --with-ASINL=DIR has been specified, use it.
21061 if test "x${ASINL_DIR}" != "x"; then
21062 ASINL_INCLUDE="-I${ASINL_DIR}/include"
21064 ASINL_INCLUDE="${ASINL_INCLUDE} "
21065 if test "x" = "x" ; then # no header, assume found
21066 ASINL_HEADER_FOUND="1"
21067 else # check for the header
21068 saved_cppflags="${CPPFLAGS}"
21069 CPPFLAGS="${CPPFLAGS} ${ASINL_INCLUDE} "
21070 if test "${ac_cv_header_+set}" = set; then
21071 { echo "$as_me:$LINENO: checking for " >&5
21072 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21073 if test "${ac_cv_header_+set}" = set; then
21074 echo $ECHO_N "(cached) $ECHO_C" >&6
21076 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21077 echo "${ECHO_T}$ac_cv_header_" >&6; }
21078 else
21079 # Is the header compilable?
21080 { echo "$as_me:$LINENO: checking usability" >&5
21081 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21082 cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h. */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21088 $ac_includes_default
21089 #include <>
21090 _ACEOF
21091 rm -f conftest.$ac_objext
21092 if { (ac_try="$ac_compile"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_compile") 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest.$ac_objext; then
21108 ac_header_compiler=yes
21109 else
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ac_header_compiler=no
21116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21118 echo "${ECHO_T}$ac_header_compiler" >&6; }
21120 # Is the header present?
21121 { echo "$as_me:$LINENO: checking presence" >&5
21122 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21123 cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h. */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 #include <>
21130 _ACEOF
21131 if { (ac_try="$ac_cpp conftest.$ac_ext"
21132 case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21138 ac_status=$?
21139 grep -v '^ *+' conftest.er1 >conftest.err
21140 rm -f conftest.er1
21141 cat conftest.err >&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } >/dev/null && {
21144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21145 test ! -s conftest.err
21146 }; then
21147 ac_header_preproc=yes
21148 else
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 ac_header_preproc=no
21155 rm -f conftest.err conftest.$ac_ext
21156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21157 echo "${ECHO_T}$ac_header_preproc" >&6; }
21159 # So? What about this header?
21160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21161 yes:no: )
21162 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21163 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21165 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21166 ac_header_preproc=yes
21168 no:yes:* )
21169 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21170 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21171 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21172 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21173 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21174 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21175 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21176 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21178 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21180 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21181 ( cat <<\_ASBOX
21182 ## ------------------------------- ##
21183 ## Report this to www.asterisk.org ##
21184 ## ------------------------------- ##
21185 _ASBOX
21186 ) | sed "s/^/$as_me: WARNING: /" >&2
21188 esac
21189 { echo "$as_me:$LINENO: checking for " >&5
21190 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21191 if test "${ac_cv_header_+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194 ac_cv_header_=$ac_header_preproc
21196 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21197 echo "${ECHO_T}$ac_cv_header_" >&6; }
21200 if test $ac_cv_header_ = yes; then
21201 ASINL_HEADER_FOUND=1
21202 else
21203 ASINL_HEADER_FOUND=0
21207 CPPFLAGS="${saved_cppflags}"
21209 if test "x${ASINL_HEADER_FOUND}" = "x0" ; then
21210 ASINL_LIB=""
21211 ASINL_INCLUDE=""
21212 else
21213 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21214 ASINL_LIB=""
21216 PBX_ASINL=1
21217 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21219 cat >>confdefs.h <<_ACEOF
21220 #define HAVE_ASINL 1
21221 _ACEOF
21224 cat >>confdefs.h <<_ACEOF
21225 #define HAVE_ASINL_VERSION
21226 _ACEOF
21233 if test "x${PBX_ACOSL}" != "x1" -a "${USE_ACOSL}" != "no"; then
21234 pbxlibdir=""
21235 # if --with-ACOSL=DIR has been specified, use it.
21236 if test "x${ACOSL_DIR}" != "x"; then
21237 if test -d ${ACOSL_DIR}/lib; then
21238 pbxlibdir="-L${ACOSL_DIR}/lib"
21239 else
21240 pbxlibdir="-L${ACOSL_DIR}"
21243 pbxfuncname="acosl"
21244 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21245 AST_ACOSL_FOUND=yes
21246 else
21247 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21248 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21249 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21250 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 else
21253 ac_check_lib_save_LIBS=$LIBS
21254 LIBS="-lm ${pbxlibdir} $LIBS"
21255 cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h. */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21262 /* Override any GCC internal prototype to avoid an error.
21263 Use char because int might match the return type of a GCC
21264 builtin and then its argument prototype would still apply. */
21265 #ifdef __cplusplus
21266 extern "C"
21267 #endif
21268 char ${pbxfuncname} ();
21270 main ()
21272 return ${pbxfuncname} ();
21274 return 0;
21276 _ACEOF
21277 rm -f conftest.$ac_objext conftest$ac_exeext
21278 if { (ac_try="$ac_link"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_link") 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest$ac_exeext &&
21294 $as_test_x conftest$ac_exeext; then
21295 eval "$as_ac_Lib=yes"
21296 else
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 eval "$as_ac_Lib=no"
21303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21304 conftest$ac_exeext conftest.$ac_ext
21305 LIBS=$ac_check_lib_save_LIBS
21307 ac_res=`eval echo '${'$as_ac_Lib'}'`
21308 { echo "$as_me:$LINENO: result: $ac_res" >&5
21309 echo "${ECHO_T}$ac_res" >&6; }
21310 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21311 AST_ACOSL_FOUND=yes
21312 else
21313 AST_ACOSL_FOUND=no
21318 # now check for the header.
21319 if test "${AST_ACOSL_FOUND}" = "yes"; then
21320 ACOSL_LIB="${pbxlibdir} -lm "
21321 # if --with-ACOSL=DIR has been specified, use it.
21322 if test "x${ACOSL_DIR}" != "x"; then
21323 ACOSL_INCLUDE="-I${ACOSL_DIR}/include"
21325 ACOSL_INCLUDE="${ACOSL_INCLUDE} "
21326 if test "x" = "x" ; then # no header, assume found
21327 ACOSL_HEADER_FOUND="1"
21328 else # check for the header
21329 saved_cppflags="${CPPFLAGS}"
21330 CPPFLAGS="${CPPFLAGS} ${ACOSL_INCLUDE} "
21331 if test "${ac_cv_header_+set}" = set; then
21332 { echo "$as_me:$LINENO: checking for " >&5
21333 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21334 if test "${ac_cv_header_+set}" = set; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21338 echo "${ECHO_T}$ac_cv_header_" >&6; }
21339 else
21340 # Is the header compilable?
21341 { echo "$as_me:$LINENO: checking usability" >&5
21342 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21343 cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h. */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 $ac_includes_default
21350 #include <>
21351 _ACEOF
21352 rm -f conftest.$ac_objext
21353 if { (ac_try="$ac_compile"
21354 case "(($ac_try" in
21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356 *) ac_try_echo=$ac_try;;
21357 esac
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359 (eval "$ac_compile") 2>conftest.er1
21360 ac_status=$?
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } && {
21366 test -z "$ac_c_werror_flag" ||
21367 test ! -s conftest.err
21368 } && test -s conftest.$ac_objext; then
21369 ac_header_compiler=yes
21370 else
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ac_header_compiler=no
21377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21379 echo "${ECHO_T}$ac_header_compiler" >&6; }
21381 # Is the header present?
21382 { echo "$as_me:$LINENO: checking presence" >&5
21383 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21384 cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h. */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h. */
21390 #include <>
21391 _ACEOF
21392 if { (ac_try="$ac_cpp conftest.$ac_ext"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } >/dev/null && {
21405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 }; then
21408 ac_header_preproc=yes
21409 else
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 ac_header_preproc=no
21416 rm -f conftest.err conftest.$ac_ext
21417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21418 echo "${ECHO_T}$ac_header_preproc" >&6; }
21420 # So? What about this header?
21421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21422 yes:no: )
21423 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21424 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21425 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21426 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21427 ac_header_preproc=yes
21429 no:yes:* )
21430 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21431 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21433 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21434 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21435 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21436 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21437 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21438 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21439 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21441 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21442 ( cat <<\_ASBOX
21443 ## ------------------------------- ##
21444 ## Report this to www.asterisk.org ##
21445 ## ------------------------------- ##
21446 _ASBOX
21447 ) | sed "s/^/$as_me: WARNING: /" >&2
21449 esac
21450 { echo "$as_me:$LINENO: checking for " >&5
21451 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21452 if test "${ac_cv_header_+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 else
21455 ac_cv_header_=$ac_header_preproc
21457 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21458 echo "${ECHO_T}$ac_cv_header_" >&6; }
21461 if test $ac_cv_header_ = yes; then
21462 ACOSL_HEADER_FOUND=1
21463 else
21464 ACOSL_HEADER_FOUND=0
21468 CPPFLAGS="${saved_cppflags}"
21470 if test "x${ACOSL_HEADER_FOUND}" = "x0" ; then
21471 ACOSL_LIB=""
21472 ACOSL_INCLUDE=""
21473 else
21474 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21475 ACOSL_LIB=""
21477 PBX_ACOSL=1
21478 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21480 cat >>confdefs.h <<_ACEOF
21481 #define HAVE_ACOSL 1
21482 _ACEOF
21485 cat >>confdefs.h <<_ACEOF
21486 #define HAVE_ACOSL_VERSION
21487 _ACEOF
21494 if test "x${PBX_ATANL}" != "x1" -a "${USE_ATANL}" != "no"; then
21495 pbxlibdir=""
21496 # if --with-ATANL=DIR has been specified, use it.
21497 if test "x${ATANL_DIR}" != "x"; then
21498 if test -d ${ATANL_DIR}/lib; then
21499 pbxlibdir="-L${ATANL_DIR}/lib"
21500 else
21501 pbxlibdir="-L${ATANL_DIR}"
21504 pbxfuncname="atanl"
21505 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21506 AST_ATANL_FOUND=yes
21507 else
21508 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21509 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21510 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21511 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513 else
21514 ac_check_lib_save_LIBS=$LIBS
21515 LIBS="-lm ${pbxlibdir} $LIBS"
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21523 /* Override any GCC internal prototype to avoid an error.
21524 Use char because int might match the return type of a GCC
21525 builtin and then its argument prototype would still apply. */
21526 #ifdef __cplusplus
21527 extern "C"
21528 #endif
21529 char ${pbxfuncname} ();
21531 main ()
21533 return ${pbxfuncname} ();
21535 return 0;
21537 _ACEOF
21538 rm -f conftest.$ac_objext conftest$ac_exeext
21539 if { (ac_try="$ac_link"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_link") 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest$ac_exeext &&
21555 $as_test_x conftest$ac_exeext; then
21556 eval "$as_ac_Lib=yes"
21557 else
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 eval "$as_ac_Lib=no"
21564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21565 conftest$ac_exeext conftest.$ac_ext
21566 LIBS=$ac_check_lib_save_LIBS
21568 ac_res=`eval echo '${'$as_ac_Lib'}'`
21569 { echo "$as_me:$LINENO: result: $ac_res" >&5
21570 echo "${ECHO_T}$ac_res" >&6; }
21571 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21572 AST_ATANL_FOUND=yes
21573 else
21574 AST_ATANL_FOUND=no
21579 # now check for the header.
21580 if test "${AST_ATANL_FOUND}" = "yes"; then
21581 ATANL_LIB="${pbxlibdir} -lm "
21582 # if --with-ATANL=DIR has been specified, use it.
21583 if test "x${ATANL_DIR}" != "x"; then
21584 ATANL_INCLUDE="-I${ATANL_DIR}/include"
21586 ATANL_INCLUDE="${ATANL_INCLUDE} "
21587 if test "x" = "x" ; then # no header, assume found
21588 ATANL_HEADER_FOUND="1"
21589 else # check for the header
21590 saved_cppflags="${CPPFLAGS}"
21591 CPPFLAGS="${CPPFLAGS} ${ATANL_INCLUDE} "
21592 if test "${ac_cv_header_+set}" = set; then
21593 { echo "$as_me:$LINENO: checking for " >&5
21594 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21595 if test "${ac_cv_header_+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21598 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21599 echo "${ECHO_T}$ac_cv_header_" >&6; }
21600 else
21601 # Is the header compilable?
21602 { echo "$as_me:$LINENO: checking usability" >&5
21603 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21604 cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h. */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 $ac_includes_default
21611 #include <>
21612 _ACEOF
21613 rm -f conftest.$ac_objext
21614 if { (ac_try="$ac_compile"
21615 case "(($ac_try" in
21616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617 *) ac_try_echo=$ac_try;;
21618 esac
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620 (eval "$ac_compile") 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest.$ac_objext; then
21630 ac_header_compiler=yes
21631 else
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ac_header_compiler=no
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21640 echo "${ECHO_T}$ac_header_compiler" >&6; }
21642 # Is the header present?
21643 { echo "$as_me:$LINENO: checking presence" >&5
21644 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <>
21652 _ACEOF
21653 if { (ac_try="$ac_cpp conftest.$ac_ext"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } >/dev/null && {
21666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 }; then
21669 ac_header_preproc=yes
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_header_preproc=no
21677 rm -f conftest.err conftest.$ac_ext
21678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21679 echo "${ECHO_T}$ac_header_preproc" >&6; }
21681 # So? What about this header?
21682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21683 yes:no: )
21684 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21685 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21686 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21687 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21688 ac_header_preproc=yes
21690 no:yes:* )
21691 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21692 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21694 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21696 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21698 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21700 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21701 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21702 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21703 ( cat <<\_ASBOX
21704 ## ------------------------------- ##
21705 ## Report this to www.asterisk.org ##
21706 ## ------------------------------- ##
21707 _ASBOX
21708 ) | sed "s/^/$as_me: WARNING: /" >&2
21710 esac
21711 { echo "$as_me:$LINENO: checking for " >&5
21712 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21713 if test "${ac_cv_header_+set}" = set; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 else
21716 ac_cv_header_=$ac_header_preproc
21718 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21719 echo "${ECHO_T}$ac_cv_header_" >&6; }
21722 if test $ac_cv_header_ = yes; then
21723 ATANL_HEADER_FOUND=1
21724 else
21725 ATANL_HEADER_FOUND=0
21729 CPPFLAGS="${saved_cppflags}"
21731 if test "x${ATANL_HEADER_FOUND}" = "x0" ; then
21732 ATANL_LIB=""
21733 ATANL_INCLUDE=""
21734 else
21735 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21736 ATANL_LIB=""
21738 PBX_ATANL=1
21739 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
21741 cat >>confdefs.h <<_ACEOF
21742 #define HAVE_ATANL 1
21743 _ACEOF
21746 cat >>confdefs.h <<_ACEOF
21747 #define HAVE_ATANL_VERSION
21748 _ACEOF
21755 if test "x${PBX_ATAN2L}" != "x1" -a "${USE_ATAN2L}" != "no"; then
21756 pbxlibdir=""
21757 # if --with-ATAN2L=DIR has been specified, use it.
21758 if test "x${ATAN2L_DIR}" != "x"; then
21759 if test -d ${ATAN2L_DIR}/lib; then
21760 pbxlibdir="-L${ATAN2L_DIR}/lib"
21761 else
21762 pbxlibdir="-L${ATAN2L_DIR}"
21765 pbxfuncname="atan2l"
21766 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
21767 AST_ATAN2L_FOUND=yes
21768 else
21769 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
21770 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
21771 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
21772 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 else
21775 ac_check_lib_save_LIBS=$LIBS
21776 LIBS="-lm ${pbxlibdir} $LIBS"
21777 cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h. */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21784 /* Override any GCC internal prototype to avoid an error.
21785 Use char because int might match the return type of a GCC
21786 builtin and then its argument prototype would still apply. */
21787 #ifdef __cplusplus
21788 extern "C"
21789 #endif
21790 char ${pbxfuncname} ();
21792 main ()
21794 return ${pbxfuncname} ();
21796 return 0;
21798 _ACEOF
21799 rm -f conftest.$ac_objext conftest$ac_exeext
21800 if { (ac_try="$ac_link"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21804 esac
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_link") 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } && {
21813 test -z "$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 } && test -s conftest$ac_exeext &&
21816 $as_test_x conftest$ac_exeext; then
21817 eval "$as_ac_Lib=yes"
21818 else
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21822 eval "$as_ac_Lib=no"
21825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21826 conftest$ac_exeext conftest.$ac_ext
21827 LIBS=$ac_check_lib_save_LIBS
21829 ac_res=`eval echo '${'$as_ac_Lib'}'`
21830 { echo "$as_me:$LINENO: result: $ac_res" >&5
21831 echo "${ECHO_T}$ac_res" >&6; }
21832 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21833 AST_ATAN2L_FOUND=yes
21834 else
21835 AST_ATAN2L_FOUND=no
21840 # now check for the header.
21841 if test "${AST_ATAN2L_FOUND}" = "yes"; then
21842 ATAN2L_LIB="${pbxlibdir} -lm "
21843 # if --with-ATAN2L=DIR has been specified, use it.
21844 if test "x${ATAN2L_DIR}" != "x"; then
21845 ATAN2L_INCLUDE="-I${ATAN2L_DIR}/include"
21847 ATAN2L_INCLUDE="${ATAN2L_INCLUDE} "
21848 if test "x" = "x" ; then # no header, assume found
21849 ATAN2L_HEADER_FOUND="1"
21850 else # check for the header
21851 saved_cppflags="${CPPFLAGS}"
21852 CPPFLAGS="${CPPFLAGS} ${ATAN2L_INCLUDE} "
21853 if test "${ac_cv_header_+set}" = set; then
21854 { echo "$as_me:$LINENO: checking for " >&5
21855 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21856 if test "${ac_cv_header_+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21859 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21860 echo "${ECHO_T}$ac_cv_header_" >&6; }
21861 else
21862 # Is the header compilable?
21863 { echo "$as_me:$LINENO: checking usability" >&5
21864 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h. */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 $ac_includes_default
21872 #include <>
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (ac_try="$ac_compile"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21879 esac
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_compile") 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest.$ac_objext; then
21891 ac_header_compiler=yes
21892 else
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ac_header_compiler=no
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21901 echo "${ECHO_T}$ac_header_compiler" >&6; }
21903 # Is the header present?
21904 { echo "$as_me:$LINENO: checking presence" >&5
21905 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
21906 cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h. */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <>
21913 _ACEOF
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21918 esac
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21921 ac_status=$?
21922 grep -v '^ *+' conftest.er1 >conftest.err
21923 rm -f conftest.er1
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } >/dev/null && {
21927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928 test ! -s conftest.err
21929 }; then
21930 ac_header_preproc=yes
21931 else
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 ac_header_preproc=no
21938 rm -f conftest.err conftest.$ac_ext
21939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21940 echo "${ECHO_T}$ac_header_preproc" >&6; }
21942 # So? What about this header?
21943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21944 yes:no: )
21945 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
21946 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
21948 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
21949 ac_header_preproc=yes
21951 no:yes:* )
21952 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
21953 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
21955 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
21956 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
21957 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
21959 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
21961 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
21962 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
21963 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
21964 ( cat <<\_ASBOX
21965 ## ------------------------------- ##
21966 ## Report this to www.asterisk.org ##
21967 ## ------------------------------- ##
21968 _ASBOX
21969 ) | sed "s/^/$as_me: WARNING: /" >&2
21971 esac
21972 { echo "$as_me:$LINENO: checking for " >&5
21973 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
21974 if test "${ac_cv_header_+set}" = set; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 else
21977 ac_cv_header_=$ac_header_preproc
21979 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
21980 echo "${ECHO_T}$ac_cv_header_" >&6; }
21983 if test $ac_cv_header_ = yes; then
21984 ATAN2L_HEADER_FOUND=1
21985 else
21986 ATAN2L_HEADER_FOUND=0
21990 CPPFLAGS="${saved_cppflags}"
21992 if test "x${ATAN2L_HEADER_FOUND}" = "x0" ; then
21993 ATAN2L_LIB=""
21994 ATAN2L_INCLUDE=""
21995 else
21996 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
21997 ATAN2L_LIB=""
21999 PBX_ATAN2L=1
22000 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22002 cat >>confdefs.h <<_ACEOF
22003 #define HAVE_ATAN2L 1
22004 _ACEOF
22007 cat >>confdefs.h <<_ACEOF
22008 #define HAVE_ATAN2L_VERSION
22009 _ACEOF
22016 if test "x${PBX_POWL}" != "x1" -a "${USE_POWL}" != "no"; then
22017 pbxlibdir=""
22018 # if --with-POWL=DIR has been specified, use it.
22019 if test "x${POWL_DIR}" != "x"; then
22020 if test -d ${POWL_DIR}/lib; then
22021 pbxlibdir="-L${POWL_DIR}/lib"
22022 else
22023 pbxlibdir="-L${POWL_DIR}"
22026 pbxfuncname="powl"
22027 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22028 AST_POWL_FOUND=yes
22029 else
22030 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22031 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22032 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22033 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22035 else
22036 ac_check_lib_save_LIBS=$LIBS
22037 LIBS="-lm ${pbxlibdir} $LIBS"
22038 cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h. */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22045 /* Override any GCC internal prototype to avoid an error.
22046 Use char because int might match the return type of a GCC
22047 builtin and then its argument prototype would still apply. */
22048 #ifdef __cplusplus
22049 extern "C"
22050 #endif
22051 char ${pbxfuncname} ();
22053 main ()
22055 return ${pbxfuncname} ();
22057 return 0;
22059 _ACEOF
22060 rm -f conftest.$ac_objext conftest$ac_exeext
22061 if { (ac_try="$ac_link"
22062 case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22065 esac
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_link") 2>conftest.er1
22068 ac_status=$?
22069 grep -v '^ *+' conftest.er1 >conftest.err
22070 rm -f conftest.er1
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } && {
22074 test -z "$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22076 } && test -s conftest$ac_exeext &&
22077 $as_test_x conftest$ac_exeext; then
22078 eval "$as_ac_Lib=yes"
22079 else
22080 echo "$as_me: failed program was:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22083 eval "$as_ac_Lib=no"
22086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22087 conftest$ac_exeext conftest.$ac_ext
22088 LIBS=$ac_check_lib_save_LIBS
22090 ac_res=`eval echo '${'$as_ac_Lib'}'`
22091 { echo "$as_me:$LINENO: result: $ac_res" >&5
22092 echo "${ECHO_T}$ac_res" >&6; }
22093 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22094 AST_POWL_FOUND=yes
22095 else
22096 AST_POWL_FOUND=no
22101 # now check for the header.
22102 if test "${AST_POWL_FOUND}" = "yes"; then
22103 POWL_LIB="${pbxlibdir} -lm "
22104 # if --with-POWL=DIR has been specified, use it.
22105 if test "x${POWL_DIR}" != "x"; then
22106 POWL_INCLUDE="-I${POWL_DIR}/include"
22108 POWL_INCLUDE="${POWL_INCLUDE} "
22109 if test "x" = "x" ; then # no header, assume found
22110 POWL_HEADER_FOUND="1"
22111 else # check for the header
22112 saved_cppflags="${CPPFLAGS}"
22113 CPPFLAGS="${CPPFLAGS} ${POWL_INCLUDE} "
22114 if test "${ac_cv_header_+set}" = set; then
22115 { echo "$as_me:$LINENO: checking for " >&5
22116 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22117 if test "${ac_cv_header_+set}" = set; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22120 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22121 echo "${ECHO_T}$ac_cv_header_" >&6; }
22122 else
22123 # Is the header compilable?
22124 { echo "$as_me:$LINENO: checking usability" >&5
22125 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 $ac_includes_default
22133 #include <>
22134 _ACEOF
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22140 esac
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_compile") 2>conftest.er1
22143 ac_status=$?
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } && {
22149 test -z "$ac_c_werror_flag" ||
22150 test ! -s conftest.err
22151 } && test -s conftest.$ac_objext; then
22152 ac_header_compiler=yes
22153 else
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 ac_header_compiler=no
22160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22162 echo "${ECHO_T}$ac_header_compiler" >&6; }
22164 # Is the header present?
22165 { echo "$as_me:$LINENO: checking presence" >&5
22166 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22167 cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h. */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 #include <>
22174 _ACEOF
22175 if { (ac_try="$ac_cpp conftest.$ac_ext"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22182 ac_status=$?
22183 grep -v '^ *+' conftest.er1 >conftest.err
22184 rm -f conftest.er1
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } >/dev/null && {
22188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 }; then
22191 ac_header_preproc=yes
22192 else
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22196 ac_header_preproc=no
22199 rm -f conftest.err conftest.$ac_ext
22200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22201 echo "${ECHO_T}$ac_header_preproc" >&6; }
22203 # So? What about this header?
22204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22205 yes:no: )
22206 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22207 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22209 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22210 ac_header_preproc=yes
22212 no:yes:* )
22213 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22214 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22216 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22218 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22220 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22222 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22224 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22225 ( cat <<\_ASBOX
22226 ## ------------------------------- ##
22227 ## Report this to www.asterisk.org ##
22228 ## ------------------------------- ##
22229 _ASBOX
22230 ) | sed "s/^/$as_me: WARNING: /" >&2
22232 esac
22233 { echo "$as_me:$LINENO: checking for " >&5
22234 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22235 if test "${ac_cv_header_+set}" = set; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238 ac_cv_header_=$ac_header_preproc
22240 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22241 echo "${ECHO_T}$ac_cv_header_" >&6; }
22244 if test $ac_cv_header_ = yes; then
22245 POWL_HEADER_FOUND=1
22246 else
22247 POWL_HEADER_FOUND=0
22251 CPPFLAGS="${saved_cppflags}"
22253 if test "x${POWL_HEADER_FOUND}" = "x0" ; then
22254 POWL_LIB=""
22255 POWL_INCLUDE=""
22256 else
22257 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22258 POWL_LIB=""
22260 PBX_POWL=1
22261 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22263 cat >>confdefs.h <<_ACEOF
22264 #define HAVE_POWL 1
22265 _ACEOF
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_POWL_VERSION
22270 _ACEOF
22277 if test "x${PBX_SQRTL}" != "x1" -a "${USE_SQRTL}" != "no"; then
22278 pbxlibdir=""
22279 # if --with-SQRTL=DIR has been specified, use it.
22280 if test "x${SQRTL_DIR}" != "x"; then
22281 if test -d ${SQRTL_DIR}/lib; then
22282 pbxlibdir="-L${SQRTL_DIR}/lib"
22283 else
22284 pbxlibdir="-L${SQRTL_DIR}"
22287 pbxfuncname="sqrtl"
22288 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22289 AST_SQRTL_FOUND=yes
22290 else
22291 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22292 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22293 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22294 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 else
22297 ac_check_lib_save_LIBS=$LIBS
22298 LIBS="-lm ${pbxlibdir} $LIBS"
22299 cat >conftest.$ac_ext <<_ACEOF
22300 /* confdefs.h. */
22301 _ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h. */
22306 /* Override any GCC internal prototype to avoid an error.
22307 Use char because int might match the return type of a GCC
22308 builtin and then its argument prototype would still apply. */
22309 #ifdef __cplusplus
22310 extern "C"
22311 #endif
22312 char ${pbxfuncname} ();
22314 main ()
22316 return ${pbxfuncname} ();
22318 return 0;
22320 _ACEOF
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (ac_try="$ac_link"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22326 esac
22327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_link") 2>conftest.er1
22329 ac_status=$?
22330 grep -v '^ *+' conftest.er1 >conftest.err
22331 rm -f conftest.er1
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest$ac_exeext &&
22338 $as_test_x conftest$ac_exeext; then
22339 eval "$as_ac_Lib=yes"
22340 else
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22344 eval "$as_ac_Lib=no"
22347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22348 conftest$ac_exeext conftest.$ac_ext
22349 LIBS=$ac_check_lib_save_LIBS
22351 ac_res=`eval echo '${'$as_ac_Lib'}'`
22352 { echo "$as_me:$LINENO: result: $ac_res" >&5
22353 echo "${ECHO_T}$ac_res" >&6; }
22354 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22355 AST_SQRTL_FOUND=yes
22356 else
22357 AST_SQRTL_FOUND=no
22362 # now check for the header.
22363 if test "${AST_SQRTL_FOUND}" = "yes"; then
22364 SQRTL_LIB="${pbxlibdir} -lm "
22365 # if --with-SQRTL=DIR has been specified, use it.
22366 if test "x${SQRTL_DIR}" != "x"; then
22367 SQRTL_INCLUDE="-I${SQRTL_DIR}/include"
22369 SQRTL_INCLUDE="${SQRTL_INCLUDE} "
22370 if test "x" = "x" ; then # no header, assume found
22371 SQRTL_HEADER_FOUND="1"
22372 else # check for the header
22373 saved_cppflags="${CPPFLAGS}"
22374 CPPFLAGS="${CPPFLAGS} ${SQRTL_INCLUDE} "
22375 if test "${ac_cv_header_+set}" = set; then
22376 { echo "$as_me:$LINENO: checking for " >&5
22377 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22378 if test "${ac_cv_header_+set}" = set; then
22379 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22382 echo "${ECHO_T}$ac_cv_header_" >&6; }
22383 else
22384 # Is the header compilable?
22385 { echo "$as_me:$LINENO: checking usability" >&5
22386 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22387 cat >conftest.$ac_ext <<_ACEOF
22388 /* confdefs.h. */
22389 _ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h. */
22393 $ac_includes_default
22394 #include <>
22395 _ACEOF
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_compile") 2>conftest.er1
22404 ac_status=$?
22405 grep -v '^ *+' conftest.er1 >conftest.err
22406 rm -f conftest.er1
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest.$ac_objext; then
22413 ac_header_compiler=yes
22414 else
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_header_compiler=no
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22423 echo "${ECHO_T}$ac_header_compiler" >&6; }
22425 # Is the header present?
22426 { echo "$as_me:$LINENO: checking presence" >&5
22427 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22428 cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h. */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22434 #include <>
22435 _ACEOF
22436 if { (ac_try="$ac_cpp conftest.$ac_ext"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22443 ac_status=$?
22444 grep -v '^ *+' conftest.er1 >conftest.err
22445 rm -f conftest.er1
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } >/dev/null && {
22449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 }; then
22452 ac_header_preproc=yes
22453 else
22454 echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22457 ac_header_preproc=no
22460 rm -f conftest.err conftest.$ac_ext
22461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22462 echo "${ECHO_T}$ac_header_preproc" >&6; }
22464 # So? What about this header?
22465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22466 yes:no: )
22467 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22468 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22469 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22470 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22471 ac_header_preproc=yes
22473 no:yes:* )
22474 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22475 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22476 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22477 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22478 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22479 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22480 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22481 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22482 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22483 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22484 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22485 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22486 ( cat <<\_ASBOX
22487 ## ------------------------------- ##
22488 ## Report this to www.asterisk.org ##
22489 ## ------------------------------- ##
22490 _ASBOX
22491 ) | sed "s/^/$as_me: WARNING: /" >&2
22493 esac
22494 { echo "$as_me:$LINENO: checking for " >&5
22495 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22496 if test "${ac_cv_header_+set}" = set; then
22497 echo $ECHO_N "(cached) $ECHO_C" >&6
22498 else
22499 ac_cv_header_=$ac_header_preproc
22501 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22502 echo "${ECHO_T}$ac_cv_header_" >&6; }
22505 if test $ac_cv_header_ = yes; then
22506 SQRTL_HEADER_FOUND=1
22507 else
22508 SQRTL_HEADER_FOUND=0
22512 CPPFLAGS="${saved_cppflags}"
22514 if test "x${SQRTL_HEADER_FOUND}" = "x0" ; then
22515 SQRTL_LIB=""
22516 SQRTL_INCLUDE=""
22517 else
22518 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22519 SQRTL_LIB=""
22521 PBX_SQRTL=1
22522 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22524 cat >>confdefs.h <<_ACEOF
22525 #define HAVE_SQRTL 1
22526 _ACEOF
22529 cat >>confdefs.h <<_ACEOF
22530 #define HAVE_SQRTL_VERSION
22531 _ACEOF
22538 if test "x${PBX_RINTL}" != "x1" -a "${USE_RINTL}" != "no"; then
22539 pbxlibdir=""
22540 # if --with-RINTL=DIR has been specified, use it.
22541 if test "x${RINTL_DIR}" != "x"; then
22542 if test -d ${RINTL_DIR}/lib; then
22543 pbxlibdir="-L${RINTL_DIR}/lib"
22544 else
22545 pbxlibdir="-L${RINTL_DIR}"
22548 pbxfuncname="rintl"
22549 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22550 AST_RINTL_FOUND=yes
22551 else
22552 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22553 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22554 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22555 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558 ac_check_lib_save_LIBS=$LIBS
22559 LIBS="-lm ${pbxlibdir} $LIBS"
22560 cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h. */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22567 /* Override any GCC internal prototype to avoid an error.
22568 Use char because int might match the return type of a GCC
22569 builtin and then its argument prototype would still apply. */
22570 #ifdef __cplusplus
22571 extern "C"
22572 #endif
22573 char ${pbxfuncname} ();
22575 main ()
22577 return ${pbxfuncname} ();
22579 return 0;
22581 _ACEOF
22582 rm -f conftest.$ac_objext conftest$ac_exeext
22583 if { (ac_try="$ac_link"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_link") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest$ac_exeext &&
22599 $as_test_x conftest$ac_exeext; then
22600 eval "$as_ac_Lib=yes"
22601 else
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 eval "$as_ac_Lib=no"
22608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22609 conftest$ac_exeext conftest.$ac_ext
22610 LIBS=$ac_check_lib_save_LIBS
22612 ac_res=`eval echo '${'$as_ac_Lib'}'`
22613 { echo "$as_me:$LINENO: result: $ac_res" >&5
22614 echo "${ECHO_T}$ac_res" >&6; }
22615 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22616 AST_RINTL_FOUND=yes
22617 else
22618 AST_RINTL_FOUND=no
22623 # now check for the header.
22624 if test "${AST_RINTL_FOUND}" = "yes"; then
22625 RINTL_LIB="${pbxlibdir} -lm "
22626 # if --with-RINTL=DIR has been specified, use it.
22627 if test "x${RINTL_DIR}" != "x"; then
22628 RINTL_INCLUDE="-I${RINTL_DIR}/include"
22630 RINTL_INCLUDE="${RINTL_INCLUDE} "
22631 if test "x" = "x" ; then # no header, assume found
22632 RINTL_HEADER_FOUND="1"
22633 else # check for the header
22634 saved_cppflags="${CPPFLAGS}"
22635 CPPFLAGS="${CPPFLAGS} ${RINTL_INCLUDE} "
22636 if test "${ac_cv_header_+set}" = set; then
22637 { echo "$as_me:$LINENO: checking for " >&5
22638 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22639 if test "${ac_cv_header_+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22642 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22643 echo "${ECHO_T}$ac_cv_header_" >&6; }
22644 else
22645 # Is the header compilable?
22646 { echo "$as_me:$LINENO: checking usability" >&5
22647 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22648 cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h. */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654 $ac_includes_default
22655 #include <>
22656 _ACEOF
22657 rm -f conftest.$ac_objext
22658 if { (ac_try="$ac_compile"
22659 case "(($ac_try" in
22660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661 *) ac_try_echo=$ac_try;;
22662 esac
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664 (eval "$ac_compile") 2>conftest.er1
22665 ac_status=$?
22666 grep -v '^ *+' conftest.er1 >conftest.err
22667 rm -f conftest.er1
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } && {
22671 test -z "$ac_c_werror_flag" ||
22672 test ! -s conftest.err
22673 } && test -s conftest.$ac_objext; then
22674 ac_header_compiler=yes
22675 else
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22679 ac_header_compiler=no
22682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22684 echo "${ECHO_T}$ac_header_compiler" >&6; }
22686 # Is the header present?
22687 { echo "$as_me:$LINENO: checking presence" >&5
22688 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h. */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #include <>
22696 _ACEOF
22697 if { (ac_try="$ac_cpp conftest.$ac_ext"
22698 case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22701 esac
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22704 ac_status=$?
22705 grep -v '^ *+' conftest.er1 >conftest.err
22706 rm -f conftest.er1
22707 cat conftest.err >&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } >/dev/null && {
22710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 }; then
22713 ac_header_preproc=yes
22714 else
22715 echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22718 ac_header_preproc=no
22721 rm -f conftest.err conftest.$ac_ext
22722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22723 echo "${ECHO_T}$ac_header_preproc" >&6; }
22725 # So? What about this header?
22726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22727 yes:no: )
22728 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22729 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22730 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22731 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22732 ac_header_preproc=yes
22734 no:yes:* )
22735 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22736 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22737 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22738 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
22739 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
22740 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
22741 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
22742 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
22743 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
22744 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
22745 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
22746 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
22747 ( cat <<\_ASBOX
22748 ## ------------------------------- ##
22749 ## Report this to www.asterisk.org ##
22750 ## ------------------------------- ##
22751 _ASBOX
22752 ) | sed "s/^/$as_me: WARNING: /" >&2
22754 esac
22755 { echo "$as_me:$LINENO: checking for " >&5
22756 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22757 if test "${ac_cv_header_+set}" = set; then
22758 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 else
22760 ac_cv_header_=$ac_header_preproc
22762 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22763 echo "${ECHO_T}$ac_cv_header_" >&6; }
22766 if test $ac_cv_header_ = yes; then
22767 RINTL_HEADER_FOUND=1
22768 else
22769 RINTL_HEADER_FOUND=0
22773 CPPFLAGS="${saved_cppflags}"
22775 if test "x${RINTL_HEADER_FOUND}" = "x0" ; then
22776 RINTL_LIB=""
22777 RINTL_INCLUDE=""
22778 else
22779 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
22780 RINTL_LIB=""
22782 PBX_RINTL=1
22783 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
22785 cat >>confdefs.h <<_ACEOF
22786 #define HAVE_RINTL 1
22787 _ACEOF
22790 cat >>confdefs.h <<_ACEOF
22791 #define HAVE_RINTL_VERSION
22792 _ACEOF
22799 if test "x${PBX_EXPL}" != "x1" -a "${USE_EXPL}" != "no"; then
22800 pbxlibdir=""
22801 # if --with-EXPL=DIR has been specified, use it.
22802 if test "x${EXPL_DIR}" != "x"; then
22803 if test -d ${EXPL_DIR}/lib; then
22804 pbxlibdir="-L${EXPL_DIR}/lib"
22805 else
22806 pbxlibdir="-L${EXPL_DIR}"
22809 pbxfuncname="expl"
22810 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
22811 AST_EXPL_FOUND=yes
22812 else
22813 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
22814 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
22815 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
22816 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 else
22819 ac_check_lib_save_LIBS=$LIBS
22820 LIBS="-lm ${pbxlibdir} $LIBS"
22821 cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h. */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22828 /* Override any GCC internal prototype to avoid an error.
22829 Use char because int might match the return type of a GCC
22830 builtin and then its argument prototype would still apply. */
22831 #ifdef __cplusplus
22832 extern "C"
22833 #endif
22834 char ${pbxfuncname} ();
22836 main ()
22838 return ${pbxfuncname} ();
22840 return 0;
22842 _ACEOF
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (ac_try="$ac_link"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_link") 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest$ac_exeext &&
22860 $as_test_x conftest$ac_exeext; then
22861 eval "$as_ac_Lib=yes"
22862 else
22863 echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 eval "$as_ac_Lib=no"
22869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22870 conftest$ac_exeext conftest.$ac_ext
22871 LIBS=$ac_check_lib_save_LIBS
22873 ac_res=`eval echo '${'$as_ac_Lib'}'`
22874 { echo "$as_me:$LINENO: result: $ac_res" >&5
22875 echo "${ECHO_T}$ac_res" >&6; }
22876 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22877 AST_EXPL_FOUND=yes
22878 else
22879 AST_EXPL_FOUND=no
22884 # now check for the header.
22885 if test "${AST_EXPL_FOUND}" = "yes"; then
22886 EXPL_LIB="${pbxlibdir} -lm "
22887 # if --with-EXPL=DIR has been specified, use it.
22888 if test "x${EXPL_DIR}" != "x"; then
22889 EXPL_INCLUDE="-I${EXPL_DIR}/include"
22891 EXPL_INCLUDE="${EXPL_INCLUDE} "
22892 if test "x" = "x" ; then # no header, assume found
22893 EXPL_HEADER_FOUND="1"
22894 else # check for the header
22895 saved_cppflags="${CPPFLAGS}"
22896 CPPFLAGS="${CPPFLAGS} ${EXPL_INCLUDE} "
22897 if test "${ac_cv_header_+set}" = set; then
22898 { echo "$as_me:$LINENO: checking for " >&5
22899 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
22900 if test "${ac_cv_header_+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
22904 echo "${ECHO_T}$ac_cv_header_" >&6; }
22905 else
22906 # Is the header compilable?
22907 { echo "$as_me:$LINENO: checking usability" >&5
22908 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
22909 cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h. */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 $ac_includes_default
22916 #include <>
22917 _ACEOF
22918 rm -f conftest.$ac_objext
22919 if { (ac_try="$ac_compile"
22920 case "(($ac_try" in
22921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922 *) ac_try_echo=$ac_try;;
22923 esac
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925 (eval "$ac_compile") 2>conftest.er1
22926 ac_status=$?
22927 grep -v '^ *+' conftest.er1 >conftest.err
22928 rm -f conftest.er1
22929 cat conftest.err >&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest.$ac_objext; then
22935 ac_header_compiler=yes
22936 else
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 ac_header_compiler=no
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22945 echo "${ECHO_T}$ac_header_compiler" >&6; }
22947 # Is the header present?
22948 { echo "$as_me:$LINENO: checking presence" >&5
22949 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
22950 cat >conftest.$ac_ext <<_ACEOF
22951 /* confdefs.h. */
22952 _ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h. */
22956 #include <>
22957 _ACEOF
22958 if { (ac_try="$ac_cpp conftest.$ac_ext"
22959 case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22962 esac
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22965 ac_status=$?
22966 grep -v '^ *+' conftest.er1 >conftest.err
22967 rm -f conftest.er1
22968 cat conftest.err >&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } >/dev/null && {
22971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22972 test ! -s conftest.err
22973 }; then
22974 ac_header_preproc=yes
22975 else
22976 echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22979 ac_header_preproc=no
22982 rm -f conftest.err conftest.$ac_ext
22983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22984 echo "${ECHO_T}$ac_header_preproc" >&6; }
22986 # So? What about this header?
22987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22988 yes:no: )
22989 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
22990 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
22991 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
22992 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
22993 ac_header_preproc=yes
22995 no:yes:* )
22996 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
22997 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
22998 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
22999 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23000 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23001 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23002 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23003 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23004 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23005 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23006 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23007 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23008 ( cat <<\_ASBOX
23009 ## ------------------------------- ##
23010 ## Report this to www.asterisk.org ##
23011 ## ------------------------------- ##
23012 _ASBOX
23013 ) | sed "s/^/$as_me: WARNING: /" >&2
23015 esac
23016 { echo "$as_me:$LINENO: checking for " >&5
23017 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23018 if test "${ac_cv_header_+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 else
23021 ac_cv_header_=$ac_header_preproc
23023 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23024 echo "${ECHO_T}$ac_cv_header_" >&6; }
23027 if test $ac_cv_header_ = yes; then
23028 EXPL_HEADER_FOUND=1
23029 else
23030 EXPL_HEADER_FOUND=0
23034 CPPFLAGS="${saved_cppflags}"
23036 if test "x${EXPL_HEADER_FOUND}" = "x0" ; then
23037 EXPL_LIB=""
23038 EXPL_INCLUDE=""
23039 else
23040 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23041 EXPL_LIB=""
23043 PBX_EXPL=1
23044 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23046 cat >>confdefs.h <<_ACEOF
23047 #define HAVE_EXPL 1
23048 _ACEOF
23051 cat >>confdefs.h <<_ACEOF
23052 #define HAVE_EXPL_VERSION
23053 _ACEOF
23060 if test "x${PBX_LOGL}" != "x1" -a "${USE_LOGL}" != "no"; then
23061 pbxlibdir=""
23062 # if --with-LOGL=DIR has been specified, use it.
23063 if test "x${LOGL_DIR}" != "x"; then
23064 if test -d ${LOGL_DIR}/lib; then
23065 pbxlibdir="-L${LOGL_DIR}/lib"
23066 else
23067 pbxlibdir="-L${LOGL_DIR}"
23070 pbxfuncname="logl"
23071 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23072 AST_LOGL_FOUND=yes
23073 else
23074 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23075 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23076 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23077 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23079 else
23080 ac_check_lib_save_LIBS=$LIBS
23081 LIBS="-lm ${pbxlibdir} $LIBS"
23082 cat >conftest.$ac_ext <<_ACEOF
23083 /* confdefs.h. */
23084 _ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23089 /* Override any GCC internal prototype to avoid an error.
23090 Use char because int might match the return type of a GCC
23091 builtin and then its argument prototype would still apply. */
23092 #ifdef __cplusplus
23093 extern "C"
23094 #endif
23095 char ${pbxfuncname} ();
23097 main ()
23099 return ${pbxfuncname} ();
23101 return 0;
23103 _ACEOF
23104 rm -f conftest.$ac_objext conftest$ac_exeext
23105 if { (ac_try="$ac_link"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23109 esac
23110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111 (eval "$ac_link") 2>conftest.er1
23112 ac_status=$?
23113 grep -v '^ *+' conftest.er1 >conftest.err
23114 rm -f conftest.er1
23115 cat conftest.err >&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } && {
23118 test -z "$ac_c_werror_flag" ||
23119 test ! -s conftest.err
23120 } && test -s conftest$ac_exeext &&
23121 $as_test_x conftest$ac_exeext; then
23122 eval "$as_ac_Lib=yes"
23123 else
23124 echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 eval "$as_ac_Lib=no"
23130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23131 conftest$ac_exeext conftest.$ac_ext
23132 LIBS=$ac_check_lib_save_LIBS
23134 ac_res=`eval echo '${'$as_ac_Lib'}'`
23135 { echo "$as_me:$LINENO: result: $ac_res" >&5
23136 echo "${ECHO_T}$ac_res" >&6; }
23137 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23138 AST_LOGL_FOUND=yes
23139 else
23140 AST_LOGL_FOUND=no
23145 # now check for the header.
23146 if test "${AST_LOGL_FOUND}" = "yes"; then
23147 LOGL_LIB="${pbxlibdir} -lm "
23148 # if --with-LOGL=DIR has been specified, use it.
23149 if test "x${LOGL_DIR}" != "x"; then
23150 LOGL_INCLUDE="-I${LOGL_DIR}/include"
23152 LOGL_INCLUDE="${LOGL_INCLUDE} "
23153 if test "x" = "x" ; then # no header, assume found
23154 LOGL_HEADER_FOUND="1"
23155 else # check for the header
23156 saved_cppflags="${CPPFLAGS}"
23157 CPPFLAGS="${CPPFLAGS} ${LOGL_INCLUDE} "
23158 if test "${ac_cv_header_+set}" = set; then
23159 { echo "$as_me:$LINENO: checking for " >&5
23160 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23161 if test "${ac_cv_header_+set}" = set; then
23162 echo $ECHO_N "(cached) $ECHO_C" >&6
23164 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23165 echo "${ECHO_T}$ac_cv_header_" >&6; }
23166 else
23167 # Is the header compilable?
23168 { echo "$as_me:$LINENO: checking usability" >&5
23169 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23170 cat >conftest.$ac_ext <<_ACEOF
23171 /* confdefs.h. */
23172 _ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23176 $ac_includes_default
23177 #include <>
23178 _ACEOF
23179 rm -f conftest.$ac_objext
23180 if { (ac_try="$ac_compile"
23181 case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23184 esac
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_compile") 2>conftest.er1
23187 ac_status=$?
23188 grep -v '^ *+' conftest.er1 >conftest.err
23189 rm -f conftest.er1
23190 cat conftest.err >&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && {
23193 test -z "$ac_c_werror_flag" ||
23194 test ! -s conftest.err
23195 } && test -s conftest.$ac_objext; then
23196 ac_header_compiler=yes
23197 else
23198 echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23201 ac_header_compiler=no
23204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23206 echo "${ECHO_T}$ac_header_compiler" >&6; }
23208 # Is the header present?
23209 { echo "$as_me:$LINENO: checking presence" >&5
23210 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23211 cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h. */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 #include <>
23218 _ACEOF
23219 if { (ac_try="$ac_cpp conftest.$ac_ext"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23226 ac_status=$?
23227 grep -v '^ *+' conftest.er1 >conftest.err
23228 rm -f conftest.er1
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } >/dev/null && {
23232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23233 test ! -s conftest.err
23234 }; then
23235 ac_header_preproc=yes
23236 else
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23240 ac_header_preproc=no
23243 rm -f conftest.err conftest.$ac_ext
23244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23245 echo "${ECHO_T}$ac_header_preproc" >&6; }
23247 # So? What about this header?
23248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23249 yes:no: )
23250 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23251 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23252 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23253 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23254 ac_header_preproc=yes
23256 no:yes:* )
23257 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23258 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23259 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23260 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23261 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23262 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23263 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23264 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23265 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23266 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23267 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23268 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23269 ( cat <<\_ASBOX
23270 ## ------------------------------- ##
23271 ## Report this to www.asterisk.org ##
23272 ## ------------------------------- ##
23273 _ASBOX
23274 ) | sed "s/^/$as_me: WARNING: /" >&2
23276 esac
23277 { echo "$as_me:$LINENO: checking for " >&5
23278 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23279 if test "${ac_cv_header_+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282 ac_cv_header_=$ac_header_preproc
23284 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23285 echo "${ECHO_T}$ac_cv_header_" >&6; }
23288 if test $ac_cv_header_ = yes; then
23289 LOGL_HEADER_FOUND=1
23290 else
23291 LOGL_HEADER_FOUND=0
23295 CPPFLAGS="${saved_cppflags}"
23297 if test "x${LOGL_HEADER_FOUND}" = "x0" ; then
23298 LOGL_LIB=""
23299 LOGL_INCLUDE=""
23300 else
23301 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23302 LOGL_LIB=""
23304 PBX_LOGL=1
23305 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23307 cat >>confdefs.h <<_ACEOF
23308 #define HAVE_LOGL 1
23309 _ACEOF
23312 cat >>confdefs.h <<_ACEOF
23313 #define HAVE_LOGL_VERSION
23314 _ACEOF
23321 if test "x${PBX_REMAINDERL}" != "x1" -a "${USE_REMAINDERL}" != "no"; then
23322 pbxlibdir=""
23323 # if --with-REMAINDERL=DIR has been specified, use it.
23324 if test "x${REMAINDERL_DIR}" != "x"; then
23325 if test -d ${REMAINDERL_DIR}/lib; then
23326 pbxlibdir="-L${REMAINDERL_DIR}/lib"
23327 else
23328 pbxlibdir="-L${REMAINDERL_DIR}"
23331 pbxfuncname="remainderl"
23332 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23333 AST_REMAINDERL_FOUND=yes
23334 else
23335 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23336 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23337 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23338 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23339 echo $ECHO_N "(cached) $ECHO_C" >&6
23340 else
23341 ac_check_lib_save_LIBS=$LIBS
23342 LIBS="-lm ${pbxlibdir} $LIBS"
23343 cat >conftest.$ac_ext <<_ACEOF
23344 /* confdefs.h. */
23345 _ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23350 /* Override any GCC internal prototype to avoid an error.
23351 Use char because int might match the return type of a GCC
23352 builtin and then its argument prototype would still apply. */
23353 #ifdef __cplusplus
23354 extern "C"
23355 #endif
23356 char ${pbxfuncname} ();
23358 main ()
23360 return ${pbxfuncname} ();
23362 return 0;
23364 _ACEOF
23365 rm -f conftest.$ac_objext conftest$ac_exeext
23366 if { (ac_try="$ac_link"
23367 case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23370 esac
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_link") 2>conftest.er1
23373 ac_status=$?
23374 grep -v '^ *+' conftest.er1 >conftest.err
23375 rm -f conftest.er1
23376 cat conftest.err >&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } && {
23379 test -z "$ac_c_werror_flag" ||
23380 test ! -s conftest.err
23381 } && test -s conftest$ac_exeext &&
23382 $as_test_x conftest$ac_exeext; then
23383 eval "$as_ac_Lib=yes"
23384 else
23385 echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23388 eval "$as_ac_Lib=no"
23391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23392 conftest$ac_exeext conftest.$ac_ext
23393 LIBS=$ac_check_lib_save_LIBS
23395 ac_res=`eval echo '${'$as_ac_Lib'}'`
23396 { echo "$as_me:$LINENO: result: $ac_res" >&5
23397 echo "${ECHO_T}$ac_res" >&6; }
23398 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23399 AST_REMAINDERL_FOUND=yes
23400 else
23401 AST_REMAINDERL_FOUND=no
23406 # now check for the header.
23407 if test "${AST_REMAINDERL_FOUND}" = "yes"; then
23408 REMAINDERL_LIB="${pbxlibdir} -lm "
23409 # if --with-REMAINDERL=DIR has been specified, use it.
23410 if test "x${REMAINDERL_DIR}" != "x"; then
23411 REMAINDERL_INCLUDE="-I${REMAINDERL_DIR}/include"
23413 REMAINDERL_INCLUDE="${REMAINDERL_INCLUDE} "
23414 if test "x" = "x" ; then # no header, assume found
23415 REMAINDERL_HEADER_FOUND="1"
23416 else # check for the header
23417 saved_cppflags="${CPPFLAGS}"
23418 CPPFLAGS="${CPPFLAGS} ${REMAINDERL_INCLUDE} "
23419 if test "${ac_cv_header_+set}" = set; then
23420 { echo "$as_me:$LINENO: checking for " >&5
23421 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23422 if test "${ac_cv_header_+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23426 echo "${ECHO_T}$ac_cv_header_" >&6; }
23427 else
23428 # Is the header compilable?
23429 { echo "$as_me:$LINENO: checking usability" >&5
23430 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23431 cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h. */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23437 $ac_includes_default
23438 #include <>
23439 _ACEOF
23440 rm -f conftest.$ac_objext
23441 if { (ac_try="$ac_compile"
23442 case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_compile") 2>conftest.er1
23448 ac_status=$?
23449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } && {
23454 test -z "$ac_c_werror_flag" ||
23455 test ! -s conftest.err
23456 } && test -s conftest.$ac_objext; then
23457 ac_header_compiler=yes
23458 else
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23462 ac_header_compiler=no
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23467 echo "${ECHO_T}$ac_header_compiler" >&6; }
23469 # Is the header present?
23470 { echo "$as_me:$LINENO: checking presence" >&5
23471 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23472 cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h. */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23478 #include <>
23479 _ACEOF
23480 if { (ac_try="$ac_cpp conftest.$ac_ext"
23481 case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23484 esac
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23487 ac_status=$?
23488 grep -v '^ *+' conftest.er1 >conftest.err
23489 rm -f conftest.er1
23490 cat conftest.err >&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } >/dev/null && {
23493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23494 test ! -s conftest.err
23495 }; then
23496 ac_header_preproc=yes
23497 else
23498 echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23501 ac_header_preproc=no
23504 rm -f conftest.err conftest.$ac_ext
23505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23506 echo "${ECHO_T}$ac_header_preproc" >&6; }
23508 # So? What about this header?
23509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23510 yes:no: )
23511 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23512 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23513 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23514 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23515 ac_header_preproc=yes
23517 no:yes:* )
23518 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23519 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23520 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23521 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23522 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23523 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23524 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23525 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23526 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23527 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23528 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23529 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23530 ( cat <<\_ASBOX
23531 ## ------------------------------- ##
23532 ## Report this to www.asterisk.org ##
23533 ## ------------------------------- ##
23534 _ASBOX
23535 ) | sed "s/^/$as_me: WARNING: /" >&2
23537 esac
23538 { echo "$as_me:$LINENO: checking for " >&5
23539 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23540 if test "${ac_cv_header_+set}" = set; then
23541 echo $ECHO_N "(cached) $ECHO_C" >&6
23542 else
23543 ac_cv_header_=$ac_header_preproc
23545 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23546 echo "${ECHO_T}$ac_cv_header_" >&6; }
23549 if test $ac_cv_header_ = yes; then
23550 REMAINDERL_HEADER_FOUND=1
23551 else
23552 REMAINDERL_HEADER_FOUND=0
23556 CPPFLAGS="${saved_cppflags}"
23558 if test "x${REMAINDERL_HEADER_FOUND}" = "x0" ; then
23559 REMAINDERL_LIB=""
23560 REMAINDERL_INCLUDE=""
23561 else
23562 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23563 REMAINDERL_LIB=""
23565 PBX_REMAINDERL=1
23566 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23568 cat >>confdefs.h <<_ACEOF
23569 #define HAVE_REMAINDERL 1
23570 _ACEOF
23573 cat >>confdefs.h <<_ACEOF
23574 #define HAVE_REMAINDERL_VERSION
23575 _ACEOF
23582 if test "x${PBX_FMODL}" != "x1" -a "${USE_FMODL}" != "no"; then
23583 pbxlibdir=""
23584 # if --with-FMODL=DIR has been specified, use it.
23585 if test "x${FMODL_DIR}" != "x"; then
23586 if test -d ${FMODL_DIR}/lib; then
23587 pbxlibdir="-L${FMODL_DIR}/lib"
23588 else
23589 pbxlibdir="-L${FMODL_DIR}"
23592 pbxfuncname="fmodl"
23593 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23594 AST_FMODL_FOUND=yes
23595 else
23596 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23597 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23598 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23599 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
23601 else
23602 ac_check_lib_save_LIBS=$LIBS
23603 LIBS="-lm ${pbxlibdir} $LIBS"
23604 cat >conftest.$ac_ext <<_ACEOF
23605 /* confdefs.h. */
23606 _ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23611 /* Override any GCC internal prototype to avoid an error.
23612 Use char because int might match the return type of a GCC
23613 builtin and then its argument prototype would still apply. */
23614 #ifdef __cplusplus
23615 extern "C"
23616 #endif
23617 char ${pbxfuncname} ();
23619 main ()
23621 return ${pbxfuncname} ();
23623 return 0;
23625 _ACEOF
23626 rm -f conftest.$ac_objext conftest$ac_exeext
23627 if { (ac_try="$ac_link"
23628 case "(($ac_try" in
23629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630 *) ac_try_echo=$ac_try;;
23631 esac
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633 (eval "$ac_link") 2>conftest.er1
23634 ac_status=$?
23635 grep -v '^ *+' conftest.er1 >conftest.err
23636 rm -f conftest.er1
23637 cat conftest.err >&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } && {
23640 test -z "$ac_c_werror_flag" ||
23641 test ! -s conftest.err
23642 } && test -s conftest$ac_exeext &&
23643 $as_test_x conftest$ac_exeext; then
23644 eval "$as_ac_Lib=yes"
23645 else
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23649 eval "$as_ac_Lib=no"
23652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23653 conftest$ac_exeext conftest.$ac_ext
23654 LIBS=$ac_check_lib_save_LIBS
23656 ac_res=`eval echo '${'$as_ac_Lib'}'`
23657 { echo "$as_me:$LINENO: result: $ac_res" >&5
23658 echo "${ECHO_T}$ac_res" >&6; }
23659 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23660 AST_FMODL_FOUND=yes
23661 else
23662 AST_FMODL_FOUND=no
23667 # now check for the header.
23668 if test "${AST_FMODL_FOUND}" = "yes"; then
23669 FMODL_LIB="${pbxlibdir} -lm "
23670 # if --with-FMODL=DIR has been specified, use it.
23671 if test "x${FMODL_DIR}" != "x"; then
23672 FMODL_INCLUDE="-I${FMODL_DIR}/include"
23674 FMODL_INCLUDE="${FMODL_INCLUDE} "
23675 if test "x" = "x" ; then # no header, assume found
23676 FMODL_HEADER_FOUND="1"
23677 else # check for the header
23678 saved_cppflags="${CPPFLAGS}"
23679 CPPFLAGS="${CPPFLAGS} ${FMODL_INCLUDE} "
23680 if test "${ac_cv_header_+set}" = set; then
23681 { echo "$as_me:$LINENO: checking for " >&5
23682 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23683 if test "${ac_cv_header_+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23686 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23687 echo "${ECHO_T}$ac_cv_header_" >&6; }
23688 else
23689 # Is the header compilable?
23690 { echo "$as_me:$LINENO: checking usability" >&5
23691 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23692 cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h. */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 $ac_includes_default
23699 #include <>
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705 *) ac_try_echo=$ac_try;;
23706 esac
23707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23708 (eval "$ac_compile") 2>conftest.er1
23709 ac_status=$?
23710 grep -v '^ *+' conftest.er1 >conftest.err
23711 rm -f conftest.er1
23712 cat conftest.err >&5
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } && {
23715 test -z "$ac_c_werror_flag" ||
23716 test ! -s conftest.err
23717 } && test -s conftest.$ac_objext; then
23718 ac_header_compiler=yes
23719 else
23720 echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23723 ac_header_compiler=no
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23728 echo "${ECHO_T}$ac_header_compiler" >&6; }
23730 # Is the header present?
23731 { echo "$as_me:$LINENO: checking presence" >&5
23732 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23733 cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h. */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 #include <>
23740 _ACEOF
23741 if { (ac_try="$ac_cpp conftest.$ac_ext"
23742 case "(($ac_try" in
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744 *) ac_try_echo=$ac_try;;
23745 esac
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23748 ac_status=$?
23749 grep -v '^ *+' conftest.er1 >conftest.err
23750 rm -f conftest.er1
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } >/dev/null && {
23754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23755 test ! -s conftest.err
23756 }; then
23757 ac_header_preproc=yes
23758 else
23759 echo "$as_me: failed program was:" >&5
23760 sed 's/^/| /' conftest.$ac_ext >&5
23762 ac_header_preproc=no
23765 rm -f conftest.err conftest.$ac_ext
23766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23767 echo "${ECHO_T}$ac_header_preproc" >&6; }
23769 # So? What about this header?
23770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23771 yes:no: )
23772 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
23773 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
23774 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
23775 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
23776 ac_header_preproc=yes
23778 no:yes:* )
23779 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
23780 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
23781 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
23782 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
23783 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
23784 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
23785 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
23786 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
23787 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
23788 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
23789 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
23790 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
23791 ( cat <<\_ASBOX
23792 ## ------------------------------- ##
23793 ## Report this to www.asterisk.org ##
23794 ## ------------------------------- ##
23795 _ASBOX
23796 ) | sed "s/^/$as_me: WARNING: /" >&2
23798 esac
23799 { echo "$as_me:$LINENO: checking for " >&5
23800 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23801 if test "${ac_cv_header_+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804 ac_cv_header_=$ac_header_preproc
23806 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23807 echo "${ECHO_T}$ac_cv_header_" >&6; }
23810 if test $ac_cv_header_ = yes; then
23811 FMODL_HEADER_FOUND=1
23812 else
23813 FMODL_HEADER_FOUND=0
23817 CPPFLAGS="${saved_cppflags}"
23819 if test "x${FMODL_HEADER_FOUND}" = "x0" ; then
23820 FMODL_LIB=""
23821 FMODL_INCLUDE=""
23822 else
23823 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
23824 FMODL_LIB=""
23826 PBX_FMODL=1
23827 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
23829 cat >>confdefs.h <<_ACEOF
23830 #define HAVE_FMODL 1
23831 _ACEOF
23834 cat >>confdefs.h <<_ACEOF
23835 #define HAVE_FMODL_VERSION
23836 _ACEOF
23843 if test "x${PBX_ROUNDL}" != "x1" -a "${USE_ROUNDL}" != "no"; then
23844 pbxlibdir=""
23845 # if --with-ROUNDL=DIR has been specified, use it.
23846 if test "x${ROUNDL_DIR}" != "x"; then
23847 if test -d ${ROUNDL_DIR}/lib; then
23848 pbxlibdir="-L${ROUNDL_DIR}/lib"
23849 else
23850 pbxlibdir="-L${ROUNDL_DIR}"
23853 pbxfuncname="roundl"
23854 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
23855 AST_ROUNDL_FOUND=yes
23856 else
23857 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
23858 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
23859 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
23860 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23861 echo $ECHO_N "(cached) $ECHO_C" >&6
23862 else
23863 ac_check_lib_save_LIBS=$LIBS
23864 LIBS="-lm ${pbxlibdir} $LIBS"
23865 cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h. */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h. */
23872 /* Override any GCC internal prototype to avoid an error.
23873 Use char because int might match the return type of a GCC
23874 builtin and then its argument prototype would still apply. */
23875 #ifdef __cplusplus
23876 extern "C"
23877 #endif
23878 char ${pbxfuncname} ();
23880 main ()
23882 return ${pbxfuncname} ();
23884 return 0;
23886 _ACEOF
23887 rm -f conftest.$ac_objext conftest$ac_exeext
23888 if { (ac_try="$ac_link"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_link") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest$ac_exeext &&
23904 $as_test_x conftest$ac_exeext; then
23905 eval "$as_ac_Lib=yes"
23906 else
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23910 eval "$as_ac_Lib=no"
23913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23914 conftest$ac_exeext conftest.$ac_ext
23915 LIBS=$ac_check_lib_save_LIBS
23917 ac_res=`eval echo '${'$as_ac_Lib'}'`
23918 { echo "$as_me:$LINENO: result: $ac_res" >&5
23919 echo "${ECHO_T}$ac_res" >&6; }
23920 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23921 AST_ROUNDL_FOUND=yes
23922 else
23923 AST_ROUNDL_FOUND=no
23928 # now check for the header.
23929 if test "${AST_ROUNDL_FOUND}" = "yes"; then
23930 ROUNDL_LIB="${pbxlibdir} -lm "
23931 # if --with-ROUNDL=DIR has been specified, use it.
23932 if test "x${ROUNDL_DIR}" != "x"; then
23933 ROUNDL_INCLUDE="-I${ROUNDL_DIR}/include"
23935 ROUNDL_INCLUDE="${ROUNDL_INCLUDE} "
23936 if test "x" = "x" ; then # no header, assume found
23937 ROUNDL_HEADER_FOUND="1"
23938 else # check for the header
23939 saved_cppflags="${CPPFLAGS}"
23940 CPPFLAGS="${CPPFLAGS} ${ROUNDL_INCLUDE} "
23941 if test "${ac_cv_header_+set}" = set; then
23942 { echo "$as_me:$LINENO: checking for " >&5
23943 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
23944 if test "${ac_cv_header_+set}" = set; then
23945 echo $ECHO_N "(cached) $ECHO_C" >&6
23947 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
23948 echo "${ECHO_T}$ac_cv_header_" >&6; }
23949 else
23950 # Is the header compilable?
23951 { echo "$as_me:$LINENO: checking usability" >&5
23952 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h. */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23959 $ac_includes_default
23960 #include <>
23961 _ACEOF
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23967 esac
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_compile") 2>conftest.er1
23970 ac_status=$?
23971 grep -v '^ *+' conftest.er1 >conftest.err
23972 rm -f conftest.er1
23973 cat conftest.err >&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } && {
23976 test -z "$ac_c_werror_flag" ||
23977 test ! -s conftest.err
23978 } && test -s conftest.$ac_objext; then
23979 ac_header_compiler=yes
23980 else
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 ac_header_compiler=no
23987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23989 echo "${ECHO_T}$ac_header_compiler" >&6; }
23991 # Is the header present?
23992 { echo "$as_me:$LINENO: checking presence" >&5
23993 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
23994 cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h. */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h. */
24000 #include <>
24001 _ACEOF
24002 if { (ac_try="$ac_cpp conftest.$ac_ext"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24009 ac_status=$?
24010 grep -v '^ *+' conftest.er1 >conftest.err
24011 rm -f conftest.er1
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } >/dev/null && {
24015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 }; then
24018 ac_header_preproc=yes
24019 else
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ac_header_preproc=no
24026 rm -f conftest.err conftest.$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24028 echo "${ECHO_T}$ac_header_preproc" >&6; }
24030 # So? What about this header?
24031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24032 yes:no: )
24033 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24034 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24035 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24036 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24037 ac_header_preproc=yes
24039 no:yes:* )
24040 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24041 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24042 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24043 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24044 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24045 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24046 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24047 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24049 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24051 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24052 ( cat <<\_ASBOX
24053 ## ------------------------------- ##
24054 ## Report this to www.asterisk.org ##
24055 ## ------------------------------- ##
24056 _ASBOX
24057 ) | sed "s/^/$as_me: WARNING: /" >&2
24059 esac
24060 { echo "$as_me:$LINENO: checking for " >&5
24061 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24062 if test "${ac_cv_header_+set}" = set; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24064 else
24065 ac_cv_header_=$ac_header_preproc
24067 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24068 echo "${ECHO_T}$ac_cv_header_" >&6; }
24071 if test $ac_cv_header_ = yes; then
24072 ROUNDL_HEADER_FOUND=1
24073 else
24074 ROUNDL_HEADER_FOUND=0
24078 CPPFLAGS="${saved_cppflags}"
24080 if test "x${ROUNDL_HEADER_FOUND}" = "x0" ; then
24081 ROUNDL_LIB=""
24082 ROUNDL_INCLUDE=""
24083 else
24084 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24085 ROUNDL_LIB=""
24087 PBX_ROUNDL=1
24088 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24090 cat >>confdefs.h <<_ACEOF
24091 #define HAVE_ROUNDL 1
24092 _ACEOF
24095 cat >>confdefs.h <<_ACEOF
24096 #define HAVE_ROUNDL_VERSION
24097 _ACEOF
24104 if test "x${PBX_TRUNCL}" != "x1" -a "${USE_TRUNCL}" != "no"; then
24105 pbxlibdir=""
24106 # if --with-TRUNCL=DIR has been specified, use it.
24107 if test "x${TRUNCL_DIR}" != "x"; then
24108 if test -d ${TRUNCL_DIR}/lib; then
24109 pbxlibdir="-L${TRUNCL_DIR}/lib"
24110 else
24111 pbxlibdir="-L${TRUNCL_DIR}"
24114 pbxfuncname="truncl"
24115 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24116 AST_TRUNCL_FOUND=yes
24117 else
24118 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24119 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24120 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24121 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24122 echo $ECHO_N "(cached) $ECHO_C" >&6
24123 else
24124 ac_check_lib_save_LIBS=$LIBS
24125 LIBS="-lm ${pbxlibdir} $LIBS"
24126 cat >conftest.$ac_ext <<_ACEOF
24127 /* confdefs.h. */
24128 _ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h. */
24133 /* Override any GCC internal prototype to avoid an error.
24134 Use char because int might match the return type of a GCC
24135 builtin and then its argument prototype would still apply. */
24136 #ifdef __cplusplus
24137 extern "C"
24138 #endif
24139 char ${pbxfuncname} ();
24141 main ()
24143 return ${pbxfuncname} ();
24145 return 0;
24147 _ACEOF
24148 rm -f conftest.$ac_objext conftest$ac_exeext
24149 if { (ac_try="$ac_link"
24150 case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_link") 2>conftest.er1
24156 ac_status=$?
24157 grep -v '^ *+' conftest.er1 >conftest.err
24158 rm -f conftest.er1
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest$ac_exeext &&
24165 $as_test_x conftest$ac_exeext; then
24166 eval "$as_ac_Lib=yes"
24167 else
24168 echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24171 eval "$as_ac_Lib=no"
24174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24175 conftest$ac_exeext conftest.$ac_ext
24176 LIBS=$ac_check_lib_save_LIBS
24178 ac_res=`eval echo '${'$as_ac_Lib'}'`
24179 { echo "$as_me:$LINENO: result: $ac_res" >&5
24180 echo "${ECHO_T}$ac_res" >&6; }
24181 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24182 AST_TRUNCL_FOUND=yes
24183 else
24184 AST_TRUNCL_FOUND=no
24189 # now check for the header.
24190 if test "${AST_TRUNCL_FOUND}" = "yes"; then
24191 TRUNCL_LIB="${pbxlibdir} -lm "
24192 # if --with-TRUNCL=DIR has been specified, use it.
24193 if test "x${TRUNCL_DIR}" != "x"; then
24194 TRUNCL_INCLUDE="-I${TRUNCL_DIR}/include"
24196 TRUNCL_INCLUDE="${TRUNCL_INCLUDE} "
24197 if test "x" = "x" ; then # no header, assume found
24198 TRUNCL_HEADER_FOUND="1"
24199 else # check for the header
24200 saved_cppflags="${CPPFLAGS}"
24201 CPPFLAGS="${CPPFLAGS} ${TRUNCL_INCLUDE} "
24202 if test "${ac_cv_header_+set}" = set; then
24203 { echo "$as_me:$LINENO: checking for " >&5
24204 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24205 if test "${ac_cv_header_+set}" = set; then
24206 echo $ECHO_N "(cached) $ECHO_C" >&6
24208 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24209 echo "${ECHO_T}$ac_cv_header_" >&6; }
24210 else
24211 # Is the header compilable?
24212 { echo "$as_me:$LINENO: checking usability" >&5
24213 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24214 cat >conftest.$ac_ext <<_ACEOF
24215 /* confdefs.h. */
24216 _ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24220 $ac_includes_default
24221 #include <>
24222 _ACEOF
24223 rm -f conftest.$ac_objext
24224 if { (ac_try="$ac_compile"
24225 case "(($ac_try" in
24226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227 *) ac_try_echo=$ac_try;;
24228 esac
24229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230 (eval "$ac_compile") 2>conftest.er1
24231 ac_status=$?
24232 grep -v '^ *+' conftest.er1 >conftest.err
24233 rm -f conftest.er1
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } && {
24237 test -z "$ac_c_werror_flag" ||
24238 test ! -s conftest.err
24239 } && test -s conftest.$ac_objext; then
24240 ac_header_compiler=yes
24241 else
24242 echo "$as_me: failed program was:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24245 ac_header_compiler=no
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24250 echo "${ECHO_T}$ac_header_compiler" >&6; }
24252 # Is the header present?
24253 { echo "$as_me:$LINENO: checking presence" >&5
24254 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24255 cat >conftest.$ac_ext <<_ACEOF
24256 /* confdefs.h. */
24257 _ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h. */
24261 #include <>
24262 _ACEOF
24263 if { (ac_try="$ac_cpp conftest.$ac_ext"
24264 case "(($ac_try" in
24265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24266 *) ac_try_echo=$ac_try;;
24267 esac
24268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24270 ac_status=$?
24271 grep -v '^ *+' conftest.er1 >conftest.err
24272 rm -f conftest.er1
24273 cat conftest.err >&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); } >/dev/null && {
24276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24277 test ! -s conftest.err
24278 }; then
24279 ac_header_preproc=yes
24280 else
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ac_header_preproc=no
24287 rm -f conftest.err conftest.$ac_ext
24288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24289 echo "${ECHO_T}$ac_header_preproc" >&6; }
24291 # So? What about this header?
24292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24293 yes:no: )
24294 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24295 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24296 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24297 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24298 ac_header_preproc=yes
24300 no:yes:* )
24301 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24302 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24303 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24304 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24305 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24306 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24307 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24308 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24309 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24310 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24311 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24312 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24313 ( cat <<\_ASBOX
24314 ## ------------------------------- ##
24315 ## Report this to www.asterisk.org ##
24316 ## ------------------------------- ##
24317 _ASBOX
24318 ) | sed "s/^/$as_me: WARNING: /" >&2
24320 esac
24321 { echo "$as_me:$LINENO: checking for " >&5
24322 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24323 if test "${ac_cv_header_+set}" = set; then
24324 echo $ECHO_N "(cached) $ECHO_C" >&6
24325 else
24326 ac_cv_header_=$ac_header_preproc
24328 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24329 echo "${ECHO_T}$ac_cv_header_" >&6; }
24332 if test $ac_cv_header_ = yes; then
24333 TRUNCL_HEADER_FOUND=1
24334 else
24335 TRUNCL_HEADER_FOUND=0
24339 CPPFLAGS="${saved_cppflags}"
24341 if test "x${TRUNCL_HEADER_FOUND}" = "x0" ; then
24342 TRUNCL_LIB=""
24343 TRUNCL_INCLUDE=""
24344 else
24345 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24346 TRUNCL_LIB=""
24348 PBX_TRUNCL=1
24349 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24351 cat >>confdefs.h <<_ACEOF
24352 #define HAVE_TRUNCL 1
24353 _ACEOF
24356 cat >>confdefs.h <<_ACEOF
24357 #define HAVE_TRUNCL_VERSION
24358 _ACEOF
24365 if test "x${PBX_STRTOLD}" != "x1" -a "${USE_STRTOLD}" != "no"; then
24366 pbxlibdir=""
24367 # if --with-STRTOLD=DIR has been specified, use it.
24368 if test "x${STRTOLD_DIR}" != "x"; then
24369 if test -d ${STRTOLD_DIR}/lib; then
24370 pbxlibdir="-L${STRTOLD_DIR}/lib"
24371 else
24372 pbxlibdir="-L${STRTOLD_DIR}"
24375 pbxfuncname="strtold"
24376 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24377 AST_STRTOLD_FOUND=yes
24378 else
24379 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
24380 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
24381 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
24382 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24384 else
24385 ac_check_lib_save_LIBS=$LIBS
24386 LIBS="-lc ${pbxlibdir} $LIBS"
24387 cat >conftest.$ac_ext <<_ACEOF
24388 /* confdefs.h. */
24389 _ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24394 /* Override any GCC internal prototype to avoid an error.
24395 Use char because int might match the return type of a GCC
24396 builtin and then its argument prototype would still apply. */
24397 #ifdef __cplusplus
24398 extern "C"
24399 #endif
24400 char ${pbxfuncname} ();
24402 main ()
24404 return ${pbxfuncname} ();
24406 return 0;
24408 _ACEOF
24409 rm -f conftest.$ac_objext conftest$ac_exeext
24410 if { (ac_try="$ac_link"
24411 case "(($ac_try" in
24412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24413 *) ac_try_echo=$ac_try;;
24414 esac
24415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24416 (eval "$ac_link") 2>conftest.er1
24417 ac_status=$?
24418 grep -v '^ *+' conftest.er1 >conftest.err
24419 rm -f conftest.er1
24420 cat conftest.err >&5
24421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 (exit $ac_status); } && {
24423 test -z "$ac_c_werror_flag" ||
24424 test ! -s conftest.err
24425 } && test -s conftest$ac_exeext &&
24426 $as_test_x conftest$ac_exeext; then
24427 eval "$as_ac_Lib=yes"
24428 else
24429 echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24432 eval "$as_ac_Lib=no"
24435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24436 conftest$ac_exeext conftest.$ac_ext
24437 LIBS=$ac_check_lib_save_LIBS
24439 ac_res=`eval echo '${'$as_ac_Lib'}'`
24440 { echo "$as_me:$LINENO: result: $ac_res" >&5
24441 echo "${ECHO_T}$ac_res" >&6; }
24442 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24443 AST_STRTOLD_FOUND=yes
24444 else
24445 AST_STRTOLD_FOUND=no
24450 # now check for the header.
24451 if test "${AST_STRTOLD_FOUND}" = "yes"; then
24452 STRTOLD_LIB="${pbxlibdir} -lc "
24453 # if --with-STRTOLD=DIR has been specified, use it.
24454 if test "x${STRTOLD_DIR}" != "x"; then
24455 STRTOLD_INCLUDE="-I${STRTOLD_DIR}/include"
24457 STRTOLD_INCLUDE="${STRTOLD_INCLUDE} "
24458 if test "xstdlib.h" = "x" ; then # no header, assume found
24459 STRTOLD_HEADER_FOUND="1"
24460 else # check for the header
24461 saved_cppflags="${CPPFLAGS}"
24462 CPPFLAGS="${CPPFLAGS} ${STRTOLD_INCLUDE} "
24463 if test "${ac_cv_header_stdlib_h+set}" = set; then
24464 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24465 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24466 if test "${ac_cv_header_stdlib_h+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24469 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24470 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24471 else
24472 # Is the header compilable?
24473 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
24474 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
24475 cat >conftest.$ac_ext <<_ACEOF
24476 /* confdefs.h. */
24477 _ACEOF
24478 cat confdefs.h >>conftest.$ac_ext
24479 cat >>conftest.$ac_ext <<_ACEOF
24480 /* end confdefs.h. */
24481 $ac_includes_default
24482 #include <stdlib.h>
24483 _ACEOF
24484 rm -f conftest.$ac_objext
24485 if { (ac_try="$ac_compile"
24486 case "(($ac_try" in
24487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488 *) ac_try_echo=$ac_try;;
24489 esac
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491 (eval "$ac_compile") 2>conftest.er1
24492 ac_status=$?
24493 grep -v '^ *+' conftest.er1 >conftest.err
24494 rm -f conftest.er1
24495 cat conftest.err >&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && {
24498 test -z "$ac_c_werror_flag" ||
24499 test ! -s conftest.err
24500 } && test -s conftest.$ac_objext; then
24501 ac_header_compiler=yes
24502 else
24503 echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24506 ac_header_compiler=no
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24511 echo "${ECHO_T}$ac_header_compiler" >&6; }
24513 # Is the header present?
24514 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
24515 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
24516 cat >conftest.$ac_ext <<_ACEOF
24517 /* confdefs.h. */
24518 _ACEOF
24519 cat confdefs.h >>conftest.$ac_ext
24520 cat >>conftest.$ac_ext <<_ACEOF
24521 /* end confdefs.h. */
24522 #include <stdlib.h>
24523 _ACEOF
24524 if { (ac_try="$ac_cpp conftest.$ac_ext"
24525 case "(($ac_try" in
24526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24528 esac
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24531 ac_status=$?
24532 grep -v '^ *+' conftest.er1 >conftest.err
24533 rm -f conftest.er1
24534 cat conftest.err >&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } >/dev/null && {
24537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24538 test ! -s conftest.err
24539 }; then
24540 ac_header_preproc=yes
24541 else
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 ac_header_preproc=no
24548 rm -f conftest.err conftest.$ac_ext
24549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24550 echo "${ECHO_T}$ac_header_preproc" >&6; }
24552 # So? What about this header?
24553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24554 yes:no: )
24555 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24556 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24557 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
24558 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
24559 ac_header_preproc=yes
24561 no:yes:* )
24562 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
24563 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
24564 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
24565 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
24566 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
24567 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
24568 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
24569 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24570 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
24571 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
24572 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
24573 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
24574 ( cat <<\_ASBOX
24575 ## ------------------------------- ##
24576 ## Report this to www.asterisk.org ##
24577 ## ------------------------------- ##
24578 _ASBOX
24579 ) | sed "s/^/$as_me: WARNING: /" >&2
24581 esac
24582 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
24583 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
24584 if test "${ac_cv_header_stdlib_h+set}" = set; then
24585 echo $ECHO_N "(cached) $ECHO_C" >&6
24586 else
24587 ac_cv_header_stdlib_h=$ac_header_preproc
24589 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
24590 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
24593 if test $ac_cv_header_stdlib_h = yes; then
24594 STRTOLD_HEADER_FOUND=1
24595 else
24596 STRTOLD_HEADER_FOUND=0
24600 CPPFLAGS="${saved_cppflags}"
24602 if test "x${STRTOLD_HEADER_FOUND}" = "x0" ; then
24603 STRTOLD_LIB=""
24604 STRTOLD_INCLUDE=""
24605 else
24606 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24607 STRTOLD_LIB=""
24609 PBX_STRTOLD=1
24610 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24612 cat >>confdefs.h <<_ACEOF
24613 #define HAVE_STRTOLD 1
24614 _ACEOF
24617 cat >>confdefs.h <<_ACEOF
24618 #define HAVE_STRTOLD_VERSION
24619 _ACEOF
24626 if test "x${PBX_FLOORL}" != "x1" -a "${USE_FLOORL}" != "no"; then
24627 pbxlibdir=""
24628 # if --with-FLOORL=DIR has been specified, use it.
24629 if test "x${FLOORL_DIR}" != "x"; then
24630 if test -d ${FLOORL_DIR}/lib; then
24631 pbxlibdir="-L${FLOORL_DIR}/lib"
24632 else
24633 pbxlibdir="-L${FLOORL_DIR}"
24636 pbxfuncname="floorl"
24637 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24638 AST_FLOORL_FOUND=yes
24639 else
24640 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24641 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24642 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24643 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646 ac_check_lib_save_LIBS=$LIBS
24647 LIBS="-lm ${pbxlibdir} $LIBS"
24648 cat >conftest.$ac_ext <<_ACEOF
24649 /* confdefs.h. */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24655 /* Override any GCC internal prototype to avoid an error.
24656 Use char because int might match the return type of a GCC
24657 builtin and then its argument prototype would still apply. */
24658 #ifdef __cplusplus
24659 extern "C"
24660 #endif
24661 char ${pbxfuncname} ();
24663 main ()
24665 return ${pbxfuncname} ();
24667 return 0;
24669 _ACEOF
24670 rm -f conftest.$ac_objext conftest$ac_exeext
24671 if { (ac_try="$ac_link"
24672 case "(($ac_try" in
24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_link") 2>conftest.er1
24678 ac_status=$?
24679 grep -v '^ *+' conftest.er1 >conftest.err
24680 rm -f conftest.er1
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && {
24684 test -z "$ac_c_werror_flag" ||
24685 test ! -s conftest.err
24686 } && test -s conftest$ac_exeext &&
24687 $as_test_x conftest$ac_exeext; then
24688 eval "$as_ac_Lib=yes"
24689 else
24690 echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24693 eval "$as_ac_Lib=no"
24696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24697 conftest$ac_exeext conftest.$ac_ext
24698 LIBS=$ac_check_lib_save_LIBS
24700 ac_res=`eval echo '${'$as_ac_Lib'}'`
24701 { echo "$as_me:$LINENO: result: $ac_res" >&5
24702 echo "${ECHO_T}$ac_res" >&6; }
24703 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24704 AST_FLOORL_FOUND=yes
24705 else
24706 AST_FLOORL_FOUND=no
24711 # now check for the header.
24712 if test "${AST_FLOORL_FOUND}" = "yes"; then
24713 FLOORL_LIB="${pbxlibdir} -lm "
24714 # if --with-FLOORL=DIR has been specified, use it.
24715 if test "x${FLOORL_DIR}" != "x"; then
24716 FLOORL_INCLUDE="-I${FLOORL_DIR}/include"
24718 FLOORL_INCLUDE="${FLOORL_INCLUDE} "
24719 if test "x" = "x" ; then # no header, assume found
24720 FLOORL_HEADER_FOUND="1"
24721 else # check for the header
24722 saved_cppflags="${CPPFLAGS}"
24723 CPPFLAGS="${CPPFLAGS} ${FLOORL_INCLUDE} "
24724 if test "${ac_cv_header_+set}" = set; then
24725 { echo "$as_me:$LINENO: checking for " >&5
24726 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24727 if test "${ac_cv_header_+set}" = set; then
24728 echo $ECHO_N "(cached) $ECHO_C" >&6
24730 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24731 echo "${ECHO_T}$ac_cv_header_" >&6; }
24732 else
24733 # Is the header compilable?
24734 { echo "$as_me:$LINENO: checking usability" >&5
24735 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24736 cat >conftest.$ac_ext <<_ACEOF
24737 /* confdefs.h. */
24738 _ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h. */
24742 $ac_includes_default
24743 #include <>
24744 _ACEOF
24745 rm -f conftest.$ac_objext
24746 if { (ac_try="$ac_compile"
24747 case "(($ac_try" in
24748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749 *) ac_try_echo=$ac_try;;
24750 esac
24751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24752 (eval "$ac_compile") 2>conftest.er1
24753 ac_status=$?
24754 grep -v '^ *+' conftest.er1 >conftest.err
24755 rm -f conftest.er1
24756 cat conftest.err >&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); } && {
24759 test -z "$ac_c_werror_flag" ||
24760 test ! -s conftest.err
24761 } && test -s conftest.$ac_objext; then
24762 ac_header_compiler=yes
24763 else
24764 echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24767 ac_header_compiler=no
24770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24772 echo "${ECHO_T}$ac_header_compiler" >&6; }
24774 # Is the header present?
24775 { echo "$as_me:$LINENO: checking presence" >&5
24776 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24777 cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h. */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h. */
24783 #include <>
24784 _ACEOF
24785 if { (ac_try="$ac_cpp conftest.$ac_ext"
24786 case "(($ac_try" in
24787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788 *) ac_try_echo=$ac_try;;
24789 esac
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24792 ac_status=$?
24793 grep -v '^ *+' conftest.er1 >conftest.err
24794 rm -f conftest.er1
24795 cat conftest.err >&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } >/dev/null && {
24798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24799 test ! -s conftest.err
24800 }; then
24801 ac_header_preproc=yes
24802 else
24803 echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24806 ac_header_preproc=no
24809 rm -f conftest.err conftest.$ac_ext
24810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24811 echo "${ECHO_T}$ac_header_preproc" >&6; }
24813 # So? What about this header?
24814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24815 yes:no: )
24816 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24817 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24818 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24819 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24820 ac_header_preproc=yes
24822 no:yes:* )
24823 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24824 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24825 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24826 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24827 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24828 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24829 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24830 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24831 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24832 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24833 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24834 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24835 ( cat <<\_ASBOX
24836 ## ------------------------------- ##
24837 ## Report this to www.asterisk.org ##
24838 ## ------------------------------- ##
24839 _ASBOX
24840 ) | sed "s/^/$as_me: WARNING: /" >&2
24842 esac
24843 { echo "$as_me:$LINENO: checking for " >&5
24844 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24845 if test "${ac_cv_header_+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 else
24848 ac_cv_header_=$ac_header_preproc
24850 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24851 echo "${ECHO_T}$ac_cv_header_" >&6; }
24854 if test $ac_cv_header_ = yes; then
24855 FLOORL_HEADER_FOUND=1
24856 else
24857 FLOORL_HEADER_FOUND=0
24861 CPPFLAGS="${saved_cppflags}"
24863 if test "x${FLOORL_HEADER_FOUND}" = "x0" ; then
24864 FLOORL_LIB=""
24865 FLOORL_INCLUDE=""
24866 else
24867 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
24868 FLOORL_LIB=""
24870 PBX_FLOORL=1
24871 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
24873 cat >>confdefs.h <<_ACEOF
24874 #define HAVE_FLOORL 1
24875 _ACEOF
24878 cat >>confdefs.h <<_ACEOF
24879 #define HAVE_FLOORL_VERSION
24880 _ACEOF
24887 if test "x${PBX_CEILL}" != "x1" -a "${USE_CEILL}" != "no"; then
24888 pbxlibdir=""
24889 # if --with-CEILL=DIR has been specified, use it.
24890 if test "x${CEILL_DIR}" != "x"; then
24891 if test -d ${CEILL_DIR}/lib; then
24892 pbxlibdir="-L${CEILL_DIR}/lib"
24893 else
24894 pbxlibdir="-L${CEILL_DIR}"
24897 pbxfuncname="ceill"
24898 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
24899 AST_CEILL_FOUND=yes
24900 else
24901 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
24902 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
24903 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
24904 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24905 echo $ECHO_N "(cached) $ECHO_C" >&6
24906 else
24907 ac_check_lib_save_LIBS=$LIBS
24908 LIBS="-lm ${pbxlibdir} $LIBS"
24909 cat >conftest.$ac_ext <<_ACEOF
24910 /* confdefs.h. */
24911 _ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h. */
24916 /* Override any GCC internal prototype to avoid an error.
24917 Use char because int might match the return type of a GCC
24918 builtin and then its argument prototype would still apply. */
24919 #ifdef __cplusplus
24920 extern "C"
24921 #endif
24922 char ${pbxfuncname} ();
24924 main ()
24926 return ${pbxfuncname} ();
24928 return 0;
24930 _ACEOF
24931 rm -f conftest.$ac_objext conftest$ac_exeext
24932 if { (ac_try="$ac_link"
24933 case "(($ac_try" in
24934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935 *) ac_try_echo=$ac_try;;
24936 esac
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938 (eval "$ac_link") 2>conftest.er1
24939 ac_status=$?
24940 grep -v '^ *+' conftest.er1 >conftest.err
24941 rm -f conftest.er1
24942 cat conftest.err >&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } && {
24945 test -z "$ac_c_werror_flag" ||
24946 test ! -s conftest.err
24947 } && test -s conftest$ac_exeext &&
24948 $as_test_x conftest$ac_exeext; then
24949 eval "$as_ac_Lib=yes"
24950 else
24951 echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24954 eval "$as_ac_Lib=no"
24957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24958 conftest$ac_exeext conftest.$ac_ext
24959 LIBS=$ac_check_lib_save_LIBS
24961 ac_res=`eval echo '${'$as_ac_Lib'}'`
24962 { echo "$as_me:$LINENO: result: $ac_res" >&5
24963 echo "${ECHO_T}$ac_res" >&6; }
24964 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24965 AST_CEILL_FOUND=yes
24966 else
24967 AST_CEILL_FOUND=no
24972 # now check for the header.
24973 if test "${AST_CEILL_FOUND}" = "yes"; then
24974 CEILL_LIB="${pbxlibdir} -lm "
24975 # if --with-CEILL=DIR has been specified, use it.
24976 if test "x${CEILL_DIR}" != "x"; then
24977 CEILL_INCLUDE="-I${CEILL_DIR}/include"
24979 CEILL_INCLUDE="${CEILL_INCLUDE} "
24980 if test "x" = "x" ; then # no header, assume found
24981 CEILL_HEADER_FOUND="1"
24982 else # check for the header
24983 saved_cppflags="${CPPFLAGS}"
24984 CPPFLAGS="${CPPFLAGS} ${CEILL_INCLUDE} "
24985 if test "${ac_cv_header_+set}" = set; then
24986 { echo "$as_me:$LINENO: checking for " >&5
24987 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24988 if test "${ac_cv_header_+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24991 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24992 echo "${ECHO_T}$ac_cv_header_" >&6; }
24993 else
24994 # Is the header compilable?
24995 { echo "$as_me:$LINENO: checking usability" >&5
24996 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24997 cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h. */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 $ac_includes_default
25004 #include <>
25005 _ACEOF
25006 rm -f conftest.$ac_objext
25007 if { (ac_try="$ac_compile"
25008 case "(($ac_try" in
25009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010 *) ac_try_echo=$ac_try;;
25011 esac
25012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013 (eval "$ac_compile") 2>conftest.er1
25014 ac_status=$?
25015 grep -v '^ *+' conftest.er1 >conftest.err
25016 rm -f conftest.er1
25017 cat conftest.err >&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } && {
25020 test -z "$ac_c_werror_flag" ||
25021 test ! -s conftest.err
25022 } && test -s conftest.$ac_objext; then
25023 ac_header_compiler=yes
25024 else
25025 echo "$as_me: failed program was:" >&5
25026 sed 's/^/| /' conftest.$ac_ext >&5
25028 ac_header_compiler=no
25031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25033 echo "${ECHO_T}$ac_header_compiler" >&6; }
25035 # Is the header present?
25036 { echo "$as_me:$LINENO: checking presence" >&5
25037 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25038 cat >conftest.$ac_ext <<_ACEOF
25039 /* confdefs.h. */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25044 #include <>
25045 _ACEOF
25046 if { (ac_try="$ac_cpp conftest.$ac_ext"
25047 case "(($ac_try" in
25048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049 *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25053 ac_status=$?
25054 grep -v '^ *+' conftest.er1 >conftest.err
25055 rm -f conftest.er1
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } >/dev/null && {
25059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25060 test ! -s conftest.err
25061 }; then
25062 ac_header_preproc=yes
25063 else
25064 echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25067 ac_header_preproc=no
25070 rm -f conftest.err conftest.$ac_ext
25071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25072 echo "${ECHO_T}$ac_header_preproc" >&6; }
25074 # So? What about this header?
25075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25076 yes:no: )
25077 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25078 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25080 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25081 ac_header_preproc=yes
25083 no:yes:* )
25084 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25085 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25086 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25087 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25088 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25089 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25090 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25091 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25092 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25093 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25094 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25095 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25096 ( cat <<\_ASBOX
25097 ## ------------------------------- ##
25098 ## Report this to www.asterisk.org ##
25099 ## ------------------------------- ##
25100 _ASBOX
25101 ) | sed "s/^/$as_me: WARNING: /" >&2
25103 esac
25104 { echo "$as_me:$LINENO: checking for " >&5
25105 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25106 if test "${ac_cv_header_+set}" = set; then
25107 echo $ECHO_N "(cached) $ECHO_C" >&6
25108 else
25109 ac_cv_header_=$ac_header_preproc
25111 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25112 echo "${ECHO_T}$ac_cv_header_" >&6; }
25115 if test $ac_cv_header_ = yes; then
25116 CEILL_HEADER_FOUND=1
25117 else
25118 CEILL_HEADER_FOUND=0
25122 CPPFLAGS="${saved_cppflags}"
25124 if test "x${CEILL_HEADER_FOUND}" = "x0" ; then
25125 CEILL_LIB=""
25126 CEILL_INCLUDE=""
25127 else
25128 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25129 CEILL_LIB=""
25131 PBX_CEILL=1
25132 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25134 cat >>confdefs.h <<_ACEOF
25135 #define HAVE_CEILL 1
25136 _ACEOF
25139 cat >>confdefs.h <<_ACEOF
25140 #define HAVE_CEILL_VERSION
25141 _ACEOF
25148 if test "x${PBX_EXP2}" != "x1" -a "${USE_EXP2}" != "no"; then
25149 pbxlibdir=""
25150 # if --with-EXP2=DIR has been specified, use it.
25151 if test "x${EXP2_DIR}" != "x"; then
25152 if test -d ${EXP2_DIR}/lib; then
25153 pbxlibdir="-L${EXP2_DIR}/lib"
25154 else
25155 pbxlibdir="-L${EXP2_DIR}"
25158 pbxfuncname="exp2"
25159 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25160 AST_EXP2_FOUND=yes
25161 else
25162 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25163 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25164 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25165 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25166 echo $ECHO_N "(cached) $ECHO_C" >&6
25167 else
25168 ac_check_lib_save_LIBS=$LIBS
25169 LIBS="-lm ${pbxlibdir} $LIBS"
25170 cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h. */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25177 /* Override any GCC internal prototype to avoid an error.
25178 Use char because int might match the return type of a GCC
25179 builtin and then its argument prototype would still apply. */
25180 #ifdef __cplusplus
25181 extern "C"
25182 #endif
25183 char ${pbxfuncname} ();
25185 main ()
25187 return ${pbxfuncname} ();
25189 return 0;
25191 _ACEOF
25192 rm -f conftest.$ac_objext conftest$ac_exeext
25193 if { (ac_try="$ac_link"
25194 case "(($ac_try" in
25195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196 *) ac_try_echo=$ac_try;;
25197 esac
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199 (eval "$ac_link") 2>conftest.er1
25200 ac_status=$?
25201 grep -v '^ *+' conftest.er1 >conftest.err
25202 rm -f conftest.er1
25203 cat conftest.err >&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); } && {
25206 test -z "$ac_c_werror_flag" ||
25207 test ! -s conftest.err
25208 } && test -s conftest$ac_exeext &&
25209 $as_test_x conftest$ac_exeext; then
25210 eval "$as_ac_Lib=yes"
25211 else
25212 echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25215 eval "$as_ac_Lib=no"
25218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25219 conftest$ac_exeext conftest.$ac_ext
25220 LIBS=$ac_check_lib_save_LIBS
25222 ac_res=`eval echo '${'$as_ac_Lib'}'`
25223 { echo "$as_me:$LINENO: result: $ac_res" >&5
25224 echo "${ECHO_T}$ac_res" >&6; }
25225 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25226 AST_EXP2_FOUND=yes
25227 else
25228 AST_EXP2_FOUND=no
25233 # now check for the header.
25234 if test "${AST_EXP2_FOUND}" = "yes"; then
25235 EXP2_LIB="${pbxlibdir} -lm "
25236 # if --with-EXP2=DIR has been specified, use it.
25237 if test "x${EXP2_DIR}" != "x"; then
25238 EXP2_INCLUDE="-I${EXP2_DIR}/include"
25240 EXP2_INCLUDE="${EXP2_INCLUDE} "
25241 if test "x" = "x" ; then # no header, assume found
25242 EXP2_HEADER_FOUND="1"
25243 else # check for the header
25244 saved_cppflags="${CPPFLAGS}"
25245 CPPFLAGS="${CPPFLAGS} ${EXP2_INCLUDE} "
25246 if test "${ac_cv_header_+set}" = set; then
25247 { echo "$as_me:$LINENO: checking for " >&5
25248 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25249 if test "${ac_cv_header_+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25253 echo "${ECHO_T}$ac_cv_header_" >&6; }
25254 else
25255 # Is the header compilable?
25256 { echo "$as_me:$LINENO: checking usability" >&5
25257 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25258 cat >conftest.$ac_ext <<_ACEOF
25259 /* confdefs.h. */
25260 _ACEOF
25261 cat confdefs.h >>conftest.$ac_ext
25262 cat >>conftest.$ac_ext <<_ACEOF
25263 /* end confdefs.h. */
25264 $ac_includes_default
25265 #include <>
25266 _ACEOF
25267 rm -f conftest.$ac_objext
25268 if { (ac_try="$ac_compile"
25269 case "(($ac_try" in
25270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25271 *) ac_try_echo=$ac_try;;
25272 esac
25273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25274 (eval "$ac_compile") 2>conftest.er1
25275 ac_status=$?
25276 grep -v '^ *+' conftest.er1 >conftest.err
25277 rm -f conftest.er1
25278 cat conftest.err >&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } && {
25281 test -z "$ac_c_werror_flag" ||
25282 test ! -s conftest.err
25283 } && test -s conftest.$ac_objext; then
25284 ac_header_compiler=yes
25285 else
25286 echo "$as_me: failed program was:" >&5
25287 sed 's/^/| /' conftest.$ac_ext >&5
25289 ac_header_compiler=no
25292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25294 echo "${ECHO_T}$ac_header_compiler" >&6; }
25296 # Is the header present?
25297 { echo "$as_me:$LINENO: checking presence" >&5
25298 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25299 cat >conftest.$ac_ext <<_ACEOF
25300 /* confdefs.h. */
25301 _ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h. */
25305 #include <>
25306 _ACEOF
25307 if { (ac_try="$ac_cpp conftest.$ac_ext"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25314 ac_status=$?
25315 grep -v '^ *+' conftest.er1 >conftest.err
25316 rm -f conftest.er1
25317 cat conftest.err >&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } >/dev/null && {
25320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25321 test ! -s conftest.err
25322 }; then
25323 ac_header_preproc=yes
25324 else
25325 echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25328 ac_header_preproc=no
25331 rm -f conftest.err conftest.$ac_ext
25332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25333 echo "${ECHO_T}$ac_header_preproc" >&6; }
25335 # So? What about this header?
25336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25337 yes:no: )
25338 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25339 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25340 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25341 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25342 ac_header_preproc=yes
25344 no:yes:* )
25345 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25346 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25347 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25348 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25349 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25350 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25351 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25352 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25353 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25354 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25355 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25356 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25357 ( cat <<\_ASBOX
25358 ## ------------------------------- ##
25359 ## Report this to www.asterisk.org ##
25360 ## ------------------------------- ##
25361 _ASBOX
25362 ) | sed "s/^/$as_me: WARNING: /" >&2
25364 esac
25365 { echo "$as_me:$LINENO: checking for " >&5
25366 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25367 if test "${ac_cv_header_+set}" = set; then
25368 echo $ECHO_N "(cached) $ECHO_C" >&6
25369 else
25370 ac_cv_header_=$ac_header_preproc
25372 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25373 echo "${ECHO_T}$ac_cv_header_" >&6; }
25376 if test $ac_cv_header_ = yes; then
25377 EXP2_HEADER_FOUND=1
25378 else
25379 EXP2_HEADER_FOUND=0
25383 CPPFLAGS="${saved_cppflags}"
25385 if test "x${EXP2_HEADER_FOUND}" = "x0" ; then
25386 EXP2_LIB=""
25387 EXP2_INCLUDE=""
25388 else
25389 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25390 EXP2_LIB=""
25392 PBX_EXP2=1
25393 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25395 cat >>confdefs.h <<_ACEOF
25396 #define HAVE_EXP2 1
25397 _ACEOF
25400 cat >>confdefs.h <<_ACEOF
25401 #define HAVE_EXP2_VERSION
25402 _ACEOF
25409 if test "x${PBX_LOG2}" != "x1" -a "${USE_LOG2}" != "no"; then
25410 pbxlibdir=""
25411 # if --with-LOG2=DIR has been specified, use it.
25412 if test "x${LOG2_DIR}" != "x"; then
25413 if test -d ${LOG2_DIR}/lib; then
25414 pbxlibdir="-L${LOG2_DIR}/lib"
25415 else
25416 pbxlibdir="-L${LOG2_DIR}"
25419 pbxfuncname="log2"
25420 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25421 AST_LOG2_FOUND=yes
25422 else
25423 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25424 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25425 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25426 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429 ac_check_lib_save_LIBS=$LIBS
25430 LIBS="-lm ${pbxlibdir} $LIBS"
25431 cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h. */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h. */
25438 /* Override any GCC internal prototype to avoid an error.
25439 Use char because int might match the return type of a GCC
25440 builtin and then its argument prototype would still apply. */
25441 #ifdef __cplusplus
25442 extern "C"
25443 #endif
25444 char ${pbxfuncname} ();
25446 main ()
25448 return ${pbxfuncname} ();
25450 return 0;
25452 _ACEOF
25453 rm -f conftest.$ac_objext conftest$ac_exeext
25454 if { (ac_try="$ac_link"
25455 case "(($ac_try" in
25456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25457 *) ac_try_echo=$ac_try;;
25458 esac
25459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25460 (eval "$ac_link") 2>conftest.er1
25461 ac_status=$?
25462 grep -v '^ *+' conftest.er1 >conftest.err
25463 rm -f conftest.er1
25464 cat conftest.err >&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); } && {
25467 test -z "$ac_c_werror_flag" ||
25468 test ! -s conftest.err
25469 } && test -s conftest$ac_exeext &&
25470 $as_test_x conftest$ac_exeext; then
25471 eval "$as_ac_Lib=yes"
25472 else
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 eval "$as_ac_Lib=no"
25479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25480 conftest$ac_exeext conftest.$ac_ext
25481 LIBS=$ac_check_lib_save_LIBS
25483 ac_res=`eval echo '${'$as_ac_Lib'}'`
25484 { echo "$as_me:$LINENO: result: $ac_res" >&5
25485 echo "${ECHO_T}$ac_res" >&6; }
25486 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25487 AST_LOG2_FOUND=yes
25488 else
25489 AST_LOG2_FOUND=no
25494 # now check for the header.
25495 if test "${AST_LOG2_FOUND}" = "yes"; then
25496 LOG2_LIB="${pbxlibdir} -lm "
25497 # if --with-LOG2=DIR has been specified, use it.
25498 if test "x${LOG2_DIR}" != "x"; then
25499 LOG2_INCLUDE="-I${LOG2_DIR}/include"
25501 LOG2_INCLUDE="${LOG2_INCLUDE} "
25502 if test "x" = "x" ; then # no header, assume found
25503 LOG2_HEADER_FOUND="1"
25504 else # check for the header
25505 saved_cppflags="${CPPFLAGS}"
25506 CPPFLAGS="${CPPFLAGS} ${LOG2_INCLUDE} "
25507 if test "${ac_cv_header_+set}" = set; then
25508 { echo "$as_me:$LINENO: checking for " >&5
25509 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25510 if test "${ac_cv_header_+set}" = set; then
25511 echo $ECHO_N "(cached) $ECHO_C" >&6
25513 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25514 echo "${ECHO_T}$ac_cv_header_" >&6; }
25515 else
25516 # Is the header compilable?
25517 { echo "$as_me:$LINENO: checking usability" >&5
25518 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25519 cat >conftest.$ac_ext <<_ACEOF
25520 /* confdefs.h. */
25521 _ACEOF
25522 cat confdefs.h >>conftest.$ac_ext
25523 cat >>conftest.$ac_ext <<_ACEOF
25524 /* end confdefs.h. */
25525 $ac_includes_default
25526 #include <>
25527 _ACEOF
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25533 esac
25534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535 (eval "$ac_compile") 2>conftest.er1
25536 ac_status=$?
25537 grep -v '^ *+' conftest.er1 >conftest.err
25538 rm -f conftest.er1
25539 cat conftest.err >&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); } && {
25542 test -z "$ac_c_werror_flag" ||
25543 test ! -s conftest.err
25544 } && test -s conftest.$ac_objext; then
25545 ac_header_compiler=yes
25546 else
25547 echo "$as_me: failed program was:" >&5
25548 sed 's/^/| /' conftest.$ac_ext >&5
25550 ac_header_compiler=no
25553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25555 echo "${ECHO_T}$ac_header_compiler" >&6; }
25557 # Is the header present?
25558 { echo "$as_me:$LINENO: checking presence" >&5
25559 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25560 cat >conftest.$ac_ext <<_ACEOF
25561 /* confdefs.h. */
25562 _ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h. */
25566 #include <>
25567 _ACEOF
25568 if { (ac_try="$ac_cpp conftest.$ac_ext"
25569 case "(($ac_try" in
25570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25571 *) ac_try_echo=$ac_try;;
25572 esac
25573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25575 ac_status=$?
25576 grep -v '^ *+' conftest.er1 >conftest.err
25577 rm -f conftest.er1
25578 cat conftest.err >&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); } >/dev/null && {
25581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25582 test ! -s conftest.err
25583 }; then
25584 ac_header_preproc=yes
25585 else
25586 echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ac_header_preproc=no
25592 rm -f conftest.err conftest.$ac_ext
25593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25594 echo "${ECHO_T}$ac_header_preproc" >&6; }
25596 # So? What about this header?
25597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25598 yes:no: )
25599 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25600 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25601 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25602 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25603 ac_header_preproc=yes
25605 no:yes:* )
25606 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25607 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25608 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25609 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25610 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25611 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25612 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25613 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25614 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25615 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25616 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25617 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25618 ( cat <<\_ASBOX
25619 ## ------------------------------- ##
25620 ## Report this to www.asterisk.org ##
25621 ## ------------------------------- ##
25622 _ASBOX
25623 ) | sed "s/^/$as_me: WARNING: /" >&2
25625 esac
25626 { echo "$as_me:$LINENO: checking for " >&5
25627 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25628 if test "${ac_cv_header_+set}" = set; then
25629 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 else
25631 ac_cv_header_=$ac_header_preproc
25633 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25634 echo "${ECHO_T}$ac_cv_header_" >&6; }
25637 if test $ac_cv_header_ = yes; then
25638 LOG2_HEADER_FOUND=1
25639 else
25640 LOG2_HEADER_FOUND=0
25644 CPPFLAGS="${saved_cppflags}"
25646 if test "x${LOG2_HEADER_FOUND}" = "x0" ; then
25647 LOG2_LIB=""
25648 LOG2_INCLUDE=""
25649 else
25650 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25651 LOG2_LIB=""
25653 PBX_LOG2=1
25654 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25656 cat >>confdefs.h <<_ACEOF
25657 #define HAVE_LOG2 1
25658 _ACEOF
25661 cat >>confdefs.h <<_ACEOF
25662 #define HAVE_LOG2_VERSION
25663 _ACEOF
25670 if test "x${PBX_EXP10}" != "x1" -a "${USE_EXP10}" != "no"; then
25671 pbxlibdir=""
25672 # if --with-EXP10=DIR has been specified, use it.
25673 if test "x${EXP10_DIR}" != "x"; then
25674 if test -d ${EXP10_DIR}/lib; then
25675 pbxlibdir="-L${EXP10_DIR}/lib"
25676 else
25677 pbxlibdir="-L${EXP10_DIR}"
25680 pbxfuncname="exp10"
25681 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25682 AST_EXP10_FOUND=yes
25683 else
25684 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25685 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25686 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25687 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25688 echo $ECHO_N "(cached) $ECHO_C" >&6
25689 else
25690 ac_check_lib_save_LIBS=$LIBS
25691 LIBS="-lm ${pbxlibdir} $LIBS"
25692 cat >conftest.$ac_ext <<_ACEOF
25693 /* confdefs.h. */
25694 _ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h. */
25699 /* Override any GCC internal prototype to avoid an error.
25700 Use char because int might match the return type of a GCC
25701 builtin and then its argument prototype would still apply. */
25702 #ifdef __cplusplus
25703 extern "C"
25704 #endif
25705 char ${pbxfuncname} ();
25707 main ()
25709 return ${pbxfuncname} ();
25711 return 0;
25713 _ACEOF
25714 rm -f conftest.$ac_objext conftest$ac_exeext
25715 if { (ac_try="$ac_link"
25716 case "(($ac_try" in
25717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25718 *) ac_try_echo=$ac_try;;
25719 esac
25720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25721 (eval "$ac_link") 2>conftest.er1
25722 ac_status=$?
25723 grep -v '^ *+' conftest.er1 >conftest.err
25724 rm -f conftest.er1
25725 cat conftest.err >&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } && {
25728 test -z "$ac_c_werror_flag" ||
25729 test ! -s conftest.err
25730 } && test -s conftest$ac_exeext &&
25731 $as_test_x conftest$ac_exeext; then
25732 eval "$as_ac_Lib=yes"
25733 else
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 eval "$as_ac_Lib=no"
25740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25741 conftest$ac_exeext conftest.$ac_ext
25742 LIBS=$ac_check_lib_save_LIBS
25744 ac_res=`eval echo '${'$as_ac_Lib'}'`
25745 { echo "$as_me:$LINENO: result: $ac_res" >&5
25746 echo "${ECHO_T}$ac_res" >&6; }
25747 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
25748 AST_EXP10_FOUND=yes
25749 else
25750 AST_EXP10_FOUND=no
25755 # now check for the header.
25756 if test "${AST_EXP10_FOUND}" = "yes"; then
25757 EXP10_LIB="${pbxlibdir} -lm "
25758 # if --with-EXP10=DIR has been specified, use it.
25759 if test "x${EXP10_DIR}" != "x"; then
25760 EXP10_INCLUDE="-I${EXP10_DIR}/include"
25762 EXP10_INCLUDE="${EXP10_INCLUDE} "
25763 if test "x" = "x" ; then # no header, assume found
25764 EXP10_HEADER_FOUND="1"
25765 else # check for the header
25766 saved_cppflags="${CPPFLAGS}"
25767 CPPFLAGS="${CPPFLAGS} ${EXP10_INCLUDE} "
25768 if test "${ac_cv_header_+set}" = set; then
25769 { echo "$as_me:$LINENO: checking for " >&5
25770 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25771 if test "${ac_cv_header_+set}" = set; then
25772 echo $ECHO_N "(cached) $ECHO_C" >&6
25774 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25775 echo "${ECHO_T}$ac_cv_header_" >&6; }
25776 else
25777 # Is the header compilable?
25778 { echo "$as_me:$LINENO: checking usability" >&5
25779 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25780 cat >conftest.$ac_ext <<_ACEOF
25781 /* confdefs.h. */
25782 _ACEOF
25783 cat confdefs.h >>conftest.$ac_ext
25784 cat >>conftest.$ac_ext <<_ACEOF
25785 /* end confdefs.h. */
25786 $ac_includes_default
25787 #include <>
25788 _ACEOF
25789 rm -f conftest.$ac_objext
25790 if { (ac_try="$ac_compile"
25791 case "(($ac_try" in
25792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25793 *) ac_try_echo=$ac_try;;
25794 esac
25795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25796 (eval "$ac_compile") 2>conftest.er1
25797 ac_status=$?
25798 grep -v '^ *+' conftest.er1 >conftest.err
25799 rm -f conftest.er1
25800 cat conftest.err >&5
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); } && {
25803 test -z "$ac_c_werror_flag" ||
25804 test ! -s conftest.err
25805 } && test -s conftest.$ac_objext; then
25806 ac_header_compiler=yes
25807 else
25808 echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25811 ac_header_compiler=no
25814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25816 echo "${ECHO_T}$ac_header_compiler" >&6; }
25818 # Is the header present?
25819 { echo "$as_me:$LINENO: checking presence" >&5
25820 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25821 cat >conftest.$ac_ext <<_ACEOF
25822 /* confdefs.h. */
25823 _ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25827 #include <>
25828 _ACEOF
25829 if { (ac_try="$ac_cpp conftest.$ac_ext"
25830 case "(($ac_try" in
25831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832 *) ac_try_echo=$ac_try;;
25833 esac
25834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25836 ac_status=$?
25837 grep -v '^ *+' conftest.er1 >conftest.err
25838 rm -f conftest.er1
25839 cat conftest.err >&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } >/dev/null && {
25842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25843 test ! -s conftest.err
25844 }; then
25845 ac_header_preproc=yes
25846 else
25847 echo "$as_me: failed program was:" >&5
25848 sed 's/^/| /' conftest.$ac_ext >&5
25850 ac_header_preproc=no
25853 rm -f conftest.err conftest.$ac_ext
25854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25855 echo "${ECHO_T}$ac_header_preproc" >&6; }
25857 # So? What about this header?
25858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25859 yes:no: )
25860 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25861 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25862 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25863 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25864 ac_header_preproc=yes
25866 no:yes:* )
25867 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25868 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25869 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25870 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25871 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25872 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25873 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25874 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25875 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25876 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25877 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25878 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25879 ( cat <<\_ASBOX
25880 ## ------------------------------- ##
25881 ## Report this to www.asterisk.org ##
25882 ## ------------------------------- ##
25883 _ASBOX
25884 ) | sed "s/^/$as_me: WARNING: /" >&2
25886 esac
25887 { echo "$as_me:$LINENO: checking for " >&5
25888 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25889 if test "${ac_cv_header_+set}" = set; then
25890 echo $ECHO_N "(cached) $ECHO_C" >&6
25891 else
25892 ac_cv_header_=$ac_header_preproc
25894 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25895 echo "${ECHO_T}$ac_cv_header_" >&6; }
25898 if test $ac_cv_header_ = yes; then
25899 EXP10_HEADER_FOUND=1
25900 else
25901 EXP10_HEADER_FOUND=0
25905 CPPFLAGS="${saved_cppflags}"
25907 if test "x${EXP10_HEADER_FOUND}" = "x0" ; then
25908 EXP10_LIB=""
25909 EXP10_INCLUDE=""
25910 else
25911 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
25912 EXP10_LIB=""
25914 PBX_EXP10=1
25915 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
25917 cat >>confdefs.h <<_ACEOF
25918 #define HAVE_EXP10 1
25919 _ACEOF
25922 cat >>confdefs.h <<_ACEOF
25923 #define HAVE_EXP10_VERSION
25924 _ACEOF
25931 if test "x${PBX_LOG10}" != "x1" -a "${USE_LOG10}" != "no"; then
25932 pbxlibdir=""
25933 # if --with-LOG10=DIR has been specified, use it.
25934 if test "x${LOG10_DIR}" != "x"; then
25935 if test -d ${LOG10_DIR}/lib; then
25936 pbxlibdir="-L${LOG10_DIR}/lib"
25937 else
25938 pbxlibdir="-L${LOG10_DIR}"
25941 pbxfuncname="log10"
25942 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
25943 AST_LOG10_FOUND=yes
25944 else
25945 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
25946 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
25947 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
25948 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
25949 echo $ECHO_N "(cached) $ECHO_C" >&6
25950 else
25951 ac_check_lib_save_LIBS=$LIBS
25952 LIBS="-lm ${pbxlibdir} $LIBS"
25953 cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h. */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h. */
25960 /* Override any GCC internal prototype to avoid an error.
25961 Use char because int might match the return type of a GCC
25962 builtin and then its argument prototype would still apply. */
25963 #ifdef __cplusplus
25964 extern "C"
25965 #endif
25966 char ${pbxfuncname} ();
25968 main ()
25970 return ${pbxfuncname} ();
25972 return 0;
25974 _ACEOF
25975 rm -f conftest.$ac_objext conftest$ac_exeext
25976 if { (ac_try="$ac_link"
25977 case "(($ac_try" in
25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979 *) ac_try_echo=$ac_try;;
25980 esac
25981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25982 (eval "$ac_link") 2>conftest.er1
25983 ac_status=$?
25984 grep -v '^ *+' conftest.er1 >conftest.err
25985 rm -f conftest.er1
25986 cat conftest.err >&5
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } && {
25989 test -z "$ac_c_werror_flag" ||
25990 test ! -s conftest.err
25991 } && test -s conftest$ac_exeext &&
25992 $as_test_x conftest$ac_exeext; then
25993 eval "$as_ac_Lib=yes"
25994 else
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25998 eval "$as_ac_Lib=no"
26001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26002 conftest$ac_exeext conftest.$ac_ext
26003 LIBS=$ac_check_lib_save_LIBS
26005 ac_res=`eval echo '${'$as_ac_Lib'}'`
26006 { echo "$as_me:$LINENO: result: $ac_res" >&5
26007 echo "${ECHO_T}$ac_res" >&6; }
26008 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26009 AST_LOG10_FOUND=yes
26010 else
26011 AST_LOG10_FOUND=no
26016 # now check for the header.
26017 if test "${AST_LOG10_FOUND}" = "yes"; then
26018 LOG10_LIB="${pbxlibdir} -lm "
26019 # if --with-LOG10=DIR has been specified, use it.
26020 if test "x${LOG10_DIR}" != "x"; then
26021 LOG10_INCLUDE="-I${LOG10_DIR}/include"
26023 LOG10_INCLUDE="${LOG10_INCLUDE} "
26024 if test "x" = "x" ; then # no header, assume found
26025 LOG10_HEADER_FOUND="1"
26026 else # check for the header
26027 saved_cppflags="${CPPFLAGS}"
26028 CPPFLAGS="${CPPFLAGS} ${LOG10_INCLUDE} "
26029 if test "${ac_cv_header_+set}" = set; then
26030 { echo "$as_me:$LINENO: checking for " >&5
26031 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26032 if test "${ac_cv_header_+set}" = set; then
26033 echo $ECHO_N "(cached) $ECHO_C" >&6
26035 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26036 echo "${ECHO_T}$ac_cv_header_" >&6; }
26037 else
26038 # Is the header compilable?
26039 { echo "$as_me:$LINENO: checking usability" >&5
26040 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26041 cat >conftest.$ac_ext <<_ACEOF
26042 /* confdefs.h. */
26043 _ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h. */
26047 $ac_includes_default
26048 #include <>
26049 _ACEOF
26050 rm -f conftest.$ac_objext
26051 if { (ac_try="$ac_compile"
26052 case "(($ac_try" in
26053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054 *) ac_try_echo=$ac_try;;
26055 esac
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_compile") 2>conftest.er1
26058 ac_status=$?
26059 grep -v '^ *+' conftest.er1 >conftest.err
26060 rm -f conftest.er1
26061 cat conftest.err >&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest.$ac_objext; then
26067 ac_header_compiler=yes
26068 else
26069 echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26072 ac_header_compiler=no
26075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26077 echo "${ECHO_T}$ac_header_compiler" >&6; }
26079 # Is the header present?
26080 { echo "$as_me:$LINENO: checking presence" >&5
26081 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26082 cat >conftest.$ac_ext <<_ACEOF
26083 /* confdefs.h. */
26084 _ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088 #include <>
26089 _ACEOF
26090 if { (ac_try="$ac_cpp conftest.$ac_ext"
26091 case "(($ac_try" in
26092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093 *) ac_try_echo=$ac_try;;
26094 esac
26095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26097 ac_status=$?
26098 grep -v '^ *+' conftest.er1 >conftest.err
26099 rm -f conftest.er1
26100 cat conftest.err >&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } >/dev/null && {
26103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26104 test ! -s conftest.err
26105 }; then
26106 ac_header_preproc=yes
26107 else
26108 echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26111 ac_header_preproc=no
26114 rm -f conftest.err conftest.$ac_ext
26115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26116 echo "${ECHO_T}$ac_header_preproc" >&6; }
26118 # So? What about this header?
26119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26120 yes:no: )
26121 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26122 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26123 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26124 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26125 ac_header_preproc=yes
26127 no:yes:* )
26128 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26129 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26130 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26131 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26132 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26133 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26134 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26135 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26136 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26137 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26138 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26139 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26140 ( cat <<\_ASBOX
26141 ## ------------------------------- ##
26142 ## Report this to www.asterisk.org ##
26143 ## ------------------------------- ##
26144 _ASBOX
26145 ) | sed "s/^/$as_me: WARNING: /" >&2
26147 esac
26148 { echo "$as_me:$LINENO: checking for " >&5
26149 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26150 if test "${ac_cv_header_+set}" = set; then
26151 echo $ECHO_N "(cached) $ECHO_C" >&6
26152 else
26153 ac_cv_header_=$ac_header_preproc
26155 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26156 echo "${ECHO_T}$ac_cv_header_" >&6; }
26159 if test $ac_cv_header_ = yes; then
26160 LOG10_HEADER_FOUND=1
26161 else
26162 LOG10_HEADER_FOUND=0
26166 CPPFLAGS="${saved_cppflags}"
26168 if test "x${LOG10_HEADER_FOUND}" = "x0" ; then
26169 LOG10_LIB=""
26170 LOG10_INCLUDE=""
26171 else
26172 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26173 LOG10_LIB=""
26175 PBX_LOG10=1
26176 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26178 cat >>confdefs.h <<_ACEOF
26179 #define HAVE_LOG10 1
26180 _ACEOF
26183 cat >>confdefs.h <<_ACEOF
26184 #define HAVE_LOG10_VERSION
26185 _ACEOF
26192 if test "x${PBX_SIN}" != "x1" -a "${USE_SIN}" != "no"; then
26193 pbxlibdir=""
26194 # if --with-SIN=DIR has been specified, use it.
26195 if test "x${SIN_DIR}" != "x"; then
26196 if test -d ${SIN_DIR}/lib; then
26197 pbxlibdir="-L${SIN_DIR}/lib"
26198 else
26199 pbxlibdir="-L${SIN_DIR}"
26202 pbxfuncname="sin"
26203 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26204 AST_SIN_FOUND=yes
26205 else
26206 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26207 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26208 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26209 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26210 echo $ECHO_N "(cached) $ECHO_C" >&6
26211 else
26212 ac_check_lib_save_LIBS=$LIBS
26213 LIBS="-lm ${pbxlibdir} $LIBS"
26214 cat >conftest.$ac_ext <<_ACEOF
26215 /* confdefs.h. */
26216 _ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h. */
26221 /* Override any GCC internal prototype to avoid an error.
26222 Use char because int might match the return type of a GCC
26223 builtin and then its argument prototype would still apply. */
26224 #ifdef __cplusplus
26225 extern "C"
26226 #endif
26227 char ${pbxfuncname} ();
26229 main ()
26231 return ${pbxfuncname} ();
26233 return 0;
26235 _ACEOF
26236 rm -f conftest.$ac_objext conftest$ac_exeext
26237 if { (ac_try="$ac_link"
26238 case "(($ac_try" in
26239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26240 *) ac_try_echo=$ac_try;;
26241 esac
26242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26243 (eval "$ac_link") 2>conftest.er1
26244 ac_status=$?
26245 grep -v '^ *+' conftest.er1 >conftest.err
26246 rm -f conftest.er1
26247 cat conftest.err >&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } && {
26250 test -z "$ac_c_werror_flag" ||
26251 test ! -s conftest.err
26252 } && test -s conftest$ac_exeext &&
26253 $as_test_x conftest$ac_exeext; then
26254 eval "$as_ac_Lib=yes"
26255 else
26256 echo "$as_me: failed program was:" >&5
26257 sed 's/^/| /' conftest.$ac_ext >&5
26259 eval "$as_ac_Lib=no"
26262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26263 conftest$ac_exeext conftest.$ac_ext
26264 LIBS=$ac_check_lib_save_LIBS
26266 ac_res=`eval echo '${'$as_ac_Lib'}'`
26267 { echo "$as_me:$LINENO: result: $ac_res" >&5
26268 echo "${ECHO_T}$ac_res" >&6; }
26269 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26270 AST_SIN_FOUND=yes
26271 else
26272 AST_SIN_FOUND=no
26277 # now check for the header.
26278 if test "${AST_SIN_FOUND}" = "yes"; then
26279 SIN_LIB="${pbxlibdir} -lm "
26280 # if --with-SIN=DIR has been specified, use it.
26281 if test "x${SIN_DIR}" != "x"; then
26282 SIN_INCLUDE="-I${SIN_DIR}/include"
26284 SIN_INCLUDE="${SIN_INCLUDE} "
26285 if test "x" = "x" ; then # no header, assume found
26286 SIN_HEADER_FOUND="1"
26287 else # check for the header
26288 saved_cppflags="${CPPFLAGS}"
26289 CPPFLAGS="${CPPFLAGS} ${SIN_INCLUDE} "
26290 if test "${ac_cv_header_+set}" = set; then
26291 { echo "$as_me:$LINENO: checking for " >&5
26292 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26293 if test "${ac_cv_header_+set}" = set; then
26294 echo $ECHO_N "(cached) $ECHO_C" >&6
26296 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26297 echo "${ECHO_T}$ac_cv_header_" >&6; }
26298 else
26299 # Is the header compilable?
26300 { echo "$as_me:$LINENO: checking usability" >&5
26301 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26302 cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h. */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26308 $ac_includes_default
26309 #include <>
26310 _ACEOF
26311 rm -f conftest.$ac_objext
26312 if { (ac_try="$ac_compile"
26313 case "(($ac_try" in
26314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26315 *) ac_try_echo=$ac_try;;
26316 esac
26317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26318 (eval "$ac_compile") 2>conftest.er1
26319 ac_status=$?
26320 grep -v '^ *+' conftest.er1 >conftest.err
26321 rm -f conftest.er1
26322 cat conftest.err >&5
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); } && {
26325 test -z "$ac_c_werror_flag" ||
26326 test ! -s conftest.err
26327 } && test -s conftest.$ac_objext; then
26328 ac_header_compiler=yes
26329 else
26330 echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26333 ac_header_compiler=no
26336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26338 echo "${ECHO_T}$ac_header_compiler" >&6; }
26340 # Is the header present?
26341 { echo "$as_me:$LINENO: checking presence" >&5
26342 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26343 cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h. */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h. */
26349 #include <>
26350 _ACEOF
26351 if { (ac_try="$ac_cpp conftest.$ac_ext"
26352 case "(($ac_try" in
26353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26354 *) ac_try_echo=$ac_try;;
26355 esac
26356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26358 ac_status=$?
26359 grep -v '^ *+' conftest.er1 >conftest.err
26360 rm -f conftest.er1
26361 cat conftest.err >&5
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); } >/dev/null && {
26364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26365 test ! -s conftest.err
26366 }; then
26367 ac_header_preproc=yes
26368 else
26369 echo "$as_me: failed program was:" >&5
26370 sed 's/^/| /' conftest.$ac_ext >&5
26372 ac_header_preproc=no
26375 rm -f conftest.err conftest.$ac_ext
26376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26377 echo "${ECHO_T}$ac_header_preproc" >&6; }
26379 # So? What about this header?
26380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26381 yes:no: )
26382 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26383 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26385 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26386 ac_header_preproc=yes
26388 no:yes:* )
26389 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26390 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26391 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26392 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26393 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26394 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26395 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26396 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26397 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26398 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26399 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26400 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26401 ( cat <<\_ASBOX
26402 ## ------------------------------- ##
26403 ## Report this to www.asterisk.org ##
26404 ## ------------------------------- ##
26405 _ASBOX
26406 ) | sed "s/^/$as_me: WARNING: /" >&2
26408 esac
26409 { echo "$as_me:$LINENO: checking for " >&5
26410 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26411 if test "${ac_cv_header_+set}" = set; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414 ac_cv_header_=$ac_header_preproc
26416 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26417 echo "${ECHO_T}$ac_cv_header_" >&6; }
26420 if test $ac_cv_header_ = yes; then
26421 SIN_HEADER_FOUND=1
26422 else
26423 SIN_HEADER_FOUND=0
26427 CPPFLAGS="${saved_cppflags}"
26429 if test "x${SIN_HEADER_FOUND}" = "x0" ; then
26430 SIN_LIB=""
26431 SIN_INCLUDE=""
26432 else
26433 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26434 SIN_LIB=""
26436 PBX_SIN=1
26437 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26439 cat >>confdefs.h <<_ACEOF
26440 #define HAVE_SIN 1
26441 _ACEOF
26444 cat >>confdefs.h <<_ACEOF
26445 #define HAVE_SIN_VERSION
26446 _ACEOF
26453 if test "x${PBX_COS}" != "x1" -a "${USE_COS}" != "no"; then
26454 pbxlibdir=""
26455 # if --with-COS=DIR has been specified, use it.
26456 if test "x${COS_DIR}" != "x"; then
26457 if test -d ${COS_DIR}/lib; then
26458 pbxlibdir="-L${COS_DIR}/lib"
26459 else
26460 pbxlibdir="-L${COS_DIR}"
26463 pbxfuncname="cos"
26464 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26465 AST_COS_FOUND=yes
26466 else
26467 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26468 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26469 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26470 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26471 echo $ECHO_N "(cached) $ECHO_C" >&6
26472 else
26473 ac_check_lib_save_LIBS=$LIBS
26474 LIBS="-lm ${pbxlibdir} $LIBS"
26475 cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h. */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h. */
26482 /* Override any GCC internal prototype to avoid an error.
26483 Use char because int might match the return type of a GCC
26484 builtin and then its argument prototype would still apply. */
26485 #ifdef __cplusplus
26486 extern "C"
26487 #endif
26488 char ${pbxfuncname} ();
26490 main ()
26492 return ${pbxfuncname} ();
26494 return 0;
26496 _ACEOF
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (ac_try="$ac_link"
26499 case "(($ac_try" in
26500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501 *) ac_try_echo=$ac_try;;
26502 esac
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504 (eval "$ac_link") 2>conftest.er1
26505 ac_status=$?
26506 grep -v '^ *+' conftest.er1 >conftest.err
26507 rm -f conftest.er1
26508 cat conftest.err >&5
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } && {
26511 test -z "$ac_c_werror_flag" ||
26512 test ! -s conftest.err
26513 } && test -s conftest$ac_exeext &&
26514 $as_test_x conftest$ac_exeext; then
26515 eval "$as_ac_Lib=yes"
26516 else
26517 echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26520 eval "$as_ac_Lib=no"
26523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26524 conftest$ac_exeext conftest.$ac_ext
26525 LIBS=$ac_check_lib_save_LIBS
26527 ac_res=`eval echo '${'$as_ac_Lib'}'`
26528 { echo "$as_me:$LINENO: result: $ac_res" >&5
26529 echo "${ECHO_T}$ac_res" >&6; }
26530 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26531 AST_COS_FOUND=yes
26532 else
26533 AST_COS_FOUND=no
26538 # now check for the header.
26539 if test "${AST_COS_FOUND}" = "yes"; then
26540 COS_LIB="${pbxlibdir} -lm "
26541 # if --with-COS=DIR has been specified, use it.
26542 if test "x${COS_DIR}" != "x"; then
26543 COS_INCLUDE="-I${COS_DIR}/include"
26545 COS_INCLUDE="${COS_INCLUDE} "
26546 if test "x" = "x" ; then # no header, assume found
26547 COS_HEADER_FOUND="1"
26548 else # check for the header
26549 saved_cppflags="${CPPFLAGS}"
26550 CPPFLAGS="${CPPFLAGS} ${COS_INCLUDE} "
26551 if test "${ac_cv_header_+set}" = set; then
26552 { echo "$as_me:$LINENO: checking for " >&5
26553 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26554 if test "${ac_cv_header_+set}" = set; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26558 echo "${ECHO_T}$ac_cv_header_" >&6; }
26559 else
26560 # Is the header compilable?
26561 { echo "$as_me:$LINENO: checking usability" >&5
26562 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26563 cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h. */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26569 $ac_includes_default
26570 #include <>
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_compile") 2>conftest.er1
26580 ac_status=$?
26581 grep -v '^ *+' conftest.er1 >conftest.err
26582 rm -f conftest.er1
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } && {
26586 test -z "$ac_c_werror_flag" ||
26587 test ! -s conftest.err
26588 } && test -s conftest.$ac_objext; then
26589 ac_header_compiler=yes
26590 else
26591 echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26594 ac_header_compiler=no
26597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26599 echo "${ECHO_T}$ac_header_compiler" >&6; }
26601 # Is the header present?
26602 { echo "$as_me:$LINENO: checking presence" >&5
26603 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26604 cat >conftest.$ac_ext <<_ACEOF
26605 /* confdefs.h. */
26606 _ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h. */
26610 #include <>
26611 _ACEOF
26612 if { (ac_try="$ac_cpp conftest.$ac_ext"
26613 case "(($ac_try" in
26614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26615 *) ac_try_echo=$ac_try;;
26616 esac
26617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26619 ac_status=$?
26620 grep -v '^ *+' conftest.er1 >conftest.err
26621 rm -f conftest.er1
26622 cat conftest.err >&5
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); } >/dev/null && {
26625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26626 test ! -s conftest.err
26627 }; then
26628 ac_header_preproc=yes
26629 else
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 ac_header_preproc=no
26636 rm -f conftest.err conftest.$ac_ext
26637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26638 echo "${ECHO_T}$ac_header_preproc" >&6; }
26640 # So? What about this header?
26641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26642 yes:no: )
26643 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26644 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26646 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26647 ac_header_preproc=yes
26649 no:yes:* )
26650 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26651 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26652 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26653 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26654 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26655 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26656 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26657 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26658 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26659 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26660 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26661 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26662 ( cat <<\_ASBOX
26663 ## ------------------------------- ##
26664 ## Report this to www.asterisk.org ##
26665 ## ------------------------------- ##
26666 _ASBOX
26667 ) | sed "s/^/$as_me: WARNING: /" >&2
26669 esac
26670 { echo "$as_me:$LINENO: checking for " >&5
26671 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26672 if test "${ac_cv_header_+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675 ac_cv_header_=$ac_header_preproc
26677 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26678 echo "${ECHO_T}$ac_cv_header_" >&6; }
26681 if test $ac_cv_header_ = yes; then
26682 COS_HEADER_FOUND=1
26683 else
26684 COS_HEADER_FOUND=0
26688 CPPFLAGS="${saved_cppflags}"
26690 if test "x${COS_HEADER_FOUND}" = "x0" ; then
26691 COS_LIB=""
26692 COS_INCLUDE=""
26693 else
26694 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26695 COS_LIB=""
26697 PBX_COS=1
26698 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26700 cat >>confdefs.h <<_ACEOF
26701 #define HAVE_COS 1
26702 _ACEOF
26705 cat >>confdefs.h <<_ACEOF
26706 #define HAVE_COS_VERSION
26707 _ACEOF
26714 if test "x${PBX_TAN}" != "x1" -a "${USE_TAN}" != "no"; then
26715 pbxlibdir=""
26716 # if --with-TAN=DIR has been specified, use it.
26717 if test "x${TAN_DIR}" != "x"; then
26718 if test -d ${TAN_DIR}/lib; then
26719 pbxlibdir="-L${TAN_DIR}/lib"
26720 else
26721 pbxlibdir="-L${TAN_DIR}"
26724 pbxfuncname="tan"
26725 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26726 AST_TAN_FOUND=yes
26727 else
26728 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26729 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26730 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26731 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26732 echo $ECHO_N "(cached) $ECHO_C" >&6
26733 else
26734 ac_check_lib_save_LIBS=$LIBS
26735 LIBS="-lm ${pbxlibdir} $LIBS"
26736 cat >conftest.$ac_ext <<_ACEOF
26737 /* confdefs.h. */
26738 _ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h. */
26743 /* Override any GCC internal prototype to avoid an error.
26744 Use char because int might match the return type of a GCC
26745 builtin and then its argument prototype would still apply. */
26746 #ifdef __cplusplus
26747 extern "C"
26748 #endif
26749 char ${pbxfuncname} ();
26751 main ()
26753 return ${pbxfuncname} ();
26755 return 0;
26757 _ACEOF
26758 rm -f conftest.$ac_objext conftest$ac_exeext
26759 if { (ac_try="$ac_link"
26760 case "(($ac_try" in
26761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762 *) ac_try_echo=$ac_try;;
26763 esac
26764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26765 (eval "$ac_link") 2>conftest.er1
26766 ac_status=$?
26767 grep -v '^ *+' conftest.er1 >conftest.err
26768 rm -f conftest.er1
26769 cat conftest.err >&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); } && {
26772 test -z "$ac_c_werror_flag" ||
26773 test ! -s conftest.err
26774 } && test -s conftest$ac_exeext &&
26775 $as_test_x conftest$ac_exeext; then
26776 eval "$as_ac_Lib=yes"
26777 else
26778 echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26781 eval "$as_ac_Lib=no"
26784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26785 conftest$ac_exeext conftest.$ac_ext
26786 LIBS=$ac_check_lib_save_LIBS
26788 ac_res=`eval echo '${'$as_ac_Lib'}'`
26789 { echo "$as_me:$LINENO: result: $ac_res" >&5
26790 echo "${ECHO_T}$ac_res" >&6; }
26791 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26792 AST_TAN_FOUND=yes
26793 else
26794 AST_TAN_FOUND=no
26799 # now check for the header.
26800 if test "${AST_TAN_FOUND}" = "yes"; then
26801 TAN_LIB="${pbxlibdir} -lm "
26802 # if --with-TAN=DIR has been specified, use it.
26803 if test "x${TAN_DIR}" != "x"; then
26804 TAN_INCLUDE="-I${TAN_DIR}/include"
26806 TAN_INCLUDE="${TAN_INCLUDE} "
26807 if test "x" = "x" ; then # no header, assume found
26808 TAN_HEADER_FOUND="1"
26809 else # check for the header
26810 saved_cppflags="${CPPFLAGS}"
26811 CPPFLAGS="${CPPFLAGS} ${TAN_INCLUDE} "
26812 if test "${ac_cv_header_+set}" = set; then
26813 { echo "$as_me:$LINENO: checking for " >&5
26814 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26815 if test "${ac_cv_header_+set}" = set; then
26816 echo $ECHO_N "(cached) $ECHO_C" >&6
26818 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26819 echo "${ECHO_T}$ac_cv_header_" >&6; }
26820 else
26821 # Is the header compilable?
26822 { echo "$as_me:$LINENO: checking usability" >&5
26823 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
26824 cat >conftest.$ac_ext <<_ACEOF
26825 /* confdefs.h. */
26826 _ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h. */
26830 $ac_includes_default
26831 #include <>
26832 _ACEOF
26833 rm -f conftest.$ac_objext
26834 if { (ac_try="$ac_compile"
26835 case "(($ac_try" in
26836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837 *) ac_try_echo=$ac_try;;
26838 esac
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840 (eval "$ac_compile") 2>conftest.er1
26841 ac_status=$?
26842 grep -v '^ *+' conftest.er1 >conftest.err
26843 rm -f conftest.er1
26844 cat conftest.err >&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } && {
26847 test -z "$ac_c_werror_flag" ||
26848 test ! -s conftest.err
26849 } && test -s conftest.$ac_objext; then
26850 ac_header_compiler=yes
26851 else
26852 echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26855 ac_header_compiler=no
26858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26860 echo "${ECHO_T}$ac_header_compiler" >&6; }
26862 # Is the header present?
26863 { echo "$as_me:$LINENO: checking presence" >&5
26864 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
26865 cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h. */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26871 #include <>
26872 _ACEOF
26873 if { (ac_try="$ac_cpp conftest.$ac_ext"
26874 case "(($ac_try" in
26875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876 *) ac_try_echo=$ac_try;;
26877 esac
26878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26880 ac_status=$?
26881 grep -v '^ *+' conftest.er1 >conftest.err
26882 rm -f conftest.er1
26883 cat conftest.err >&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } >/dev/null && {
26886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26887 test ! -s conftest.err
26888 }; then
26889 ac_header_preproc=yes
26890 else
26891 echo "$as_me: failed program was:" >&5
26892 sed 's/^/| /' conftest.$ac_ext >&5
26894 ac_header_preproc=no
26897 rm -f conftest.err conftest.$ac_ext
26898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26899 echo "${ECHO_T}$ac_header_preproc" >&6; }
26901 # So? What about this header?
26902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26903 yes:no: )
26904 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
26905 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
26906 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
26907 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
26908 ac_header_preproc=yes
26910 no:yes:* )
26911 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
26912 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
26913 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
26914 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
26915 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
26916 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
26917 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
26918 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
26919 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
26920 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
26921 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
26922 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
26923 ( cat <<\_ASBOX
26924 ## ------------------------------- ##
26925 ## Report this to www.asterisk.org ##
26926 ## ------------------------------- ##
26927 _ASBOX
26928 ) | sed "s/^/$as_me: WARNING: /" >&2
26930 esac
26931 { echo "$as_me:$LINENO: checking for " >&5
26932 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
26933 if test "${ac_cv_header_+set}" = set; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26935 else
26936 ac_cv_header_=$ac_header_preproc
26938 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
26939 echo "${ECHO_T}$ac_cv_header_" >&6; }
26942 if test $ac_cv_header_ = yes; then
26943 TAN_HEADER_FOUND=1
26944 else
26945 TAN_HEADER_FOUND=0
26949 CPPFLAGS="${saved_cppflags}"
26951 if test "x${TAN_HEADER_FOUND}" = "x0" ; then
26952 TAN_LIB=""
26953 TAN_INCLUDE=""
26954 else
26955 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
26956 TAN_LIB=""
26958 PBX_TAN=1
26959 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
26961 cat >>confdefs.h <<_ACEOF
26962 #define HAVE_TAN 1
26963 _ACEOF
26966 cat >>confdefs.h <<_ACEOF
26967 #define HAVE_TAN_VERSION
26968 _ACEOF
26975 if test "x${PBX_ASIN}" != "x1" -a "${USE_ASIN}" != "no"; then
26976 pbxlibdir=""
26977 # if --with-ASIN=DIR has been specified, use it.
26978 if test "x${ASIN_DIR}" != "x"; then
26979 if test -d ${ASIN_DIR}/lib; then
26980 pbxlibdir="-L${ASIN_DIR}/lib"
26981 else
26982 pbxlibdir="-L${ASIN_DIR}"
26985 pbxfuncname="asin"
26986 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
26987 AST_ASIN_FOUND=yes
26988 else
26989 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
26990 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
26991 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
26992 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26993 echo $ECHO_N "(cached) $ECHO_C" >&6
26994 else
26995 ac_check_lib_save_LIBS=$LIBS
26996 LIBS="-lm ${pbxlibdir} $LIBS"
26997 cat >conftest.$ac_ext <<_ACEOF
26998 /* confdefs.h. */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h. */
27004 /* Override any GCC internal prototype to avoid an error.
27005 Use char because int might match the return type of a GCC
27006 builtin and then its argument prototype would still apply. */
27007 #ifdef __cplusplus
27008 extern "C"
27009 #endif
27010 char ${pbxfuncname} ();
27012 main ()
27014 return ${pbxfuncname} ();
27016 return 0;
27018 _ACEOF
27019 rm -f conftest.$ac_objext conftest$ac_exeext
27020 if { (ac_try="$ac_link"
27021 case "(($ac_try" in
27022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023 *) ac_try_echo=$ac_try;;
27024 esac
27025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026 (eval "$ac_link") 2>conftest.er1
27027 ac_status=$?
27028 grep -v '^ *+' conftest.er1 >conftest.err
27029 rm -f conftest.er1
27030 cat conftest.err >&5
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); } && {
27033 test -z "$ac_c_werror_flag" ||
27034 test ! -s conftest.err
27035 } && test -s conftest$ac_exeext &&
27036 $as_test_x conftest$ac_exeext; then
27037 eval "$as_ac_Lib=yes"
27038 else
27039 echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27042 eval "$as_ac_Lib=no"
27045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27046 conftest$ac_exeext conftest.$ac_ext
27047 LIBS=$ac_check_lib_save_LIBS
27049 ac_res=`eval echo '${'$as_ac_Lib'}'`
27050 { echo "$as_me:$LINENO: result: $ac_res" >&5
27051 echo "${ECHO_T}$ac_res" >&6; }
27052 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27053 AST_ASIN_FOUND=yes
27054 else
27055 AST_ASIN_FOUND=no
27060 # now check for the header.
27061 if test "${AST_ASIN_FOUND}" = "yes"; then
27062 ASIN_LIB="${pbxlibdir} -lm "
27063 # if --with-ASIN=DIR has been specified, use it.
27064 if test "x${ASIN_DIR}" != "x"; then
27065 ASIN_INCLUDE="-I${ASIN_DIR}/include"
27067 ASIN_INCLUDE="${ASIN_INCLUDE} "
27068 if test "x" = "x" ; then # no header, assume found
27069 ASIN_HEADER_FOUND="1"
27070 else # check for the header
27071 saved_cppflags="${CPPFLAGS}"
27072 CPPFLAGS="${CPPFLAGS} ${ASIN_INCLUDE} "
27073 if test "${ac_cv_header_+set}" = set; then
27074 { echo "$as_me:$LINENO: checking for " >&5
27075 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27076 if test "${ac_cv_header_+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27079 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27080 echo "${ECHO_T}$ac_cv_header_" >&6; }
27081 else
27082 # Is the header compilable?
27083 { echo "$as_me:$LINENO: checking usability" >&5
27084 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27085 cat >conftest.$ac_ext <<_ACEOF
27086 /* confdefs.h. */
27087 _ACEOF
27088 cat confdefs.h >>conftest.$ac_ext
27089 cat >>conftest.$ac_ext <<_ACEOF
27090 /* end confdefs.h. */
27091 $ac_includes_default
27092 #include <>
27093 _ACEOF
27094 rm -f conftest.$ac_objext
27095 if { (ac_try="$ac_compile"
27096 case "(($ac_try" in
27097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27099 esac
27100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_compile") 2>conftest.er1
27102 ac_status=$?
27103 grep -v '^ *+' conftest.er1 >conftest.err
27104 rm -f conftest.er1
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } && {
27108 test -z "$ac_c_werror_flag" ||
27109 test ! -s conftest.err
27110 } && test -s conftest.$ac_objext; then
27111 ac_header_compiler=yes
27112 else
27113 echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27116 ac_header_compiler=no
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27121 echo "${ECHO_T}$ac_header_compiler" >&6; }
27123 # Is the header present?
27124 { echo "$as_me:$LINENO: checking presence" >&5
27125 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27126 cat >conftest.$ac_ext <<_ACEOF
27127 /* confdefs.h. */
27128 _ACEOF
27129 cat confdefs.h >>conftest.$ac_ext
27130 cat >>conftest.$ac_ext <<_ACEOF
27131 /* end confdefs.h. */
27132 #include <>
27133 _ACEOF
27134 if { (ac_try="$ac_cpp conftest.$ac_ext"
27135 case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27138 esac
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27141 ac_status=$?
27142 grep -v '^ *+' conftest.er1 >conftest.err
27143 rm -f conftest.er1
27144 cat conftest.err >&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } >/dev/null && {
27147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 }; then
27150 ac_header_preproc=yes
27151 else
27152 echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155 ac_header_preproc=no
27158 rm -f conftest.err conftest.$ac_ext
27159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27160 echo "${ECHO_T}$ac_header_preproc" >&6; }
27162 # So? What about this header?
27163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27164 yes:no: )
27165 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27166 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27167 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27168 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27169 ac_header_preproc=yes
27171 no:yes:* )
27172 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27173 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27174 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27175 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27176 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27177 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27178 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27179 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27180 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27181 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27182 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27183 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27184 ( cat <<\_ASBOX
27185 ## ------------------------------- ##
27186 ## Report this to www.asterisk.org ##
27187 ## ------------------------------- ##
27188 _ASBOX
27189 ) | sed "s/^/$as_me: WARNING: /" >&2
27191 esac
27192 { echo "$as_me:$LINENO: checking for " >&5
27193 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27194 if test "${ac_cv_header_+set}" = set; then
27195 echo $ECHO_N "(cached) $ECHO_C" >&6
27196 else
27197 ac_cv_header_=$ac_header_preproc
27199 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27200 echo "${ECHO_T}$ac_cv_header_" >&6; }
27203 if test $ac_cv_header_ = yes; then
27204 ASIN_HEADER_FOUND=1
27205 else
27206 ASIN_HEADER_FOUND=0
27210 CPPFLAGS="${saved_cppflags}"
27212 if test "x${ASIN_HEADER_FOUND}" = "x0" ; then
27213 ASIN_LIB=""
27214 ASIN_INCLUDE=""
27215 else
27216 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27217 ASIN_LIB=""
27219 PBX_ASIN=1
27220 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27222 cat >>confdefs.h <<_ACEOF
27223 #define HAVE_ASIN 1
27224 _ACEOF
27227 cat >>confdefs.h <<_ACEOF
27228 #define HAVE_ASIN_VERSION
27229 _ACEOF
27236 if test "x${PBX_ACOS}" != "x1" -a "${USE_ACOS}" != "no"; then
27237 pbxlibdir=""
27238 # if --with-ACOS=DIR has been specified, use it.
27239 if test "x${ACOS_DIR}" != "x"; then
27240 if test -d ${ACOS_DIR}/lib; then
27241 pbxlibdir="-L${ACOS_DIR}/lib"
27242 else
27243 pbxlibdir="-L${ACOS_DIR}"
27246 pbxfuncname="acos"
27247 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27248 AST_ACOS_FOUND=yes
27249 else
27250 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27251 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27252 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27253 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27255 else
27256 ac_check_lib_save_LIBS=$LIBS
27257 LIBS="-lm ${pbxlibdir} $LIBS"
27258 cat >conftest.$ac_ext <<_ACEOF
27259 /* confdefs.h. */
27260 _ACEOF
27261 cat confdefs.h >>conftest.$ac_ext
27262 cat >>conftest.$ac_ext <<_ACEOF
27263 /* end confdefs.h. */
27265 /* Override any GCC internal prototype to avoid an error.
27266 Use char because int might match the return type of a GCC
27267 builtin and then its argument prototype would still apply. */
27268 #ifdef __cplusplus
27269 extern "C"
27270 #endif
27271 char ${pbxfuncname} ();
27273 main ()
27275 return ${pbxfuncname} ();
27277 return 0;
27279 _ACEOF
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_link") 2>conftest.er1
27288 ac_status=$?
27289 grep -v '^ *+' conftest.er1 >conftest.err
27290 rm -f conftest.er1
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } && {
27294 test -z "$ac_c_werror_flag" ||
27295 test ! -s conftest.err
27296 } && test -s conftest$ac_exeext &&
27297 $as_test_x conftest$ac_exeext; then
27298 eval "$as_ac_Lib=yes"
27299 else
27300 echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27303 eval "$as_ac_Lib=no"
27306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27307 conftest$ac_exeext conftest.$ac_ext
27308 LIBS=$ac_check_lib_save_LIBS
27310 ac_res=`eval echo '${'$as_ac_Lib'}'`
27311 { echo "$as_me:$LINENO: result: $ac_res" >&5
27312 echo "${ECHO_T}$ac_res" >&6; }
27313 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27314 AST_ACOS_FOUND=yes
27315 else
27316 AST_ACOS_FOUND=no
27321 # now check for the header.
27322 if test "${AST_ACOS_FOUND}" = "yes"; then
27323 ACOS_LIB="${pbxlibdir} -lm "
27324 # if --with-ACOS=DIR has been specified, use it.
27325 if test "x${ACOS_DIR}" != "x"; then
27326 ACOS_INCLUDE="-I${ACOS_DIR}/include"
27328 ACOS_INCLUDE="${ACOS_INCLUDE} "
27329 if test "x" = "x" ; then # no header, assume found
27330 ACOS_HEADER_FOUND="1"
27331 else # check for the header
27332 saved_cppflags="${CPPFLAGS}"
27333 CPPFLAGS="${CPPFLAGS} ${ACOS_INCLUDE} "
27334 if test "${ac_cv_header_+set}" = set; then
27335 { echo "$as_me:$LINENO: checking for " >&5
27336 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27337 if test "${ac_cv_header_+set}" = set; then
27338 echo $ECHO_N "(cached) $ECHO_C" >&6
27340 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27341 echo "${ECHO_T}$ac_cv_header_" >&6; }
27342 else
27343 # Is the header compilable?
27344 { echo "$as_me:$LINENO: checking usability" >&5
27345 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27346 cat >conftest.$ac_ext <<_ACEOF
27347 /* confdefs.h. */
27348 _ACEOF
27349 cat confdefs.h >>conftest.$ac_ext
27350 cat >>conftest.$ac_ext <<_ACEOF
27351 /* end confdefs.h. */
27352 $ac_includes_default
27353 #include <>
27354 _ACEOF
27355 rm -f conftest.$ac_objext
27356 if { (ac_try="$ac_compile"
27357 case "(($ac_try" in
27358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359 *) ac_try_echo=$ac_try;;
27360 esac
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362 (eval "$ac_compile") 2>conftest.er1
27363 ac_status=$?
27364 grep -v '^ *+' conftest.er1 >conftest.err
27365 rm -f conftest.er1
27366 cat conftest.err >&5
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); } && {
27369 test -z "$ac_c_werror_flag" ||
27370 test ! -s conftest.err
27371 } && test -s conftest.$ac_objext; then
27372 ac_header_compiler=yes
27373 else
27374 echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27377 ac_header_compiler=no
27380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27382 echo "${ECHO_T}$ac_header_compiler" >&6; }
27384 # Is the header present?
27385 { echo "$as_me:$LINENO: checking presence" >&5
27386 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27387 cat >conftest.$ac_ext <<_ACEOF
27388 /* confdefs.h. */
27389 _ACEOF
27390 cat confdefs.h >>conftest.$ac_ext
27391 cat >>conftest.$ac_ext <<_ACEOF
27392 /* end confdefs.h. */
27393 #include <>
27394 _ACEOF
27395 if { (ac_try="$ac_cpp conftest.$ac_ext"
27396 case "(($ac_try" in
27397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27398 *) ac_try_echo=$ac_try;;
27399 esac
27400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27402 ac_status=$?
27403 grep -v '^ *+' conftest.er1 >conftest.err
27404 rm -f conftest.er1
27405 cat conftest.err >&5
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); } >/dev/null && {
27408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27409 test ! -s conftest.err
27410 }; then
27411 ac_header_preproc=yes
27412 else
27413 echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27416 ac_header_preproc=no
27419 rm -f conftest.err conftest.$ac_ext
27420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27421 echo "${ECHO_T}$ac_header_preproc" >&6; }
27423 # So? What about this header?
27424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27425 yes:no: )
27426 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27427 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27428 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27429 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27430 ac_header_preproc=yes
27432 no:yes:* )
27433 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27434 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27435 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27436 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27437 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27438 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27439 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27440 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27441 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27442 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27443 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27444 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27445 ( cat <<\_ASBOX
27446 ## ------------------------------- ##
27447 ## Report this to www.asterisk.org ##
27448 ## ------------------------------- ##
27449 _ASBOX
27450 ) | sed "s/^/$as_me: WARNING: /" >&2
27452 esac
27453 { echo "$as_me:$LINENO: checking for " >&5
27454 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27455 if test "${ac_cv_header_+set}" = set; then
27456 echo $ECHO_N "(cached) $ECHO_C" >&6
27457 else
27458 ac_cv_header_=$ac_header_preproc
27460 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27461 echo "${ECHO_T}$ac_cv_header_" >&6; }
27464 if test $ac_cv_header_ = yes; then
27465 ACOS_HEADER_FOUND=1
27466 else
27467 ACOS_HEADER_FOUND=0
27471 CPPFLAGS="${saved_cppflags}"
27473 if test "x${ACOS_HEADER_FOUND}" = "x0" ; then
27474 ACOS_LIB=""
27475 ACOS_INCLUDE=""
27476 else
27477 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27478 ACOS_LIB=""
27480 PBX_ACOS=1
27481 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27483 cat >>confdefs.h <<_ACEOF
27484 #define HAVE_ACOS 1
27485 _ACEOF
27488 cat >>confdefs.h <<_ACEOF
27489 #define HAVE_ACOS_VERSION
27490 _ACEOF
27497 if test "x${PBX_ATAN}" != "x1" -a "${USE_ATAN}" != "no"; then
27498 pbxlibdir=""
27499 # if --with-ATAN=DIR has been specified, use it.
27500 if test "x${ATAN_DIR}" != "x"; then
27501 if test -d ${ATAN_DIR}/lib; then
27502 pbxlibdir="-L${ATAN_DIR}/lib"
27503 else
27504 pbxlibdir="-L${ATAN_DIR}"
27507 pbxfuncname="atan"
27508 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27509 AST_ATAN_FOUND=yes
27510 else
27511 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27512 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27513 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27514 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
27516 else
27517 ac_check_lib_save_LIBS=$LIBS
27518 LIBS="-lm ${pbxlibdir} $LIBS"
27519 cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h. */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27526 /* Override any GCC internal prototype to avoid an error.
27527 Use char because int might match the return type of a GCC
27528 builtin and then its argument prototype would still apply. */
27529 #ifdef __cplusplus
27530 extern "C"
27531 #endif
27532 char ${pbxfuncname} ();
27534 main ()
27536 return ${pbxfuncname} ();
27538 return 0;
27540 _ACEOF
27541 rm -f conftest.$ac_objext conftest$ac_exeext
27542 if { (ac_try="$ac_link"
27543 case "(($ac_try" in
27544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545 *) ac_try_echo=$ac_try;;
27546 esac
27547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27548 (eval "$ac_link") 2>conftest.er1
27549 ac_status=$?
27550 grep -v '^ *+' conftest.er1 >conftest.err
27551 rm -f conftest.er1
27552 cat conftest.err >&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); } && {
27555 test -z "$ac_c_werror_flag" ||
27556 test ! -s conftest.err
27557 } && test -s conftest$ac_exeext &&
27558 $as_test_x conftest$ac_exeext; then
27559 eval "$as_ac_Lib=yes"
27560 else
27561 echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27564 eval "$as_ac_Lib=no"
27567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27568 conftest$ac_exeext conftest.$ac_ext
27569 LIBS=$ac_check_lib_save_LIBS
27571 ac_res=`eval echo '${'$as_ac_Lib'}'`
27572 { echo "$as_me:$LINENO: result: $ac_res" >&5
27573 echo "${ECHO_T}$ac_res" >&6; }
27574 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27575 AST_ATAN_FOUND=yes
27576 else
27577 AST_ATAN_FOUND=no
27582 # now check for the header.
27583 if test "${AST_ATAN_FOUND}" = "yes"; then
27584 ATAN_LIB="${pbxlibdir} -lm "
27585 # if --with-ATAN=DIR has been specified, use it.
27586 if test "x${ATAN_DIR}" != "x"; then
27587 ATAN_INCLUDE="-I${ATAN_DIR}/include"
27589 ATAN_INCLUDE="${ATAN_INCLUDE} "
27590 if test "x" = "x" ; then # no header, assume found
27591 ATAN_HEADER_FOUND="1"
27592 else # check for the header
27593 saved_cppflags="${CPPFLAGS}"
27594 CPPFLAGS="${CPPFLAGS} ${ATAN_INCLUDE} "
27595 if test "${ac_cv_header_+set}" = set; then
27596 { echo "$as_me:$LINENO: checking for " >&5
27597 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27598 if test "${ac_cv_header_+set}" = set; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27601 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27602 echo "${ECHO_T}$ac_cv_header_" >&6; }
27603 else
27604 # Is the header compilable?
27605 { echo "$as_me:$LINENO: checking usability" >&5
27606 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27607 cat >conftest.$ac_ext <<_ACEOF
27608 /* confdefs.h. */
27609 _ACEOF
27610 cat confdefs.h >>conftest.$ac_ext
27611 cat >>conftest.$ac_ext <<_ACEOF
27612 /* end confdefs.h. */
27613 $ac_includes_default
27614 #include <>
27615 _ACEOF
27616 rm -f conftest.$ac_objext
27617 if { (ac_try="$ac_compile"
27618 case "(($ac_try" in
27619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27620 *) ac_try_echo=$ac_try;;
27621 esac
27622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27623 (eval "$ac_compile") 2>conftest.er1
27624 ac_status=$?
27625 grep -v '^ *+' conftest.er1 >conftest.err
27626 rm -f conftest.er1
27627 cat conftest.err >&5
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); } && {
27630 test -z "$ac_c_werror_flag" ||
27631 test ! -s conftest.err
27632 } && test -s conftest.$ac_objext; then
27633 ac_header_compiler=yes
27634 else
27635 echo "$as_me: failed program was:" >&5
27636 sed 's/^/| /' conftest.$ac_ext >&5
27638 ac_header_compiler=no
27641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27643 echo "${ECHO_T}$ac_header_compiler" >&6; }
27645 # Is the header present?
27646 { echo "$as_me:$LINENO: checking presence" >&5
27647 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27648 cat >conftest.$ac_ext <<_ACEOF
27649 /* confdefs.h. */
27650 _ACEOF
27651 cat confdefs.h >>conftest.$ac_ext
27652 cat >>conftest.$ac_ext <<_ACEOF
27653 /* end confdefs.h. */
27654 #include <>
27655 _ACEOF
27656 if { (ac_try="$ac_cpp conftest.$ac_ext"
27657 case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27660 esac
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27663 ac_status=$?
27664 grep -v '^ *+' conftest.er1 >conftest.err
27665 rm -f conftest.er1
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } >/dev/null && {
27669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27670 test ! -s conftest.err
27671 }; then
27672 ac_header_preproc=yes
27673 else
27674 echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27677 ac_header_preproc=no
27680 rm -f conftest.err conftest.$ac_ext
27681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27682 echo "${ECHO_T}$ac_header_preproc" >&6; }
27684 # So? What about this header?
27685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27686 yes:no: )
27687 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27688 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27689 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27690 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27691 ac_header_preproc=yes
27693 no:yes:* )
27694 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27695 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27696 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27697 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27698 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27699 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27700 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27701 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27702 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27703 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27704 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27705 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27706 ( cat <<\_ASBOX
27707 ## ------------------------------- ##
27708 ## Report this to www.asterisk.org ##
27709 ## ------------------------------- ##
27710 _ASBOX
27711 ) | sed "s/^/$as_me: WARNING: /" >&2
27713 esac
27714 { echo "$as_me:$LINENO: checking for " >&5
27715 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27716 if test "${ac_cv_header_+set}" = set; then
27717 echo $ECHO_N "(cached) $ECHO_C" >&6
27718 else
27719 ac_cv_header_=$ac_header_preproc
27721 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27722 echo "${ECHO_T}$ac_cv_header_" >&6; }
27725 if test $ac_cv_header_ = yes; then
27726 ATAN_HEADER_FOUND=1
27727 else
27728 ATAN_HEADER_FOUND=0
27732 CPPFLAGS="${saved_cppflags}"
27734 if test "x${ATAN_HEADER_FOUND}" = "x0" ; then
27735 ATAN_LIB=""
27736 ATAN_INCLUDE=""
27737 else
27738 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
27739 ATAN_LIB=""
27741 PBX_ATAN=1
27742 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
27744 cat >>confdefs.h <<_ACEOF
27745 #define HAVE_ATAN 1
27746 _ACEOF
27749 cat >>confdefs.h <<_ACEOF
27750 #define HAVE_ATAN_VERSION
27751 _ACEOF
27758 if test "x${PBX_ATAN2}" != "x1" -a "${USE_ATAN2}" != "no"; then
27759 pbxlibdir=""
27760 # if --with-ATAN2=DIR has been specified, use it.
27761 if test "x${ATAN2_DIR}" != "x"; then
27762 if test -d ${ATAN2_DIR}/lib; then
27763 pbxlibdir="-L${ATAN2_DIR}/lib"
27764 else
27765 pbxlibdir="-L${ATAN2_DIR}"
27768 pbxfuncname="atan2"
27769 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
27770 AST_ATAN2_FOUND=yes
27771 else
27772 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
27773 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
27774 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
27775 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
27776 echo $ECHO_N "(cached) $ECHO_C" >&6
27777 else
27778 ac_check_lib_save_LIBS=$LIBS
27779 LIBS="-lm ${pbxlibdir} $LIBS"
27780 cat >conftest.$ac_ext <<_ACEOF
27781 /* confdefs.h. */
27782 _ACEOF
27783 cat confdefs.h >>conftest.$ac_ext
27784 cat >>conftest.$ac_ext <<_ACEOF
27785 /* end confdefs.h. */
27787 /* Override any GCC internal prototype to avoid an error.
27788 Use char because int might match the return type of a GCC
27789 builtin and then its argument prototype would still apply. */
27790 #ifdef __cplusplus
27791 extern "C"
27792 #endif
27793 char ${pbxfuncname} ();
27795 main ()
27797 return ${pbxfuncname} ();
27799 return 0;
27801 _ACEOF
27802 rm -f conftest.$ac_objext conftest$ac_exeext
27803 if { (ac_try="$ac_link"
27804 case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27807 esac
27808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809 (eval "$ac_link") 2>conftest.er1
27810 ac_status=$?
27811 grep -v '^ *+' conftest.er1 >conftest.err
27812 rm -f conftest.er1
27813 cat conftest.err >&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } && {
27816 test -z "$ac_c_werror_flag" ||
27817 test ! -s conftest.err
27818 } && test -s conftest$ac_exeext &&
27819 $as_test_x conftest$ac_exeext; then
27820 eval "$as_ac_Lib=yes"
27821 else
27822 echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27825 eval "$as_ac_Lib=no"
27828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27829 conftest$ac_exeext conftest.$ac_ext
27830 LIBS=$ac_check_lib_save_LIBS
27832 ac_res=`eval echo '${'$as_ac_Lib'}'`
27833 { echo "$as_me:$LINENO: result: $ac_res" >&5
27834 echo "${ECHO_T}$ac_res" >&6; }
27835 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
27836 AST_ATAN2_FOUND=yes
27837 else
27838 AST_ATAN2_FOUND=no
27843 # now check for the header.
27844 if test "${AST_ATAN2_FOUND}" = "yes"; then
27845 ATAN2_LIB="${pbxlibdir} -lm "
27846 # if --with-ATAN2=DIR has been specified, use it.
27847 if test "x${ATAN2_DIR}" != "x"; then
27848 ATAN2_INCLUDE="-I${ATAN2_DIR}/include"
27850 ATAN2_INCLUDE="${ATAN2_INCLUDE} "
27851 if test "x" = "x" ; then # no header, assume found
27852 ATAN2_HEADER_FOUND="1"
27853 else # check for the header
27854 saved_cppflags="${CPPFLAGS}"
27855 CPPFLAGS="${CPPFLAGS} ${ATAN2_INCLUDE} "
27856 if test "${ac_cv_header_+set}" = set; then
27857 { echo "$as_me:$LINENO: checking for " >&5
27858 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27859 if test "${ac_cv_header_+set}" = set; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27862 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27863 echo "${ECHO_T}$ac_cv_header_" >&6; }
27864 else
27865 # Is the header compilable?
27866 { echo "$as_me:$LINENO: checking usability" >&5
27867 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
27868 cat >conftest.$ac_ext <<_ACEOF
27869 /* confdefs.h. */
27870 _ACEOF
27871 cat confdefs.h >>conftest.$ac_ext
27872 cat >>conftest.$ac_ext <<_ACEOF
27873 /* end confdefs.h. */
27874 $ac_includes_default
27875 #include <>
27876 _ACEOF
27877 rm -f conftest.$ac_objext
27878 if { (ac_try="$ac_compile"
27879 case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27882 esac
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_compile") 2>conftest.er1
27885 ac_status=$?
27886 grep -v '^ *+' conftest.er1 >conftest.err
27887 rm -f conftest.er1
27888 cat conftest.err >&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); } && {
27891 test -z "$ac_c_werror_flag" ||
27892 test ! -s conftest.err
27893 } && test -s conftest.$ac_objext; then
27894 ac_header_compiler=yes
27895 else
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27899 ac_header_compiler=no
27902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27904 echo "${ECHO_T}$ac_header_compiler" >&6; }
27906 # Is the header present?
27907 { echo "$as_me:$LINENO: checking presence" >&5
27908 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
27909 cat >conftest.$ac_ext <<_ACEOF
27910 /* confdefs.h. */
27911 _ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h. */
27915 #include <>
27916 _ACEOF
27917 if { (ac_try="$ac_cpp conftest.$ac_ext"
27918 case "(($ac_try" in
27919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920 *) ac_try_echo=$ac_try;;
27921 esac
27922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27924 ac_status=$?
27925 grep -v '^ *+' conftest.er1 >conftest.err
27926 rm -f conftest.er1
27927 cat conftest.err >&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); } >/dev/null && {
27930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27931 test ! -s conftest.err
27932 }; then
27933 ac_header_preproc=yes
27934 else
27935 echo "$as_me: failed program was:" >&5
27936 sed 's/^/| /' conftest.$ac_ext >&5
27938 ac_header_preproc=no
27941 rm -f conftest.err conftest.$ac_ext
27942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27943 echo "${ECHO_T}$ac_header_preproc" >&6; }
27945 # So? What about this header?
27946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27947 yes:no: )
27948 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
27949 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
27950 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
27951 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
27952 ac_header_preproc=yes
27954 no:yes:* )
27955 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
27956 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
27957 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
27958 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
27959 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
27960 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
27961 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
27962 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
27963 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
27964 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
27965 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
27966 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
27967 ( cat <<\_ASBOX
27968 ## ------------------------------- ##
27969 ## Report this to www.asterisk.org ##
27970 ## ------------------------------- ##
27971 _ASBOX
27972 ) | sed "s/^/$as_me: WARNING: /" >&2
27974 esac
27975 { echo "$as_me:$LINENO: checking for " >&5
27976 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
27977 if test "${ac_cv_header_+set}" = set; then
27978 echo $ECHO_N "(cached) $ECHO_C" >&6
27979 else
27980 ac_cv_header_=$ac_header_preproc
27982 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
27983 echo "${ECHO_T}$ac_cv_header_" >&6; }
27986 if test $ac_cv_header_ = yes; then
27987 ATAN2_HEADER_FOUND=1
27988 else
27989 ATAN2_HEADER_FOUND=0
27993 CPPFLAGS="${saved_cppflags}"
27995 if test "x${ATAN2_HEADER_FOUND}" = "x0" ; then
27996 ATAN2_LIB=""
27997 ATAN2_INCLUDE=""
27998 else
27999 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28000 ATAN2_LIB=""
28002 PBX_ATAN2=1
28003 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28005 cat >>confdefs.h <<_ACEOF
28006 #define HAVE_ATAN2 1
28007 _ACEOF
28010 cat >>confdefs.h <<_ACEOF
28011 #define HAVE_ATAN2_VERSION
28012 _ACEOF
28019 if test "x${PBX_POW}" != "x1" -a "${USE_POW}" != "no"; then
28020 pbxlibdir=""
28021 # if --with-POW=DIR has been specified, use it.
28022 if test "x${POW_DIR}" != "x"; then
28023 if test -d ${POW_DIR}/lib; then
28024 pbxlibdir="-L${POW_DIR}/lib"
28025 else
28026 pbxlibdir="-L${POW_DIR}"
28029 pbxfuncname="pow"
28030 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28031 AST_POW_FOUND=yes
28032 else
28033 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28034 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28035 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28036 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28037 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 else
28039 ac_check_lib_save_LIBS=$LIBS
28040 LIBS="-lm ${pbxlibdir} $LIBS"
28041 cat >conftest.$ac_ext <<_ACEOF
28042 /* confdefs.h. */
28043 _ACEOF
28044 cat confdefs.h >>conftest.$ac_ext
28045 cat >>conftest.$ac_ext <<_ACEOF
28046 /* end confdefs.h. */
28048 /* Override any GCC internal prototype to avoid an error.
28049 Use char because int might match the return type of a GCC
28050 builtin and then its argument prototype would still apply. */
28051 #ifdef __cplusplus
28052 extern "C"
28053 #endif
28054 char ${pbxfuncname} ();
28056 main ()
28058 return ${pbxfuncname} ();
28060 return 0;
28062 _ACEOF
28063 rm -f conftest.$ac_objext conftest$ac_exeext
28064 if { (ac_try="$ac_link"
28065 case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28068 esac
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_link") 2>conftest.er1
28071 ac_status=$?
28072 grep -v '^ *+' conftest.er1 >conftest.err
28073 rm -f conftest.er1
28074 cat conftest.err >&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); } && {
28077 test -z "$ac_c_werror_flag" ||
28078 test ! -s conftest.err
28079 } && test -s conftest$ac_exeext &&
28080 $as_test_x conftest$ac_exeext; then
28081 eval "$as_ac_Lib=yes"
28082 else
28083 echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28086 eval "$as_ac_Lib=no"
28089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28090 conftest$ac_exeext conftest.$ac_ext
28091 LIBS=$ac_check_lib_save_LIBS
28093 ac_res=`eval echo '${'$as_ac_Lib'}'`
28094 { echo "$as_me:$LINENO: result: $ac_res" >&5
28095 echo "${ECHO_T}$ac_res" >&6; }
28096 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28097 AST_POW_FOUND=yes
28098 else
28099 AST_POW_FOUND=no
28104 # now check for the header.
28105 if test "${AST_POW_FOUND}" = "yes"; then
28106 POW_LIB="${pbxlibdir} -lm "
28107 # if --with-POW=DIR has been specified, use it.
28108 if test "x${POW_DIR}" != "x"; then
28109 POW_INCLUDE="-I${POW_DIR}/include"
28111 POW_INCLUDE="${POW_INCLUDE} "
28112 if test "x" = "x" ; then # no header, assume found
28113 POW_HEADER_FOUND="1"
28114 else # check for the header
28115 saved_cppflags="${CPPFLAGS}"
28116 CPPFLAGS="${CPPFLAGS} ${POW_INCLUDE} "
28117 if test "${ac_cv_header_+set}" = set; then
28118 { echo "$as_me:$LINENO: checking for " >&5
28119 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28120 if test "${ac_cv_header_+set}" = set; then
28121 echo $ECHO_N "(cached) $ECHO_C" >&6
28123 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28124 echo "${ECHO_T}$ac_cv_header_" >&6; }
28125 else
28126 # Is the header compilable?
28127 { echo "$as_me:$LINENO: checking usability" >&5
28128 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28129 cat >conftest.$ac_ext <<_ACEOF
28130 /* confdefs.h. */
28131 _ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h. */
28135 $ac_includes_default
28136 #include <>
28137 _ACEOF
28138 rm -f conftest.$ac_objext
28139 if { (ac_try="$ac_compile"
28140 case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28143 esac
28144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_compile") 2>conftest.er1
28146 ac_status=$?
28147 grep -v '^ *+' conftest.er1 >conftest.err
28148 rm -f conftest.er1
28149 cat conftest.err >&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); } && {
28152 test -z "$ac_c_werror_flag" ||
28153 test ! -s conftest.err
28154 } && test -s conftest.$ac_objext; then
28155 ac_header_compiler=yes
28156 else
28157 echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28160 ac_header_compiler=no
28163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28165 echo "${ECHO_T}$ac_header_compiler" >&6; }
28167 # Is the header present?
28168 { echo "$as_me:$LINENO: checking presence" >&5
28169 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28170 cat >conftest.$ac_ext <<_ACEOF
28171 /* confdefs.h. */
28172 _ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h. */
28176 #include <>
28177 _ACEOF
28178 if { (ac_try="$ac_cpp conftest.$ac_ext"
28179 case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28182 esac
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28185 ac_status=$?
28186 grep -v '^ *+' conftest.er1 >conftest.err
28187 rm -f conftest.er1
28188 cat conftest.err >&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } >/dev/null && {
28191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28192 test ! -s conftest.err
28193 }; then
28194 ac_header_preproc=yes
28195 else
28196 echo "$as_me: failed program was:" >&5
28197 sed 's/^/| /' conftest.$ac_ext >&5
28199 ac_header_preproc=no
28202 rm -f conftest.err conftest.$ac_ext
28203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28204 echo "${ECHO_T}$ac_header_preproc" >&6; }
28206 # So? What about this header?
28207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28208 yes:no: )
28209 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28210 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28211 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28212 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28213 ac_header_preproc=yes
28215 no:yes:* )
28216 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28217 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28218 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28219 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28220 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28221 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28222 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28223 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28224 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28225 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28226 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28227 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28228 ( cat <<\_ASBOX
28229 ## ------------------------------- ##
28230 ## Report this to www.asterisk.org ##
28231 ## ------------------------------- ##
28232 _ASBOX
28233 ) | sed "s/^/$as_me: WARNING: /" >&2
28235 esac
28236 { echo "$as_me:$LINENO: checking for " >&5
28237 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28238 if test "${ac_cv_header_+set}" = set; then
28239 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 else
28241 ac_cv_header_=$ac_header_preproc
28243 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28244 echo "${ECHO_T}$ac_cv_header_" >&6; }
28247 if test $ac_cv_header_ = yes; then
28248 POW_HEADER_FOUND=1
28249 else
28250 POW_HEADER_FOUND=0
28254 CPPFLAGS="${saved_cppflags}"
28256 if test "x${POW_HEADER_FOUND}" = "x0" ; then
28257 POW_LIB=""
28258 POW_INCLUDE=""
28259 else
28260 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28261 POW_LIB=""
28263 PBX_POW=1
28264 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28266 cat >>confdefs.h <<_ACEOF
28267 #define HAVE_POW 1
28268 _ACEOF
28271 cat >>confdefs.h <<_ACEOF
28272 #define HAVE_POW_VERSION
28273 _ACEOF
28280 if test "x${PBX_SQRT}" != "x1" -a "${USE_SQRT}" != "no"; then
28281 pbxlibdir=""
28282 # if --with-SQRT=DIR has been specified, use it.
28283 if test "x${SQRT_DIR}" != "x"; then
28284 if test -d ${SQRT_DIR}/lib; then
28285 pbxlibdir="-L${SQRT_DIR}/lib"
28286 else
28287 pbxlibdir="-L${SQRT_DIR}"
28290 pbxfuncname="sqrt"
28291 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28292 AST_SQRT_FOUND=yes
28293 else
28294 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28295 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28296 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28297 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28298 echo $ECHO_N "(cached) $ECHO_C" >&6
28299 else
28300 ac_check_lib_save_LIBS=$LIBS
28301 LIBS="-lm ${pbxlibdir} $LIBS"
28302 cat >conftest.$ac_ext <<_ACEOF
28303 /* confdefs.h. */
28304 _ACEOF
28305 cat confdefs.h >>conftest.$ac_ext
28306 cat >>conftest.$ac_ext <<_ACEOF
28307 /* end confdefs.h. */
28309 /* Override any GCC internal prototype to avoid an error.
28310 Use char because int might match the return type of a GCC
28311 builtin and then its argument prototype would still apply. */
28312 #ifdef __cplusplus
28313 extern "C"
28314 #endif
28315 char ${pbxfuncname} ();
28317 main ()
28319 return ${pbxfuncname} ();
28321 return 0;
28323 _ACEOF
28324 rm -f conftest.$ac_objext conftest$ac_exeext
28325 if { (ac_try="$ac_link"
28326 case "(($ac_try" in
28327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28328 *) ac_try_echo=$ac_try;;
28329 esac
28330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28331 (eval "$ac_link") 2>conftest.er1
28332 ac_status=$?
28333 grep -v '^ *+' conftest.er1 >conftest.err
28334 rm -f conftest.er1
28335 cat conftest.err >&5
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); } && {
28338 test -z "$ac_c_werror_flag" ||
28339 test ! -s conftest.err
28340 } && test -s conftest$ac_exeext &&
28341 $as_test_x conftest$ac_exeext; then
28342 eval "$as_ac_Lib=yes"
28343 else
28344 echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28347 eval "$as_ac_Lib=no"
28350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28351 conftest$ac_exeext conftest.$ac_ext
28352 LIBS=$ac_check_lib_save_LIBS
28354 ac_res=`eval echo '${'$as_ac_Lib'}'`
28355 { echo "$as_me:$LINENO: result: $ac_res" >&5
28356 echo "${ECHO_T}$ac_res" >&6; }
28357 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28358 AST_SQRT_FOUND=yes
28359 else
28360 AST_SQRT_FOUND=no
28365 # now check for the header.
28366 if test "${AST_SQRT_FOUND}" = "yes"; then
28367 SQRT_LIB="${pbxlibdir} -lm "
28368 # if --with-SQRT=DIR has been specified, use it.
28369 if test "x${SQRT_DIR}" != "x"; then
28370 SQRT_INCLUDE="-I${SQRT_DIR}/include"
28372 SQRT_INCLUDE="${SQRT_INCLUDE} "
28373 if test "x" = "x" ; then # no header, assume found
28374 SQRT_HEADER_FOUND="1"
28375 else # check for the header
28376 saved_cppflags="${CPPFLAGS}"
28377 CPPFLAGS="${CPPFLAGS} ${SQRT_INCLUDE} "
28378 if test "${ac_cv_header_+set}" = set; then
28379 { echo "$as_me:$LINENO: checking for " >&5
28380 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28381 if test "${ac_cv_header_+set}" = set; then
28382 echo $ECHO_N "(cached) $ECHO_C" >&6
28384 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28385 echo "${ECHO_T}$ac_cv_header_" >&6; }
28386 else
28387 # Is the header compilable?
28388 { echo "$as_me:$LINENO: checking usability" >&5
28389 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28390 cat >conftest.$ac_ext <<_ACEOF
28391 /* confdefs.h. */
28392 _ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h. */
28396 $ac_includes_default
28397 #include <>
28398 _ACEOF
28399 rm -f conftest.$ac_objext
28400 if { (ac_try="$ac_compile"
28401 case "(($ac_try" in
28402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28403 *) ac_try_echo=$ac_try;;
28404 esac
28405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28406 (eval "$ac_compile") 2>conftest.er1
28407 ac_status=$?
28408 grep -v '^ *+' conftest.er1 >conftest.err
28409 rm -f conftest.er1
28410 cat conftest.err >&5
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); } && {
28413 test -z "$ac_c_werror_flag" ||
28414 test ! -s conftest.err
28415 } && test -s conftest.$ac_objext; then
28416 ac_header_compiler=yes
28417 else
28418 echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28421 ac_header_compiler=no
28424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28426 echo "${ECHO_T}$ac_header_compiler" >&6; }
28428 # Is the header present?
28429 { echo "$as_me:$LINENO: checking presence" >&5
28430 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28431 cat >conftest.$ac_ext <<_ACEOF
28432 /* confdefs.h. */
28433 _ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h. */
28437 #include <>
28438 _ACEOF
28439 if { (ac_try="$ac_cpp conftest.$ac_ext"
28440 case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28443 esac
28444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28446 ac_status=$?
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } >/dev/null && {
28452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28453 test ! -s conftest.err
28454 }; then
28455 ac_header_preproc=yes
28456 else
28457 echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28460 ac_header_preproc=no
28463 rm -f conftest.err conftest.$ac_ext
28464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28465 echo "${ECHO_T}$ac_header_preproc" >&6; }
28467 # So? What about this header?
28468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28469 yes:no: )
28470 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28471 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28472 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28473 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28474 ac_header_preproc=yes
28476 no:yes:* )
28477 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28478 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28479 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28480 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28481 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28482 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28483 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28484 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28485 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28486 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28487 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28488 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28489 ( cat <<\_ASBOX
28490 ## ------------------------------- ##
28491 ## Report this to www.asterisk.org ##
28492 ## ------------------------------- ##
28493 _ASBOX
28494 ) | sed "s/^/$as_me: WARNING: /" >&2
28496 esac
28497 { echo "$as_me:$LINENO: checking for " >&5
28498 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28499 if test "${ac_cv_header_+set}" = set; then
28500 echo $ECHO_N "(cached) $ECHO_C" >&6
28501 else
28502 ac_cv_header_=$ac_header_preproc
28504 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28505 echo "${ECHO_T}$ac_cv_header_" >&6; }
28508 if test $ac_cv_header_ = yes; then
28509 SQRT_HEADER_FOUND=1
28510 else
28511 SQRT_HEADER_FOUND=0
28515 CPPFLAGS="${saved_cppflags}"
28517 if test "x${SQRT_HEADER_FOUND}" = "x0" ; then
28518 SQRT_LIB=""
28519 SQRT_INCLUDE=""
28520 else
28521 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28522 SQRT_LIB=""
28524 PBX_SQRT=1
28525 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28527 cat >>confdefs.h <<_ACEOF
28528 #define HAVE_SQRT 1
28529 _ACEOF
28532 cat >>confdefs.h <<_ACEOF
28533 #define HAVE_SQRT_VERSION
28534 _ACEOF
28541 if test "x${PBX_RINT}" != "x1" -a "${USE_RINT}" != "no"; then
28542 pbxlibdir=""
28543 # if --with-RINT=DIR has been specified, use it.
28544 if test "x${RINT_DIR}" != "x"; then
28545 if test -d ${RINT_DIR}/lib; then
28546 pbxlibdir="-L${RINT_DIR}/lib"
28547 else
28548 pbxlibdir="-L${RINT_DIR}"
28551 pbxfuncname="rint"
28552 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28553 AST_RINT_FOUND=yes
28554 else
28555 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28556 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28557 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28558 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 else
28561 ac_check_lib_save_LIBS=$LIBS
28562 LIBS="-lm ${pbxlibdir} $LIBS"
28563 cat >conftest.$ac_ext <<_ACEOF
28564 /* confdefs.h. */
28565 _ACEOF
28566 cat confdefs.h >>conftest.$ac_ext
28567 cat >>conftest.$ac_ext <<_ACEOF
28568 /* end confdefs.h. */
28570 /* Override any GCC internal prototype to avoid an error.
28571 Use char because int might match the return type of a GCC
28572 builtin and then its argument prototype would still apply. */
28573 #ifdef __cplusplus
28574 extern "C"
28575 #endif
28576 char ${pbxfuncname} ();
28578 main ()
28580 return ${pbxfuncname} ();
28582 return 0;
28584 _ACEOF
28585 rm -f conftest.$ac_objext conftest$ac_exeext
28586 if { (ac_try="$ac_link"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590 esac
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_link") 2>conftest.er1
28593 ac_status=$?
28594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } && {
28599 test -z "$ac_c_werror_flag" ||
28600 test ! -s conftest.err
28601 } && test -s conftest$ac_exeext &&
28602 $as_test_x conftest$ac_exeext; then
28603 eval "$as_ac_Lib=yes"
28604 else
28605 echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28608 eval "$as_ac_Lib=no"
28611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28612 conftest$ac_exeext conftest.$ac_ext
28613 LIBS=$ac_check_lib_save_LIBS
28615 ac_res=`eval echo '${'$as_ac_Lib'}'`
28616 { echo "$as_me:$LINENO: result: $ac_res" >&5
28617 echo "${ECHO_T}$ac_res" >&6; }
28618 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28619 AST_RINT_FOUND=yes
28620 else
28621 AST_RINT_FOUND=no
28626 # now check for the header.
28627 if test "${AST_RINT_FOUND}" = "yes"; then
28628 RINT_LIB="${pbxlibdir} -lm "
28629 # if --with-RINT=DIR has been specified, use it.
28630 if test "x${RINT_DIR}" != "x"; then
28631 RINT_INCLUDE="-I${RINT_DIR}/include"
28633 RINT_INCLUDE="${RINT_INCLUDE} "
28634 if test "x" = "x" ; then # no header, assume found
28635 RINT_HEADER_FOUND="1"
28636 else # check for the header
28637 saved_cppflags="${CPPFLAGS}"
28638 CPPFLAGS="${CPPFLAGS} ${RINT_INCLUDE} "
28639 if test "${ac_cv_header_+set}" = set; then
28640 { echo "$as_me:$LINENO: checking for " >&5
28641 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28642 if test "${ac_cv_header_+set}" = set; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28645 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28646 echo "${ECHO_T}$ac_cv_header_" >&6; }
28647 else
28648 # Is the header compilable?
28649 { echo "$as_me:$LINENO: checking usability" >&5
28650 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28651 cat >conftest.$ac_ext <<_ACEOF
28652 /* confdefs.h. */
28653 _ACEOF
28654 cat confdefs.h >>conftest.$ac_ext
28655 cat >>conftest.$ac_ext <<_ACEOF
28656 /* end confdefs.h. */
28657 $ac_includes_default
28658 #include <>
28659 _ACEOF
28660 rm -f conftest.$ac_objext
28661 if { (ac_try="$ac_compile"
28662 case "(($ac_try" in
28663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664 *) ac_try_echo=$ac_try;;
28665 esac
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667 (eval "$ac_compile") 2>conftest.er1
28668 ac_status=$?
28669 grep -v '^ *+' conftest.er1 >conftest.err
28670 rm -f conftest.er1
28671 cat conftest.err >&5
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } && {
28674 test -z "$ac_c_werror_flag" ||
28675 test ! -s conftest.err
28676 } && test -s conftest.$ac_objext; then
28677 ac_header_compiler=yes
28678 else
28679 echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28682 ac_header_compiler=no
28685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28687 echo "${ECHO_T}$ac_header_compiler" >&6; }
28689 # Is the header present?
28690 { echo "$as_me:$LINENO: checking presence" >&5
28691 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28692 cat >conftest.$ac_ext <<_ACEOF
28693 /* confdefs.h. */
28694 _ACEOF
28695 cat confdefs.h >>conftest.$ac_ext
28696 cat >>conftest.$ac_ext <<_ACEOF
28697 /* end confdefs.h. */
28698 #include <>
28699 _ACEOF
28700 if { (ac_try="$ac_cpp conftest.$ac_ext"
28701 case "(($ac_try" in
28702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703 *) ac_try_echo=$ac_try;;
28704 esac
28705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28707 ac_status=$?
28708 grep -v '^ *+' conftest.er1 >conftest.err
28709 rm -f conftest.er1
28710 cat conftest.err >&5
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } >/dev/null && {
28713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28714 test ! -s conftest.err
28715 }; then
28716 ac_header_preproc=yes
28717 else
28718 echo "$as_me: failed program was:" >&5
28719 sed 's/^/| /' conftest.$ac_ext >&5
28721 ac_header_preproc=no
28724 rm -f conftest.err conftest.$ac_ext
28725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28726 echo "${ECHO_T}$ac_header_preproc" >&6; }
28728 # So? What about this header?
28729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28730 yes:no: )
28731 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28732 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28733 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28734 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28735 ac_header_preproc=yes
28737 no:yes:* )
28738 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
28739 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
28740 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
28741 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
28742 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
28743 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
28744 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
28745 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
28746 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
28747 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
28748 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
28749 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
28750 ( cat <<\_ASBOX
28751 ## ------------------------------- ##
28752 ## Report this to www.asterisk.org ##
28753 ## ------------------------------- ##
28754 _ASBOX
28755 ) | sed "s/^/$as_me: WARNING: /" >&2
28757 esac
28758 { echo "$as_me:$LINENO: checking for " >&5
28759 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28760 if test "${ac_cv_header_+set}" = set; then
28761 echo $ECHO_N "(cached) $ECHO_C" >&6
28762 else
28763 ac_cv_header_=$ac_header_preproc
28765 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28766 echo "${ECHO_T}$ac_cv_header_" >&6; }
28769 if test $ac_cv_header_ = yes; then
28770 RINT_HEADER_FOUND=1
28771 else
28772 RINT_HEADER_FOUND=0
28776 CPPFLAGS="${saved_cppflags}"
28778 if test "x${RINT_HEADER_FOUND}" = "x0" ; then
28779 RINT_LIB=""
28780 RINT_INCLUDE=""
28781 else
28782 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
28783 RINT_LIB=""
28785 PBX_RINT=1
28786 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
28788 cat >>confdefs.h <<_ACEOF
28789 #define HAVE_RINT 1
28790 _ACEOF
28793 cat >>confdefs.h <<_ACEOF
28794 #define HAVE_RINT_VERSION
28795 _ACEOF
28802 if test "x${PBX_EXP}" != "x1" -a "${USE_EXP}" != "no"; then
28803 pbxlibdir=""
28804 # if --with-EXP=DIR has been specified, use it.
28805 if test "x${EXP_DIR}" != "x"; then
28806 if test -d ${EXP_DIR}/lib; then
28807 pbxlibdir="-L${EXP_DIR}/lib"
28808 else
28809 pbxlibdir="-L${EXP_DIR}"
28812 pbxfuncname="exp"
28813 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
28814 AST_EXP_FOUND=yes
28815 else
28816 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
28817 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
28818 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
28819 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28821 else
28822 ac_check_lib_save_LIBS=$LIBS
28823 LIBS="-lm ${pbxlibdir} $LIBS"
28824 cat >conftest.$ac_ext <<_ACEOF
28825 /* confdefs.h. */
28826 _ACEOF
28827 cat confdefs.h >>conftest.$ac_ext
28828 cat >>conftest.$ac_ext <<_ACEOF
28829 /* end confdefs.h. */
28831 /* Override any GCC internal prototype to avoid an error.
28832 Use char because int might match the return type of a GCC
28833 builtin and then its argument prototype would still apply. */
28834 #ifdef __cplusplus
28835 extern "C"
28836 #endif
28837 char ${pbxfuncname} ();
28839 main ()
28841 return ${pbxfuncname} ();
28843 return 0;
28845 _ACEOF
28846 rm -f conftest.$ac_objext conftest$ac_exeext
28847 if { (ac_try="$ac_link"
28848 case "(($ac_try" in
28849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850 *) ac_try_echo=$ac_try;;
28851 esac
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853 (eval "$ac_link") 2>conftest.er1
28854 ac_status=$?
28855 grep -v '^ *+' conftest.er1 >conftest.err
28856 rm -f conftest.er1
28857 cat conftest.err >&5
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); } && {
28860 test -z "$ac_c_werror_flag" ||
28861 test ! -s conftest.err
28862 } && test -s conftest$ac_exeext &&
28863 $as_test_x conftest$ac_exeext; then
28864 eval "$as_ac_Lib=yes"
28865 else
28866 echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28869 eval "$as_ac_Lib=no"
28872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28873 conftest$ac_exeext conftest.$ac_ext
28874 LIBS=$ac_check_lib_save_LIBS
28876 ac_res=`eval echo '${'$as_ac_Lib'}'`
28877 { echo "$as_me:$LINENO: result: $ac_res" >&5
28878 echo "${ECHO_T}$ac_res" >&6; }
28879 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28880 AST_EXP_FOUND=yes
28881 else
28882 AST_EXP_FOUND=no
28887 # now check for the header.
28888 if test "${AST_EXP_FOUND}" = "yes"; then
28889 EXP_LIB="${pbxlibdir} -lm "
28890 # if --with-EXP=DIR has been specified, use it.
28891 if test "x${EXP_DIR}" != "x"; then
28892 EXP_INCLUDE="-I${EXP_DIR}/include"
28894 EXP_INCLUDE="${EXP_INCLUDE} "
28895 if test "x" = "x" ; then # no header, assume found
28896 EXP_HEADER_FOUND="1"
28897 else # check for the header
28898 saved_cppflags="${CPPFLAGS}"
28899 CPPFLAGS="${CPPFLAGS} ${EXP_INCLUDE} "
28900 if test "${ac_cv_header_+set}" = set; then
28901 { echo "$as_me:$LINENO: checking for " >&5
28902 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
28903 if test "${ac_cv_header_+set}" = set; then
28904 echo $ECHO_N "(cached) $ECHO_C" >&6
28906 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
28907 echo "${ECHO_T}$ac_cv_header_" >&6; }
28908 else
28909 # Is the header compilable?
28910 { echo "$as_me:$LINENO: checking usability" >&5
28911 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
28912 cat >conftest.$ac_ext <<_ACEOF
28913 /* confdefs.h. */
28914 _ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28918 $ac_includes_default
28919 #include <>
28920 _ACEOF
28921 rm -f conftest.$ac_objext
28922 if { (ac_try="$ac_compile"
28923 case "(($ac_try" in
28924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28925 *) ac_try_echo=$ac_try;;
28926 esac
28927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28928 (eval "$ac_compile") 2>conftest.er1
28929 ac_status=$?
28930 grep -v '^ *+' conftest.er1 >conftest.err
28931 rm -f conftest.er1
28932 cat conftest.err >&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); } && {
28935 test -z "$ac_c_werror_flag" ||
28936 test ! -s conftest.err
28937 } && test -s conftest.$ac_objext; then
28938 ac_header_compiler=yes
28939 else
28940 echo "$as_me: failed program was:" >&5
28941 sed 's/^/| /' conftest.$ac_ext >&5
28943 ac_header_compiler=no
28946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28948 echo "${ECHO_T}$ac_header_compiler" >&6; }
28950 # Is the header present?
28951 { echo "$as_me:$LINENO: checking presence" >&5
28952 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
28953 cat >conftest.$ac_ext <<_ACEOF
28954 /* confdefs.h. */
28955 _ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 #include <>
28960 _ACEOF
28961 if { (ac_try="$ac_cpp conftest.$ac_ext"
28962 case "(($ac_try" in
28963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28964 *) ac_try_echo=$ac_try;;
28965 esac
28966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28968 ac_status=$?
28969 grep -v '^ *+' conftest.er1 >conftest.err
28970 rm -f conftest.er1
28971 cat conftest.err >&5
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); } >/dev/null && {
28974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28975 test ! -s conftest.err
28976 }; then
28977 ac_header_preproc=yes
28978 else
28979 echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28982 ac_header_preproc=no
28985 rm -f conftest.err conftest.$ac_ext
28986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28987 echo "${ECHO_T}$ac_header_preproc" >&6; }
28989 # So? What about this header?
28990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28991 yes:no: )
28992 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
28993 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
28994 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
28995 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
28996 ac_header_preproc=yes
28998 no:yes:* )
28999 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29000 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29001 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29002 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29003 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29004 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29006 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29008 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29010 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29011 ( cat <<\_ASBOX
29012 ## ------------------------------- ##
29013 ## Report this to www.asterisk.org ##
29014 ## ------------------------------- ##
29015 _ASBOX
29016 ) | sed "s/^/$as_me: WARNING: /" >&2
29018 esac
29019 { echo "$as_me:$LINENO: checking for " >&5
29020 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29021 if test "${ac_cv_header_+set}" = set; then
29022 echo $ECHO_N "(cached) $ECHO_C" >&6
29023 else
29024 ac_cv_header_=$ac_header_preproc
29026 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29027 echo "${ECHO_T}$ac_cv_header_" >&6; }
29030 if test $ac_cv_header_ = yes; then
29031 EXP_HEADER_FOUND=1
29032 else
29033 EXP_HEADER_FOUND=0
29037 CPPFLAGS="${saved_cppflags}"
29039 if test "x${EXP_HEADER_FOUND}" = "x0" ; then
29040 EXP_LIB=""
29041 EXP_INCLUDE=""
29042 else
29043 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29044 EXP_LIB=""
29046 PBX_EXP=1
29047 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29049 cat >>confdefs.h <<_ACEOF
29050 #define HAVE_EXP 1
29051 _ACEOF
29054 cat >>confdefs.h <<_ACEOF
29055 #define HAVE_EXP_VERSION
29056 _ACEOF
29063 if test "x${PBX_LOG}" != "x1" -a "${USE_LOG}" != "no"; then
29064 pbxlibdir=""
29065 # if --with-LOG=DIR has been specified, use it.
29066 if test "x${LOG_DIR}" != "x"; then
29067 if test -d ${LOG_DIR}/lib; then
29068 pbxlibdir="-L${LOG_DIR}/lib"
29069 else
29070 pbxlibdir="-L${LOG_DIR}"
29073 pbxfuncname="log"
29074 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29075 AST_LOG_FOUND=yes
29076 else
29077 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29078 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29079 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29080 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 else
29083 ac_check_lib_save_LIBS=$LIBS
29084 LIBS="-lm ${pbxlibdir} $LIBS"
29085 cat >conftest.$ac_ext <<_ACEOF
29086 /* confdefs.h. */
29087 _ACEOF
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h. */
29092 /* Override any GCC internal prototype to avoid an error.
29093 Use char because int might match the return type of a GCC
29094 builtin and then its argument prototype would still apply. */
29095 #ifdef __cplusplus
29096 extern "C"
29097 #endif
29098 char ${pbxfuncname} ();
29100 main ()
29102 return ${pbxfuncname} ();
29104 return 0;
29106 _ACEOF
29107 rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (ac_try="$ac_link"
29109 case "(($ac_try" in
29110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111 *) ac_try_echo=$ac_try;;
29112 esac
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114 (eval "$ac_link") 2>conftest.er1
29115 ac_status=$?
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } && {
29121 test -z "$ac_c_werror_flag" ||
29122 test ! -s conftest.err
29123 } && test -s conftest$ac_exeext &&
29124 $as_test_x conftest$ac_exeext; then
29125 eval "$as_ac_Lib=yes"
29126 else
29127 echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29130 eval "$as_ac_Lib=no"
29133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29134 conftest$ac_exeext conftest.$ac_ext
29135 LIBS=$ac_check_lib_save_LIBS
29137 ac_res=`eval echo '${'$as_ac_Lib'}'`
29138 { echo "$as_me:$LINENO: result: $ac_res" >&5
29139 echo "${ECHO_T}$ac_res" >&6; }
29140 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29141 AST_LOG_FOUND=yes
29142 else
29143 AST_LOG_FOUND=no
29148 # now check for the header.
29149 if test "${AST_LOG_FOUND}" = "yes"; then
29150 LOG_LIB="${pbxlibdir} -lm "
29151 # if --with-LOG=DIR has been specified, use it.
29152 if test "x${LOG_DIR}" != "x"; then
29153 LOG_INCLUDE="-I${LOG_DIR}/include"
29155 LOG_INCLUDE="${LOG_INCLUDE} "
29156 if test "x" = "x" ; then # no header, assume found
29157 LOG_HEADER_FOUND="1"
29158 else # check for the header
29159 saved_cppflags="${CPPFLAGS}"
29160 CPPFLAGS="${CPPFLAGS} ${LOG_INCLUDE} "
29161 if test "${ac_cv_header_+set}" = set; then
29162 { echo "$as_me:$LINENO: checking for " >&5
29163 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29164 if test "${ac_cv_header_+set}" = set; then
29165 echo $ECHO_N "(cached) $ECHO_C" >&6
29167 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29168 echo "${ECHO_T}$ac_cv_header_" >&6; }
29169 else
29170 # Is the header compilable?
29171 { echo "$as_me:$LINENO: checking usability" >&5
29172 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29173 cat >conftest.$ac_ext <<_ACEOF
29174 /* confdefs.h. */
29175 _ACEOF
29176 cat confdefs.h >>conftest.$ac_ext
29177 cat >>conftest.$ac_ext <<_ACEOF
29178 /* end confdefs.h. */
29179 $ac_includes_default
29180 #include <>
29181 _ACEOF
29182 rm -f conftest.$ac_objext
29183 if { (ac_try="$ac_compile"
29184 case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29187 esac
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_compile") 2>conftest.er1
29190 ac_status=$?
29191 grep -v '^ *+' conftest.er1 >conftest.err
29192 rm -f conftest.er1
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } && {
29196 test -z "$ac_c_werror_flag" ||
29197 test ! -s conftest.err
29198 } && test -s conftest.$ac_objext; then
29199 ac_header_compiler=yes
29200 else
29201 echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29204 ac_header_compiler=no
29207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29209 echo "${ECHO_T}$ac_header_compiler" >&6; }
29211 # Is the header present?
29212 { echo "$as_me:$LINENO: checking presence" >&5
29213 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29214 cat >conftest.$ac_ext <<_ACEOF
29215 /* confdefs.h. */
29216 _ACEOF
29217 cat confdefs.h >>conftest.$ac_ext
29218 cat >>conftest.$ac_ext <<_ACEOF
29219 /* end confdefs.h. */
29220 #include <>
29221 _ACEOF
29222 if { (ac_try="$ac_cpp conftest.$ac_ext"
29223 case "(($ac_try" in
29224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29225 *) ac_try_echo=$ac_try;;
29226 esac
29227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29229 ac_status=$?
29230 grep -v '^ *+' conftest.er1 >conftest.err
29231 rm -f conftest.er1
29232 cat conftest.err >&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); } >/dev/null && {
29235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29236 test ! -s conftest.err
29237 }; then
29238 ac_header_preproc=yes
29239 else
29240 echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29243 ac_header_preproc=no
29246 rm -f conftest.err conftest.$ac_ext
29247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29248 echo "${ECHO_T}$ac_header_preproc" >&6; }
29250 # So? What about this header?
29251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29252 yes:no: )
29253 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29254 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29255 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29256 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29257 ac_header_preproc=yes
29259 no:yes:* )
29260 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29261 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29262 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29263 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29264 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29265 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29266 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29267 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29268 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29269 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29270 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29271 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29272 ( cat <<\_ASBOX
29273 ## ------------------------------- ##
29274 ## Report this to www.asterisk.org ##
29275 ## ------------------------------- ##
29276 _ASBOX
29277 ) | sed "s/^/$as_me: WARNING: /" >&2
29279 esac
29280 { echo "$as_me:$LINENO: checking for " >&5
29281 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29282 if test "${ac_cv_header_+set}" = set; then
29283 echo $ECHO_N "(cached) $ECHO_C" >&6
29284 else
29285 ac_cv_header_=$ac_header_preproc
29287 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29288 echo "${ECHO_T}$ac_cv_header_" >&6; }
29291 if test $ac_cv_header_ = yes; then
29292 LOG_HEADER_FOUND=1
29293 else
29294 LOG_HEADER_FOUND=0
29298 CPPFLAGS="${saved_cppflags}"
29300 if test "x${LOG_HEADER_FOUND}" = "x0" ; then
29301 LOG_LIB=""
29302 LOG_INCLUDE=""
29303 else
29304 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29305 LOG_LIB=""
29307 PBX_LOG=1
29308 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29310 cat >>confdefs.h <<_ACEOF
29311 #define HAVE_LOG 1
29312 _ACEOF
29315 cat >>confdefs.h <<_ACEOF
29316 #define HAVE_LOG_VERSION
29317 _ACEOF
29324 if test "x${PBX_REMAINDER}" != "x1" -a "${USE_REMAINDER}" != "no"; then
29325 pbxlibdir=""
29326 # if --with-REMAINDER=DIR has been specified, use it.
29327 if test "x${REMAINDER_DIR}" != "x"; then
29328 if test -d ${REMAINDER_DIR}/lib; then
29329 pbxlibdir="-L${REMAINDER_DIR}/lib"
29330 else
29331 pbxlibdir="-L${REMAINDER_DIR}"
29334 pbxfuncname="remainder"
29335 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29336 AST_REMAINDER_FOUND=yes
29337 else
29338 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29339 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29340 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29341 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29342 echo $ECHO_N "(cached) $ECHO_C" >&6
29343 else
29344 ac_check_lib_save_LIBS=$LIBS
29345 LIBS="-lm ${pbxlibdir} $LIBS"
29346 cat >conftest.$ac_ext <<_ACEOF
29347 /* confdefs.h. */
29348 _ACEOF
29349 cat confdefs.h >>conftest.$ac_ext
29350 cat >>conftest.$ac_ext <<_ACEOF
29351 /* end confdefs.h. */
29353 /* Override any GCC internal prototype to avoid an error.
29354 Use char because int might match the return type of a GCC
29355 builtin and then its argument prototype would still apply. */
29356 #ifdef __cplusplus
29357 extern "C"
29358 #endif
29359 char ${pbxfuncname} ();
29361 main ()
29363 return ${pbxfuncname} ();
29365 return 0;
29367 _ACEOF
29368 rm -f conftest.$ac_objext conftest$ac_exeext
29369 if { (ac_try="$ac_link"
29370 case "(($ac_try" in
29371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29372 *) ac_try_echo=$ac_try;;
29373 esac
29374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29375 (eval "$ac_link") 2>conftest.er1
29376 ac_status=$?
29377 grep -v '^ *+' conftest.er1 >conftest.err
29378 rm -f conftest.er1
29379 cat conftest.err >&5
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); } && {
29382 test -z "$ac_c_werror_flag" ||
29383 test ! -s conftest.err
29384 } && test -s conftest$ac_exeext &&
29385 $as_test_x conftest$ac_exeext; then
29386 eval "$as_ac_Lib=yes"
29387 else
29388 echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29391 eval "$as_ac_Lib=no"
29394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29395 conftest$ac_exeext conftest.$ac_ext
29396 LIBS=$ac_check_lib_save_LIBS
29398 ac_res=`eval echo '${'$as_ac_Lib'}'`
29399 { echo "$as_me:$LINENO: result: $ac_res" >&5
29400 echo "${ECHO_T}$ac_res" >&6; }
29401 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29402 AST_REMAINDER_FOUND=yes
29403 else
29404 AST_REMAINDER_FOUND=no
29409 # now check for the header.
29410 if test "${AST_REMAINDER_FOUND}" = "yes"; then
29411 REMAINDER_LIB="${pbxlibdir} -lm "
29412 # if --with-REMAINDER=DIR has been specified, use it.
29413 if test "x${REMAINDER_DIR}" != "x"; then
29414 REMAINDER_INCLUDE="-I${REMAINDER_DIR}/include"
29416 REMAINDER_INCLUDE="${REMAINDER_INCLUDE} "
29417 if test "x" = "x" ; then # no header, assume found
29418 REMAINDER_HEADER_FOUND="1"
29419 else # check for the header
29420 saved_cppflags="${CPPFLAGS}"
29421 CPPFLAGS="${CPPFLAGS} ${REMAINDER_INCLUDE} "
29422 if test "${ac_cv_header_+set}" = set; then
29423 { echo "$as_me:$LINENO: checking for " >&5
29424 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29425 if test "${ac_cv_header_+set}" = set; then
29426 echo $ECHO_N "(cached) $ECHO_C" >&6
29428 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29429 echo "${ECHO_T}$ac_cv_header_" >&6; }
29430 else
29431 # Is the header compilable?
29432 { echo "$as_me:$LINENO: checking usability" >&5
29433 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29434 cat >conftest.$ac_ext <<_ACEOF
29435 /* confdefs.h. */
29436 _ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h. */
29440 $ac_includes_default
29441 #include <>
29442 _ACEOF
29443 rm -f conftest.$ac_objext
29444 if { (ac_try="$ac_compile"
29445 case "(($ac_try" in
29446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29447 *) ac_try_echo=$ac_try;;
29448 esac
29449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29450 (eval "$ac_compile") 2>conftest.er1
29451 ac_status=$?
29452 grep -v '^ *+' conftest.er1 >conftest.err
29453 rm -f conftest.er1
29454 cat conftest.err >&5
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); } && {
29457 test -z "$ac_c_werror_flag" ||
29458 test ! -s conftest.err
29459 } && test -s conftest.$ac_objext; then
29460 ac_header_compiler=yes
29461 else
29462 echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29465 ac_header_compiler=no
29468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29470 echo "${ECHO_T}$ac_header_compiler" >&6; }
29472 # Is the header present?
29473 { echo "$as_me:$LINENO: checking presence" >&5
29474 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29475 cat >conftest.$ac_ext <<_ACEOF
29476 /* confdefs.h. */
29477 _ACEOF
29478 cat confdefs.h >>conftest.$ac_ext
29479 cat >>conftest.$ac_ext <<_ACEOF
29480 /* end confdefs.h. */
29481 #include <>
29482 _ACEOF
29483 if { (ac_try="$ac_cpp conftest.$ac_ext"
29484 case "(($ac_try" in
29485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29486 *) ac_try_echo=$ac_try;;
29487 esac
29488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29490 ac_status=$?
29491 grep -v '^ *+' conftest.er1 >conftest.err
29492 rm -f conftest.er1
29493 cat conftest.err >&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } >/dev/null && {
29496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29497 test ! -s conftest.err
29498 }; then
29499 ac_header_preproc=yes
29500 else
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29504 ac_header_preproc=no
29507 rm -f conftest.err conftest.$ac_ext
29508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29509 echo "${ECHO_T}$ac_header_preproc" >&6; }
29511 # So? What about this header?
29512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29513 yes:no: )
29514 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29515 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29516 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29517 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29518 ac_header_preproc=yes
29520 no:yes:* )
29521 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29522 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29523 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29524 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29525 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29526 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29527 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29528 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29529 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29530 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29531 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29532 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29533 ( cat <<\_ASBOX
29534 ## ------------------------------- ##
29535 ## Report this to www.asterisk.org ##
29536 ## ------------------------------- ##
29537 _ASBOX
29538 ) | sed "s/^/$as_me: WARNING: /" >&2
29540 esac
29541 { echo "$as_me:$LINENO: checking for " >&5
29542 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29543 if test "${ac_cv_header_+set}" = set; then
29544 echo $ECHO_N "(cached) $ECHO_C" >&6
29545 else
29546 ac_cv_header_=$ac_header_preproc
29548 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29549 echo "${ECHO_T}$ac_cv_header_" >&6; }
29552 if test $ac_cv_header_ = yes; then
29553 REMAINDER_HEADER_FOUND=1
29554 else
29555 REMAINDER_HEADER_FOUND=0
29559 CPPFLAGS="${saved_cppflags}"
29561 if test "x${REMAINDER_HEADER_FOUND}" = "x0" ; then
29562 REMAINDER_LIB=""
29563 REMAINDER_INCLUDE=""
29564 else
29565 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29566 REMAINDER_LIB=""
29568 PBX_REMAINDER=1
29569 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29571 cat >>confdefs.h <<_ACEOF
29572 #define HAVE_REMAINDER 1
29573 _ACEOF
29576 cat >>confdefs.h <<_ACEOF
29577 #define HAVE_REMAINDER_VERSION
29578 _ACEOF
29585 if test "x${PBX_FMOD}" != "x1" -a "${USE_FMOD}" != "no"; then
29586 pbxlibdir=""
29587 # if --with-FMOD=DIR has been specified, use it.
29588 if test "x${FMOD_DIR}" != "x"; then
29589 if test -d ${FMOD_DIR}/lib; then
29590 pbxlibdir="-L${FMOD_DIR}/lib"
29591 else
29592 pbxlibdir="-L${FMOD_DIR}"
29595 pbxfuncname="fmod"
29596 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29597 AST_FMOD_FOUND=yes
29598 else
29599 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29600 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29601 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29602 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29603 echo $ECHO_N "(cached) $ECHO_C" >&6
29604 else
29605 ac_check_lib_save_LIBS=$LIBS
29606 LIBS="-lm ${pbxlibdir} $LIBS"
29607 cat >conftest.$ac_ext <<_ACEOF
29608 /* confdefs.h. */
29609 _ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h. */
29614 /* Override any GCC internal prototype to avoid an error.
29615 Use char because int might match the return type of a GCC
29616 builtin and then its argument prototype would still apply. */
29617 #ifdef __cplusplus
29618 extern "C"
29619 #endif
29620 char ${pbxfuncname} ();
29622 main ()
29624 return ${pbxfuncname} ();
29626 return 0;
29628 _ACEOF
29629 rm -f conftest.$ac_objext conftest$ac_exeext
29630 if { (ac_try="$ac_link"
29631 case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29634 esac
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_link") 2>conftest.er1
29637 ac_status=$?
29638 grep -v '^ *+' conftest.er1 >conftest.err
29639 rm -f conftest.er1
29640 cat conftest.err >&5
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642 (exit $ac_status); } && {
29643 test -z "$ac_c_werror_flag" ||
29644 test ! -s conftest.err
29645 } && test -s conftest$ac_exeext &&
29646 $as_test_x conftest$ac_exeext; then
29647 eval "$as_ac_Lib=yes"
29648 else
29649 echo "$as_me: failed program was:" >&5
29650 sed 's/^/| /' conftest.$ac_ext >&5
29652 eval "$as_ac_Lib=no"
29655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29656 conftest$ac_exeext conftest.$ac_ext
29657 LIBS=$ac_check_lib_save_LIBS
29659 ac_res=`eval echo '${'$as_ac_Lib'}'`
29660 { echo "$as_me:$LINENO: result: $ac_res" >&5
29661 echo "${ECHO_T}$ac_res" >&6; }
29662 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29663 AST_FMOD_FOUND=yes
29664 else
29665 AST_FMOD_FOUND=no
29670 # now check for the header.
29671 if test "${AST_FMOD_FOUND}" = "yes"; then
29672 FMOD_LIB="${pbxlibdir} -lm "
29673 # if --with-FMOD=DIR has been specified, use it.
29674 if test "x${FMOD_DIR}" != "x"; then
29675 FMOD_INCLUDE="-I${FMOD_DIR}/include"
29677 FMOD_INCLUDE="${FMOD_INCLUDE} "
29678 if test "x" = "x" ; then # no header, assume found
29679 FMOD_HEADER_FOUND="1"
29680 else # check for the header
29681 saved_cppflags="${CPPFLAGS}"
29682 CPPFLAGS="${CPPFLAGS} ${FMOD_INCLUDE} "
29683 if test "${ac_cv_header_+set}" = set; then
29684 { echo "$as_me:$LINENO: checking for " >&5
29685 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29686 if test "${ac_cv_header_+set}" = set; then
29687 echo $ECHO_N "(cached) $ECHO_C" >&6
29689 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29690 echo "${ECHO_T}$ac_cv_header_" >&6; }
29691 else
29692 # Is the header compilable?
29693 { echo "$as_me:$LINENO: checking usability" >&5
29694 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29695 cat >conftest.$ac_ext <<_ACEOF
29696 /* confdefs.h. */
29697 _ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h. */
29701 $ac_includes_default
29702 #include <>
29703 _ACEOF
29704 rm -f conftest.$ac_objext
29705 if { (ac_try="$ac_compile"
29706 case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29709 esac
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_compile") 2>conftest.er1
29712 ac_status=$?
29713 grep -v '^ *+' conftest.er1 >conftest.err
29714 rm -f conftest.er1
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } && {
29718 test -z "$ac_c_werror_flag" ||
29719 test ! -s conftest.err
29720 } && test -s conftest.$ac_objext; then
29721 ac_header_compiler=yes
29722 else
29723 echo "$as_me: failed program was:" >&5
29724 sed 's/^/| /' conftest.$ac_ext >&5
29726 ac_header_compiler=no
29729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29731 echo "${ECHO_T}$ac_header_compiler" >&6; }
29733 # Is the header present?
29734 { echo "$as_me:$LINENO: checking presence" >&5
29735 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29736 cat >conftest.$ac_ext <<_ACEOF
29737 /* confdefs.h. */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h. */
29742 #include <>
29743 _ACEOF
29744 if { (ac_try="$ac_cpp conftest.$ac_ext"
29745 case "(($ac_try" in
29746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29747 *) ac_try_echo=$ac_try;;
29748 esac
29749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29751 ac_status=$?
29752 grep -v '^ *+' conftest.er1 >conftest.err
29753 rm -f conftest.er1
29754 cat conftest.err >&5
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); } >/dev/null && {
29757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29758 test ! -s conftest.err
29759 }; then
29760 ac_header_preproc=yes
29761 else
29762 echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29765 ac_header_preproc=no
29768 rm -f conftest.err conftest.$ac_ext
29769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29770 echo "${ECHO_T}$ac_header_preproc" >&6; }
29772 # So? What about this header?
29773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29774 yes:no: )
29775 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
29776 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
29777 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
29778 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
29779 ac_header_preproc=yes
29781 no:yes:* )
29782 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
29783 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
29784 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
29785 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
29786 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
29787 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
29788 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
29789 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
29790 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
29791 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
29792 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
29793 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
29794 ( cat <<\_ASBOX
29795 ## ------------------------------- ##
29796 ## Report this to www.asterisk.org ##
29797 ## ------------------------------- ##
29798 _ASBOX
29799 ) | sed "s/^/$as_me: WARNING: /" >&2
29801 esac
29802 { echo "$as_me:$LINENO: checking for " >&5
29803 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29804 if test "${ac_cv_header_+set}" = set; then
29805 echo $ECHO_N "(cached) $ECHO_C" >&6
29806 else
29807 ac_cv_header_=$ac_header_preproc
29809 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29810 echo "${ECHO_T}$ac_cv_header_" >&6; }
29813 if test $ac_cv_header_ = yes; then
29814 FMOD_HEADER_FOUND=1
29815 else
29816 FMOD_HEADER_FOUND=0
29820 CPPFLAGS="${saved_cppflags}"
29822 if test "x${FMOD_HEADER_FOUND}" = "x0" ; then
29823 FMOD_LIB=""
29824 FMOD_INCLUDE=""
29825 else
29826 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
29827 FMOD_LIB=""
29829 PBX_FMOD=1
29830 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
29832 cat >>confdefs.h <<_ACEOF
29833 #define HAVE_FMOD 1
29834 _ACEOF
29837 cat >>confdefs.h <<_ACEOF
29838 #define HAVE_FMOD_VERSION
29839 _ACEOF
29846 if test "x${PBX_ROUND}" != "x1" -a "${USE_ROUND}" != "no"; then
29847 pbxlibdir=""
29848 # if --with-ROUND=DIR has been specified, use it.
29849 if test "x${ROUND_DIR}" != "x"; then
29850 if test -d ${ROUND_DIR}/lib; then
29851 pbxlibdir="-L${ROUND_DIR}/lib"
29852 else
29853 pbxlibdir="-L${ROUND_DIR}"
29856 pbxfuncname="round"
29857 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
29858 AST_ROUND_FOUND=yes
29859 else
29860 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
29861 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
29862 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
29863 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29864 echo $ECHO_N "(cached) $ECHO_C" >&6
29865 else
29866 ac_check_lib_save_LIBS=$LIBS
29867 LIBS="-lm ${pbxlibdir} $LIBS"
29868 cat >conftest.$ac_ext <<_ACEOF
29869 /* confdefs.h. */
29870 _ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h. */
29875 /* Override any GCC internal prototype to avoid an error.
29876 Use char because int might match the return type of a GCC
29877 builtin and then its argument prototype would still apply. */
29878 #ifdef __cplusplus
29879 extern "C"
29880 #endif
29881 char ${pbxfuncname} ();
29883 main ()
29885 return ${pbxfuncname} ();
29887 return 0;
29889 _ACEOF
29890 rm -f conftest.$ac_objext conftest$ac_exeext
29891 if { (ac_try="$ac_link"
29892 case "(($ac_try" in
29893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894 *) ac_try_echo=$ac_try;;
29895 esac
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897 (eval "$ac_link") 2>conftest.er1
29898 ac_status=$?
29899 grep -v '^ *+' conftest.er1 >conftest.err
29900 rm -f conftest.er1
29901 cat conftest.err >&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); } && {
29904 test -z "$ac_c_werror_flag" ||
29905 test ! -s conftest.err
29906 } && test -s conftest$ac_exeext &&
29907 $as_test_x conftest$ac_exeext; then
29908 eval "$as_ac_Lib=yes"
29909 else
29910 echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29913 eval "$as_ac_Lib=no"
29916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29917 conftest$ac_exeext conftest.$ac_ext
29918 LIBS=$ac_check_lib_save_LIBS
29920 ac_res=`eval echo '${'$as_ac_Lib'}'`
29921 { echo "$as_me:$LINENO: result: $ac_res" >&5
29922 echo "${ECHO_T}$ac_res" >&6; }
29923 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29924 AST_ROUND_FOUND=yes
29925 else
29926 AST_ROUND_FOUND=no
29931 # now check for the header.
29932 if test "${AST_ROUND_FOUND}" = "yes"; then
29933 ROUND_LIB="${pbxlibdir} -lm "
29934 # if --with-ROUND=DIR has been specified, use it.
29935 if test "x${ROUND_DIR}" != "x"; then
29936 ROUND_INCLUDE="-I${ROUND_DIR}/include"
29938 ROUND_INCLUDE="${ROUND_INCLUDE} "
29939 if test "x" = "x" ; then # no header, assume found
29940 ROUND_HEADER_FOUND="1"
29941 else # check for the header
29942 saved_cppflags="${CPPFLAGS}"
29943 CPPFLAGS="${CPPFLAGS} ${ROUND_INCLUDE} "
29944 if test "${ac_cv_header_+set}" = set; then
29945 { echo "$as_me:$LINENO: checking for " >&5
29946 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
29947 if test "${ac_cv_header_+set}" = set; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29950 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
29951 echo "${ECHO_T}$ac_cv_header_" >&6; }
29952 else
29953 # Is the header compilable?
29954 { echo "$as_me:$LINENO: checking usability" >&5
29955 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
29956 cat >conftest.$ac_ext <<_ACEOF
29957 /* confdefs.h. */
29958 _ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h. */
29962 $ac_includes_default
29963 #include <>
29964 _ACEOF
29965 rm -f conftest.$ac_objext
29966 if { (ac_try="$ac_compile"
29967 case "(($ac_try" in
29968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969 *) ac_try_echo=$ac_try;;
29970 esac
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972 (eval "$ac_compile") 2>conftest.er1
29973 ac_status=$?
29974 grep -v '^ *+' conftest.er1 >conftest.err
29975 rm -f conftest.er1
29976 cat conftest.err >&5
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); } && {
29979 test -z "$ac_c_werror_flag" ||
29980 test ! -s conftest.err
29981 } && test -s conftest.$ac_objext; then
29982 ac_header_compiler=yes
29983 else
29984 echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29987 ac_header_compiler=no
29990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29992 echo "${ECHO_T}$ac_header_compiler" >&6; }
29994 # Is the header present?
29995 { echo "$as_me:$LINENO: checking presence" >&5
29996 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
29997 cat >conftest.$ac_ext <<_ACEOF
29998 /* confdefs.h. */
29999 _ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h. */
30003 #include <>
30004 _ACEOF
30005 if { (ac_try="$ac_cpp conftest.$ac_ext"
30006 case "(($ac_try" in
30007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30008 *) ac_try_echo=$ac_try;;
30009 esac
30010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30012 ac_status=$?
30013 grep -v '^ *+' conftest.er1 >conftest.err
30014 rm -f conftest.er1
30015 cat conftest.err >&5
30016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017 (exit $ac_status); } >/dev/null && {
30018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30019 test ! -s conftest.err
30020 }; then
30021 ac_header_preproc=yes
30022 else
30023 echo "$as_me: failed program was:" >&5
30024 sed 's/^/| /' conftest.$ac_ext >&5
30026 ac_header_preproc=no
30029 rm -f conftest.err conftest.$ac_ext
30030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30031 echo "${ECHO_T}$ac_header_preproc" >&6; }
30033 # So? What about this header?
30034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30035 yes:no: )
30036 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30037 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30038 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30039 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30040 ac_header_preproc=yes
30042 no:yes:* )
30043 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30044 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30045 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30046 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30047 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30048 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30049 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30050 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30051 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30052 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30053 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30054 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30055 ( cat <<\_ASBOX
30056 ## ------------------------------- ##
30057 ## Report this to www.asterisk.org ##
30058 ## ------------------------------- ##
30059 _ASBOX
30060 ) | sed "s/^/$as_me: WARNING: /" >&2
30062 esac
30063 { echo "$as_me:$LINENO: checking for " >&5
30064 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30065 if test "${ac_cv_header_+set}" = set; then
30066 echo $ECHO_N "(cached) $ECHO_C" >&6
30067 else
30068 ac_cv_header_=$ac_header_preproc
30070 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30071 echo "${ECHO_T}$ac_cv_header_" >&6; }
30074 if test $ac_cv_header_ = yes; then
30075 ROUND_HEADER_FOUND=1
30076 else
30077 ROUND_HEADER_FOUND=0
30081 CPPFLAGS="${saved_cppflags}"
30083 if test "x${ROUND_HEADER_FOUND}" = "x0" ; then
30084 ROUND_LIB=""
30085 ROUND_INCLUDE=""
30086 else
30087 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30088 ROUND_LIB=""
30090 PBX_ROUND=1
30091 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30093 cat >>confdefs.h <<_ACEOF
30094 #define HAVE_ROUND 1
30095 _ACEOF
30098 cat >>confdefs.h <<_ACEOF
30099 #define HAVE_ROUND_VERSION
30100 _ACEOF
30107 if test "x${PBX_TRUNC}" != "x1" -a "${USE_TRUNC}" != "no"; then
30108 pbxlibdir=""
30109 # if --with-TRUNC=DIR has been specified, use it.
30110 if test "x${TRUNC_DIR}" != "x"; then
30111 if test -d ${TRUNC_DIR}/lib; then
30112 pbxlibdir="-L${TRUNC_DIR}/lib"
30113 else
30114 pbxlibdir="-L${TRUNC_DIR}"
30117 pbxfuncname="trunc"
30118 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30119 AST_TRUNC_FOUND=yes
30120 else
30121 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30122 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30123 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30124 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30126 else
30127 ac_check_lib_save_LIBS=$LIBS
30128 LIBS="-lm ${pbxlibdir} $LIBS"
30129 cat >conftest.$ac_ext <<_ACEOF
30130 /* confdefs.h. */
30131 _ACEOF
30132 cat confdefs.h >>conftest.$ac_ext
30133 cat >>conftest.$ac_ext <<_ACEOF
30134 /* end confdefs.h. */
30136 /* Override any GCC internal prototype to avoid an error.
30137 Use char because int might match the return type of a GCC
30138 builtin and then its argument prototype would still apply. */
30139 #ifdef __cplusplus
30140 extern "C"
30141 #endif
30142 char ${pbxfuncname} ();
30144 main ()
30146 return ${pbxfuncname} ();
30148 return 0;
30150 _ACEOF
30151 rm -f conftest.$ac_objext conftest$ac_exeext
30152 if { (ac_try="$ac_link"
30153 case "(($ac_try" in
30154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155 *) ac_try_echo=$ac_try;;
30156 esac
30157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158 (eval "$ac_link") 2>conftest.er1
30159 ac_status=$?
30160 grep -v '^ *+' conftest.er1 >conftest.err
30161 rm -f conftest.er1
30162 cat conftest.err >&5
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); } && {
30165 test -z "$ac_c_werror_flag" ||
30166 test ! -s conftest.err
30167 } && test -s conftest$ac_exeext &&
30168 $as_test_x conftest$ac_exeext; then
30169 eval "$as_ac_Lib=yes"
30170 else
30171 echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30174 eval "$as_ac_Lib=no"
30177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30178 conftest$ac_exeext conftest.$ac_ext
30179 LIBS=$ac_check_lib_save_LIBS
30181 ac_res=`eval echo '${'$as_ac_Lib'}'`
30182 { echo "$as_me:$LINENO: result: $ac_res" >&5
30183 echo "${ECHO_T}$ac_res" >&6; }
30184 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30185 AST_TRUNC_FOUND=yes
30186 else
30187 AST_TRUNC_FOUND=no
30192 # now check for the header.
30193 if test "${AST_TRUNC_FOUND}" = "yes"; then
30194 TRUNC_LIB="${pbxlibdir} -lm "
30195 # if --with-TRUNC=DIR has been specified, use it.
30196 if test "x${TRUNC_DIR}" != "x"; then
30197 TRUNC_INCLUDE="-I${TRUNC_DIR}/include"
30199 TRUNC_INCLUDE="${TRUNC_INCLUDE} "
30200 if test "x" = "x" ; then # no header, assume found
30201 TRUNC_HEADER_FOUND="1"
30202 else # check for the header
30203 saved_cppflags="${CPPFLAGS}"
30204 CPPFLAGS="${CPPFLAGS} ${TRUNC_INCLUDE} "
30205 if test "${ac_cv_header_+set}" = set; then
30206 { echo "$as_me:$LINENO: checking for " >&5
30207 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30208 if test "${ac_cv_header_+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30211 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30212 echo "${ECHO_T}$ac_cv_header_" >&6; }
30213 else
30214 # Is the header compilable?
30215 { echo "$as_me:$LINENO: checking usability" >&5
30216 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30217 cat >conftest.$ac_ext <<_ACEOF
30218 /* confdefs.h. */
30219 _ACEOF
30220 cat confdefs.h >>conftest.$ac_ext
30221 cat >>conftest.$ac_ext <<_ACEOF
30222 /* end confdefs.h. */
30223 $ac_includes_default
30224 #include <>
30225 _ACEOF
30226 rm -f conftest.$ac_objext
30227 if { (ac_try="$ac_compile"
30228 case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30231 esac
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_compile") 2>conftest.er1
30234 ac_status=$?
30235 grep -v '^ *+' conftest.er1 >conftest.err
30236 rm -f conftest.er1
30237 cat conftest.err >&5
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); } && {
30240 test -z "$ac_c_werror_flag" ||
30241 test ! -s conftest.err
30242 } && test -s conftest.$ac_objext; then
30243 ac_header_compiler=yes
30244 else
30245 echo "$as_me: failed program was:" >&5
30246 sed 's/^/| /' conftest.$ac_ext >&5
30248 ac_header_compiler=no
30251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30253 echo "${ECHO_T}$ac_header_compiler" >&6; }
30255 # Is the header present?
30256 { echo "$as_me:$LINENO: checking presence" >&5
30257 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30258 cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h. */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h. */
30264 #include <>
30265 _ACEOF
30266 if { (ac_try="$ac_cpp conftest.$ac_ext"
30267 case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30270 esac
30271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30273 ac_status=$?
30274 grep -v '^ *+' conftest.er1 >conftest.err
30275 rm -f conftest.er1
30276 cat conftest.err >&5
30277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278 (exit $ac_status); } >/dev/null && {
30279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30280 test ! -s conftest.err
30281 }; then
30282 ac_header_preproc=yes
30283 else
30284 echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30287 ac_header_preproc=no
30290 rm -f conftest.err conftest.$ac_ext
30291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30292 echo "${ECHO_T}$ac_header_preproc" >&6; }
30294 # So? What about this header?
30295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30296 yes:no: )
30297 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30298 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30299 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30300 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30301 ac_header_preproc=yes
30303 no:yes:* )
30304 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30305 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30306 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30307 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30308 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30309 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30310 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30311 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30312 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30313 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30314 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30315 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30316 ( cat <<\_ASBOX
30317 ## ------------------------------- ##
30318 ## Report this to www.asterisk.org ##
30319 ## ------------------------------- ##
30320 _ASBOX
30321 ) | sed "s/^/$as_me: WARNING: /" >&2
30323 esac
30324 { echo "$as_me:$LINENO: checking for " >&5
30325 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30326 if test "${ac_cv_header_+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30328 else
30329 ac_cv_header_=$ac_header_preproc
30331 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30332 echo "${ECHO_T}$ac_cv_header_" >&6; }
30335 if test $ac_cv_header_ = yes; then
30336 TRUNC_HEADER_FOUND=1
30337 else
30338 TRUNC_HEADER_FOUND=0
30342 CPPFLAGS="${saved_cppflags}"
30344 if test "x${TRUNC_HEADER_FOUND}" = "x0" ; then
30345 TRUNC_LIB=""
30346 TRUNC_INCLUDE=""
30347 else
30348 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30349 TRUNC_LIB=""
30351 PBX_TRUNC=1
30352 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30354 cat >>confdefs.h <<_ACEOF
30355 #define HAVE_TRUNC 1
30356 _ACEOF
30359 cat >>confdefs.h <<_ACEOF
30360 #define HAVE_TRUNC_VERSION
30361 _ACEOF
30368 if test "x${PBX_STRTOD}" != "x1" -a "${USE_STRTOD}" != "no"; then
30369 pbxlibdir=""
30370 # if --with-STRTOD=DIR has been specified, use it.
30371 if test "x${STRTOD_DIR}" != "x"; then
30372 if test -d ${STRTOD_DIR}/lib; then
30373 pbxlibdir="-L${STRTOD_DIR}/lib"
30374 else
30375 pbxlibdir="-L${STRTOD_DIR}"
30378 pbxfuncname="strtod"
30379 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30380 AST_STRTOD_FOUND=yes
30381 else
30382 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
30383 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
30384 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
30385 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30386 echo $ECHO_N "(cached) $ECHO_C" >&6
30387 else
30388 ac_check_lib_save_LIBS=$LIBS
30389 LIBS="-lc ${pbxlibdir} $LIBS"
30390 cat >conftest.$ac_ext <<_ACEOF
30391 /* confdefs.h. */
30392 _ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h. */
30397 /* Override any GCC internal prototype to avoid an error.
30398 Use char because int might match the return type of a GCC
30399 builtin and then its argument prototype would still apply. */
30400 #ifdef __cplusplus
30401 extern "C"
30402 #endif
30403 char ${pbxfuncname} ();
30405 main ()
30407 return ${pbxfuncname} ();
30409 return 0;
30411 _ACEOF
30412 rm -f conftest.$ac_objext conftest$ac_exeext
30413 if { (ac_try="$ac_link"
30414 case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30417 esac
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_link") 2>conftest.er1
30420 ac_status=$?
30421 grep -v '^ *+' conftest.er1 >conftest.err
30422 rm -f conftest.er1
30423 cat conftest.err >&5
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); } && {
30426 test -z "$ac_c_werror_flag" ||
30427 test ! -s conftest.err
30428 } && test -s conftest$ac_exeext &&
30429 $as_test_x conftest$ac_exeext; then
30430 eval "$as_ac_Lib=yes"
30431 else
30432 echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30435 eval "$as_ac_Lib=no"
30438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30439 conftest$ac_exeext conftest.$ac_ext
30440 LIBS=$ac_check_lib_save_LIBS
30442 ac_res=`eval echo '${'$as_ac_Lib'}'`
30443 { echo "$as_me:$LINENO: result: $ac_res" >&5
30444 echo "${ECHO_T}$ac_res" >&6; }
30445 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30446 AST_STRTOD_FOUND=yes
30447 else
30448 AST_STRTOD_FOUND=no
30453 # now check for the header.
30454 if test "${AST_STRTOD_FOUND}" = "yes"; then
30455 STRTOD_LIB="${pbxlibdir} -lc "
30456 # if --with-STRTOD=DIR has been specified, use it.
30457 if test "x${STRTOD_DIR}" != "x"; then
30458 STRTOD_INCLUDE="-I${STRTOD_DIR}/include"
30460 STRTOD_INCLUDE="${STRTOD_INCLUDE} "
30461 if test "xstdlib.h" = "x" ; then # no header, assume found
30462 STRTOD_HEADER_FOUND="1"
30463 else # check for the header
30464 saved_cppflags="${CPPFLAGS}"
30465 CPPFLAGS="${CPPFLAGS} ${STRTOD_INCLUDE} "
30466 if test "${ac_cv_header_stdlib_h+set}" = set; then
30467 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30468 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30469 if test "${ac_cv_header_stdlib_h+set}" = set; then
30470 echo $ECHO_N "(cached) $ECHO_C" >&6
30472 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30473 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30474 else
30475 # Is the header compilable?
30476 { echo "$as_me:$LINENO: checking stdlib.h usability" >&5
30477 echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; }
30478 cat >conftest.$ac_ext <<_ACEOF
30479 /* confdefs.h. */
30480 _ACEOF
30481 cat confdefs.h >>conftest.$ac_ext
30482 cat >>conftest.$ac_ext <<_ACEOF
30483 /* end confdefs.h. */
30484 $ac_includes_default
30485 #include <stdlib.h>
30486 _ACEOF
30487 rm -f conftest.$ac_objext
30488 if { (ac_try="$ac_compile"
30489 case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_compile") 2>conftest.er1
30495 ac_status=$?
30496 grep -v '^ *+' conftest.er1 >conftest.err
30497 rm -f conftest.er1
30498 cat conftest.err >&5
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); } && {
30501 test -z "$ac_c_werror_flag" ||
30502 test ! -s conftest.err
30503 } && test -s conftest.$ac_objext; then
30504 ac_header_compiler=yes
30505 else
30506 echo "$as_me: failed program was:" >&5
30507 sed 's/^/| /' conftest.$ac_ext >&5
30509 ac_header_compiler=no
30512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30514 echo "${ECHO_T}$ac_header_compiler" >&6; }
30516 # Is the header present?
30517 { echo "$as_me:$LINENO: checking stdlib.h presence" >&5
30518 echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; }
30519 cat >conftest.$ac_ext <<_ACEOF
30520 /* confdefs.h. */
30521 _ACEOF
30522 cat confdefs.h >>conftest.$ac_ext
30523 cat >>conftest.$ac_ext <<_ACEOF
30524 /* end confdefs.h. */
30525 #include <stdlib.h>
30526 _ACEOF
30527 if { (ac_try="$ac_cpp conftest.$ac_ext"
30528 case "(($ac_try" in
30529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530 *) ac_try_echo=$ac_try;;
30531 esac
30532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30534 ac_status=$?
30535 grep -v '^ *+' conftest.er1 >conftest.err
30536 rm -f conftest.er1
30537 cat conftest.err >&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); } >/dev/null && {
30540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30541 test ! -s conftest.err
30542 }; then
30543 ac_header_preproc=yes
30544 else
30545 echo "$as_me: failed program was:" >&5
30546 sed 's/^/| /' conftest.$ac_ext >&5
30548 ac_header_preproc=no
30551 rm -f conftest.err conftest.$ac_ext
30552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30553 echo "${ECHO_T}$ac_header_preproc" >&6; }
30555 # So? What about this header?
30556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30557 yes:no: )
30558 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
30559 echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
30561 echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
30562 ac_header_preproc=yes
30564 no:yes:* )
30565 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
30566 echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
30567 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
30568 echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
30569 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
30570 echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
30571 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
30572 echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
30573 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
30574 echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
30575 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
30576 echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
30577 ( cat <<\_ASBOX
30578 ## ------------------------------- ##
30579 ## Report this to www.asterisk.org ##
30580 ## ------------------------------- ##
30581 _ASBOX
30582 ) | sed "s/^/$as_me: WARNING: /" >&2
30584 esac
30585 { echo "$as_me:$LINENO: checking for stdlib.h" >&5
30586 echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; }
30587 if test "${ac_cv_header_stdlib_h+set}" = set; then
30588 echo $ECHO_N "(cached) $ECHO_C" >&6
30589 else
30590 ac_cv_header_stdlib_h=$ac_header_preproc
30592 { echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
30593 echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; }
30596 if test $ac_cv_header_stdlib_h = yes; then
30597 STRTOD_HEADER_FOUND=1
30598 else
30599 STRTOD_HEADER_FOUND=0
30603 CPPFLAGS="${saved_cppflags}"
30605 if test "x${STRTOD_HEADER_FOUND}" = "x0" ; then
30606 STRTOD_LIB=""
30607 STRTOD_INCLUDE=""
30608 else
30609 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30610 STRTOD_LIB=""
30612 PBX_STRTOD=1
30613 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30615 cat >>confdefs.h <<_ACEOF
30616 #define HAVE_STRTOD 1
30617 _ACEOF
30620 cat >>confdefs.h <<_ACEOF
30621 #define HAVE_STRTOD_VERSION
30622 _ACEOF
30629 if test "x${PBX_FLOOR}" != "x1" -a "${USE_FLOOR}" != "no"; then
30630 pbxlibdir=""
30631 # if --with-FLOOR=DIR has been specified, use it.
30632 if test "x${FLOOR_DIR}" != "x"; then
30633 if test -d ${FLOOR_DIR}/lib; then
30634 pbxlibdir="-L${FLOOR_DIR}/lib"
30635 else
30636 pbxlibdir="-L${FLOOR_DIR}"
30639 pbxfuncname="floor"
30640 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30641 AST_FLOOR_FOUND=yes
30642 else
30643 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30644 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30645 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30646 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 else
30649 ac_check_lib_save_LIBS=$LIBS
30650 LIBS="-lm ${pbxlibdir} $LIBS"
30651 cat >conftest.$ac_ext <<_ACEOF
30652 /* confdefs.h. */
30653 _ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h. */
30658 /* Override any GCC internal prototype to avoid an error.
30659 Use char because int might match the return type of a GCC
30660 builtin and then its argument prototype would still apply. */
30661 #ifdef __cplusplus
30662 extern "C"
30663 #endif
30664 char ${pbxfuncname} ();
30666 main ()
30668 return ${pbxfuncname} ();
30670 return 0;
30672 _ACEOF
30673 rm -f conftest.$ac_objext conftest$ac_exeext
30674 if { (ac_try="$ac_link"
30675 case "(($ac_try" in
30676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30677 *) ac_try_echo=$ac_try;;
30678 esac
30679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30680 (eval "$ac_link") 2>conftest.er1
30681 ac_status=$?
30682 grep -v '^ *+' conftest.er1 >conftest.err
30683 rm -f conftest.er1
30684 cat conftest.err >&5
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); } && {
30687 test -z "$ac_c_werror_flag" ||
30688 test ! -s conftest.err
30689 } && test -s conftest$ac_exeext &&
30690 $as_test_x conftest$ac_exeext; then
30691 eval "$as_ac_Lib=yes"
30692 else
30693 echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30696 eval "$as_ac_Lib=no"
30699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30700 conftest$ac_exeext conftest.$ac_ext
30701 LIBS=$ac_check_lib_save_LIBS
30703 ac_res=`eval echo '${'$as_ac_Lib'}'`
30704 { echo "$as_me:$LINENO: result: $ac_res" >&5
30705 echo "${ECHO_T}$ac_res" >&6; }
30706 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30707 AST_FLOOR_FOUND=yes
30708 else
30709 AST_FLOOR_FOUND=no
30714 # now check for the header.
30715 if test "${AST_FLOOR_FOUND}" = "yes"; then
30716 FLOOR_LIB="${pbxlibdir} -lm "
30717 # if --with-FLOOR=DIR has been specified, use it.
30718 if test "x${FLOOR_DIR}" != "x"; then
30719 FLOOR_INCLUDE="-I${FLOOR_DIR}/include"
30721 FLOOR_INCLUDE="${FLOOR_INCLUDE} "
30722 if test "x" = "x" ; then # no header, assume found
30723 FLOOR_HEADER_FOUND="1"
30724 else # check for the header
30725 saved_cppflags="${CPPFLAGS}"
30726 CPPFLAGS="${CPPFLAGS} ${FLOOR_INCLUDE} "
30727 if test "${ac_cv_header_+set}" = set; then
30728 { echo "$as_me:$LINENO: checking for " >&5
30729 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30730 if test "${ac_cv_header_+set}" = set; then
30731 echo $ECHO_N "(cached) $ECHO_C" >&6
30733 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30734 echo "${ECHO_T}$ac_cv_header_" >&6; }
30735 else
30736 # Is the header compilable?
30737 { echo "$as_me:$LINENO: checking usability" >&5
30738 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
30739 cat >conftest.$ac_ext <<_ACEOF
30740 /* confdefs.h. */
30741 _ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h. */
30745 $ac_includes_default
30746 #include <>
30747 _ACEOF
30748 rm -f conftest.$ac_objext
30749 if { (ac_try="$ac_compile"
30750 case "(($ac_try" in
30751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30753 esac
30754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_compile") 2>conftest.er1
30756 ac_status=$?
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } && {
30762 test -z "$ac_c_werror_flag" ||
30763 test ! -s conftest.err
30764 } && test -s conftest.$ac_objext; then
30765 ac_header_compiler=yes
30766 else
30767 echo "$as_me: failed program was:" >&5
30768 sed 's/^/| /' conftest.$ac_ext >&5
30770 ac_header_compiler=no
30773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30775 echo "${ECHO_T}$ac_header_compiler" >&6; }
30777 # Is the header present?
30778 { echo "$as_me:$LINENO: checking presence" >&5
30779 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
30780 cat >conftest.$ac_ext <<_ACEOF
30781 /* confdefs.h. */
30782 _ACEOF
30783 cat confdefs.h >>conftest.$ac_ext
30784 cat >>conftest.$ac_ext <<_ACEOF
30785 /* end confdefs.h. */
30786 #include <>
30787 _ACEOF
30788 if { (ac_try="$ac_cpp conftest.$ac_ext"
30789 case "(($ac_try" in
30790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30791 *) ac_try_echo=$ac_try;;
30792 esac
30793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30795 ac_status=$?
30796 grep -v '^ *+' conftest.er1 >conftest.err
30797 rm -f conftest.er1
30798 cat conftest.err >&5
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); } >/dev/null && {
30801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30802 test ! -s conftest.err
30803 }; then
30804 ac_header_preproc=yes
30805 else
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.$ac_ext >&5
30809 ac_header_preproc=no
30812 rm -f conftest.err conftest.$ac_ext
30813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30814 echo "${ECHO_T}$ac_header_preproc" >&6; }
30816 # So? What about this header?
30817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30818 yes:no: )
30819 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
30820 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
30821 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
30822 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
30823 ac_header_preproc=yes
30825 no:yes:* )
30826 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
30827 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
30828 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
30829 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
30830 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
30831 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
30832 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
30833 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
30834 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
30835 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
30836 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
30837 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
30838 ( cat <<\_ASBOX
30839 ## ------------------------------- ##
30840 ## Report this to www.asterisk.org ##
30841 ## ------------------------------- ##
30842 _ASBOX
30843 ) | sed "s/^/$as_me: WARNING: /" >&2
30845 esac
30846 { echo "$as_me:$LINENO: checking for " >&5
30847 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30848 if test "${ac_cv_header_+set}" = set; then
30849 echo $ECHO_N "(cached) $ECHO_C" >&6
30850 else
30851 ac_cv_header_=$ac_header_preproc
30853 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30854 echo "${ECHO_T}$ac_cv_header_" >&6; }
30857 if test $ac_cv_header_ = yes; then
30858 FLOOR_HEADER_FOUND=1
30859 else
30860 FLOOR_HEADER_FOUND=0
30864 CPPFLAGS="${saved_cppflags}"
30866 if test "x${FLOOR_HEADER_FOUND}" = "x0" ; then
30867 FLOOR_LIB=""
30868 FLOOR_INCLUDE=""
30869 else
30870 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
30871 FLOOR_LIB=""
30873 PBX_FLOOR=1
30874 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
30876 cat >>confdefs.h <<_ACEOF
30877 #define HAVE_FLOOR 1
30878 _ACEOF
30881 cat >>confdefs.h <<_ACEOF
30882 #define HAVE_FLOOR_VERSION
30883 _ACEOF
30890 if test "x${PBX_CEIL}" != "x1" -a "${USE_CEIL}" != "no"; then
30891 pbxlibdir=""
30892 # if --with-CEIL=DIR has been specified, use it.
30893 if test "x${CEIL_DIR}" != "x"; then
30894 if test -d ${CEIL_DIR}/lib; then
30895 pbxlibdir="-L${CEIL_DIR}/lib"
30896 else
30897 pbxlibdir="-L${CEIL_DIR}"
30900 pbxfuncname="ceil"
30901 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
30902 AST_CEIL_FOUND=yes
30903 else
30904 as_ac_Lib=`echo "ac_cv_lib_m_${pbxfuncname}" | $as_tr_sh`
30905 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lm" >&5
30906 echo $ECHO_N "checking for ${pbxfuncname} in -lm... $ECHO_C" >&6; }
30907 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
30908 echo $ECHO_N "(cached) $ECHO_C" >&6
30909 else
30910 ac_check_lib_save_LIBS=$LIBS
30911 LIBS="-lm ${pbxlibdir} $LIBS"
30912 cat >conftest.$ac_ext <<_ACEOF
30913 /* confdefs.h. */
30914 _ACEOF
30915 cat confdefs.h >>conftest.$ac_ext
30916 cat >>conftest.$ac_ext <<_ACEOF
30917 /* end confdefs.h. */
30919 /* Override any GCC internal prototype to avoid an error.
30920 Use char because int might match the return type of a GCC
30921 builtin and then its argument prototype would still apply. */
30922 #ifdef __cplusplus
30923 extern "C"
30924 #endif
30925 char ${pbxfuncname} ();
30927 main ()
30929 return ${pbxfuncname} ();
30931 return 0;
30933 _ACEOF
30934 rm -f conftest.$ac_objext conftest$ac_exeext
30935 if { (ac_try="$ac_link"
30936 case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30939 esac
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_link") 2>conftest.er1
30942 ac_status=$?
30943 grep -v '^ *+' conftest.er1 >conftest.err
30944 rm -f conftest.er1
30945 cat conftest.err >&5
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } && {
30948 test -z "$ac_c_werror_flag" ||
30949 test ! -s conftest.err
30950 } && test -s conftest$ac_exeext &&
30951 $as_test_x conftest$ac_exeext; then
30952 eval "$as_ac_Lib=yes"
30953 else
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 eval "$as_ac_Lib=no"
30960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30961 conftest$ac_exeext conftest.$ac_ext
30962 LIBS=$ac_check_lib_save_LIBS
30964 ac_res=`eval echo '${'$as_ac_Lib'}'`
30965 { echo "$as_me:$LINENO: result: $ac_res" >&5
30966 echo "${ECHO_T}$ac_res" >&6; }
30967 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30968 AST_CEIL_FOUND=yes
30969 else
30970 AST_CEIL_FOUND=no
30975 # now check for the header.
30976 if test "${AST_CEIL_FOUND}" = "yes"; then
30977 CEIL_LIB="${pbxlibdir} -lm "
30978 # if --with-CEIL=DIR has been specified, use it.
30979 if test "x${CEIL_DIR}" != "x"; then
30980 CEIL_INCLUDE="-I${CEIL_DIR}/include"
30982 CEIL_INCLUDE="${CEIL_INCLUDE} "
30983 if test "x" = "x" ; then # no header, assume found
30984 CEIL_HEADER_FOUND="1"
30985 else # check for the header
30986 saved_cppflags="${CPPFLAGS}"
30987 CPPFLAGS="${CPPFLAGS} ${CEIL_INCLUDE} "
30988 if test "${ac_cv_header_+set}" = set; then
30989 { echo "$as_me:$LINENO: checking for " >&5
30990 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
30991 if test "${ac_cv_header_+set}" = set; then
30992 echo $ECHO_N "(cached) $ECHO_C" >&6
30994 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
30995 echo "${ECHO_T}$ac_cv_header_" >&6; }
30996 else
30997 # Is the header compilable?
30998 { echo "$as_me:$LINENO: checking usability" >&5
30999 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
31000 cat >conftest.$ac_ext <<_ACEOF
31001 /* confdefs.h. */
31002 _ACEOF
31003 cat confdefs.h >>conftest.$ac_ext
31004 cat >>conftest.$ac_ext <<_ACEOF
31005 /* end confdefs.h. */
31006 $ac_includes_default
31007 #include <>
31008 _ACEOF
31009 rm -f conftest.$ac_objext
31010 if { (ac_try="$ac_compile"
31011 case "(($ac_try" in
31012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31013 *) ac_try_echo=$ac_try;;
31014 esac
31015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016 (eval "$ac_compile") 2>conftest.er1
31017 ac_status=$?
31018 grep -v '^ *+' conftest.er1 >conftest.err
31019 rm -f conftest.er1
31020 cat conftest.err >&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); } && {
31023 test -z "$ac_c_werror_flag" ||
31024 test ! -s conftest.err
31025 } && test -s conftest.$ac_objext; then
31026 ac_header_compiler=yes
31027 else
31028 echo "$as_me: failed program was:" >&5
31029 sed 's/^/| /' conftest.$ac_ext >&5
31031 ac_header_compiler=no
31034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31036 echo "${ECHO_T}$ac_header_compiler" >&6; }
31038 # Is the header present?
31039 { echo "$as_me:$LINENO: checking presence" >&5
31040 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
31041 cat >conftest.$ac_ext <<_ACEOF
31042 /* confdefs.h. */
31043 _ACEOF
31044 cat confdefs.h >>conftest.$ac_ext
31045 cat >>conftest.$ac_ext <<_ACEOF
31046 /* end confdefs.h. */
31047 #include <>
31048 _ACEOF
31049 if { (ac_try="$ac_cpp conftest.$ac_ext"
31050 case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31056 ac_status=$?
31057 grep -v '^ *+' conftest.er1 >conftest.err
31058 rm -f conftest.er1
31059 cat conftest.err >&5
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); } >/dev/null && {
31062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31063 test ! -s conftest.err
31064 }; then
31065 ac_header_preproc=yes
31066 else
31067 echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31070 ac_header_preproc=no
31073 rm -f conftest.err conftest.$ac_ext
31074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31075 echo "${ECHO_T}$ac_header_preproc" >&6; }
31077 # So? What about this header?
31078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31079 yes:no: )
31080 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
31081 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
31082 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
31083 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
31084 ac_header_preproc=yes
31086 no:yes:* )
31087 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
31088 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
31089 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
31090 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
31091 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
31092 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
31093 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
31094 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
31095 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
31096 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
31097 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
31098 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
31099 ( cat <<\_ASBOX
31100 ## ------------------------------- ##
31101 ## Report this to www.asterisk.org ##
31102 ## ------------------------------- ##
31103 _ASBOX
31104 ) | sed "s/^/$as_me: WARNING: /" >&2
31106 esac
31107 { echo "$as_me:$LINENO: checking for " >&5
31108 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
31109 if test "${ac_cv_header_+set}" = set; then
31110 echo $ECHO_N "(cached) $ECHO_C" >&6
31111 else
31112 ac_cv_header_=$ac_header_preproc
31114 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
31115 echo "${ECHO_T}$ac_cv_header_" >&6; }
31118 if test $ac_cv_header_ = yes; then
31119 CEIL_HEADER_FOUND=1
31120 else
31121 CEIL_HEADER_FOUND=0
31125 CPPFLAGS="${saved_cppflags}"
31127 if test "x${CEIL_HEADER_FOUND}" = "x0" ; then
31128 CEIL_LIB=""
31129 CEIL_INCLUDE=""
31130 else
31131 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
31132 CEIL_LIB=""
31134 PBX_CEIL=1
31135 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
31137 cat >>confdefs.h <<_ACEOF
31138 #define HAVE_CEIL 1
31139 _ACEOF
31142 cat >>confdefs.h <<_ACEOF
31143 #define HAVE_CEIL_VERSION
31144 _ACEOF
31152 if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
31153 { echo "$as_me:$LINENO: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
31154 echo $ECHO_N "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... $ECHO_C" >&6; }
31155 saved_cppflags="${CPPFLAGS}"
31156 if test "x${GETIFADDRS_DIR}" != "x"; then
31157 GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
31159 CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
31161 cat >conftest.$ac_ext <<_ACEOF
31162 /* confdefs.h. */
31163 _ACEOF
31164 cat confdefs.h >>conftest.$ac_ext
31165 cat >>conftest.$ac_ext <<_ACEOF
31166 /* end confdefs.h. */
31167 #include <ifaddrs.h>
31169 main ()
31171 struct ifaddrs *p; getifaddrs(&p);
31174 return 0;
31176 _ACEOF
31177 rm -f conftest.$ac_objext
31178 if { (ac_try="$ac_compile"
31179 case "(($ac_try" in
31180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31181 *) ac_try_echo=$ac_try;;
31182 esac
31183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31184 (eval "$ac_compile") 2>conftest.er1
31185 ac_status=$?
31186 grep -v '^ *+' conftest.er1 >conftest.err
31187 rm -f conftest.er1
31188 cat conftest.err >&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); } && {
31191 test -z "$ac_c_werror_flag" ||
31192 test ! -s conftest.err
31193 } && test -s conftest.$ac_objext; then
31194 { echo "$as_me:$LINENO: result: yes" >&5
31195 echo "${ECHO_T}yes" >&6; }
31196 PBX_GETIFADDRS=1
31198 cat >>confdefs.h <<\_ACEOF
31199 #define HAVE_GETIFADDRS 1
31200 _ACEOF
31203 cat >>confdefs.h <<\_ACEOF
31204 #define HAVE_GETIFADDRS_VERSION
31205 _ACEOF
31208 else
31209 echo "$as_me: failed program was:" >&5
31210 sed 's/^/| /' conftest.$ac_ext >&5
31212 { echo "$as_me:$LINENO: result: no" >&5
31213 echo "${ECHO_T}no" >&6; }
31217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31218 CPPFLAGS="${saved_cppflags}"
31222 GSM_INTERNAL="yes"
31224 GSM_SYSTEM="yes"
31225 if test "${USE_GSM}" != "no"; then
31226 if test "${GSM_DIR}" = "internal"; then
31227 GSM_SYSTEM="no"
31228 elif test "${GSM_DIR}" != ""; then
31229 GSM_INTERNAL="no"
31231 if test "${GSM_SYSTEM}" = "yes"; then
31232 gsmlibdir=""
31233 if test "x${GSM_DIR}" != "x"; then
31234 if test -d ${GSM_DIR}/lib; then
31235 gsmlibdir="-L${GSM_DIR}/lib"
31236 else
31237 gsmlibdir="-L${GSM_DIR}"
31240 { echo "$as_me:$LINENO: checking for gsm_create in -lgsm" >&5
31241 echo $ECHO_N "checking for gsm_create in -lgsm... $ECHO_C" >&6; }
31242 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
31243 echo $ECHO_N "(cached) $ECHO_C" >&6
31244 else
31245 ac_check_lib_save_LIBS=$LIBS
31246 LIBS="-lgsm ${gsmlibdir} $LIBS"
31247 cat >conftest.$ac_ext <<_ACEOF
31248 /* confdefs.h. */
31249 _ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h. */
31254 /* Override any GCC internal prototype to avoid an error.
31255 Use char because int might match the return type of a GCC
31256 builtin and then its argument prototype would still apply. */
31257 #ifdef __cplusplus
31258 extern "C"
31259 #endif
31260 char gsm_create ();
31262 main ()
31264 return gsm_create ();
31266 return 0;
31268 _ACEOF
31269 rm -f conftest.$ac_objext conftest$ac_exeext
31270 if { (ac_try="$ac_link"
31271 case "(($ac_try" in
31272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31273 *) ac_try_echo=$ac_try;;
31274 esac
31275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31276 (eval "$ac_link") 2>conftest.er1
31277 ac_status=$?
31278 grep -v '^ *+' conftest.er1 >conftest.err
31279 rm -f conftest.er1
31280 cat conftest.err >&5
31281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282 (exit $ac_status); } && {
31283 test -z "$ac_c_werror_flag" ||
31284 test ! -s conftest.err
31285 } && test -s conftest$ac_exeext &&
31286 $as_test_x conftest$ac_exeext; then
31287 ac_cv_lib_gsm_gsm_create=yes
31288 else
31289 echo "$as_me: failed program was:" >&5
31290 sed 's/^/| /' conftest.$ac_ext >&5
31292 ac_cv_lib_gsm_gsm_create=no
31295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31296 conftest$ac_exeext conftest.$ac_ext
31297 LIBS=$ac_check_lib_save_LIBS
31299 { echo "$as_me:$LINENO: result: $ac_cv_lib_gsm_gsm_create" >&5
31300 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
31301 if test $ac_cv_lib_gsm_gsm_create = yes; then
31303 cat >>confdefs.h <<_ACEOF
31304 #define HAVE_GSM 1
31305 _ACEOF
31309 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
31310 if test "x${GSM_DIR}" != "x" ; then
31311 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
31312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31313 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31314 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31316 echo $ECHO_N "(cached) $ECHO_C" >&6
31318 ac_res=`eval echo '${'$as_ac_Header'}'`
31319 { echo "$as_me:$LINENO: result: $ac_res" >&5
31320 echo "${ECHO_T}$ac_res" >&6; }
31321 else
31322 # Is the header compilable?
31323 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h usability" >&5
31324 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h usability... $ECHO_C" >&6; }
31325 cat >conftest.$ac_ext <<_ACEOF
31326 /* confdefs.h. */
31327 _ACEOF
31328 cat confdefs.h >>conftest.$ac_ext
31329 cat >>conftest.$ac_ext <<_ACEOF
31330 /* end confdefs.h. */
31331 $ac_includes_default
31332 #include <${GSM_DIR}/include/gsm.h>
31333 _ACEOF
31334 rm -f conftest.$ac_objext
31335 if { (ac_try="$ac_compile"
31336 case "(($ac_try" in
31337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31338 *) ac_try_echo=$ac_try;;
31339 esac
31340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31341 (eval "$ac_compile") 2>conftest.er1
31342 ac_status=$?
31343 grep -v '^ *+' conftest.er1 >conftest.err
31344 rm -f conftest.er1
31345 cat conftest.err >&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); } && {
31348 test -z "$ac_c_werror_flag" ||
31349 test ! -s conftest.err
31350 } && test -s conftest.$ac_objext; then
31351 ac_header_compiler=yes
31352 else
31353 echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31356 ac_header_compiler=no
31359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31361 echo "${ECHO_T}$ac_header_compiler" >&6; }
31363 # Is the header present?
31364 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm.h presence" >&5
31365 echo $ECHO_N "checking ${GSM_DIR}/include/gsm.h presence... $ECHO_C" >&6; }
31366 cat >conftest.$ac_ext <<_ACEOF
31367 /* confdefs.h. */
31368 _ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h. */
31372 #include <${GSM_DIR}/include/gsm.h>
31373 _ACEOF
31374 if { (ac_try="$ac_cpp conftest.$ac_ext"
31375 case "(($ac_try" in
31376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31377 *) ac_try_echo=$ac_try;;
31378 esac
31379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31381 ac_status=$?
31382 grep -v '^ *+' conftest.er1 >conftest.err
31383 rm -f conftest.er1
31384 cat conftest.err >&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); } >/dev/null && {
31387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31388 test ! -s conftest.err
31389 }; then
31390 ac_header_preproc=yes
31391 else
31392 echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.$ac_ext >&5
31395 ac_header_preproc=no
31398 rm -f conftest.err conftest.$ac_ext
31399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31400 echo "${ECHO_T}$ac_header_preproc" >&6; }
31402 # So? What about this header?
31403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31404 yes:no: )
31405 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31406 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31407 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&5
31408 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the compiler's result" >&2;}
31409 ac_header_preproc=yes
31411 no:yes:* )
31412 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&5
31413 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: present but cannot be compiled" >&2;}
31414 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&5
31415 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: check for missing prerequisite headers?" >&2;}
31416 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&5
31417 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: see the Autoconf documentation" >&2;}
31418 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31419 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31420 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&5
31421 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: proceeding with the preprocessor's result" >&2;}
31422 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&5
31423 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm.h: in the future, the compiler will take precedence" >&2;}
31424 ( cat <<\_ASBOX
31425 ## ------------------------------- ##
31426 ## Report this to www.asterisk.org ##
31427 ## ------------------------------- ##
31428 _ASBOX
31429 ) | sed "s/^/$as_me: WARNING: /" >&2
31431 esac
31432 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm.h" >&5
31433 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm.h... $ECHO_C" >&6; }
31434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31435 echo $ECHO_N "(cached) $ECHO_C" >&6
31436 else
31437 eval "$as_ac_Header=\$ac_header_preproc"
31439 ac_res=`eval echo '${'$as_ac_Header'}'`
31440 { echo "$as_me:$LINENO: result: $ac_res" >&5
31441 echo "${ECHO_T}$ac_res" >&6; }
31444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31445 GSM_HEADER_FOUND=1
31446 else
31447 GSM_HEADER_FOUND=0
31451 as_ac_Header=`echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
31452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31453 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31454 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31456 echo $ECHO_N "(cached) $ECHO_C" >&6
31458 ac_res=`eval echo '${'$as_ac_Header'}'`
31459 { echo "$as_me:$LINENO: result: $ac_res" >&5
31460 echo "${ECHO_T}$ac_res" >&6; }
31461 else
31462 # Is the header compilable?
31463 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h usability" >&5
31464 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h usability... $ECHO_C" >&6; }
31465 cat >conftest.$ac_ext <<_ACEOF
31466 /* confdefs.h. */
31467 _ACEOF
31468 cat confdefs.h >>conftest.$ac_ext
31469 cat >>conftest.$ac_ext <<_ACEOF
31470 /* end confdefs.h. */
31471 $ac_includes_default
31472 #include <${GSM_DIR}/include/gsm/gsm.h>
31473 _ACEOF
31474 rm -f conftest.$ac_objext
31475 if { (ac_try="$ac_compile"
31476 case "(($ac_try" in
31477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31478 *) ac_try_echo=$ac_try;;
31479 esac
31480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31481 (eval "$ac_compile") 2>conftest.er1
31482 ac_status=$?
31483 grep -v '^ *+' conftest.er1 >conftest.err
31484 rm -f conftest.er1
31485 cat conftest.err >&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); } && {
31488 test -z "$ac_c_werror_flag" ||
31489 test ! -s conftest.err
31490 } && test -s conftest.$ac_objext; then
31491 ac_header_compiler=yes
31492 else
31493 echo "$as_me: failed program was:" >&5
31494 sed 's/^/| /' conftest.$ac_ext >&5
31496 ac_header_compiler=no
31499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31501 echo "${ECHO_T}$ac_header_compiler" >&6; }
31503 # Is the header present?
31504 { echo "$as_me:$LINENO: checking ${GSM_DIR}/include/gsm/gsm.h presence" >&5
31505 echo $ECHO_N "checking ${GSM_DIR}/include/gsm/gsm.h presence... $ECHO_C" >&6; }
31506 cat >conftest.$ac_ext <<_ACEOF
31507 /* confdefs.h. */
31508 _ACEOF
31509 cat confdefs.h >>conftest.$ac_ext
31510 cat >>conftest.$ac_ext <<_ACEOF
31511 /* end confdefs.h. */
31512 #include <${GSM_DIR}/include/gsm/gsm.h>
31513 _ACEOF
31514 if { (ac_try="$ac_cpp conftest.$ac_ext"
31515 case "(($ac_try" in
31516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517 *) ac_try_echo=$ac_try;;
31518 esac
31519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31521 ac_status=$?
31522 grep -v '^ *+' conftest.er1 >conftest.err
31523 rm -f conftest.er1
31524 cat conftest.err >&5
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); } >/dev/null && {
31527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31528 test ! -s conftest.err
31529 }; then
31530 ac_header_preproc=yes
31531 else
31532 echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31535 ac_header_preproc=no
31538 rm -f conftest.err conftest.$ac_ext
31539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31540 echo "${ECHO_T}$ac_header_preproc" >&6; }
31542 # So? What about this header?
31543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31544 yes:no: )
31545 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31546 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31547 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&5
31548 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the compiler's result" >&2;}
31549 ac_header_preproc=yes
31551 no:yes:* )
31552 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&5
31553 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: present but cannot be compiled" >&2;}
31554 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&5
31555 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31556 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&5
31557 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: see the Autoconf documentation" >&2;}
31558 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31559 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31560 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&5
31561 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31562 { echo "$as_me:$LINENO: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&5
31563 echo "$as_me: WARNING: ${GSM_DIR}/include/gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31564 ( cat <<\_ASBOX
31565 ## ------------------------------- ##
31566 ## Report this to www.asterisk.org ##
31567 ## ------------------------------- ##
31568 _ASBOX
31569 ) | sed "s/^/$as_me: WARNING: /" >&2
31571 esac
31572 { echo "$as_me:$LINENO: checking for ${GSM_DIR}/include/gsm/gsm.h" >&5
31573 echo $ECHO_N "checking for ${GSM_DIR}/include/gsm/gsm.h... $ECHO_C" >&6; }
31574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31575 echo $ECHO_N "(cached) $ECHO_C" >&6
31576 else
31577 eval "$as_ac_Header=\$ac_header_preproc"
31579 ac_res=`eval echo '${'$as_ac_Header'}'`
31580 { echo "$as_me:$LINENO: result: $ac_res" >&5
31581 echo "${ECHO_T}$ac_res" >&6; }
31584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31585 GSM_GSM_HEADER_FOUND=1
31586 else
31587 GSM_GSM_HEADER_FOUND=0
31591 else
31592 if test "${ac_cv_header_gsm_h+set}" = set; then
31593 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31594 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31595 if test "${ac_cv_header_gsm_h+set}" = set; then
31596 echo $ECHO_N "(cached) $ECHO_C" >&6
31598 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31599 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31600 else
31601 # Is the header compilable?
31602 { echo "$as_me:$LINENO: checking gsm.h usability" >&5
31603 echo $ECHO_N "checking gsm.h usability... $ECHO_C" >&6; }
31604 cat >conftest.$ac_ext <<_ACEOF
31605 /* confdefs.h. */
31606 _ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h. */
31610 $ac_includes_default
31611 #include <gsm.h>
31612 _ACEOF
31613 rm -f conftest.$ac_objext
31614 if { (ac_try="$ac_compile"
31615 case "(($ac_try" in
31616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617 *) ac_try_echo=$ac_try;;
31618 esac
31619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620 (eval "$ac_compile") 2>conftest.er1
31621 ac_status=$?
31622 grep -v '^ *+' conftest.er1 >conftest.err
31623 rm -f conftest.er1
31624 cat conftest.err >&5
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); } && {
31627 test -z "$ac_c_werror_flag" ||
31628 test ! -s conftest.err
31629 } && test -s conftest.$ac_objext; then
31630 ac_header_compiler=yes
31631 else
31632 echo "$as_me: failed program was:" >&5
31633 sed 's/^/| /' conftest.$ac_ext >&5
31635 ac_header_compiler=no
31638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31640 echo "${ECHO_T}$ac_header_compiler" >&6; }
31642 # Is the header present?
31643 { echo "$as_me:$LINENO: checking gsm.h presence" >&5
31644 echo $ECHO_N "checking gsm.h presence... $ECHO_C" >&6; }
31645 cat >conftest.$ac_ext <<_ACEOF
31646 /* confdefs.h. */
31647 _ACEOF
31648 cat confdefs.h >>conftest.$ac_ext
31649 cat >>conftest.$ac_ext <<_ACEOF
31650 /* end confdefs.h. */
31651 #include <gsm.h>
31652 _ACEOF
31653 if { (ac_try="$ac_cpp conftest.$ac_ext"
31654 case "(($ac_try" in
31655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31656 *) ac_try_echo=$ac_try;;
31657 esac
31658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31660 ac_status=$?
31661 grep -v '^ *+' conftest.er1 >conftest.err
31662 rm -f conftest.er1
31663 cat conftest.err >&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } >/dev/null && {
31666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31667 test ! -s conftest.err
31668 }; then
31669 ac_header_preproc=yes
31670 else
31671 echo "$as_me: failed program was:" >&5
31672 sed 's/^/| /' conftest.$ac_ext >&5
31674 ac_header_preproc=no
31677 rm -f conftest.err conftest.$ac_ext
31678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31679 echo "${ECHO_T}$ac_header_preproc" >&6; }
31681 # So? What about this header?
31682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31683 yes:no: )
31684 { echo "$as_me:$LINENO: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31685 echo "$as_me: WARNING: gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31686 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the compiler's result" >&5
31687 echo "$as_me: WARNING: gsm.h: proceeding with the compiler's result" >&2;}
31688 ac_header_preproc=yes
31690 no:yes:* )
31691 { echo "$as_me:$LINENO: WARNING: gsm.h: present but cannot be compiled" >&5
31692 echo "$as_me: WARNING: gsm.h: present but cannot be compiled" >&2;}
31693 { echo "$as_me:$LINENO: WARNING: gsm.h: check for missing prerequisite headers?" >&5
31694 echo "$as_me: WARNING: gsm.h: check for missing prerequisite headers?" >&2;}
31695 { echo "$as_me:$LINENO: WARNING: gsm.h: see the Autoconf documentation" >&5
31696 echo "$as_me: WARNING: gsm.h: see the Autoconf documentation" >&2;}
31697 { echo "$as_me:$LINENO: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31698 echo "$as_me: WARNING: gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31699 { echo "$as_me:$LINENO: WARNING: gsm.h: proceeding with the preprocessor's result" >&5
31700 echo "$as_me: WARNING: gsm.h: proceeding with the preprocessor's result" >&2;}
31701 { echo "$as_me:$LINENO: WARNING: gsm.h: in the future, the compiler will take precedence" >&5
31702 echo "$as_me: WARNING: gsm.h: in the future, the compiler will take precedence" >&2;}
31703 ( cat <<\_ASBOX
31704 ## ------------------------------- ##
31705 ## Report this to www.asterisk.org ##
31706 ## ------------------------------- ##
31707 _ASBOX
31708 ) | sed "s/^/$as_me: WARNING: /" >&2
31710 esac
31711 { echo "$as_me:$LINENO: checking for gsm.h" >&5
31712 echo $ECHO_N "checking for gsm.h... $ECHO_C" >&6; }
31713 if test "${ac_cv_header_gsm_h+set}" = set; then
31714 echo $ECHO_N "(cached) $ECHO_C" >&6
31715 else
31716 ac_cv_header_gsm_h=$ac_header_preproc
31718 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_h" >&5
31719 echo "${ECHO_T}$ac_cv_header_gsm_h" >&6; }
31722 if test $ac_cv_header_gsm_h = yes; then
31723 GSM_HEADER_FOUND=1
31724 else
31725 GSM_HEADER_FOUND=0
31729 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31730 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31731 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31732 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31733 echo $ECHO_N "(cached) $ECHO_C" >&6
31735 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31736 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31737 else
31738 # Is the header compilable?
31739 { echo "$as_me:$LINENO: checking gsm/gsm.h usability" >&5
31740 echo $ECHO_N "checking gsm/gsm.h usability... $ECHO_C" >&6; }
31741 cat >conftest.$ac_ext <<_ACEOF
31742 /* confdefs.h. */
31743 _ACEOF
31744 cat confdefs.h >>conftest.$ac_ext
31745 cat >>conftest.$ac_ext <<_ACEOF
31746 /* end confdefs.h. */
31747 $ac_includes_default
31748 #include <gsm/gsm.h>
31749 _ACEOF
31750 rm -f conftest.$ac_objext
31751 if { (ac_try="$ac_compile"
31752 case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31755 esac
31756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_compile") 2>conftest.er1
31758 ac_status=$?
31759 grep -v '^ *+' conftest.er1 >conftest.err
31760 rm -f conftest.er1
31761 cat conftest.err >&5
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); } && {
31764 test -z "$ac_c_werror_flag" ||
31765 test ! -s conftest.err
31766 } && test -s conftest.$ac_objext; then
31767 ac_header_compiler=yes
31768 else
31769 echo "$as_me: failed program was:" >&5
31770 sed 's/^/| /' conftest.$ac_ext >&5
31772 ac_header_compiler=no
31775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31777 echo "${ECHO_T}$ac_header_compiler" >&6; }
31779 # Is the header present?
31780 { echo "$as_me:$LINENO: checking gsm/gsm.h presence" >&5
31781 echo $ECHO_N "checking gsm/gsm.h presence... $ECHO_C" >&6; }
31782 cat >conftest.$ac_ext <<_ACEOF
31783 /* confdefs.h. */
31784 _ACEOF
31785 cat confdefs.h >>conftest.$ac_ext
31786 cat >>conftest.$ac_ext <<_ACEOF
31787 /* end confdefs.h. */
31788 #include <gsm/gsm.h>
31789 _ACEOF
31790 if { (ac_try="$ac_cpp conftest.$ac_ext"
31791 case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31794 esac
31795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31797 ac_status=$?
31798 grep -v '^ *+' conftest.er1 >conftest.err
31799 rm -f conftest.er1
31800 cat conftest.err >&5
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); } >/dev/null && {
31803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31804 test ! -s conftest.err
31805 }; then
31806 ac_header_preproc=yes
31807 else
31808 echo "$as_me: failed program was:" >&5
31809 sed 's/^/| /' conftest.$ac_ext >&5
31811 ac_header_preproc=no
31814 rm -f conftest.err conftest.$ac_ext
31815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31816 echo "${ECHO_T}$ac_header_preproc" >&6; }
31818 # So? What about this header?
31819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31820 yes:no: )
31821 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
31822 echo "$as_me: WARNING: gsm/gsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31823 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&5
31824 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the compiler's result" >&2;}
31825 ac_header_preproc=yes
31827 no:yes:* )
31828 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: present but cannot be compiled" >&5
31829 echo "$as_me: WARNING: gsm/gsm.h: present but cannot be compiled" >&2;}
31830 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&5
31831 echo "$as_me: WARNING: gsm/gsm.h: check for missing prerequisite headers?" >&2;}
31832 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: see the Autoconf documentation" >&5
31833 echo "$as_me: WARNING: gsm/gsm.h: see the Autoconf documentation" >&2;}
31834 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&5
31835 echo "$as_me: WARNING: gsm/gsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
31836 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&5
31837 echo "$as_me: WARNING: gsm/gsm.h: proceeding with the preprocessor's result" >&2;}
31838 { echo "$as_me:$LINENO: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&5
31839 echo "$as_me: WARNING: gsm/gsm.h: in the future, the compiler will take precedence" >&2;}
31840 ( cat <<\_ASBOX
31841 ## ------------------------------- ##
31842 ## Report this to www.asterisk.org ##
31843 ## ------------------------------- ##
31844 _ASBOX
31845 ) | sed "s/^/$as_me: WARNING: /" >&2
31847 esac
31848 { echo "$as_me:$LINENO: checking for gsm/gsm.h" >&5
31849 echo $ECHO_N "checking for gsm/gsm.h... $ECHO_C" >&6; }
31850 if test "${ac_cv_header_gsm_gsm_h+set}" = set; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31852 else
31853 ac_cv_header_gsm_gsm_h=$ac_header_preproc
31855 { echo "$as_me:$LINENO: result: $ac_cv_header_gsm_gsm_h" >&5
31856 echo "${ECHO_T}$ac_cv_header_gsm_gsm_h" >&6; }
31859 if test $ac_cv_header_gsm_gsm_h = yes; then
31860 GSM_GSM_HEADER_FOUND=1
31861 else
31862 GSM_GSM_HEADER_FOUND=0
31867 if test "${GSM_HEADER_FOUND}" = "0" ; then
31868 if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
31869 if test "x${GSM_MANDATORY}" = "xyes" ; then
31870 { echo "$as_me:$LINENO: ***" >&5
31871 echo "$as_me: ***" >&6;}
31872 { echo "$as_me:$LINENO: *** It appears that you do not have the gsm development package installed." >&5
31873 echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
31874 { echo "$as_me:$LINENO: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
31875 echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
31876 { echo "$as_me:$LINENO: *** without explicitly specifying --with-${GSM_OPTION}" >&5
31877 echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
31878 exit 1
31882 GSM_OK=0
31883 if test "${GSM_HEADER_FOUND}" = "1" ; then
31885 cat >>confdefs.h <<_ACEOF
31886 #define HAVE_GSM_HEADER 1
31887 _ACEOF
31889 GSM_OK=1
31890 else
31891 if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
31893 cat >>confdefs.h <<_ACEOF
31894 #define HAVE_GSM_GSM_HEADER 1
31895 _ACEOF
31897 GSM_OK=1
31900 if test "${GSM_OK}" = "1" ; then
31901 GSM_LIB="-lgsm"
31902 if test "x${GSM_DIR}" != "x"; then
31903 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
31904 GSM_INCLUDE="-I${GSM_DIR}/include"
31906 PBX_GSM=1
31907 GSM_INTERNAL="no"
31911 if test "${GSM_INTERNAL}" = "yes"; then
31912 PBX_GSM=1
31914 cat >>confdefs.h <<_ACEOF
31915 #define HAVE_GSM_HEADER 1
31916 _ACEOF
31921 if test "${host_os}" != "linux-gnu" ; then
31923 if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
31924 pbxlibdir=""
31925 # if --with-ICONV=DIR has been specified, use it.
31926 if test "x${ICONV_DIR}" != "x"; then
31927 if test -d ${ICONV_DIR}/lib; then
31928 pbxlibdir="-L${ICONV_DIR}/lib"
31929 else
31930 pbxlibdir="-L${ICONV_DIR}"
31933 pbxfuncname="iconv_open"
31934 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
31935 AST_ICONV_FOUND=yes
31936 else
31937 as_ac_Lib=`echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
31938 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liconv" >&5
31939 echo $ECHO_N "checking for ${pbxfuncname} in -liconv... $ECHO_C" >&6; }
31940 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31942 else
31943 ac_check_lib_save_LIBS=$LIBS
31944 LIBS="-liconv ${pbxlibdir} $LIBS"
31945 cat >conftest.$ac_ext <<_ACEOF
31946 /* confdefs.h. */
31947 _ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h. */
31952 /* Override any GCC internal prototype to avoid an error.
31953 Use char because int might match the return type of a GCC
31954 builtin and then its argument prototype would still apply. */
31955 #ifdef __cplusplus
31956 extern "C"
31957 #endif
31958 char ${pbxfuncname} ();
31960 main ()
31962 return ${pbxfuncname} ();
31964 return 0;
31966 _ACEOF
31967 rm -f conftest.$ac_objext conftest$ac_exeext
31968 if { (ac_try="$ac_link"
31969 case "(($ac_try" in
31970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31971 *) ac_try_echo=$ac_try;;
31972 esac
31973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31974 (eval "$ac_link") 2>conftest.er1
31975 ac_status=$?
31976 grep -v '^ *+' conftest.er1 >conftest.err
31977 rm -f conftest.er1
31978 cat conftest.err >&5
31979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980 (exit $ac_status); } && {
31981 test -z "$ac_c_werror_flag" ||
31982 test ! -s conftest.err
31983 } && test -s conftest$ac_exeext &&
31984 $as_test_x conftest$ac_exeext; then
31985 eval "$as_ac_Lib=yes"
31986 else
31987 echo "$as_me: failed program was:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31990 eval "$as_ac_Lib=no"
31993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31994 conftest$ac_exeext conftest.$ac_ext
31995 LIBS=$ac_check_lib_save_LIBS
31997 ac_res=`eval echo '${'$as_ac_Lib'}'`
31998 { echo "$as_me:$LINENO: result: $ac_res" >&5
31999 echo "${ECHO_T}$ac_res" >&6; }
32000 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32001 AST_ICONV_FOUND=yes
32002 else
32003 AST_ICONV_FOUND=no
32008 # now check for the header.
32009 if test "${AST_ICONV_FOUND}" = "yes"; then
32010 ICONV_LIB="${pbxlibdir} -liconv "
32011 # if --with-ICONV=DIR has been specified, use it.
32012 if test "x${ICONV_DIR}" != "x"; then
32013 ICONV_INCLUDE="-I${ICONV_DIR}/include"
32015 ICONV_INCLUDE="${ICONV_INCLUDE} "
32016 if test "xiconv.h" = "x" ; then # no header, assume found
32017 ICONV_HEADER_FOUND="1"
32018 else # check for the header
32019 saved_cppflags="${CPPFLAGS}"
32020 CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE} "
32021 if test "${ac_cv_header_iconv_h+set}" = set; then
32022 { echo "$as_me:$LINENO: checking for iconv.h" >&5
32023 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
32024 if test "${ac_cv_header_iconv_h+set}" = set; then
32025 echo $ECHO_N "(cached) $ECHO_C" >&6
32027 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32028 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
32029 else
32030 # Is the header compilable?
32031 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
32032 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
32033 cat >conftest.$ac_ext <<_ACEOF
32034 /* confdefs.h. */
32035 _ACEOF
32036 cat confdefs.h >>conftest.$ac_ext
32037 cat >>conftest.$ac_ext <<_ACEOF
32038 /* end confdefs.h. */
32039 $ac_includes_default
32040 #include <iconv.h>
32041 _ACEOF
32042 rm -f conftest.$ac_objext
32043 if { (ac_try="$ac_compile"
32044 case "(($ac_try" in
32045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32046 *) ac_try_echo=$ac_try;;
32047 esac
32048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32049 (eval "$ac_compile") 2>conftest.er1
32050 ac_status=$?
32051 grep -v '^ *+' conftest.er1 >conftest.err
32052 rm -f conftest.er1
32053 cat conftest.err >&5
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); } && {
32056 test -z "$ac_c_werror_flag" ||
32057 test ! -s conftest.err
32058 } && test -s conftest.$ac_objext; then
32059 ac_header_compiler=yes
32060 else
32061 echo "$as_me: failed program was:" >&5
32062 sed 's/^/| /' conftest.$ac_ext >&5
32064 ac_header_compiler=no
32067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32069 echo "${ECHO_T}$ac_header_compiler" >&6; }
32071 # Is the header present?
32072 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
32073 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
32074 cat >conftest.$ac_ext <<_ACEOF
32075 /* confdefs.h. */
32076 _ACEOF
32077 cat confdefs.h >>conftest.$ac_ext
32078 cat >>conftest.$ac_ext <<_ACEOF
32079 /* end confdefs.h. */
32080 #include <iconv.h>
32081 _ACEOF
32082 if { (ac_try="$ac_cpp conftest.$ac_ext"
32083 case "(($ac_try" in
32084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085 *) ac_try_echo=$ac_try;;
32086 esac
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32089 ac_status=$?
32090 grep -v '^ *+' conftest.er1 >conftest.err
32091 rm -f conftest.er1
32092 cat conftest.err >&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } >/dev/null && {
32095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32096 test ! -s conftest.err
32097 }; then
32098 ac_header_preproc=yes
32099 else
32100 echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32103 ac_header_preproc=no
32106 rm -f conftest.err conftest.$ac_ext
32107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32108 echo "${ECHO_T}$ac_header_preproc" >&6; }
32110 # So? What about this header?
32111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32112 yes:no: )
32113 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
32114 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32115 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
32116 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
32117 ac_header_preproc=yes
32119 no:yes:* )
32120 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
32121 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
32122 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
32123 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
32124 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
32125 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
32126 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
32127 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
32128 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
32129 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
32130 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
32131 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
32132 ( cat <<\_ASBOX
32133 ## ------------------------------- ##
32134 ## Report this to www.asterisk.org ##
32135 ## ------------------------------- ##
32136 _ASBOX
32137 ) | sed "s/^/$as_me: WARNING: /" >&2
32139 esac
32140 { echo "$as_me:$LINENO: checking for iconv.h" >&5
32141 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
32142 if test "${ac_cv_header_iconv_h+set}" = set; then
32143 echo $ECHO_N "(cached) $ECHO_C" >&6
32144 else
32145 ac_cv_header_iconv_h=$ac_header_preproc
32147 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
32148 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
32151 if test $ac_cv_header_iconv_h = yes; then
32152 ICONV_HEADER_FOUND=1
32153 else
32154 ICONV_HEADER_FOUND=0
32158 CPPFLAGS="${saved_cppflags}"
32160 if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
32161 ICONV_LIB=""
32162 ICONV_INCLUDE=""
32163 else
32164 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32165 ICONV_LIB=""
32167 PBX_ICONV=1
32168 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32170 cat >>confdefs.h <<_ACEOF
32171 #define HAVE_ICONV 1
32172 _ACEOF
32175 cat >>confdefs.h <<_ACEOF
32176 #define HAVE_ICONV_VERSION
32177 _ACEOF
32183 else
32184 PBX_ICONV=1
32188 if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
32189 pbxlibdir=""
32190 # if --with-IKSEMEL=DIR has been specified, use it.
32191 if test "x${IKSEMEL_DIR}" != "x"; then
32192 if test -d ${IKSEMEL_DIR}/lib; then
32193 pbxlibdir="-L${IKSEMEL_DIR}/lib"
32194 else
32195 pbxlibdir="-L${IKSEMEL_DIR}"
32198 pbxfuncname="iks_start_sasl"
32199 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
32200 AST_IKSEMEL_FOUND=yes
32201 else
32202 as_ac_Lib=`echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
32203 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -liksemel" >&5
32204 echo $ECHO_N "checking for ${pbxfuncname} in -liksemel... $ECHO_C" >&6; }
32205 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
32207 else
32208 ac_check_lib_save_LIBS=$LIBS
32209 LIBS="-liksemel ${pbxlibdir} $LIBS"
32210 cat >conftest.$ac_ext <<_ACEOF
32211 /* confdefs.h. */
32212 _ACEOF
32213 cat confdefs.h >>conftest.$ac_ext
32214 cat >>conftest.$ac_ext <<_ACEOF
32215 /* end confdefs.h. */
32217 /* Override any GCC internal prototype to avoid an error.
32218 Use char because int might match the return type of a GCC
32219 builtin and then its argument prototype would still apply. */
32220 #ifdef __cplusplus
32221 extern "C"
32222 #endif
32223 char ${pbxfuncname} ();
32225 main ()
32227 return ${pbxfuncname} ();
32229 return 0;
32231 _ACEOF
32232 rm -f conftest.$ac_objext conftest$ac_exeext
32233 if { (ac_try="$ac_link"
32234 case "(($ac_try" in
32235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32236 *) ac_try_echo=$ac_try;;
32237 esac
32238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32239 (eval "$ac_link") 2>conftest.er1
32240 ac_status=$?
32241 grep -v '^ *+' conftest.er1 >conftest.err
32242 rm -f conftest.er1
32243 cat conftest.err >&5
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); } && {
32246 test -z "$ac_c_werror_flag" ||
32247 test ! -s conftest.err
32248 } && test -s conftest$ac_exeext &&
32249 $as_test_x conftest$ac_exeext; then
32250 eval "$as_ac_Lib=yes"
32251 else
32252 echo "$as_me: failed program was:" >&5
32253 sed 's/^/| /' conftest.$ac_ext >&5
32255 eval "$as_ac_Lib=no"
32258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32259 conftest$ac_exeext conftest.$ac_ext
32260 LIBS=$ac_check_lib_save_LIBS
32262 ac_res=`eval echo '${'$as_ac_Lib'}'`
32263 { echo "$as_me:$LINENO: result: $ac_res" >&5
32264 echo "${ECHO_T}$ac_res" >&6; }
32265 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32266 AST_IKSEMEL_FOUND=yes
32267 else
32268 AST_IKSEMEL_FOUND=no
32273 # now check for the header.
32274 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
32275 IKSEMEL_LIB="${pbxlibdir} -liksemel "
32276 # if --with-IKSEMEL=DIR has been specified, use it.
32277 if test "x${IKSEMEL_DIR}" != "x"; then
32278 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
32280 IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
32281 if test "xiksemel.h" = "x" ; then # no header, assume found
32282 IKSEMEL_HEADER_FOUND="1"
32283 else # check for the header
32284 saved_cppflags="${CPPFLAGS}"
32285 CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE} "
32286 if test "${ac_cv_header_iksemel_h+set}" = set; then
32287 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32288 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32289 if test "${ac_cv_header_iksemel_h+set}" = set; then
32290 echo $ECHO_N "(cached) $ECHO_C" >&6
32292 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32293 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32294 else
32295 # Is the header compilable?
32296 { echo "$as_me:$LINENO: checking iksemel.h usability" >&5
32297 echo $ECHO_N "checking iksemel.h usability... $ECHO_C" >&6; }
32298 cat >conftest.$ac_ext <<_ACEOF
32299 /* confdefs.h. */
32300 _ACEOF
32301 cat confdefs.h >>conftest.$ac_ext
32302 cat >>conftest.$ac_ext <<_ACEOF
32303 /* end confdefs.h. */
32304 $ac_includes_default
32305 #include <iksemel.h>
32306 _ACEOF
32307 rm -f conftest.$ac_objext
32308 if { (ac_try="$ac_compile"
32309 case "(($ac_try" in
32310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32311 *) ac_try_echo=$ac_try;;
32312 esac
32313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32314 (eval "$ac_compile") 2>conftest.er1
32315 ac_status=$?
32316 grep -v '^ *+' conftest.er1 >conftest.err
32317 rm -f conftest.er1
32318 cat conftest.err >&5
32319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320 (exit $ac_status); } && {
32321 test -z "$ac_c_werror_flag" ||
32322 test ! -s conftest.err
32323 } && test -s conftest.$ac_objext; then
32324 ac_header_compiler=yes
32325 else
32326 echo "$as_me: failed program was:" >&5
32327 sed 's/^/| /' conftest.$ac_ext >&5
32329 ac_header_compiler=no
32332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32334 echo "${ECHO_T}$ac_header_compiler" >&6; }
32336 # Is the header present?
32337 { echo "$as_me:$LINENO: checking iksemel.h presence" >&5
32338 echo $ECHO_N "checking iksemel.h presence... $ECHO_C" >&6; }
32339 cat >conftest.$ac_ext <<_ACEOF
32340 /* confdefs.h. */
32341 _ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h. */
32345 #include <iksemel.h>
32346 _ACEOF
32347 if { (ac_try="$ac_cpp conftest.$ac_ext"
32348 case "(($ac_try" in
32349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32350 *) ac_try_echo=$ac_try;;
32351 esac
32352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32354 ac_status=$?
32355 grep -v '^ *+' conftest.er1 >conftest.err
32356 rm -f conftest.er1
32357 cat conftest.err >&5
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); } >/dev/null && {
32360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32361 test ! -s conftest.err
32362 }; then
32363 ac_header_preproc=yes
32364 else
32365 echo "$as_me: failed program was:" >&5
32366 sed 's/^/| /' conftest.$ac_ext >&5
32368 ac_header_preproc=no
32371 rm -f conftest.err conftest.$ac_ext
32372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32373 echo "${ECHO_T}$ac_header_preproc" >&6; }
32375 # So? What about this header?
32376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32377 yes:no: )
32378 { echo "$as_me:$LINENO: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&5
32379 echo "$as_me: WARNING: iksemel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32380 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the compiler's result" >&5
32381 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result" >&2;}
32382 ac_header_preproc=yes
32384 no:yes:* )
32385 { echo "$as_me:$LINENO: WARNING: iksemel.h: present but cannot be compiled" >&5
32386 echo "$as_me: WARNING: iksemel.h: present but cannot be compiled" >&2;}
32387 { echo "$as_me:$LINENO: WARNING: iksemel.h: check for missing prerequisite headers?" >&5
32388 echo "$as_me: WARNING: iksemel.h: check for missing prerequisite headers?" >&2;}
32389 { echo "$as_me:$LINENO: WARNING: iksemel.h: see the Autoconf documentation" >&5
32390 echo "$as_me: WARNING: iksemel.h: see the Autoconf documentation" >&2;}
32391 { echo "$as_me:$LINENO: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&5
32392 echo "$as_me: WARNING: iksemel.h: section \"Present But Cannot Be Compiled\"" >&2;}
32393 { echo "$as_me:$LINENO: WARNING: iksemel.h: proceeding with the preprocessor's result" >&5
32394 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result" >&2;}
32395 { echo "$as_me:$LINENO: WARNING: iksemel.h: in the future, the compiler will take precedence" >&5
32396 echo "$as_me: WARNING: iksemel.h: in the future, the compiler will take precedence" >&2;}
32397 ( cat <<\_ASBOX
32398 ## ------------------------------- ##
32399 ## Report this to www.asterisk.org ##
32400 ## ------------------------------- ##
32401 _ASBOX
32402 ) | sed "s/^/$as_me: WARNING: /" >&2
32404 esac
32405 { echo "$as_me:$LINENO: checking for iksemel.h" >&5
32406 echo $ECHO_N "checking for iksemel.h... $ECHO_C" >&6; }
32407 if test "${ac_cv_header_iksemel_h+set}" = set; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32409 else
32410 ac_cv_header_iksemel_h=$ac_header_preproc
32412 { echo "$as_me:$LINENO: result: $ac_cv_header_iksemel_h" >&5
32413 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
32416 if test $ac_cv_header_iksemel_h = yes; then
32417 IKSEMEL_HEADER_FOUND=1
32418 else
32419 IKSEMEL_HEADER_FOUND=0
32423 CPPFLAGS="${saved_cppflags}"
32425 if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
32426 IKSEMEL_LIB=""
32427 IKSEMEL_INCLUDE=""
32428 else
32429 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
32430 IKSEMEL_LIB=""
32432 PBX_IKSEMEL=1
32433 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
32435 cat >>confdefs.h <<_ACEOF
32436 #define HAVE_IKSEMEL 1
32437 _ACEOF
32440 cat >>confdefs.h <<_ACEOF
32441 #define HAVE_IKSEMEL_VERSION
32442 _ACEOF
32449 if test "${USE_IMAP_TK}" != "no"; then
32450 saved_cppflags="${CPPFLAGS}"
32451 saved_libs="${LIBS}"
32452 switch_to_system_on_failure="no"
32453 if test "${IMAP_TK_DIR}" = ""; then
32454 IMAP_TK_DIR=`pwd`"/../imap-2004g"
32455 switch_to_system_on_failure="yes"
32457 if test "${IMAP_TK_DIR}" != "system"; then
32458 { echo "$as_me:$LINENO: checking for UW IMAP Toolkit c-client library" >&5
32459 echo $ECHO_N "checking for UW IMAP Toolkit c-client library... $ECHO_C" >&6; }
32460 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
32461 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
32463 imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
32464 imap_include="-I${IMAP_TK_DIR}/c-client"
32465 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32466 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32467 cat >conftest.$ac_ext <<_ACEOF
32468 /* confdefs.h. */
32469 _ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h. */
32473 #include "c-client.h"
32474 void mm_searched (MAILSTREAM *stream,unsigned long number)
32477 void mm_exists (MAILSTREAM *stream,unsigned long number)
32480 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32483 void mm_flags (MAILSTREAM *stream,unsigned long number)
32486 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32489 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32492 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32495 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32498 void mm_log (char *string,long errflg)
32501 void mm_dlog (char *string)
32504 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32507 void mm_critical (MAILSTREAM *stream)
32510 void mm_nocritical (MAILSTREAM *stream)
32513 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32516 void mm_fatal (char *string)
32520 main ()
32523 MAILSTREAM *foo = mail_open(NULL, "", 0);
32527 return 0;
32529 _ACEOF
32530 rm -f conftest.$ac_objext conftest$ac_exeext
32531 if { (ac_try="$ac_link"
32532 case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32535 esac
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_link") 2>conftest.er1
32538 ac_status=$?
32539 grep -v '^ *+' conftest.er1 >conftest.err
32540 rm -f conftest.er1
32541 cat conftest.err >&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } && {
32544 test -z "$ac_c_werror_flag" ||
32545 test ! -s conftest.err
32546 } && test -s conftest$ac_exeext &&
32547 $as_test_x conftest$ac_exeext; then
32548 ac_cv_imap_tk="yes"
32549 else
32550 echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.$ac_ext >&5
32553 ac_cv_imap_tk="no"
32557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32558 conftest$ac_exeext conftest.$ac_ext
32559 if test "${ac_cv_imap_tk}" = "yes"; then
32560 cat >conftest.$ac_ext <<_ACEOF
32561 /* confdefs.h. */
32562 _ACEOF
32563 cat confdefs.h >>conftest.$ac_ext
32564 cat >>conftest.$ac_ext <<_ACEOF
32565 /* end confdefs.h. */
32566 #include "c-client.h"
32567 void mm_searched (MAILSTREAM *stream,unsigned long number)
32570 void mm_exists (MAILSTREAM *stream,unsigned long number)
32573 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32576 void mm_flags (MAILSTREAM *stream,unsigned long number)
32579 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32582 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32585 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32588 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32591 void mm_log (char *string,long errflg)
32594 void mm_dlog (char *string)
32597 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32600 void mm_critical (MAILSTREAM *stream)
32603 void mm_nocritical (MAILSTREAM *stream)
32606 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32609 void mm_fatal (char *string)
32613 main ()
32616 long check = mail_expunge_full(NULL, "", 0);
32620 return 0;
32622 _ACEOF
32623 rm -f conftest.$ac_objext conftest$ac_exeext
32624 if { (ac_try="$ac_link"
32625 case "(($ac_try" in
32626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627 *) ac_try_echo=$ac_try;;
32628 esac
32629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630 (eval "$ac_link") 2>conftest.er1
32631 ac_status=$?
32632 grep -v '^ *+' conftest.er1 >conftest.err
32633 rm -f conftest.er1
32634 cat conftest.err >&5
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } && {
32637 test -z "$ac_c_werror_flag" ||
32638 test ! -s conftest.err
32639 } && test -s conftest$ac_exeext &&
32640 $as_test_x conftest$ac_exeext; then
32641 ac_cv_imap_tk2006="yes"
32642 else
32643 echo "$as_me: failed program was:" >&5
32644 sed 's/^/| /' conftest.$ac_ext >&5
32646 ac_cv_imap_tk2006="no"
32650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32651 conftest$ac_exeext conftest.$ac_ext
32653 CPPFLAGS="${saved_cppflags}"
32654 LIBS="${saved_libs}"
32655 if test "${ac_cv_imap_tk}" = "no"; then
32656 { echo "$as_me:$LINENO: result: no" >&5
32657 echo "${ECHO_T}no" >&6; }
32658 if test "${switch_to_system_on_failure}" = "yes"; then
32659 IMAP_TK_DIR="system"
32660 else #This means they specified a directory. Search for a package installation there too
32661 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32662 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32663 CPPFLAGS="${saved_cppflags}"
32664 LIBS="${saved_libs}"
32665 imap_include="-I${IMAP_TK_DIR}/include"
32666 imap_ldflags="-L${IMAP_TK_DIR}/lib"
32667 imap_libs="-lc-client"
32668 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32669 LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
32670 cat >conftest.$ac_ext <<_ACEOF
32671 /* confdefs.h. */
32672 _ACEOF
32673 cat confdefs.h >>conftest.$ac_ext
32674 cat >>conftest.$ac_ext <<_ACEOF
32675 /* end confdefs.h. */
32676 #include "c-client.h"
32677 void mm_searched (MAILSTREAM *stream,unsigned long number)
32680 void mm_exists (MAILSTREAM *stream,unsigned long number)
32683 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32686 void mm_flags (MAILSTREAM *stream,unsigned long number)
32689 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32692 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32695 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32698 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32701 void mm_log (char *string,long errflg)
32704 void mm_dlog (char *string)
32707 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32710 void mm_critical (MAILSTREAM *stream)
32713 void mm_nocritical (MAILSTREAM *stream)
32716 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32719 void mm_fatal (char *string)
32723 main ()
32726 MAILSTREAM *foo = mail_open(NULL, "", 0);
32730 return 0;
32732 _ACEOF
32733 rm -f conftest.$ac_objext conftest$ac_exeext
32734 if { (ac_try="$ac_link"
32735 case "(($ac_try" in
32736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737 *) ac_try_echo=$ac_try;;
32738 esac
32739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740 (eval "$ac_link") 2>conftest.er1
32741 ac_status=$?
32742 grep -v '^ *+' conftest.er1 >conftest.err
32743 rm -f conftest.er1
32744 cat conftest.err >&5
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); } && {
32747 test -z "$ac_c_werror_flag" ||
32748 test ! -s conftest.err
32749 } && test -s conftest$ac_exeext &&
32750 $as_test_x conftest$ac_exeext; then
32751 ac_cv_imap_tk="yes"
32752 else
32753 echo "$as_me: failed program was:" >&5
32754 sed 's/^/| /' conftest.$ac_ext >&5
32756 ac_cv_imap_tk="no"
32760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32761 conftest$ac_exeext conftest.$ac_ext
32762 if test "${ac_cv_imap_tk}" = "yes"; then
32763 cat >conftest.$ac_ext <<_ACEOF
32764 /* confdefs.h. */
32765 _ACEOF
32766 cat confdefs.h >>conftest.$ac_ext
32767 cat >>conftest.$ac_ext <<_ACEOF
32768 /* end confdefs.h. */
32769 #include "c-client.h"
32770 void mm_searched (MAILSTREAM *stream,unsigned long number)
32773 void mm_exists (MAILSTREAM *stream,unsigned long number)
32776 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32779 void mm_flags (MAILSTREAM *stream,unsigned long number)
32782 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32785 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32788 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32791 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32794 void mm_log (char *string,long errflg)
32797 void mm_dlog (char *string)
32800 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32803 void mm_critical (MAILSTREAM *stream)
32806 void mm_nocritical (MAILSTREAM *stream)
32809 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32812 void mm_fatal (char *string)
32816 main ()
32819 long check = mail_expunge_full(NULL, "", 0);
32823 return 0;
32825 _ACEOF
32826 rm -f conftest.$ac_objext conftest$ac_exeext
32827 if { (ac_try="$ac_link"
32828 case "(($ac_try" in
32829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32830 *) ac_try_echo=$ac_try;;
32831 esac
32832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32833 (eval "$ac_link") 2>conftest.er1
32834 ac_status=$?
32835 grep -v '^ *+' conftest.er1 >conftest.err
32836 rm -f conftest.er1
32837 cat conftest.err >&5
32838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839 (exit $ac_status); } && {
32840 test -z "$ac_c_werror_flag" ||
32841 test ! -s conftest.err
32842 } && test -s conftest$ac_exeext &&
32843 $as_test_x conftest$ac_exeext; then
32844 ac_cv_imap_tk2006="yes"
32845 else
32846 echo "$as_me: failed program was:" >&5
32847 sed 's/^/| /' conftest.$ac_ext >&5
32849 ac_cv_imap_tk2006="no"
32853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32854 conftest$ac_exeext conftest.$ac_ext
32859 if test "${IMAP_TK_DIR}" = "system"; then
32860 #We will enter here if user specified "system" or if any of above checks failed
32861 { echo "$as_me:$LINENO: checking for system c-client library..." >&5
32862 echo $ECHO_N "checking for system c-client library...... $ECHO_C" >&6; }
32863 CPPFLAGS="${saved_cppflags}"
32864 LIBS="${saved_libs}"
32865 imap_ldflags=""
32866 imap_libs="-lc-client"
32867 imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
32868 CPPFLAGS="${CPPFLAGS} ${imap_include}"
32869 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
32870 cat >conftest.$ac_ext <<_ACEOF
32871 /* confdefs.h. */
32872 _ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h. */
32876 #include <stdio.h>
32877 #include <imap/c-client.h>
32878 void mm_searched (MAILSTREAM *stream,unsigned long number)
32881 void mm_exists (MAILSTREAM *stream,unsigned long number)
32884 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32887 void mm_flags (MAILSTREAM *stream,unsigned long number)
32890 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32893 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32896 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32899 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32902 void mm_log (char *string,long errflg)
32905 void mm_dlog (char *string)
32908 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
32911 void mm_critical (MAILSTREAM *stream)
32914 void mm_nocritical (MAILSTREAM *stream)
32917 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
32920 void mm_fatal (char *string)
32924 main ()
32927 MAILSTREAM *foo = mail_open(NULL, "", 0);
32931 return 0;
32933 _ACEOF
32934 rm -f conftest.$ac_objext conftest$ac_exeext
32935 if { (ac_try="$ac_link"
32936 case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_link") 2>conftest.er1
32942 ac_status=$?
32943 grep -v '^ *+' conftest.er1 >conftest.err
32944 rm -f conftest.er1
32945 cat conftest.err >&5
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); } && {
32948 test -z "$ac_c_werror_flag" ||
32949 test ! -s conftest.err
32950 } && test -s conftest$ac_exeext &&
32951 $as_test_x conftest$ac_exeext; then
32952 ac_cv_imap_tk="yes"
32953 else
32954 echo "$as_me: failed program was:" >&5
32955 sed 's/^/| /' conftest.$ac_ext >&5
32957 ac_cv_imap_tk="no"
32961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32962 conftest$ac_exeext conftest.$ac_ext
32963 if test "${ac_cv_imap_tk}" = "yes"; then
32964 cat >conftest.$ac_ext <<_ACEOF
32965 /* confdefs.h. */
32966 _ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h. */
32970 #include <stdio.h>
32971 #include <imap/c-client.h>
32972 void mm_searched (MAILSTREAM *stream,unsigned long number)
32975 void mm_exists (MAILSTREAM *stream,unsigned long number)
32978 void mm_expunged (MAILSTREAM *stream,unsigned long number)
32981 void mm_flags (MAILSTREAM *stream,unsigned long number)
32984 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
32987 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32990 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
32993 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
32996 void mm_log (char *string,long errflg)
32999 void mm_dlog (char *string)
33002 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33005 void mm_critical (MAILSTREAM *stream)
33008 void mm_nocritical (MAILSTREAM *stream)
33011 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33014 void mm_fatal (char *string)
33018 main ()
33021 long check = mail_expunge_full(NULL, "", 0);
33025 return 0;
33027 _ACEOF
33028 rm -f conftest.$ac_objext conftest$ac_exeext
33029 if { (ac_try="$ac_link"
33030 case "(($ac_try" in
33031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032 *) ac_try_echo=$ac_try;;
33033 esac
33034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035 (eval "$ac_link") 2>conftest.er1
33036 ac_status=$?
33037 grep -v '^ *+' conftest.er1 >conftest.err
33038 rm -f conftest.er1
33039 cat conftest.err >&5
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); } && {
33042 test -z "$ac_c_werror_flag" ||
33043 test ! -s conftest.err
33044 } && test -s conftest$ac_exeext &&
33045 $as_test_x conftest$ac_exeext; then
33046 ac_cv_imap_tk2006="yes"
33047 else
33048 echo "$as_me: failed program was:" >&5
33049 sed 's/^/| /' conftest.$ac_ext >&5
33051 ac_cv_imap_tk2006="no"
33055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33056 conftest$ac_exeext conftest.$ac_ext
33057 else #looking in imap directory didn't work, try c-client
33058 imap_ldflags=""
33059 imap_libs="-lc-client"
33060 imap_include="-DUSE_SYSTEM_CCLIENT"
33061 CPPFLAGS="${saved_cppflags}"
33062 LIBS="${saved_libs}"
33063 CPPFLAGS="${CPPFLAGS} ${imap_include}"
33064 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
33065 cat >conftest.$ac_ext <<_ACEOF
33066 /* confdefs.h. */
33067 _ACEOF
33068 cat confdefs.h >>conftest.$ac_ext
33069 cat >>conftest.$ac_ext <<_ACEOF
33070 /* end confdefs.h. */
33071 #include <stdio.h>
33072 #include <c-client/c-client.h>
33073 void mm_searched (MAILSTREAM *stream,unsigned long number)
33076 void mm_exists (MAILSTREAM *stream,unsigned long number)
33079 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33082 void mm_flags (MAILSTREAM *stream,unsigned long number)
33085 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33088 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33091 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33094 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33097 void mm_log (char *string,long errflg)
33100 void mm_dlog (char *string)
33103 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33106 void mm_critical (MAILSTREAM *stream)
33109 void mm_nocritical (MAILSTREAM *stream)
33112 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33115 void mm_fatal (char *string)
33119 main ()
33122 MAILSTREAM *foo = mail_open(NULL, "", 0);
33126 return 0;
33128 _ACEOF
33129 rm -f conftest.$ac_objext conftest$ac_exeext
33130 if { (ac_try="$ac_link"
33131 case "(($ac_try" in
33132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133 *) ac_try_echo=$ac_try;;
33134 esac
33135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136 (eval "$ac_link") 2>conftest.er1
33137 ac_status=$?
33138 grep -v '^ *+' conftest.er1 >conftest.err
33139 rm -f conftest.er1
33140 cat conftest.err >&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); } && {
33143 test -z "$ac_c_werror_flag" ||
33144 test ! -s conftest.err
33145 } && test -s conftest$ac_exeext &&
33146 $as_test_x conftest$ac_exeext; then
33147 ac_cv_imap_tk="yes"
33148 else
33149 echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.$ac_ext >&5
33152 ac_cv_imap_tk="no"
33156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33157 conftest$ac_exeext conftest.$ac_ext
33158 if test "${ac_cv_imap_tk}" = "yes"; then
33159 cat >conftest.$ac_ext <<_ACEOF
33160 /* confdefs.h. */
33161 _ACEOF
33162 cat confdefs.h >>conftest.$ac_ext
33163 cat >>conftest.$ac_ext <<_ACEOF
33164 /* end confdefs.h. */
33165 #include <stdio.h>
33166 #include <c-client/c-client.h>
33167 void mm_searched (MAILSTREAM *stream,unsigned long number)
33170 void mm_exists (MAILSTREAM *stream,unsigned long number)
33173 void mm_expunged (MAILSTREAM *stream,unsigned long number)
33176 void mm_flags (MAILSTREAM *stream,unsigned long number)
33179 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
33182 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33185 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
33188 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
33191 void mm_log (char *string,long errflg)
33194 void mm_dlog (char *string)
33197 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
33200 void mm_critical (MAILSTREAM *stream)
33203 void mm_nocritical (MAILSTREAM *stream)
33206 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
33209 void mm_fatal (char *string)
33213 main ()
33216 long check = mail_expunge_full(NULL, "", 0);
33220 return 0;
33222 _ACEOF
33223 rm -f conftest.$ac_objext conftest$ac_exeext
33224 if { (ac_try="$ac_link"
33225 case "(($ac_try" in
33226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33227 *) ac_try_echo=$ac_try;;
33228 esac
33229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33230 (eval "$ac_link") 2>conftest.er1
33231 ac_status=$?
33232 grep -v '^ *+' conftest.er1 >conftest.err
33233 rm -f conftest.er1
33234 cat conftest.err >&5
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); } && {
33237 test -z "$ac_c_werror_flag" ||
33238 test ! -s conftest.err
33239 } && test -s conftest$ac_exeext &&
33240 $as_test_x conftest$ac_exeext; then
33241 ac_cv_imap_tk2006="yes"
33242 else
33243 echo "$as_me: failed program was:" >&5
33244 sed 's/^/| /' conftest.$ac_ext >&5
33246 ac_cv_imap_tk2006="no"
33250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33251 conftest$ac_exeext conftest.$ac_ext
33255 if test "${ac_cv_imap_tk}" = "yes"; then
33256 { echo "$as_me:$LINENO: result: yes" >&5
33257 echo "${ECHO_T}yes" >&6; }
33258 IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
33259 IMAP_TK_INCLUDE="${imap_include}"
33260 PBX_IMAP_TK=1
33262 cat >>confdefs.h <<\_ACEOF
33263 #define HAVE_IMAP_TK 1
33264 _ACEOF
33266 if test "${ac_cv_imap_tk2006}" = "yes"; then
33268 cat >>confdefs.h <<\_ACEOF
33269 #define HAVE_IMAP_TK2006 1
33270 _ACEOF
33273 else
33274 { echo "$as_me:$LINENO: result: no" >&5
33275 echo "${ECHO_T}no" >&6; }
33277 CPPFLAGS="${saved_cppflags}"
33278 LIBS="${saved_libs}"
33282 if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
33283 pbxlibdir=""
33284 # if --with-JACK=DIR has been specified, use it.
33285 if test "x${JACK_DIR}" != "x"; then
33286 if test -d ${JACK_DIR}/lib; then
33287 pbxlibdir="-L${JACK_DIR}/lib"
33288 else
33289 pbxlibdir="-L${JACK_DIR}"
33292 pbxfuncname="jack_activate"
33293 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33294 AST_JACK_FOUND=yes
33295 else
33296 as_ac_Lib=`echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
33297 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ljack" >&5
33298 echo $ECHO_N "checking for ${pbxfuncname} in -ljack... $ECHO_C" >&6; }
33299 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33300 echo $ECHO_N "(cached) $ECHO_C" >&6
33301 else
33302 ac_check_lib_save_LIBS=$LIBS
33303 LIBS="-ljack ${pbxlibdir} $LIBS"
33304 cat >conftest.$ac_ext <<_ACEOF
33305 /* confdefs.h. */
33306 _ACEOF
33307 cat confdefs.h >>conftest.$ac_ext
33308 cat >>conftest.$ac_ext <<_ACEOF
33309 /* end confdefs.h. */
33311 /* Override any GCC internal prototype to avoid an error.
33312 Use char because int might match the return type of a GCC
33313 builtin and then its argument prototype would still apply. */
33314 #ifdef __cplusplus
33315 extern "C"
33316 #endif
33317 char ${pbxfuncname} ();
33319 main ()
33321 return ${pbxfuncname} ();
33323 return 0;
33325 _ACEOF
33326 rm -f conftest.$ac_objext conftest$ac_exeext
33327 if { (ac_try="$ac_link"
33328 case "(($ac_try" in
33329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330 *) ac_try_echo=$ac_try;;
33331 esac
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333 (eval "$ac_link") 2>conftest.er1
33334 ac_status=$?
33335 grep -v '^ *+' conftest.er1 >conftest.err
33336 rm -f conftest.er1
33337 cat conftest.err >&5
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); } && {
33340 test -z "$ac_c_werror_flag" ||
33341 test ! -s conftest.err
33342 } && test -s conftest$ac_exeext &&
33343 $as_test_x conftest$ac_exeext; then
33344 eval "$as_ac_Lib=yes"
33345 else
33346 echo "$as_me: failed program was:" >&5
33347 sed 's/^/| /' conftest.$ac_ext >&5
33349 eval "$as_ac_Lib=no"
33352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33353 conftest$ac_exeext conftest.$ac_ext
33354 LIBS=$ac_check_lib_save_LIBS
33356 ac_res=`eval echo '${'$as_ac_Lib'}'`
33357 { echo "$as_me:$LINENO: result: $ac_res" >&5
33358 echo "${ECHO_T}$ac_res" >&6; }
33359 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33360 AST_JACK_FOUND=yes
33361 else
33362 AST_JACK_FOUND=no
33367 # now check for the header.
33368 if test "${AST_JACK_FOUND}" = "yes"; then
33369 JACK_LIB="${pbxlibdir} -ljack "
33370 # if --with-JACK=DIR has been specified, use it.
33371 if test "x${JACK_DIR}" != "x"; then
33372 JACK_INCLUDE="-I${JACK_DIR}/include"
33374 JACK_INCLUDE="${JACK_INCLUDE} "
33375 if test "xjack/jack.h" = "x" ; then # no header, assume found
33376 JACK_HEADER_FOUND="1"
33377 else # check for the header
33378 saved_cppflags="${CPPFLAGS}"
33379 CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE} "
33380 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33381 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33382 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33383 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33384 echo $ECHO_N "(cached) $ECHO_C" >&6
33386 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33387 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33388 else
33389 # Is the header compilable?
33390 { echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
33391 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6; }
33392 cat >conftest.$ac_ext <<_ACEOF
33393 /* confdefs.h. */
33394 _ACEOF
33395 cat confdefs.h >>conftest.$ac_ext
33396 cat >>conftest.$ac_ext <<_ACEOF
33397 /* end confdefs.h. */
33398 $ac_includes_default
33399 #include <jack/jack.h>
33400 _ACEOF
33401 rm -f conftest.$ac_objext
33402 if { (ac_try="$ac_compile"
33403 case "(($ac_try" in
33404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33405 *) ac_try_echo=$ac_try;;
33406 esac
33407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33408 (eval "$ac_compile") 2>conftest.er1
33409 ac_status=$?
33410 grep -v '^ *+' conftest.er1 >conftest.err
33411 rm -f conftest.er1
33412 cat conftest.err >&5
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); } && {
33415 test -z "$ac_c_werror_flag" ||
33416 test ! -s conftest.err
33417 } && test -s conftest.$ac_objext; then
33418 ac_header_compiler=yes
33419 else
33420 echo "$as_me: failed program was:" >&5
33421 sed 's/^/| /' conftest.$ac_ext >&5
33423 ac_header_compiler=no
33426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33428 echo "${ECHO_T}$ac_header_compiler" >&6; }
33430 # Is the header present?
33431 { echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
33432 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6; }
33433 cat >conftest.$ac_ext <<_ACEOF
33434 /* confdefs.h. */
33435 _ACEOF
33436 cat confdefs.h >>conftest.$ac_ext
33437 cat >>conftest.$ac_ext <<_ACEOF
33438 /* end confdefs.h. */
33439 #include <jack/jack.h>
33440 _ACEOF
33441 if { (ac_try="$ac_cpp conftest.$ac_ext"
33442 case "(($ac_try" in
33443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33444 *) ac_try_echo=$ac_try;;
33445 esac
33446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33448 ac_status=$?
33449 grep -v '^ *+' conftest.er1 >conftest.err
33450 rm -f conftest.er1
33451 cat conftest.err >&5
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); } >/dev/null && {
33454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33455 test ! -s conftest.err
33456 }; then
33457 ac_header_preproc=yes
33458 else
33459 echo "$as_me: failed program was:" >&5
33460 sed 's/^/| /' conftest.$ac_ext >&5
33462 ac_header_preproc=no
33465 rm -f conftest.err conftest.$ac_ext
33466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33467 echo "${ECHO_T}$ac_header_preproc" >&6; }
33469 # So? What about this header?
33470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33471 yes:no: )
33472 { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
33473 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33474 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
33475 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
33476 ac_header_preproc=yes
33478 no:yes:* )
33479 { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
33480 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
33481 { echo "$as_me:$LINENO: WARNING: jack/jack.h: check for missing prerequisite headers?" >&5
33482 echo "$as_me: WARNING: jack/jack.h: check for missing prerequisite headers?" >&2;}
33483 { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
33484 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
33485 { echo "$as_me:$LINENO: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&5
33486 echo "$as_me: WARNING: jack/jack.h: section \"Present But Cannot Be Compiled\"" >&2;}
33487 { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
33488 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
33489 { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
33490 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
33491 ( cat <<\_ASBOX
33492 ## ------------------------------- ##
33493 ## Report this to www.asterisk.org ##
33494 ## ------------------------------- ##
33495 _ASBOX
33496 ) | sed "s/^/$as_me: WARNING: /" >&2
33498 esac
33499 { echo "$as_me:$LINENO: checking for jack/jack.h" >&5
33500 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6; }
33501 if test "${ac_cv_header_jack_jack_h+set}" = set; then
33502 echo $ECHO_N "(cached) $ECHO_C" >&6
33503 else
33504 ac_cv_header_jack_jack_h=$ac_header_preproc
33506 { echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
33507 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6; }
33510 if test $ac_cv_header_jack_jack_h = yes; then
33511 JACK_HEADER_FOUND=1
33512 else
33513 JACK_HEADER_FOUND=0
33517 CPPFLAGS="${saved_cppflags}"
33519 if test "x${JACK_HEADER_FOUND}" = "x0" ; then
33520 JACK_LIB=""
33521 JACK_INCLUDE=""
33522 else
33523 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33524 JACK_LIB=""
33526 PBX_JACK=1
33527 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33529 cat >>confdefs.h <<_ACEOF
33530 #define HAVE_JACK 1
33531 _ACEOF
33534 cat >>confdefs.h <<_ACEOF
33535 #define HAVE_JACK_VERSION
33536 _ACEOF
33543 # Needed by unixodbc
33545 if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
33546 pbxlibdir=""
33547 # if --with-LTDL=DIR has been specified, use it.
33548 if test "x${LTDL_DIR}" != "x"; then
33549 if test -d ${LTDL_DIR}/lib; then
33550 pbxlibdir="-L${LTDL_DIR}/lib"
33551 else
33552 pbxlibdir="-L${LTDL_DIR}"
33555 pbxfuncname="lt_dlinit"
33556 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33557 AST_LTDL_FOUND=yes
33558 else
33559 as_ac_Lib=`echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
33560 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lltdl" >&5
33561 echo $ECHO_N "checking for ${pbxfuncname} in -lltdl... $ECHO_C" >&6; }
33562 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33563 echo $ECHO_N "(cached) $ECHO_C" >&6
33564 else
33565 ac_check_lib_save_LIBS=$LIBS
33566 LIBS="-lltdl ${pbxlibdir} $LIBS"
33567 cat >conftest.$ac_ext <<_ACEOF
33568 /* confdefs.h. */
33569 _ACEOF
33570 cat confdefs.h >>conftest.$ac_ext
33571 cat >>conftest.$ac_ext <<_ACEOF
33572 /* end confdefs.h. */
33574 /* Override any GCC internal prototype to avoid an error.
33575 Use char because int might match the return type of a GCC
33576 builtin and then its argument prototype would still apply. */
33577 #ifdef __cplusplus
33578 extern "C"
33579 #endif
33580 char ${pbxfuncname} ();
33582 main ()
33584 return ${pbxfuncname} ();
33586 return 0;
33588 _ACEOF
33589 rm -f conftest.$ac_objext conftest$ac_exeext
33590 if { (ac_try="$ac_link"
33591 case "(($ac_try" in
33592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593 *) ac_try_echo=$ac_try;;
33594 esac
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596 (eval "$ac_link") 2>conftest.er1
33597 ac_status=$?
33598 grep -v '^ *+' conftest.er1 >conftest.err
33599 rm -f conftest.er1
33600 cat conftest.err >&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); } && {
33603 test -z "$ac_c_werror_flag" ||
33604 test ! -s conftest.err
33605 } && test -s conftest$ac_exeext &&
33606 $as_test_x conftest$ac_exeext; then
33607 eval "$as_ac_Lib=yes"
33608 else
33609 echo "$as_me: failed program was:" >&5
33610 sed 's/^/| /' conftest.$ac_ext >&5
33612 eval "$as_ac_Lib=no"
33615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33616 conftest$ac_exeext conftest.$ac_ext
33617 LIBS=$ac_check_lib_save_LIBS
33619 ac_res=`eval echo '${'$as_ac_Lib'}'`
33620 { echo "$as_me:$LINENO: result: $ac_res" >&5
33621 echo "${ECHO_T}$ac_res" >&6; }
33622 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33623 AST_LTDL_FOUND=yes
33624 else
33625 AST_LTDL_FOUND=no
33630 # now check for the header.
33631 if test "${AST_LTDL_FOUND}" = "yes"; then
33632 LTDL_LIB="${pbxlibdir} -lltdl "
33633 # if --with-LTDL=DIR has been specified, use it.
33634 if test "x${LTDL_DIR}" != "x"; then
33635 LTDL_INCLUDE="-I${LTDL_DIR}/include"
33637 LTDL_INCLUDE="${LTDL_INCLUDE} "
33638 if test "xltdl.h" = "x" ; then # no header, assume found
33639 LTDL_HEADER_FOUND="1"
33640 else # check for the header
33641 saved_cppflags="${CPPFLAGS}"
33642 CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE} "
33643 if test "${ac_cv_header_ltdl_h+set}" = set; then
33644 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33645 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33646 if test "${ac_cv_header_ltdl_h+set}" = set; then
33647 echo $ECHO_N "(cached) $ECHO_C" >&6
33649 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33650 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33651 else
33652 # Is the header compilable?
33653 { echo "$as_me:$LINENO: checking ltdl.h usability" >&5
33654 echo $ECHO_N "checking ltdl.h usability... $ECHO_C" >&6; }
33655 cat >conftest.$ac_ext <<_ACEOF
33656 /* confdefs.h. */
33657 _ACEOF
33658 cat confdefs.h >>conftest.$ac_ext
33659 cat >>conftest.$ac_ext <<_ACEOF
33660 /* end confdefs.h. */
33661 $ac_includes_default
33662 #include <ltdl.h>
33663 _ACEOF
33664 rm -f conftest.$ac_objext
33665 if { (ac_try="$ac_compile"
33666 case "(($ac_try" in
33667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33668 *) ac_try_echo=$ac_try;;
33669 esac
33670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33671 (eval "$ac_compile") 2>conftest.er1
33672 ac_status=$?
33673 grep -v '^ *+' conftest.er1 >conftest.err
33674 rm -f conftest.er1
33675 cat conftest.err >&5
33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677 (exit $ac_status); } && {
33678 test -z "$ac_c_werror_flag" ||
33679 test ! -s conftest.err
33680 } && test -s conftest.$ac_objext; then
33681 ac_header_compiler=yes
33682 else
33683 echo "$as_me: failed program was:" >&5
33684 sed 's/^/| /' conftest.$ac_ext >&5
33686 ac_header_compiler=no
33689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33691 echo "${ECHO_T}$ac_header_compiler" >&6; }
33693 # Is the header present?
33694 { echo "$as_me:$LINENO: checking ltdl.h presence" >&5
33695 echo $ECHO_N "checking ltdl.h presence... $ECHO_C" >&6; }
33696 cat >conftest.$ac_ext <<_ACEOF
33697 /* confdefs.h. */
33698 _ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h. */
33702 #include <ltdl.h>
33703 _ACEOF
33704 if { (ac_try="$ac_cpp conftest.$ac_ext"
33705 case "(($ac_try" in
33706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707 *) ac_try_echo=$ac_try;;
33708 esac
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33711 ac_status=$?
33712 grep -v '^ *+' conftest.er1 >conftest.err
33713 rm -f conftest.er1
33714 cat conftest.err >&5
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); } >/dev/null && {
33717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33718 test ! -s conftest.err
33719 }; then
33720 ac_header_preproc=yes
33721 else
33722 echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33725 ac_header_preproc=no
33728 rm -f conftest.err conftest.$ac_ext
33729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33730 echo "${ECHO_T}$ac_header_preproc" >&6; }
33732 # So? What about this header?
33733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33734 yes:no: )
33735 { echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33736 echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33737 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
33738 echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
33739 ac_header_preproc=yes
33741 no:yes:* )
33742 { echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
33743 echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
33744 { echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
33745 echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
33746 { echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
33747 echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
33748 { echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
33749 echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33750 { echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
33751 echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
33752 { echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
33753 echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
33754 ( cat <<\_ASBOX
33755 ## ------------------------------- ##
33756 ## Report this to www.asterisk.org ##
33757 ## ------------------------------- ##
33758 _ASBOX
33759 ) | sed "s/^/$as_me: WARNING: /" >&2
33761 esac
33762 { echo "$as_me:$LINENO: checking for ltdl.h" >&5
33763 echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6; }
33764 if test "${ac_cv_header_ltdl_h+set}" = set; then
33765 echo $ECHO_N "(cached) $ECHO_C" >&6
33766 else
33767 ac_cv_header_ltdl_h=$ac_header_preproc
33769 { echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
33770 echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6; }
33773 if test $ac_cv_header_ltdl_h = yes; then
33774 LTDL_HEADER_FOUND=1
33775 else
33776 LTDL_HEADER_FOUND=0
33780 CPPFLAGS="${saved_cppflags}"
33782 if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
33783 LTDL_LIB=""
33784 LTDL_INCLUDE=""
33785 else
33786 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
33787 LTDL_LIB=""
33789 PBX_LTDL=1
33790 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
33792 cat >>confdefs.h <<_ACEOF
33793 #define HAVE_LTDL 1
33794 _ACEOF
33797 cat >>confdefs.h <<_ACEOF
33798 #define HAVE_LTDL_VERSION
33799 _ACEOF
33807 if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
33808 pbxlibdir=""
33809 # if --with-LDAP=DIR has been specified, use it.
33810 if test "x${LDAP_DIR}" != "x"; then
33811 if test -d ${LDAP_DIR}/lib; then
33812 pbxlibdir="-L${LDAP_DIR}/lib"
33813 else
33814 pbxlibdir="-L${LDAP_DIR}"
33817 pbxfuncname="ldap_initialize"
33818 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
33819 AST_LDAP_FOUND=yes
33820 else
33821 as_ac_Lib=`echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
33822 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lldap" >&5
33823 echo $ECHO_N "checking for ${pbxfuncname} in -lldap... $ECHO_C" >&6; }
33824 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
33825 echo $ECHO_N "(cached) $ECHO_C" >&6
33826 else
33827 ac_check_lib_save_LIBS=$LIBS
33828 LIBS="-lldap ${pbxlibdir} $LIBS"
33829 cat >conftest.$ac_ext <<_ACEOF
33830 /* confdefs.h. */
33831 _ACEOF
33832 cat confdefs.h >>conftest.$ac_ext
33833 cat >>conftest.$ac_ext <<_ACEOF
33834 /* end confdefs.h. */
33836 /* Override any GCC internal prototype to avoid an error.
33837 Use char because int might match the return type of a GCC
33838 builtin and then its argument prototype would still apply. */
33839 #ifdef __cplusplus
33840 extern "C"
33841 #endif
33842 char ${pbxfuncname} ();
33844 main ()
33846 return ${pbxfuncname} ();
33848 return 0;
33850 _ACEOF
33851 rm -f conftest.$ac_objext conftest$ac_exeext
33852 if { (ac_try="$ac_link"
33853 case "(($ac_try" in
33854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33855 *) ac_try_echo=$ac_try;;
33856 esac
33857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33858 (eval "$ac_link") 2>conftest.er1
33859 ac_status=$?
33860 grep -v '^ *+' conftest.er1 >conftest.err
33861 rm -f conftest.er1
33862 cat conftest.err >&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); } && {
33865 test -z "$ac_c_werror_flag" ||
33866 test ! -s conftest.err
33867 } && test -s conftest$ac_exeext &&
33868 $as_test_x conftest$ac_exeext; then
33869 eval "$as_ac_Lib=yes"
33870 else
33871 echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33874 eval "$as_ac_Lib=no"
33877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33878 conftest$ac_exeext conftest.$ac_ext
33879 LIBS=$ac_check_lib_save_LIBS
33881 ac_res=`eval echo '${'$as_ac_Lib'}'`
33882 { echo "$as_me:$LINENO: result: $ac_res" >&5
33883 echo "${ECHO_T}$ac_res" >&6; }
33884 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33885 AST_LDAP_FOUND=yes
33886 else
33887 AST_LDAP_FOUND=no
33892 # now check for the header.
33893 if test "${AST_LDAP_FOUND}" = "yes"; then
33894 LDAP_LIB="${pbxlibdir} -lldap "
33895 # if --with-LDAP=DIR has been specified, use it.
33896 if test "x${LDAP_DIR}" != "x"; then
33897 LDAP_INCLUDE="-I${LDAP_DIR}/include"
33899 LDAP_INCLUDE="${LDAP_INCLUDE} "
33900 if test "xldap.h" = "x" ; then # no header, assume found
33901 LDAP_HEADER_FOUND="1"
33902 else # check for the header
33903 saved_cppflags="${CPPFLAGS}"
33904 CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE} "
33905 if test "${ac_cv_header_ldap_h+set}" = set; then
33906 { echo "$as_me:$LINENO: checking for ldap.h" >&5
33907 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
33908 if test "${ac_cv_header_ldap_h+set}" = set; then
33909 echo $ECHO_N "(cached) $ECHO_C" >&6
33911 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
33912 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
33913 else
33914 # Is the header compilable?
33915 { echo "$as_me:$LINENO: checking ldap.h usability" >&5
33916 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6; }
33917 cat >conftest.$ac_ext <<_ACEOF
33918 /* confdefs.h. */
33919 _ACEOF
33920 cat confdefs.h >>conftest.$ac_ext
33921 cat >>conftest.$ac_ext <<_ACEOF
33922 /* end confdefs.h. */
33923 $ac_includes_default
33924 #include <ldap.h>
33925 _ACEOF
33926 rm -f conftest.$ac_objext
33927 if { (ac_try="$ac_compile"
33928 case "(($ac_try" in
33929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930 *) ac_try_echo=$ac_try;;
33931 esac
33932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933 (eval "$ac_compile") 2>conftest.er1
33934 ac_status=$?
33935 grep -v '^ *+' conftest.er1 >conftest.err
33936 rm -f conftest.er1
33937 cat conftest.err >&5
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); } && {
33940 test -z "$ac_c_werror_flag" ||
33941 test ! -s conftest.err
33942 } && test -s conftest.$ac_objext; then
33943 ac_header_compiler=yes
33944 else
33945 echo "$as_me: failed program was:" >&5
33946 sed 's/^/| /' conftest.$ac_ext >&5
33948 ac_header_compiler=no
33951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33953 echo "${ECHO_T}$ac_header_compiler" >&6; }
33955 # Is the header present?
33956 { echo "$as_me:$LINENO: checking ldap.h presence" >&5
33957 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6; }
33958 cat >conftest.$ac_ext <<_ACEOF
33959 /* confdefs.h. */
33960 _ACEOF
33961 cat confdefs.h >>conftest.$ac_ext
33962 cat >>conftest.$ac_ext <<_ACEOF
33963 /* end confdefs.h. */
33964 #include <ldap.h>
33965 _ACEOF
33966 if { (ac_try="$ac_cpp conftest.$ac_ext"
33967 case "(($ac_try" in
33968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33969 *) ac_try_echo=$ac_try;;
33970 esac
33971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33973 ac_status=$?
33974 grep -v '^ *+' conftest.er1 >conftest.err
33975 rm -f conftest.er1
33976 cat conftest.err >&5
33977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978 (exit $ac_status); } >/dev/null && {
33979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33980 test ! -s conftest.err
33981 }; then
33982 ac_header_preproc=yes
33983 else
33984 echo "$as_me: failed program was:" >&5
33985 sed 's/^/| /' conftest.$ac_ext >&5
33987 ac_header_preproc=no
33990 rm -f conftest.err conftest.$ac_ext
33991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33992 echo "${ECHO_T}$ac_header_preproc" >&6; }
33994 # So? What about this header?
33995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33996 yes:no: )
33997 { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
33998 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33999 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
34000 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
34001 ac_header_preproc=yes
34003 no:yes:* )
34004 { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
34005 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
34006 { echo "$as_me:$LINENO: WARNING: ldap.h: check for missing prerequisite headers?" >&5
34007 echo "$as_me: WARNING: ldap.h: check for missing prerequisite headers?" >&2;}
34008 { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
34009 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
34010 { echo "$as_me:$LINENO: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&5
34011 echo "$as_me: WARNING: ldap.h: section \"Present But Cannot Be Compiled\"" >&2;}
34012 { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
34013 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
34014 { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
34015 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
34016 ( cat <<\_ASBOX
34017 ## ------------------------------- ##
34018 ## Report this to www.asterisk.org ##
34019 ## ------------------------------- ##
34020 _ASBOX
34021 ) | sed "s/^/$as_me: WARNING: /" >&2
34023 esac
34024 { echo "$as_me:$LINENO: checking for ldap.h" >&5
34025 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
34026 if test "${ac_cv_header_ldap_h+set}" = set; then
34027 echo $ECHO_N "(cached) $ECHO_C" >&6
34028 else
34029 ac_cv_header_ldap_h=$ac_header_preproc
34031 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
34032 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
34035 if test $ac_cv_header_ldap_h = yes; then
34036 LDAP_HEADER_FOUND=1
34037 else
34038 LDAP_HEADER_FOUND=0
34042 CPPFLAGS="${saved_cppflags}"
34044 if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
34045 LDAP_LIB=""
34046 LDAP_INCLUDE=""
34047 else
34048 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34049 LDAP_LIB=""
34051 PBX_LDAP=1
34052 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34054 cat >>confdefs.h <<_ACEOF
34055 #define HAVE_LDAP 1
34056 _ACEOF
34059 cat >>confdefs.h <<_ACEOF
34060 #define HAVE_LDAP_VERSION
34061 _ACEOF
34069 if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
34070 pbxlibdir=""
34071 # if --with-MISDN=DIR has been specified, use it.
34072 if test "x${MISDN_DIR}" != "x"; then
34073 if test -d ${MISDN_DIR}/lib; then
34074 pbxlibdir="-L${MISDN_DIR}/lib"
34075 else
34076 pbxlibdir="-L${MISDN_DIR}"
34079 pbxfuncname="mISDN_open"
34080 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34081 AST_MISDN_FOUND=yes
34082 else
34083 as_ac_Lib=`echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
34084 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lmISDN" >&5
34085 echo $ECHO_N "checking for ${pbxfuncname} in -lmISDN... $ECHO_C" >&6; }
34086 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34087 echo $ECHO_N "(cached) $ECHO_C" >&6
34088 else
34089 ac_check_lib_save_LIBS=$LIBS
34090 LIBS="-lmISDN ${pbxlibdir} $LIBS"
34091 cat >conftest.$ac_ext <<_ACEOF
34092 /* confdefs.h. */
34093 _ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h. */
34098 /* Override any GCC internal prototype to avoid an error.
34099 Use char because int might match the return type of a GCC
34100 builtin and then its argument prototype would still apply. */
34101 #ifdef __cplusplus
34102 extern "C"
34103 #endif
34104 char ${pbxfuncname} ();
34106 main ()
34108 return ${pbxfuncname} ();
34110 return 0;
34112 _ACEOF
34113 rm -f conftest.$ac_objext conftest$ac_exeext
34114 if { (ac_try="$ac_link"
34115 case "(($ac_try" in
34116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34117 *) ac_try_echo=$ac_try;;
34118 esac
34119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34120 (eval "$ac_link") 2>conftest.er1
34121 ac_status=$?
34122 grep -v '^ *+' conftest.er1 >conftest.err
34123 rm -f conftest.er1
34124 cat conftest.err >&5
34125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126 (exit $ac_status); } && {
34127 test -z "$ac_c_werror_flag" ||
34128 test ! -s conftest.err
34129 } && test -s conftest$ac_exeext &&
34130 $as_test_x conftest$ac_exeext; then
34131 eval "$as_ac_Lib=yes"
34132 else
34133 echo "$as_me: failed program was:" >&5
34134 sed 's/^/| /' conftest.$ac_ext >&5
34136 eval "$as_ac_Lib=no"
34139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34140 conftest$ac_exeext conftest.$ac_ext
34141 LIBS=$ac_check_lib_save_LIBS
34143 ac_res=`eval echo '${'$as_ac_Lib'}'`
34144 { echo "$as_me:$LINENO: result: $ac_res" >&5
34145 echo "${ECHO_T}$ac_res" >&6; }
34146 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34147 AST_MISDN_FOUND=yes
34148 else
34149 AST_MISDN_FOUND=no
34154 # now check for the header.
34155 if test "${AST_MISDN_FOUND}" = "yes"; then
34156 MISDN_LIB="${pbxlibdir} -lmISDN "
34157 # if --with-MISDN=DIR has been specified, use it.
34158 if test "x${MISDN_DIR}" != "x"; then
34159 MISDN_INCLUDE="-I${MISDN_DIR}/include"
34161 MISDN_INCLUDE="${MISDN_INCLUDE} "
34162 if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
34163 MISDN_HEADER_FOUND="1"
34164 else # check for the header
34165 saved_cppflags="${CPPFLAGS}"
34166 CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE} "
34167 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34168 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34169 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34170 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34171 echo $ECHO_N "(cached) $ECHO_C" >&6
34173 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34174 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34175 else
34176 # Is the header compilable?
34177 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h usability" >&5
34178 echo $ECHO_N "checking mISDNuser/mISDNlib.h usability... $ECHO_C" >&6; }
34179 cat >conftest.$ac_ext <<_ACEOF
34180 /* confdefs.h. */
34181 _ACEOF
34182 cat confdefs.h >>conftest.$ac_ext
34183 cat >>conftest.$ac_ext <<_ACEOF
34184 /* end confdefs.h. */
34185 $ac_includes_default
34186 #include <mISDNuser/mISDNlib.h>
34187 _ACEOF
34188 rm -f conftest.$ac_objext
34189 if { (ac_try="$ac_compile"
34190 case "(($ac_try" in
34191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34192 *) ac_try_echo=$ac_try;;
34193 esac
34194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34195 (eval "$ac_compile") 2>conftest.er1
34196 ac_status=$?
34197 grep -v '^ *+' conftest.er1 >conftest.err
34198 rm -f conftest.er1
34199 cat conftest.err >&5
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); } && {
34202 test -z "$ac_c_werror_flag" ||
34203 test ! -s conftest.err
34204 } && test -s conftest.$ac_objext; then
34205 ac_header_compiler=yes
34206 else
34207 echo "$as_me: failed program was:" >&5
34208 sed 's/^/| /' conftest.$ac_ext >&5
34210 ac_header_compiler=no
34213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34215 echo "${ECHO_T}$ac_header_compiler" >&6; }
34217 # Is the header present?
34218 { echo "$as_me:$LINENO: checking mISDNuser/mISDNlib.h presence" >&5
34219 echo $ECHO_N "checking mISDNuser/mISDNlib.h presence... $ECHO_C" >&6; }
34220 cat >conftest.$ac_ext <<_ACEOF
34221 /* confdefs.h. */
34222 _ACEOF
34223 cat confdefs.h >>conftest.$ac_ext
34224 cat >>conftest.$ac_ext <<_ACEOF
34225 /* end confdefs.h. */
34226 #include <mISDNuser/mISDNlib.h>
34227 _ACEOF
34228 if { (ac_try="$ac_cpp conftest.$ac_ext"
34229 case "(($ac_try" in
34230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231 *) ac_try_echo=$ac_try;;
34232 esac
34233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34235 ac_status=$?
34236 grep -v '^ *+' conftest.er1 >conftest.err
34237 rm -f conftest.er1
34238 cat conftest.err >&5
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); } >/dev/null && {
34241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34242 test ! -s conftest.err
34243 }; then
34244 ac_header_preproc=yes
34245 else
34246 echo "$as_me: failed program was:" >&5
34247 sed 's/^/| /' conftest.$ac_ext >&5
34249 ac_header_preproc=no
34252 rm -f conftest.err conftest.$ac_ext
34253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34254 echo "${ECHO_T}$ac_header_preproc" >&6; }
34256 # So? What about this header?
34257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34258 yes:no: )
34259 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34260 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34261 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&5
34262 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the compiler's result" >&2;}
34263 ac_header_preproc=yes
34265 no:yes:* )
34266 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&5
34267 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: present but cannot be compiled" >&2;}
34268 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&5
34269 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: check for missing prerequisite headers?" >&2;}
34270 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&5
34271 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: see the Autoconf documentation" >&2;}
34272 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&5
34273 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34274 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&5
34275 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: proceeding with the preprocessor's result" >&2;}
34276 { echo "$as_me:$LINENO: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&5
34277 echo "$as_me: WARNING: mISDNuser/mISDNlib.h: in the future, the compiler will take precedence" >&2;}
34278 ( cat <<\_ASBOX
34279 ## ------------------------------- ##
34280 ## Report this to www.asterisk.org ##
34281 ## ------------------------------- ##
34282 _ASBOX
34283 ) | sed "s/^/$as_me: WARNING: /" >&2
34285 esac
34286 { echo "$as_me:$LINENO: checking for mISDNuser/mISDNlib.h" >&5
34287 echo $ECHO_N "checking for mISDNuser/mISDNlib.h... $ECHO_C" >&6; }
34288 if test "${ac_cv_header_mISDNuser_mISDNlib_h+set}" = set; then
34289 echo $ECHO_N "(cached) $ECHO_C" >&6
34290 else
34291 ac_cv_header_mISDNuser_mISDNlib_h=$ac_header_preproc
34293 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_mISDNlib_h" >&5
34294 echo "${ECHO_T}$ac_cv_header_mISDNuser_mISDNlib_h" >&6; }
34297 if test $ac_cv_header_mISDNuser_mISDNlib_h = yes; then
34298 MISDN_HEADER_FOUND=1
34299 else
34300 MISDN_HEADER_FOUND=0
34304 CPPFLAGS="${saved_cppflags}"
34306 if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
34307 MISDN_LIB=""
34308 MISDN_INCLUDE=""
34309 else
34310 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34311 MISDN_LIB=""
34313 PBX_MISDN=1
34314 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34316 cat >>confdefs.h <<_ACEOF
34317 #define HAVE_MISDN 1
34318 _ACEOF
34321 cat >>confdefs.h <<_ACEOF
34322 #define HAVE_MISDN_VERSION
34323 _ACEOF
34330 if test "${PBX_MISDN}" = 1; then
34332 if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
34333 pbxlibdir=""
34334 # if --with-ISDNNET=DIR has been specified, use it.
34335 if test "x${ISDNNET_DIR}" != "x"; then
34336 if test -d ${ISDNNET_DIR}/lib; then
34337 pbxlibdir="-L${ISDNNET_DIR}/lib"
34338 else
34339 pbxlibdir="-L${ISDNNET_DIR}"
34342 pbxfuncname="init_manager"
34343 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34344 AST_ISDNNET_FOUND=yes
34345 else
34346 as_ac_Lib=`echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
34347 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lisdnnet" >&5
34348 echo $ECHO_N "checking for ${pbxfuncname} in -lisdnnet... $ECHO_C" >&6; }
34349 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34350 echo $ECHO_N "(cached) $ECHO_C" >&6
34351 else
34352 ac_check_lib_save_LIBS=$LIBS
34353 LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
34354 cat >conftest.$ac_ext <<_ACEOF
34355 /* confdefs.h. */
34356 _ACEOF
34357 cat confdefs.h >>conftest.$ac_ext
34358 cat >>conftest.$ac_ext <<_ACEOF
34359 /* end confdefs.h. */
34361 /* Override any GCC internal prototype to avoid an error.
34362 Use char because int might match the return type of a GCC
34363 builtin and then its argument prototype would still apply. */
34364 #ifdef __cplusplus
34365 extern "C"
34366 #endif
34367 char ${pbxfuncname} ();
34369 main ()
34371 return ${pbxfuncname} ();
34373 return 0;
34375 _ACEOF
34376 rm -f conftest.$ac_objext conftest$ac_exeext
34377 if { (ac_try="$ac_link"
34378 case "(($ac_try" in
34379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380 *) ac_try_echo=$ac_try;;
34381 esac
34382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383 (eval "$ac_link") 2>conftest.er1
34384 ac_status=$?
34385 grep -v '^ *+' conftest.er1 >conftest.err
34386 rm -f conftest.er1
34387 cat conftest.err >&5
34388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); } && {
34390 test -z "$ac_c_werror_flag" ||
34391 test ! -s conftest.err
34392 } && test -s conftest$ac_exeext &&
34393 $as_test_x conftest$ac_exeext; then
34394 eval "$as_ac_Lib=yes"
34395 else
34396 echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34399 eval "$as_ac_Lib=no"
34402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34403 conftest$ac_exeext conftest.$ac_ext
34404 LIBS=$ac_check_lib_save_LIBS
34406 ac_res=`eval echo '${'$as_ac_Lib'}'`
34407 { echo "$as_me:$LINENO: result: $ac_res" >&5
34408 echo "${ECHO_T}$ac_res" >&6; }
34409 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34410 AST_ISDNNET_FOUND=yes
34411 else
34412 AST_ISDNNET_FOUND=no
34417 # now check for the header.
34418 if test "${AST_ISDNNET_FOUND}" = "yes"; then
34419 ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
34420 # if --with-ISDNNET=DIR has been specified, use it.
34421 if test "x${ISDNNET_DIR}" != "x"; then
34422 ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
34424 ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
34425 if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
34426 ISDNNET_HEADER_FOUND="1"
34427 else # check for the header
34428 saved_cppflags="${CPPFLAGS}"
34429 CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE} "
34430 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34431 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34432 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34433 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34434 echo $ECHO_N "(cached) $ECHO_C" >&6
34436 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34437 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34438 else
34439 # Is the header compilable?
34440 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h usability" >&5
34441 echo $ECHO_N "checking mISDNuser/isdn_net.h usability... $ECHO_C" >&6; }
34442 cat >conftest.$ac_ext <<_ACEOF
34443 /* confdefs.h. */
34444 _ACEOF
34445 cat confdefs.h >>conftest.$ac_ext
34446 cat >>conftest.$ac_ext <<_ACEOF
34447 /* end confdefs.h. */
34448 $ac_includes_default
34449 #include <mISDNuser/isdn_net.h>
34450 _ACEOF
34451 rm -f conftest.$ac_objext
34452 if { (ac_try="$ac_compile"
34453 case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34456 esac
34457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_compile") 2>conftest.er1
34459 ac_status=$?
34460 grep -v '^ *+' conftest.er1 >conftest.err
34461 rm -f conftest.er1
34462 cat conftest.err >&5
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); } && {
34465 test -z "$ac_c_werror_flag" ||
34466 test ! -s conftest.err
34467 } && test -s conftest.$ac_objext; then
34468 ac_header_compiler=yes
34469 else
34470 echo "$as_me: failed program was:" >&5
34471 sed 's/^/| /' conftest.$ac_ext >&5
34473 ac_header_compiler=no
34476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34478 echo "${ECHO_T}$ac_header_compiler" >&6; }
34480 # Is the header present?
34481 { echo "$as_me:$LINENO: checking mISDNuser/isdn_net.h presence" >&5
34482 echo $ECHO_N "checking mISDNuser/isdn_net.h presence... $ECHO_C" >&6; }
34483 cat >conftest.$ac_ext <<_ACEOF
34484 /* confdefs.h. */
34485 _ACEOF
34486 cat confdefs.h >>conftest.$ac_ext
34487 cat >>conftest.$ac_ext <<_ACEOF
34488 /* end confdefs.h. */
34489 #include <mISDNuser/isdn_net.h>
34490 _ACEOF
34491 if { (ac_try="$ac_cpp conftest.$ac_ext"
34492 case "(($ac_try" in
34493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34494 *) ac_try_echo=$ac_try;;
34495 esac
34496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34498 ac_status=$?
34499 grep -v '^ *+' conftest.er1 >conftest.err
34500 rm -f conftest.er1
34501 cat conftest.err >&5
34502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34503 (exit $ac_status); } >/dev/null && {
34504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34505 test ! -s conftest.err
34506 }; then
34507 ac_header_preproc=yes
34508 else
34509 echo "$as_me: failed program was:" >&5
34510 sed 's/^/| /' conftest.$ac_ext >&5
34512 ac_header_preproc=no
34515 rm -f conftest.err conftest.$ac_ext
34516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34517 echo "${ECHO_T}$ac_header_preproc" >&6; }
34519 # So? What about this header?
34520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34521 yes:no: )
34522 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&5
34523 echo "$as_me: WARNING: mISDNuser/isdn_net.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34524 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&5
34525 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the compiler's result" >&2;}
34526 ac_header_preproc=yes
34528 no:yes:* )
34529 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&5
34530 echo "$as_me: WARNING: mISDNuser/isdn_net.h: present but cannot be compiled" >&2;}
34531 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&5
34532 echo "$as_me: WARNING: mISDNuser/isdn_net.h: check for missing prerequisite headers?" >&2;}
34533 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&5
34534 echo "$as_me: WARNING: mISDNuser/isdn_net.h: see the Autoconf documentation" >&2;}
34535 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&5
34536 echo "$as_me: WARNING: mISDNuser/isdn_net.h: section \"Present But Cannot Be Compiled\"" >&2;}
34537 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&5
34538 echo "$as_me: WARNING: mISDNuser/isdn_net.h: proceeding with the preprocessor's result" >&2;}
34539 { echo "$as_me:$LINENO: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&5
34540 echo "$as_me: WARNING: mISDNuser/isdn_net.h: in the future, the compiler will take precedence" >&2;}
34541 ( cat <<\_ASBOX
34542 ## ------------------------------- ##
34543 ## Report this to www.asterisk.org ##
34544 ## ------------------------------- ##
34545 _ASBOX
34546 ) | sed "s/^/$as_me: WARNING: /" >&2
34548 esac
34549 { echo "$as_me:$LINENO: checking for mISDNuser/isdn_net.h" >&5
34550 echo $ECHO_N "checking for mISDNuser/isdn_net.h... $ECHO_C" >&6; }
34551 if test "${ac_cv_header_mISDNuser_isdn_net_h+set}" = set; then
34552 echo $ECHO_N "(cached) $ECHO_C" >&6
34553 else
34554 ac_cv_header_mISDNuser_isdn_net_h=$ac_header_preproc
34556 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_isdn_net_h" >&5
34557 echo "${ECHO_T}$ac_cv_header_mISDNuser_isdn_net_h" >&6; }
34560 if test $ac_cv_header_mISDNuser_isdn_net_h = yes; then
34561 ISDNNET_HEADER_FOUND=1
34562 else
34563 ISDNNET_HEADER_FOUND=0
34567 CPPFLAGS="${saved_cppflags}"
34569 if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
34570 ISDNNET_LIB=""
34571 ISDNNET_INCLUDE=""
34572 else
34573 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34574 ISDNNET_LIB=""
34576 PBX_ISDNNET=1
34577 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34579 cat >>confdefs.h <<_ACEOF
34580 #define HAVE_ISDNNET 1
34581 _ACEOF
34584 cat >>confdefs.h <<_ACEOF
34585 #define HAVE_ISDNNET_VERSION
34586 _ACEOF
34593 if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
34594 pbxlibdir=""
34595 # if --with-SUPPSERV=DIR has been specified, use it.
34596 if test "x${SUPPSERV_DIR}" != "x"; then
34597 if test -d ${SUPPSERV_DIR}/lib; then
34598 pbxlibdir="-L${SUPPSERV_DIR}/lib"
34599 else
34600 pbxlibdir="-L${SUPPSERV_DIR}"
34603 pbxfuncname="encodeFac"
34604 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
34605 AST_SUPPSERV_FOUND=yes
34606 else
34607 as_ac_Lib=`echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
34608 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsuppserv" >&5
34609 echo $ECHO_N "checking for ${pbxfuncname} in -lsuppserv... $ECHO_C" >&6; }
34610 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
34611 echo $ECHO_N "(cached) $ECHO_C" >&6
34612 else
34613 ac_check_lib_save_LIBS=$LIBS
34614 LIBS="-lsuppserv ${pbxlibdir} $LIBS"
34615 cat >conftest.$ac_ext <<_ACEOF
34616 /* confdefs.h. */
34617 _ACEOF
34618 cat confdefs.h >>conftest.$ac_ext
34619 cat >>conftest.$ac_ext <<_ACEOF
34620 /* end confdefs.h. */
34622 /* Override any GCC internal prototype to avoid an error.
34623 Use char because int might match the return type of a GCC
34624 builtin and then its argument prototype would still apply. */
34625 #ifdef __cplusplus
34626 extern "C"
34627 #endif
34628 char ${pbxfuncname} ();
34630 main ()
34632 return ${pbxfuncname} ();
34634 return 0;
34636 _ACEOF
34637 rm -f conftest.$ac_objext conftest$ac_exeext
34638 if { (ac_try="$ac_link"
34639 case "(($ac_try" in
34640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641 *) ac_try_echo=$ac_try;;
34642 esac
34643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34644 (eval "$ac_link") 2>conftest.er1
34645 ac_status=$?
34646 grep -v '^ *+' conftest.er1 >conftest.err
34647 rm -f conftest.er1
34648 cat conftest.err >&5
34649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650 (exit $ac_status); } && {
34651 test -z "$ac_c_werror_flag" ||
34652 test ! -s conftest.err
34653 } && test -s conftest$ac_exeext &&
34654 $as_test_x conftest$ac_exeext; then
34655 eval "$as_ac_Lib=yes"
34656 else
34657 echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34660 eval "$as_ac_Lib=no"
34663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34664 conftest$ac_exeext conftest.$ac_ext
34665 LIBS=$ac_check_lib_save_LIBS
34667 ac_res=`eval echo '${'$as_ac_Lib'}'`
34668 { echo "$as_me:$LINENO: result: $ac_res" >&5
34669 echo "${ECHO_T}$ac_res" >&6; }
34670 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34671 AST_SUPPSERV_FOUND=yes
34672 else
34673 AST_SUPPSERV_FOUND=no
34678 # now check for the header.
34679 if test "${AST_SUPPSERV_FOUND}" = "yes"; then
34680 SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
34681 # if --with-SUPPSERV=DIR has been specified, use it.
34682 if test "x${SUPPSERV_DIR}" != "x"; then
34683 SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
34685 SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
34686 if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
34687 SUPPSERV_HEADER_FOUND="1"
34688 else # check for the header
34689 saved_cppflags="${CPPFLAGS}"
34690 CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE} "
34691 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34692 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34693 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34694 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34695 echo $ECHO_N "(cached) $ECHO_C" >&6
34697 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34698 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34699 else
34700 # Is the header compilable?
34701 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h usability" >&5
34702 echo $ECHO_N "checking mISDNuser/suppserv.h usability... $ECHO_C" >&6; }
34703 cat >conftest.$ac_ext <<_ACEOF
34704 /* confdefs.h. */
34705 _ACEOF
34706 cat confdefs.h >>conftest.$ac_ext
34707 cat >>conftest.$ac_ext <<_ACEOF
34708 /* end confdefs.h. */
34709 $ac_includes_default
34710 #include <mISDNuser/suppserv.h>
34711 _ACEOF
34712 rm -f conftest.$ac_objext
34713 if { (ac_try="$ac_compile"
34714 case "(($ac_try" in
34715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34716 *) ac_try_echo=$ac_try;;
34717 esac
34718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34719 (eval "$ac_compile") 2>conftest.er1
34720 ac_status=$?
34721 grep -v '^ *+' conftest.er1 >conftest.err
34722 rm -f conftest.er1
34723 cat conftest.err >&5
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); } && {
34726 test -z "$ac_c_werror_flag" ||
34727 test ! -s conftest.err
34728 } && test -s conftest.$ac_objext; then
34729 ac_header_compiler=yes
34730 else
34731 echo "$as_me: failed program was:" >&5
34732 sed 's/^/| /' conftest.$ac_ext >&5
34734 ac_header_compiler=no
34737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34739 echo "${ECHO_T}$ac_header_compiler" >&6; }
34741 # Is the header present?
34742 { echo "$as_me:$LINENO: checking mISDNuser/suppserv.h presence" >&5
34743 echo $ECHO_N "checking mISDNuser/suppserv.h presence... $ECHO_C" >&6; }
34744 cat >conftest.$ac_ext <<_ACEOF
34745 /* confdefs.h. */
34746 _ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h. */
34750 #include <mISDNuser/suppserv.h>
34751 _ACEOF
34752 if { (ac_try="$ac_cpp conftest.$ac_ext"
34753 case "(($ac_try" in
34754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34755 *) ac_try_echo=$ac_try;;
34756 esac
34757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34759 ac_status=$?
34760 grep -v '^ *+' conftest.er1 >conftest.err
34761 rm -f conftest.er1
34762 cat conftest.err >&5
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } >/dev/null && {
34765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34766 test ! -s conftest.err
34767 }; then
34768 ac_header_preproc=yes
34769 else
34770 echo "$as_me: failed program was:" >&5
34771 sed 's/^/| /' conftest.$ac_ext >&5
34773 ac_header_preproc=no
34776 rm -f conftest.err conftest.$ac_ext
34777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34778 echo "${ECHO_T}$ac_header_preproc" >&6; }
34780 # So? What about this header?
34781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34782 yes:no: )
34783 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&5
34784 echo "$as_me: WARNING: mISDNuser/suppserv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34785 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&5
34786 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the compiler's result" >&2;}
34787 ac_header_preproc=yes
34789 no:yes:* )
34790 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&5
34791 echo "$as_me: WARNING: mISDNuser/suppserv.h: present but cannot be compiled" >&2;}
34792 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&5
34793 echo "$as_me: WARNING: mISDNuser/suppserv.h: check for missing prerequisite headers?" >&2;}
34794 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&5
34795 echo "$as_me: WARNING: mISDNuser/suppserv.h: see the Autoconf documentation" >&2;}
34796 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&5
34797 echo "$as_me: WARNING: mISDNuser/suppserv.h: section \"Present But Cannot Be Compiled\"" >&2;}
34798 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&5
34799 echo "$as_me: WARNING: mISDNuser/suppserv.h: proceeding with the preprocessor's result" >&2;}
34800 { echo "$as_me:$LINENO: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&5
34801 echo "$as_me: WARNING: mISDNuser/suppserv.h: in the future, the compiler will take precedence" >&2;}
34802 ( cat <<\_ASBOX
34803 ## ------------------------------- ##
34804 ## Report this to www.asterisk.org ##
34805 ## ------------------------------- ##
34806 _ASBOX
34807 ) | sed "s/^/$as_me: WARNING: /" >&2
34809 esac
34810 { echo "$as_me:$LINENO: checking for mISDNuser/suppserv.h" >&5
34811 echo $ECHO_N "checking for mISDNuser/suppserv.h... $ECHO_C" >&6; }
34812 if test "${ac_cv_header_mISDNuser_suppserv_h+set}" = set; then
34813 echo $ECHO_N "(cached) $ECHO_C" >&6
34814 else
34815 ac_cv_header_mISDNuser_suppserv_h=$ac_header_preproc
34817 { echo "$as_me:$LINENO: result: $ac_cv_header_mISDNuser_suppserv_h" >&5
34818 echo "${ECHO_T}$ac_cv_header_mISDNuser_suppserv_h" >&6; }
34821 if test $ac_cv_header_mISDNuser_suppserv_h = yes; then
34822 SUPPSERV_HEADER_FOUND=1
34823 else
34824 SUPPSERV_HEADER_FOUND=0
34828 CPPFLAGS="${saved_cppflags}"
34830 if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
34831 SUPPSERV_LIB=""
34832 SUPPSERV_INCLUDE=""
34833 else
34834 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
34835 SUPPSERV_LIB=""
34837 PBX_SUPPSERV=1
34838 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
34840 cat >>confdefs.h <<_ACEOF
34841 #define HAVE_SUPPSERV 1
34842 _ACEOF
34845 cat >>confdefs.h <<_ACEOF
34846 #define HAVE_SUPPSERV_VERSION
34847 _ACEOF
34854 if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
34855 { echo "$as_me:$LINENO: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
34856 echo $ECHO_N "checking for Fac_RESULT in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34857 saved_cppflags="${CPPFLAGS}"
34858 if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
34859 MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
34861 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
34863 cat >conftest.$ac_ext <<_ACEOF
34864 /* confdefs.h. */
34865 _ACEOF
34866 cat confdefs.h >>conftest.$ac_ext
34867 cat >>conftest.$ac_ext <<_ACEOF
34868 /* end confdefs.h. */
34869 #include <mISDNuser/suppserv.h>
34871 main ()
34873 #if defined(Fac_RESULT)
34874 int foo = 0;
34875 #else
34876 int foo = bar;
34877 #endif
34881 return 0;
34883 _ACEOF
34884 rm -f conftest.$ac_objext
34885 if { (ac_try="$ac_compile"
34886 case "(($ac_try" in
34887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888 *) ac_try_echo=$ac_try;;
34889 esac
34890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891 (eval "$ac_compile") 2>conftest.er1
34892 ac_status=$?
34893 grep -v '^ *+' conftest.er1 >conftest.err
34894 rm -f conftest.er1
34895 cat conftest.err >&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); } && {
34898 test -z "$ac_c_werror_flag" ||
34899 test ! -s conftest.err
34900 } && test -s conftest.$ac_objext; then
34901 { echo "$as_me:$LINENO: result: yes" >&5
34902 echo "${ECHO_T}yes" >&6; }
34903 PBX_MISDN_FAC_RESULT=1
34905 cat >>confdefs.h <<\_ACEOF
34906 #define HAVE_MISDN_FAC_RESULT 1
34907 _ACEOF
34910 cat >>confdefs.h <<\_ACEOF
34911 #define HAVE_MISDN_FAC_RESULT_VERSION
34912 _ACEOF
34915 else
34916 echo "$as_me: failed program was:" >&5
34917 sed 's/^/| /' conftest.$ac_ext >&5
34919 { echo "$as_me:$LINENO: result: no" >&5
34920 echo "${ECHO_T}no" >&6; }
34924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34925 CPPFLAGS="${saved_cppflags}"
34930 if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
34931 { echo "$as_me:$LINENO: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
34932 echo $ECHO_N "checking for Fac_ERROR in mISDNuser/suppserv.h... $ECHO_C" >&6; }
34933 saved_cppflags="${CPPFLAGS}"
34934 if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
34935 MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
34937 CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
34939 cat >conftest.$ac_ext <<_ACEOF
34940 /* confdefs.h. */
34941 _ACEOF
34942 cat confdefs.h >>conftest.$ac_ext
34943 cat >>conftest.$ac_ext <<_ACEOF
34944 /* end confdefs.h. */
34945 #include <mISDNuser/suppserv.h>
34947 main ()
34949 #if defined(Fac_ERROR)
34950 int foo = 0;
34951 #else
34952 int foo = bar;
34953 #endif
34957 return 0;
34959 _ACEOF
34960 rm -f conftest.$ac_objext
34961 if { (ac_try="$ac_compile"
34962 case "(($ac_try" in
34963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34964 *) ac_try_echo=$ac_try;;
34965 esac
34966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34967 (eval "$ac_compile") 2>conftest.er1
34968 ac_status=$?
34969 grep -v '^ *+' conftest.er1 >conftest.err
34970 rm -f conftest.er1
34971 cat conftest.err >&5
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); } && {
34974 test -z "$ac_c_werror_flag" ||
34975 test ! -s conftest.err
34976 } && test -s conftest.$ac_objext; then
34977 { echo "$as_me:$LINENO: result: yes" >&5
34978 echo "${ECHO_T}yes" >&6; }
34979 PBX_MISDN_FAC_ERROR=1
34981 cat >>confdefs.h <<\_ACEOF
34982 #define HAVE_MISDN_FAC_ERROR 1
34983 _ACEOF
34986 cat >>confdefs.h <<\_ACEOF
34987 #define HAVE_MISDN_FAC_ERROR_VERSION
34988 _ACEOF
34991 else
34992 echo "$as_me: failed program was:" >&5
34993 sed 's/^/| /' conftest.$ac_ext >&5
34995 { echo "$as_me:$LINENO: result: no" >&5
34996 echo "${ECHO_T}no" >&6; }
35000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35001 CPPFLAGS="${saved_cppflags}"
35005 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35006 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
35007 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
35008 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35009 echo $ECHO_N "(cached) $ECHO_C" >&6
35011 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
35012 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
35013 else
35014 # Is the header compilable?
35015 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h usability" >&5
35016 echo $ECHO_N "checking linux/mISDNdsp.h usability... $ECHO_C" >&6; }
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. */
35023 $ac_includes_default
35024 #include <linux/mISDNdsp.h>
35025 _ACEOF
35026 rm -f conftest.$ac_objext
35027 if { (ac_try="$ac_compile"
35028 case "(($ac_try" in
35029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35030 *) ac_try_echo=$ac_try;;
35031 esac
35032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35033 (eval "$ac_compile") 2>conftest.er1
35034 ac_status=$?
35035 grep -v '^ *+' conftest.er1 >conftest.err
35036 rm -f conftest.er1
35037 cat conftest.err >&5
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); } && {
35040 test -z "$ac_c_werror_flag" ||
35041 test ! -s conftest.err
35042 } && test -s conftest.$ac_objext; then
35043 ac_header_compiler=yes
35044 else
35045 echo "$as_me: failed program was:" >&5
35046 sed 's/^/| /' conftest.$ac_ext >&5
35048 ac_header_compiler=no
35051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35053 echo "${ECHO_T}$ac_header_compiler" >&6; }
35055 # Is the header present?
35056 { echo "$as_me:$LINENO: checking linux/mISDNdsp.h presence" >&5
35057 echo $ECHO_N "checking linux/mISDNdsp.h presence... $ECHO_C" >&6; }
35058 cat >conftest.$ac_ext <<_ACEOF
35059 /* confdefs.h. */
35060 _ACEOF
35061 cat confdefs.h >>conftest.$ac_ext
35062 cat >>conftest.$ac_ext <<_ACEOF
35063 /* end confdefs.h. */
35064 #include <linux/mISDNdsp.h>
35065 _ACEOF
35066 if { (ac_try="$ac_cpp conftest.$ac_ext"
35067 case "(($ac_try" in
35068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35069 *) ac_try_echo=$ac_try;;
35070 esac
35071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35073 ac_status=$?
35074 grep -v '^ *+' conftest.er1 >conftest.err
35075 rm -f conftest.er1
35076 cat conftest.err >&5
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); } >/dev/null && {
35079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35080 test ! -s conftest.err
35081 }; then
35082 ac_header_preproc=yes
35083 else
35084 echo "$as_me: failed program was:" >&5
35085 sed 's/^/| /' conftest.$ac_ext >&5
35087 ac_header_preproc=no
35090 rm -f conftest.err conftest.$ac_ext
35091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35092 echo "${ECHO_T}$ac_header_preproc" >&6; }
35094 # So? What about this header?
35095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35096 yes:no: )
35097 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
35098 echo "$as_me: WARNING: linux/mISDNdsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35099 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&5
35100 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the compiler's result" >&2;}
35101 ac_header_preproc=yes
35103 no:yes:* )
35104 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&5
35105 echo "$as_me: WARNING: linux/mISDNdsp.h: present but cannot be compiled" >&2;}
35106 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&5
35107 echo "$as_me: WARNING: linux/mISDNdsp.h: check for missing prerequisite headers?" >&2;}
35108 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&5
35109 echo "$as_me: WARNING: linux/mISDNdsp.h: see the Autoconf documentation" >&2;}
35110 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&5
35111 echo "$as_me: WARNING: linux/mISDNdsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
35112 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&5
35113 echo "$as_me: WARNING: linux/mISDNdsp.h: proceeding with the preprocessor's result" >&2;}
35114 { echo "$as_me:$LINENO: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&5
35115 echo "$as_me: WARNING: linux/mISDNdsp.h: in the future, the compiler will take precedence" >&2;}
35116 ( cat <<\_ASBOX
35117 ## ------------------------------- ##
35118 ## Report this to www.asterisk.org ##
35119 ## ------------------------------- ##
35120 _ASBOX
35121 ) | sed "s/^/$as_me: WARNING: /" >&2
35123 esac
35124 { echo "$as_me:$LINENO: checking for linux/mISDNdsp.h" >&5
35125 echo $ECHO_N "checking for linux/mISDNdsp.h... $ECHO_C" >&6; }
35126 if test "${ac_cv_header_linux_mISDNdsp_h+set}" = set; then
35127 echo $ECHO_N "(cached) $ECHO_C" >&6
35128 else
35129 ac_cv_header_linux_mISDNdsp_h=$ac_header_preproc
35131 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_mISDNdsp_h" >&5
35132 echo "${ECHO_T}$ac_cv_header_linux_mISDNdsp_h" >&6; }
35135 if test $ac_cv_header_linux_mISDNdsp_h = yes; then
35137 cat >>confdefs.h <<_ACEOF
35138 #define MISDN_1_2 1
35139 _ACEOF
35147 if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
35148 pbxlibdir=""
35149 # if --with-NBS=DIR has been specified, use it.
35150 if test "x${NBS_DIR}" != "x"; then
35151 if test -d ${NBS_DIR}/lib; then
35152 pbxlibdir="-L${NBS_DIR}/lib"
35153 else
35154 pbxlibdir="-L${NBS_DIR}"
35157 pbxfuncname="nbs_connect"
35158 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35159 AST_NBS_FOUND=yes
35160 else
35161 as_ac_Lib=`echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
35162 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnbs" >&5
35163 echo $ECHO_N "checking for ${pbxfuncname} in -lnbs... $ECHO_C" >&6; }
35164 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35165 echo $ECHO_N "(cached) $ECHO_C" >&6
35166 else
35167 ac_check_lib_save_LIBS=$LIBS
35168 LIBS="-lnbs ${pbxlibdir} $LIBS"
35169 cat >conftest.$ac_ext <<_ACEOF
35170 /* confdefs.h. */
35171 _ACEOF
35172 cat confdefs.h >>conftest.$ac_ext
35173 cat >>conftest.$ac_ext <<_ACEOF
35174 /* end confdefs.h. */
35176 /* Override any GCC internal prototype to avoid an error.
35177 Use char because int might match the return type of a GCC
35178 builtin and then its argument prototype would still apply. */
35179 #ifdef __cplusplus
35180 extern "C"
35181 #endif
35182 char ${pbxfuncname} ();
35184 main ()
35186 return ${pbxfuncname} ();
35188 return 0;
35190 _ACEOF
35191 rm -f conftest.$ac_objext conftest$ac_exeext
35192 if { (ac_try="$ac_link"
35193 case "(($ac_try" in
35194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35195 *) ac_try_echo=$ac_try;;
35196 esac
35197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35198 (eval "$ac_link") 2>conftest.er1
35199 ac_status=$?
35200 grep -v '^ *+' conftest.er1 >conftest.err
35201 rm -f conftest.er1
35202 cat conftest.err >&5
35203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204 (exit $ac_status); } && {
35205 test -z "$ac_c_werror_flag" ||
35206 test ! -s conftest.err
35207 } && test -s conftest$ac_exeext &&
35208 $as_test_x conftest$ac_exeext; then
35209 eval "$as_ac_Lib=yes"
35210 else
35211 echo "$as_me: failed program was:" >&5
35212 sed 's/^/| /' conftest.$ac_ext >&5
35214 eval "$as_ac_Lib=no"
35217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35218 conftest$ac_exeext conftest.$ac_ext
35219 LIBS=$ac_check_lib_save_LIBS
35221 ac_res=`eval echo '${'$as_ac_Lib'}'`
35222 { echo "$as_me:$LINENO: result: $ac_res" >&5
35223 echo "${ECHO_T}$ac_res" >&6; }
35224 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35225 AST_NBS_FOUND=yes
35226 else
35227 AST_NBS_FOUND=no
35232 # now check for the header.
35233 if test "${AST_NBS_FOUND}" = "yes"; then
35234 NBS_LIB="${pbxlibdir} -lnbs "
35235 # if --with-NBS=DIR has been specified, use it.
35236 if test "x${NBS_DIR}" != "x"; then
35237 NBS_INCLUDE="-I${NBS_DIR}/include"
35239 NBS_INCLUDE="${NBS_INCLUDE} "
35240 if test "xnbs.h" = "x" ; then # no header, assume found
35241 NBS_HEADER_FOUND="1"
35242 else # check for the header
35243 saved_cppflags="${CPPFLAGS}"
35244 CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE} "
35245 if test "${ac_cv_header_nbs_h+set}" = set; then
35246 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35247 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35248 if test "${ac_cv_header_nbs_h+set}" = set; then
35249 echo $ECHO_N "(cached) $ECHO_C" >&6
35251 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35252 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35253 else
35254 # Is the header compilable?
35255 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
35256 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
35257 cat >conftest.$ac_ext <<_ACEOF
35258 /* confdefs.h. */
35259 _ACEOF
35260 cat confdefs.h >>conftest.$ac_ext
35261 cat >>conftest.$ac_ext <<_ACEOF
35262 /* end confdefs.h. */
35263 $ac_includes_default
35264 #include <nbs.h>
35265 _ACEOF
35266 rm -f conftest.$ac_objext
35267 if { (ac_try="$ac_compile"
35268 case "(($ac_try" in
35269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35270 *) ac_try_echo=$ac_try;;
35271 esac
35272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35273 (eval "$ac_compile") 2>conftest.er1
35274 ac_status=$?
35275 grep -v '^ *+' conftest.er1 >conftest.err
35276 rm -f conftest.er1
35277 cat conftest.err >&5
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); } && {
35280 test -z "$ac_c_werror_flag" ||
35281 test ! -s conftest.err
35282 } && test -s conftest.$ac_objext; then
35283 ac_header_compiler=yes
35284 else
35285 echo "$as_me: failed program was:" >&5
35286 sed 's/^/| /' conftest.$ac_ext >&5
35288 ac_header_compiler=no
35291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35293 echo "${ECHO_T}$ac_header_compiler" >&6; }
35295 # Is the header present?
35296 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
35297 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
35298 cat >conftest.$ac_ext <<_ACEOF
35299 /* confdefs.h. */
35300 _ACEOF
35301 cat confdefs.h >>conftest.$ac_ext
35302 cat >>conftest.$ac_ext <<_ACEOF
35303 /* end confdefs.h. */
35304 #include <nbs.h>
35305 _ACEOF
35306 if { (ac_try="$ac_cpp conftest.$ac_ext"
35307 case "(($ac_try" in
35308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35309 *) ac_try_echo=$ac_try;;
35310 esac
35311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35313 ac_status=$?
35314 grep -v '^ *+' conftest.er1 >conftest.err
35315 rm -f conftest.er1
35316 cat conftest.err >&5
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); } >/dev/null && {
35319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35320 test ! -s conftest.err
35321 }; then
35322 ac_header_preproc=yes
35323 else
35324 echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35327 ac_header_preproc=no
35330 rm -f conftest.err conftest.$ac_ext
35331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35332 echo "${ECHO_T}$ac_header_preproc" >&6; }
35334 # So? What about this header?
35335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35336 yes:no: )
35337 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
35338 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35339 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
35340 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
35341 ac_header_preproc=yes
35343 no:yes:* )
35344 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
35345 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
35346 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
35347 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
35348 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
35349 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
35350 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
35351 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
35352 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
35353 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
35354 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
35355 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
35356 ( cat <<\_ASBOX
35357 ## ------------------------------- ##
35358 ## Report this to www.asterisk.org ##
35359 ## ------------------------------- ##
35360 _ASBOX
35361 ) | sed "s/^/$as_me: WARNING: /" >&2
35363 esac
35364 { echo "$as_me:$LINENO: checking for nbs.h" >&5
35365 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
35366 if test "${ac_cv_header_nbs_h+set}" = set; then
35367 echo $ECHO_N "(cached) $ECHO_C" >&6
35368 else
35369 ac_cv_header_nbs_h=$ac_header_preproc
35371 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
35372 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
35375 if test $ac_cv_header_nbs_h = yes; then
35376 NBS_HEADER_FOUND=1
35377 else
35378 NBS_HEADER_FOUND=0
35382 CPPFLAGS="${saved_cppflags}"
35384 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
35385 NBS_LIB=""
35386 NBS_INCLUDE=""
35387 else
35388 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35389 NBS_LIB=""
35391 PBX_NBS=1
35392 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35394 cat >>confdefs.h <<_ACEOF
35395 #define HAVE_NBS 1
35396 _ACEOF
35399 cat >>confdefs.h <<_ACEOF
35400 #define HAVE_NBS_VERSION
35401 _ACEOF
35409 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
35410 pbxlibdir=""
35411 # if --with-NCURSES=DIR has been specified, use it.
35412 if test "x${NCURSES_DIR}" != "x"; then
35413 if test -d ${NCURSES_DIR}/lib; then
35414 pbxlibdir="-L${NCURSES_DIR}/lib"
35415 else
35416 pbxlibdir="-L${NCURSES_DIR}"
35419 pbxfuncname="initscr"
35420 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35421 AST_NCURSES_FOUND=yes
35422 else
35423 as_ac_Lib=`echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
35424 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lncurses" >&5
35425 echo $ECHO_N "checking for ${pbxfuncname} in -lncurses... $ECHO_C" >&6; }
35426 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35427 echo $ECHO_N "(cached) $ECHO_C" >&6
35428 else
35429 ac_check_lib_save_LIBS=$LIBS
35430 LIBS="-lncurses ${pbxlibdir} $LIBS"
35431 cat >conftest.$ac_ext <<_ACEOF
35432 /* confdefs.h. */
35433 _ACEOF
35434 cat confdefs.h >>conftest.$ac_ext
35435 cat >>conftest.$ac_ext <<_ACEOF
35436 /* end confdefs.h. */
35438 /* Override any GCC internal prototype to avoid an error.
35439 Use char because int might match the return type of a GCC
35440 builtin and then its argument prototype would still apply. */
35441 #ifdef __cplusplus
35442 extern "C"
35443 #endif
35444 char ${pbxfuncname} ();
35446 main ()
35448 return ${pbxfuncname} ();
35450 return 0;
35452 _ACEOF
35453 rm -f conftest.$ac_objext conftest$ac_exeext
35454 if { (ac_try="$ac_link"
35455 case "(($ac_try" in
35456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35457 *) ac_try_echo=$ac_try;;
35458 esac
35459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35460 (eval "$ac_link") 2>conftest.er1
35461 ac_status=$?
35462 grep -v '^ *+' conftest.er1 >conftest.err
35463 rm -f conftest.er1
35464 cat conftest.err >&5
35465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35466 (exit $ac_status); } && {
35467 test -z "$ac_c_werror_flag" ||
35468 test ! -s conftest.err
35469 } && test -s conftest$ac_exeext &&
35470 $as_test_x conftest$ac_exeext; then
35471 eval "$as_ac_Lib=yes"
35472 else
35473 echo "$as_me: failed program was:" >&5
35474 sed 's/^/| /' conftest.$ac_ext >&5
35476 eval "$as_ac_Lib=no"
35479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35480 conftest$ac_exeext conftest.$ac_ext
35481 LIBS=$ac_check_lib_save_LIBS
35483 ac_res=`eval echo '${'$as_ac_Lib'}'`
35484 { echo "$as_me:$LINENO: result: $ac_res" >&5
35485 echo "${ECHO_T}$ac_res" >&6; }
35486 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35487 AST_NCURSES_FOUND=yes
35488 else
35489 AST_NCURSES_FOUND=no
35494 # now check for the header.
35495 if test "${AST_NCURSES_FOUND}" = "yes"; then
35496 NCURSES_LIB="${pbxlibdir} -lncurses "
35497 # if --with-NCURSES=DIR has been specified, use it.
35498 if test "x${NCURSES_DIR}" != "x"; then
35499 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
35501 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
35502 if test "xcurses.h" = "x" ; then # no header, assume found
35503 NCURSES_HEADER_FOUND="1"
35504 else # check for the header
35505 saved_cppflags="${CPPFLAGS}"
35506 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE} "
35507 if test "${ac_cv_header_curses_h+set}" = set; then
35508 { echo "$as_me:$LINENO: checking for curses.h" >&5
35509 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35510 if test "${ac_cv_header_curses_h+set}" = set; then
35511 echo $ECHO_N "(cached) $ECHO_C" >&6
35513 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35514 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35515 else
35516 # Is the header compilable?
35517 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35518 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35519 cat >conftest.$ac_ext <<_ACEOF
35520 /* confdefs.h. */
35521 _ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h. */
35525 $ac_includes_default
35526 #include <curses.h>
35527 _ACEOF
35528 rm -f conftest.$ac_objext
35529 if { (ac_try="$ac_compile"
35530 case "(($ac_try" in
35531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35532 *) ac_try_echo=$ac_try;;
35533 esac
35534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35535 (eval "$ac_compile") 2>conftest.er1
35536 ac_status=$?
35537 grep -v '^ *+' conftest.er1 >conftest.err
35538 rm -f conftest.er1
35539 cat conftest.err >&5
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); } && {
35542 test -z "$ac_c_werror_flag" ||
35543 test ! -s conftest.err
35544 } && test -s conftest.$ac_objext; then
35545 ac_header_compiler=yes
35546 else
35547 echo "$as_me: failed program was:" >&5
35548 sed 's/^/| /' conftest.$ac_ext >&5
35550 ac_header_compiler=no
35553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35555 echo "${ECHO_T}$ac_header_compiler" >&6; }
35557 # Is the header present?
35558 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35559 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35560 cat >conftest.$ac_ext <<_ACEOF
35561 /* confdefs.h. */
35562 _ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h. */
35566 #include <curses.h>
35567 _ACEOF
35568 if { (ac_try="$ac_cpp conftest.$ac_ext"
35569 case "(($ac_try" in
35570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35571 *) ac_try_echo=$ac_try;;
35572 esac
35573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35575 ac_status=$?
35576 grep -v '^ *+' conftest.er1 >conftest.err
35577 rm -f conftest.er1
35578 cat conftest.err >&5
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); } >/dev/null && {
35581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35582 test ! -s conftest.err
35583 }; then
35584 ac_header_preproc=yes
35585 else
35586 echo "$as_me: failed program was:" >&5
35587 sed 's/^/| /' conftest.$ac_ext >&5
35589 ac_header_preproc=no
35592 rm -f conftest.err conftest.$ac_ext
35593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35594 echo "${ECHO_T}$ac_header_preproc" >&6; }
35596 # So? What about this header?
35597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35598 yes:no: )
35599 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35600 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35601 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35602 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35603 ac_header_preproc=yes
35605 no:yes:* )
35606 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35607 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35608 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35609 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35610 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35611 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35612 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35613 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35614 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35615 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35616 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35617 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35618 ( cat <<\_ASBOX
35619 ## ------------------------------- ##
35620 ## Report this to www.asterisk.org ##
35621 ## ------------------------------- ##
35622 _ASBOX
35623 ) | sed "s/^/$as_me: WARNING: /" >&2
35625 esac
35626 { echo "$as_me:$LINENO: checking for curses.h" >&5
35627 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35628 if test "${ac_cv_header_curses_h+set}" = set; then
35629 echo $ECHO_N "(cached) $ECHO_C" >&6
35630 else
35631 ac_cv_header_curses_h=$ac_header_preproc
35633 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35634 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35637 if test $ac_cv_header_curses_h = yes; then
35638 NCURSES_HEADER_FOUND=1
35639 else
35640 NCURSES_HEADER_FOUND=0
35644 CPPFLAGS="${saved_cppflags}"
35646 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
35647 NCURSES_LIB=""
35648 NCURSES_INCLUDE=""
35649 else
35650 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
35651 NCURSES_LIB=""
35653 PBX_NCURSES=1
35654 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
35656 cat >>confdefs.h <<_ACEOF
35657 #define HAVE_NCURSES 1
35658 _ACEOF
35661 cat >>confdefs.h <<_ACEOF
35662 #define HAVE_NCURSES_VERSION
35663 _ACEOF
35671 if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
35672 PBX_NETSNMP=0
35673 if test -n "$ac_tool_prefix"; then
35674 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
35675 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
35676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35678 if test "${ac_cv_prog_CONFIG_NETSNMP+set}" = set; then
35679 echo $ECHO_N "(cached) $ECHO_C" >&6
35680 else
35681 if test -n "$CONFIG_NETSNMP"; then
35682 ac_cv_prog_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test.
35683 else
35684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35685 for as_dir in $PATH
35687 IFS=$as_save_IFS
35688 test -z "$as_dir" && as_dir=.
35689 for ac_exec_ext in '' $ac_executable_extensions; do
35690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35691 ac_cv_prog_CONFIG_NETSNMP="${ac_tool_prefix}net-snmp-config"
35692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35693 break 2
35695 done
35696 done
35697 IFS=$as_save_IFS
35701 CONFIG_NETSNMP=$ac_cv_prog_CONFIG_NETSNMP
35702 if test -n "$CONFIG_NETSNMP"; then
35703 { echo "$as_me:$LINENO: result: $CONFIG_NETSNMP" >&5
35704 echo "${ECHO_T}$CONFIG_NETSNMP" >&6; }
35705 else
35706 { echo "$as_me:$LINENO: result: no" >&5
35707 echo "${ECHO_T}no" >&6; }
35712 if test -z "$ac_cv_prog_CONFIG_NETSNMP"; then
35713 ac_ct_CONFIG_NETSNMP=$CONFIG_NETSNMP
35714 # Extract the first word of "net-snmp-config", so it can be a program name with args.
35715 set dummy net-snmp-config; ac_word=$2
35716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35718 if test "${ac_cv_prog_ac_ct_CONFIG_NETSNMP+set}" = set; then
35719 echo $ECHO_N "(cached) $ECHO_C" >&6
35720 else
35721 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35722 ac_cv_prog_ac_ct_CONFIG_NETSNMP="$ac_ct_CONFIG_NETSNMP" # Let the user override the test.
35723 else
35724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35725 for as_dir in $PATH
35727 IFS=$as_save_IFS
35728 test -z "$as_dir" && as_dir=.
35729 for ac_exec_ext in '' $ac_executable_extensions; do
35730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35731 ac_cv_prog_ac_ct_CONFIG_NETSNMP="net-snmp-config"
35732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35733 break 2
35735 done
35736 done
35737 IFS=$as_save_IFS
35741 ac_ct_CONFIG_NETSNMP=$ac_cv_prog_ac_ct_CONFIG_NETSNMP
35742 if test -n "$ac_ct_CONFIG_NETSNMP"; then
35743 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_NETSNMP" >&5
35744 echo "${ECHO_T}$ac_ct_CONFIG_NETSNMP" >&6; }
35745 else
35746 { echo "$as_me:$LINENO: result: no" >&5
35747 echo "${ECHO_T}no" >&6; }
35750 if test "x$ac_ct_CONFIG_NETSNMP" = x; then
35751 CONFIG_NETSNMP="No"
35752 else
35753 case $cross_compiling:$ac_tool_warned in
35754 yes:)
35755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35756 whose name does not start with the host triplet. If you think this
35757 configuration is useful to you, please write to autoconf@gnu.org." >&5
35758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35759 whose name does not start with the host triplet. If you think this
35760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35761 ac_tool_warned=yes ;;
35762 esac
35763 CONFIG_NETSNMP=$ac_ct_CONFIG_NETSNMP
35765 else
35766 CONFIG_NETSNMP="$ac_cv_prog_CONFIG_NETSNMP"
35769 if test ! "x${CONFIG_NETSNMP}" = xNo; then
35770 if test x"" = x ; then A=--cflags ; else A="" ; fi
35771 NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
35772 if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
35773 NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
35774 if test x"#include <net-snmp/net-snmp-config.h>
35775 #include <net-snmp/net-snmp-includes.h>
35776 #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
35777 saved_cppflags="${CPPFLAGS}"
35778 if test "x${NETSNMP_DIR}" != "x"; then
35779 NETSNMP_INCLUDE="-I${NETSNMP_DIR}/include"
35781 CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
35783 saved_ldflags="${LDFLAGS}"
35784 LDFLAGS="${NETSNMP_LIB}"
35786 cat >conftest.$ac_ext <<_ACEOF
35787 /* confdefs.h. */
35788 _ACEOF
35789 cat confdefs.h >>conftest.$ac_ext
35790 cat >>conftest.$ac_ext <<_ACEOF
35791 /* end confdefs.h. */
35792 #include <net-snmp/net-snmp-config.h>
35793 #include <net-snmp/net-snmp-includes.h>
35794 #include <net-snmp/agent/net-snmp-agent-includes.h>
35796 main ()
35798 int callback = snmp_register_callback(0, 0, NULL, NULL);
35801 return 0;
35803 _ACEOF
35804 rm -f conftest.$ac_objext conftest$ac_exeext
35805 if { (ac_try="$ac_link"
35806 case "(($ac_try" in
35807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35808 *) ac_try_echo=$ac_try;;
35809 esac
35810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35811 (eval "$ac_link") 2>conftest.er1
35812 ac_status=$?
35813 grep -v '^ *+' conftest.er1 >conftest.err
35814 rm -f conftest.er1
35815 cat conftest.err >&5
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); } && {
35818 test -z "$ac_c_werror_flag" ||
35819 test ! -s conftest.err
35820 } && test -s conftest$ac_exeext &&
35821 $as_test_x conftest$ac_exeext; then
35822 PBX_NETSNMP=1
35824 cat >>confdefs.h <<\_ACEOF
35825 #define HAVE_NETSNMP 1
35826 _ACEOF
35829 else
35830 echo "$as_me: failed program was:" >&5
35831 sed 's/^/| /' conftest.$ac_ext >&5
35837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35838 conftest$ac_exeext conftest.$ac_ext
35839 CPPFLAGS="${saved_cppflags}"
35840 LDFLAGS="${saved_ldflags}"
35841 else
35842 PBX_NETSNMP=1
35844 cat >>confdefs.h <<\_ACEOF
35845 #define HAVE_NETSNMP 1
35846 _ACEOF
35854 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
35855 pbxlibdir=""
35856 # if --with-NEWT=DIR has been specified, use it.
35857 if test "x${NEWT_DIR}" != "x"; then
35858 if test -d ${NEWT_DIR}/lib; then
35859 pbxlibdir="-L${NEWT_DIR}/lib"
35860 else
35861 pbxlibdir="-L${NEWT_DIR}"
35864 pbxfuncname="newtBell"
35865 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
35866 AST_NEWT_FOUND=yes
35867 else
35868 as_ac_Lib=`echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
35869 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lnewt" >&5
35870 echo $ECHO_N "checking for ${pbxfuncname} in -lnewt... $ECHO_C" >&6; }
35871 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
35872 echo $ECHO_N "(cached) $ECHO_C" >&6
35873 else
35874 ac_check_lib_save_LIBS=$LIBS
35875 LIBS="-lnewt ${pbxlibdir} $LIBS"
35876 cat >conftest.$ac_ext <<_ACEOF
35877 /* confdefs.h. */
35878 _ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h. */
35883 /* Override any GCC internal prototype to avoid an error.
35884 Use char because int might match the return type of a GCC
35885 builtin and then its argument prototype would still apply. */
35886 #ifdef __cplusplus
35887 extern "C"
35888 #endif
35889 char ${pbxfuncname} ();
35891 main ()
35893 return ${pbxfuncname} ();
35895 return 0;
35897 _ACEOF
35898 rm -f conftest.$ac_objext conftest$ac_exeext
35899 if { (ac_try="$ac_link"
35900 case "(($ac_try" in
35901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35902 *) ac_try_echo=$ac_try;;
35903 esac
35904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35905 (eval "$ac_link") 2>conftest.er1
35906 ac_status=$?
35907 grep -v '^ *+' conftest.er1 >conftest.err
35908 rm -f conftest.er1
35909 cat conftest.err >&5
35910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911 (exit $ac_status); } && {
35912 test -z "$ac_c_werror_flag" ||
35913 test ! -s conftest.err
35914 } && test -s conftest$ac_exeext &&
35915 $as_test_x conftest$ac_exeext; then
35916 eval "$as_ac_Lib=yes"
35917 else
35918 echo "$as_me: failed program was:" >&5
35919 sed 's/^/| /' conftest.$ac_ext >&5
35921 eval "$as_ac_Lib=no"
35924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35925 conftest$ac_exeext conftest.$ac_ext
35926 LIBS=$ac_check_lib_save_LIBS
35928 ac_res=`eval echo '${'$as_ac_Lib'}'`
35929 { echo "$as_me:$LINENO: result: $ac_res" >&5
35930 echo "${ECHO_T}$ac_res" >&6; }
35931 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35932 AST_NEWT_FOUND=yes
35933 else
35934 AST_NEWT_FOUND=no
35939 # now check for the header.
35940 if test "${AST_NEWT_FOUND}" = "yes"; then
35941 NEWT_LIB="${pbxlibdir} -lnewt "
35942 # if --with-NEWT=DIR has been specified, use it.
35943 if test "x${NEWT_DIR}" != "x"; then
35944 NEWT_INCLUDE="-I${NEWT_DIR}/include"
35946 NEWT_INCLUDE="${NEWT_INCLUDE} "
35947 if test "xnewt.h" = "x" ; then # no header, assume found
35948 NEWT_HEADER_FOUND="1"
35949 else # check for the header
35950 saved_cppflags="${CPPFLAGS}"
35951 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE} "
35952 if test "${ac_cv_header_newt_h+set}" = set; then
35953 { echo "$as_me:$LINENO: checking for newt.h" >&5
35954 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
35955 if test "${ac_cv_header_newt_h+set}" = set; then
35956 echo $ECHO_N "(cached) $ECHO_C" >&6
35958 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
35959 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
35960 else
35961 # Is the header compilable?
35962 { echo "$as_me:$LINENO: checking newt.h usability" >&5
35963 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
35964 cat >conftest.$ac_ext <<_ACEOF
35965 /* confdefs.h. */
35966 _ACEOF
35967 cat confdefs.h >>conftest.$ac_ext
35968 cat >>conftest.$ac_ext <<_ACEOF
35969 /* end confdefs.h. */
35970 $ac_includes_default
35971 #include <newt.h>
35972 _ACEOF
35973 rm -f conftest.$ac_objext
35974 if { (ac_try="$ac_compile"
35975 case "(($ac_try" in
35976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35977 *) ac_try_echo=$ac_try;;
35978 esac
35979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35980 (eval "$ac_compile") 2>conftest.er1
35981 ac_status=$?
35982 grep -v '^ *+' conftest.er1 >conftest.err
35983 rm -f conftest.er1
35984 cat conftest.err >&5
35985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986 (exit $ac_status); } && {
35987 test -z "$ac_c_werror_flag" ||
35988 test ! -s conftest.err
35989 } && test -s conftest.$ac_objext; then
35990 ac_header_compiler=yes
35991 else
35992 echo "$as_me: failed program was:" >&5
35993 sed 's/^/| /' conftest.$ac_ext >&5
35995 ac_header_compiler=no
35998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36000 echo "${ECHO_T}$ac_header_compiler" >&6; }
36002 # Is the header present?
36003 { echo "$as_me:$LINENO: checking newt.h presence" >&5
36004 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
36005 cat >conftest.$ac_ext <<_ACEOF
36006 /* confdefs.h. */
36007 _ACEOF
36008 cat confdefs.h >>conftest.$ac_ext
36009 cat >>conftest.$ac_ext <<_ACEOF
36010 /* end confdefs.h. */
36011 #include <newt.h>
36012 _ACEOF
36013 if { (ac_try="$ac_cpp conftest.$ac_ext"
36014 case "(($ac_try" in
36015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36016 *) ac_try_echo=$ac_try;;
36017 esac
36018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36020 ac_status=$?
36021 grep -v '^ *+' conftest.er1 >conftest.err
36022 rm -f conftest.er1
36023 cat conftest.err >&5
36024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025 (exit $ac_status); } >/dev/null && {
36026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36027 test ! -s conftest.err
36028 }; then
36029 ac_header_preproc=yes
36030 else
36031 echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36034 ac_header_preproc=no
36037 rm -f conftest.err conftest.$ac_ext
36038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36039 echo "${ECHO_T}$ac_header_preproc" >&6; }
36041 # So? What about this header?
36042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36043 yes:no: )
36044 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
36045 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36046 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
36047 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
36048 ac_header_preproc=yes
36050 no:yes:* )
36051 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
36052 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
36053 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
36054 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
36055 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
36056 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
36057 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
36058 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
36059 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
36060 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
36061 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
36062 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
36063 ( cat <<\_ASBOX
36064 ## ------------------------------- ##
36065 ## Report this to www.asterisk.org ##
36066 ## ------------------------------- ##
36067 _ASBOX
36068 ) | sed "s/^/$as_me: WARNING: /" >&2
36070 esac
36071 { echo "$as_me:$LINENO: checking for newt.h" >&5
36072 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
36073 if test "${ac_cv_header_newt_h+set}" = set; then
36074 echo $ECHO_N "(cached) $ECHO_C" >&6
36075 else
36076 ac_cv_header_newt_h=$ac_header_preproc
36078 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
36079 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
36082 if test $ac_cv_header_newt_h = yes; then
36083 NEWT_HEADER_FOUND=1
36084 else
36085 NEWT_HEADER_FOUND=0
36089 CPPFLAGS="${saved_cppflags}"
36091 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
36092 NEWT_LIB=""
36093 NEWT_INCLUDE=""
36094 else
36095 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36096 NEWT_LIB=""
36098 PBX_NEWT=1
36099 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36101 cat >>confdefs.h <<_ACEOF
36102 #define HAVE_NEWT 1
36103 _ACEOF
36106 cat >>confdefs.h <<_ACEOF
36107 #define HAVE_NEWT_VERSION
36108 _ACEOF
36116 if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
36117 pbxlibdir=""
36118 # if --with-UNIXODBC=DIR has been specified, use it.
36119 if test "x${UNIXODBC_DIR}" != "x"; then
36120 if test -d ${UNIXODBC_DIR}/lib; then
36121 pbxlibdir="-L${UNIXODBC_DIR}/lib"
36122 else
36123 pbxlibdir="-L${UNIXODBC_DIR}"
36126 pbxfuncname="SQLConnect"
36127 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36128 AST_UNIXODBC_FOUND=yes
36129 else
36130 as_ac_Lib=`echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
36131 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lodbc" >&5
36132 echo $ECHO_N "checking for ${pbxfuncname} in -lodbc... $ECHO_C" >&6; }
36133 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36134 echo $ECHO_N "(cached) $ECHO_C" >&6
36135 else
36136 ac_check_lib_save_LIBS=$LIBS
36137 LIBS="-lodbc ${pbxlibdir} $LIBS"
36138 cat >conftest.$ac_ext <<_ACEOF
36139 /* confdefs.h. */
36140 _ACEOF
36141 cat confdefs.h >>conftest.$ac_ext
36142 cat >>conftest.$ac_ext <<_ACEOF
36143 /* end confdefs.h. */
36145 /* Override any GCC internal prototype to avoid an error.
36146 Use char because int might match the return type of a GCC
36147 builtin and then its argument prototype would still apply. */
36148 #ifdef __cplusplus
36149 extern "C"
36150 #endif
36151 char ${pbxfuncname} ();
36153 main ()
36155 return ${pbxfuncname} ();
36157 return 0;
36159 _ACEOF
36160 rm -f conftest.$ac_objext conftest$ac_exeext
36161 if { (ac_try="$ac_link"
36162 case "(($ac_try" in
36163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36164 *) ac_try_echo=$ac_try;;
36165 esac
36166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36167 (eval "$ac_link") 2>conftest.er1
36168 ac_status=$?
36169 grep -v '^ *+' conftest.er1 >conftest.err
36170 rm -f conftest.er1
36171 cat conftest.err >&5
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); } && {
36174 test -z "$ac_c_werror_flag" ||
36175 test ! -s conftest.err
36176 } && test -s conftest$ac_exeext &&
36177 $as_test_x conftest$ac_exeext; then
36178 eval "$as_ac_Lib=yes"
36179 else
36180 echo "$as_me: failed program was:" >&5
36181 sed 's/^/| /' conftest.$ac_ext >&5
36183 eval "$as_ac_Lib=no"
36186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36187 conftest$ac_exeext conftest.$ac_ext
36188 LIBS=$ac_check_lib_save_LIBS
36190 ac_res=`eval echo '${'$as_ac_Lib'}'`
36191 { echo "$as_me:$LINENO: result: $ac_res" >&5
36192 echo "${ECHO_T}$ac_res" >&6; }
36193 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36194 AST_UNIXODBC_FOUND=yes
36195 else
36196 AST_UNIXODBC_FOUND=no
36201 # now check for the header.
36202 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
36203 UNIXODBC_LIB="${pbxlibdir} -lodbc "
36204 # if --with-UNIXODBC=DIR has been specified, use it.
36205 if test "x${UNIXODBC_DIR}" != "x"; then
36206 UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
36208 UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
36209 if test "xsql.h" = "x" ; then # no header, assume found
36210 UNIXODBC_HEADER_FOUND="1"
36211 else # check for the header
36212 saved_cppflags="${CPPFLAGS}"
36213 CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE} "
36214 if test "${ac_cv_header_sql_h+set}" = set; then
36215 { echo "$as_me:$LINENO: checking for sql.h" >&5
36216 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36217 if test "${ac_cv_header_sql_h+set}" = set; then
36218 echo $ECHO_N "(cached) $ECHO_C" >&6
36220 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36221 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36222 else
36223 # Is the header compilable?
36224 { echo "$as_me:$LINENO: checking sql.h usability" >&5
36225 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
36226 cat >conftest.$ac_ext <<_ACEOF
36227 /* confdefs.h. */
36228 _ACEOF
36229 cat confdefs.h >>conftest.$ac_ext
36230 cat >>conftest.$ac_ext <<_ACEOF
36231 /* end confdefs.h. */
36232 $ac_includes_default
36233 #include <sql.h>
36234 _ACEOF
36235 rm -f conftest.$ac_objext
36236 if { (ac_try="$ac_compile"
36237 case "(($ac_try" in
36238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36239 *) ac_try_echo=$ac_try;;
36240 esac
36241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36242 (eval "$ac_compile") 2>conftest.er1
36243 ac_status=$?
36244 grep -v '^ *+' conftest.er1 >conftest.err
36245 rm -f conftest.er1
36246 cat conftest.err >&5
36247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248 (exit $ac_status); } && {
36249 test -z "$ac_c_werror_flag" ||
36250 test ! -s conftest.err
36251 } && test -s conftest.$ac_objext; then
36252 ac_header_compiler=yes
36253 else
36254 echo "$as_me: failed program was:" >&5
36255 sed 's/^/| /' conftest.$ac_ext >&5
36257 ac_header_compiler=no
36260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36262 echo "${ECHO_T}$ac_header_compiler" >&6; }
36264 # Is the header present?
36265 { echo "$as_me:$LINENO: checking sql.h presence" >&5
36266 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
36267 cat >conftest.$ac_ext <<_ACEOF
36268 /* confdefs.h. */
36269 _ACEOF
36270 cat confdefs.h >>conftest.$ac_ext
36271 cat >>conftest.$ac_ext <<_ACEOF
36272 /* end confdefs.h. */
36273 #include <sql.h>
36274 _ACEOF
36275 if { (ac_try="$ac_cpp conftest.$ac_ext"
36276 case "(($ac_try" in
36277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36278 *) ac_try_echo=$ac_try;;
36279 esac
36280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36282 ac_status=$?
36283 grep -v '^ *+' conftest.er1 >conftest.err
36284 rm -f conftest.er1
36285 cat conftest.err >&5
36286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 (exit $ac_status); } >/dev/null && {
36288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36289 test ! -s conftest.err
36290 }; then
36291 ac_header_preproc=yes
36292 else
36293 echo "$as_me: failed program was:" >&5
36294 sed 's/^/| /' conftest.$ac_ext >&5
36296 ac_header_preproc=no
36299 rm -f conftest.err conftest.$ac_ext
36300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36301 echo "${ECHO_T}$ac_header_preproc" >&6; }
36303 # So? What about this header?
36304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36305 yes:no: )
36306 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
36307 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36308 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
36309 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
36310 ac_header_preproc=yes
36312 no:yes:* )
36313 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
36314 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
36315 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
36316 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
36317 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
36318 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
36319 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
36320 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
36321 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
36322 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
36323 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
36324 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
36325 ( cat <<\_ASBOX
36326 ## ------------------------------- ##
36327 ## Report this to www.asterisk.org ##
36328 ## ------------------------------- ##
36329 _ASBOX
36330 ) | sed "s/^/$as_me: WARNING: /" >&2
36332 esac
36333 { echo "$as_me:$LINENO: checking for sql.h" >&5
36334 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
36335 if test "${ac_cv_header_sql_h+set}" = set; then
36336 echo $ECHO_N "(cached) $ECHO_C" >&6
36337 else
36338 ac_cv_header_sql_h=$ac_header_preproc
36340 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
36341 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
36344 if test $ac_cv_header_sql_h = yes; then
36345 UNIXODBC_HEADER_FOUND=1
36346 else
36347 UNIXODBC_HEADER_FOUND=0
36351 CPPFLAGS="${saved_cppflags}"
36353 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
36354 UNIXODBC_LIB=""
36355 UNIXODBC_INCLUDE=""
36356 else
36357 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36358 UNIXODBC_LIB=""
36360 PBX_UNIXODBC=1
36361 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36363 cat >>confdefs.h <<_ACEOF
36364 #define HAVE_UNIXODBC 1
36365 _ACEOF
36368 cat >>confdefs.h <<_ACEOF
36369 #define HAVE_UNIXODBC_VERSION
36370 _ACEOF
36378 if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
36379 pbxlibdir=""
36380 # if --with-OGG=DIR has been specified, use it.
36381 if test "x${OGG_DIR}" != "x"; then
36382 if test -d ${OGG_DIR}/lib; then
36383 pbxlibdir="-L${OGG_DIR}/lib"
36384 else
36385 pbxlibdir="-L${OGG_DIR}"
36388 pbxfuncname="ogg_sync_init"
36389 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36390 AST_OGG_FOUND=yes
36391 else
36392 as_ac_Lib=`echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
36393 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -logg" >&5
36394 echo $ECHO_N "checking for ${pbxfuncname} in -logg... $ECHO_C" >&6; }
36395 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36396 echo $ECHO_N "(cached) $ECHO_C" >&6
36397 else
36398 ac_check_lib_save_LIBS=$LIBS
36399 LIBS="-logg ${pbxlibdir} $LIBS"
36400 cat >conftest.$ac_ext <<_ACEOF
36401 /* confdefs.h. */
36402 _ACEOF
36403 cat confdefs.h >>conftest.$ac_ext
36404 cat >>conftest.$ac_ext <<_ACEOF
36405 /* end confdefs.h. */
36407 /* Override any GCC internal prototype to avoid an error.
36408 Use char because int might match the return type of a GCC
36409 builtin and then its argument prototype would still apply. */
36410 #ifdef __cplusplus
36411 extern "C"
36412 #endif
36413 char ${pbxfuncname} ();
36415 main ()
36417 return ${pbxfuncname} ();
36419 return 0;
36421 _ACEOF
36422 rm -f conftest.$ac_objext conftest$ac_exeext
36423 if { (ac_try="$ac_link"
36424 case "(($ac_try" in
36425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36426 *) ac_try_echo=$ac_try;;
36427 esac
36428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36429 (eval "$ac_link") 2>conftest.er1
36430 ac_status=$?
36431 grep -v '^ *+' conftest.er1 >conftest.err
36432 rm -f conftest.er1
36433 cat conftest.err >&5
36434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36435 (exit $ac_status); } && {
36436 test -z "$ac_c_werror_flag" ||
36437 test ! -s conftest.err
36438 } && test -s conftest$ac_exeext &&
36439 $as_test_x conftest$ac_exeext; then
36440 eval "$as_ac_Lib=yes"
36441 else
36442 echo "$as_me: failed program was:" >&5
36443 sed 's/^/| /' conftest.$ac_ext >&5
36445 eval "$as_ac_Lib=no"
36448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36449 conftest$ac_exeext conftest.$ac_ext
36450 LIBS=$ac_check_lib_save_LIBS
36452 ac_res=`eval echo '${'$as_ac_Lib'}'`
36453 { echo "$as_me:$LINENO: result: $ac_res" >&5
36454 echo "${ECHO_T}$ac_res" >&6; }
36455 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36456 AST_OGG_FOUND=yes
36457 else
36458 AST_OGG_FOUND=no
36463 # now check for the header.
36464 if test "${AST_OGG_FOUND}" = "yes"; then
36465 OGG_LIB="${pbxlibdir} -logg "
36466 # if --with-OGG=DIR has been specified, use it.
36467 if test "x${OGG_DIR}" != "x"; then
36468 OGG_INCLUDE="-I${OGG_DIR}/include"
36470 OGG_INCLUDE="${OGG_INCLUDE} "
36471 if test "x" = "x" ; then # no header, assume found
36472 OGG_HEADER_FOUND="1"
36473 else # check for the header
36474 saved_cppflags="${CPPFLAGS}"
36475 CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE} "
36476 if test "${ac_cv_header_+set}" = set; then
36477 { echo "$as_me:$LINENO: checking for " >&5
36478 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36479 if test "${ac_cv_header_+set}" = set; then
36480 echo $ECHO_N "(cached) $ECHO_C" >&6
36482 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36483 echo "${ECHO_T}$ac_cv_header_" >&6; }
36484 else
36485 # Is the header compilable?
36486 { echo "$as_me:$LINENO: checking usability" >&5
36487 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
36488 cat >conftest.$ac_ext <<_ACEOF
36489 /* confdefs.h. */
36490 _ACEOF
36491 cat confdefs.h >>conftest.$ac_ext
36492 cat >>conftest.$ac_ext <<_ACEOF
36493 /* end confdefs.h. */
36494 $ac_includes_default
36495 #include <>
36496 _ACEOF
36497 rm -f conftest.$ac_objext
36498 if { (ac_try="$ac_compile"
36499 case "(($ac_try" in
36500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36501 *) ac_try_echo=$ac_try;;
36502 esac
36503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36504 (eval "$ac_compile") 2>conftest.er1
36505 ac_status=$?
36506 grep -v '^ *+' conftest.er1 >conftest.err
36507 rm -f conftest.er1
36508 cat conftest.err >&5
36509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510 (exit $ac_status); } && {
36511 test -z "$ac_c_werror_flag" ||
36512 test ! -s conftest.err
36513 } && test -s conftest.$ac_objext; then
36514 ac_header_compiler=yes
36515 else
36516 echo "$as_me: failed program was:" >&5
36517 sed 's/^/| /' conftest.$ac_ext >&5
36519 ac_header_compiler=no
36522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36524 echo "${ECHO_T}$ac_header_compiler" >&6; }
36526 # Is the header present?
36527 { echo "$as_me:$LINENO: checking presence" >&5
36528 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
36529 cat >conftest.$ac_ext <<_ACEOF
36530 /* confdefs.h. */
36531 _ACEOF
36532 cat confdefs.h >>conftest.$ac_ext
36533 cat >>conftest.$ac_ext <<_ACEOF
36534 /* end confdefs.h. */
36535 #include <>
36536 _ACEOF
36537 if { (ac_try="$ac_cpp conftest.$ac_ext"
36538 case "(($ac_try" in
36539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36540 *) ac_try_echo=$ac_try;;
36541 esac
36542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36544 ac_status=$?
36545 grep -v '^ *+' conftest.er1 >conftest.err
36546 rm -f conftest.er1
36547 cat conftest.err >&5
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); } >/dev/null && {
36550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36551 test ! -s conftest.err
36552 }; then
36553 ac_header_preproc=yes
36554 else
36555 echo "$as_me: failed program was:" >&5
36556 sed 's/^/| /' conftest.$ac_ext >&5
36558 ac_header_preproc=no
36561 rm -f conftest.err conftest.$ac_ext
36562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36563 echo "${ECHO_T}$ac_header_preproc" >&6; }
36565 # So? What about this header?
36566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36567 yes:no: )
36568 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
36569 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
36570 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
36571 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
36572 ac_header_preproc=yes
36574 no:yes:* )
36575 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
36576 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
36577 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
36578 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
36579 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
36580 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
36581 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
36582 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
36583 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
36584 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
36585 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
36586 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
36587 ( cat <<\_ASBOX
36588 ## ------------------------------- ##
36589 ## Report this to www.asterisk.org ##
36590 ## ------------------------------- ##
36591 _ASBOX
36592 ) | sed "s/^/$as_me: WARNING: /" >&2
36594 esac
36595 { echo "$as_me:$LINENO: checking for " >&5
36596 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
36597 if test "${ac_cv_header_+set}" = set; then
36598 echo $ECHO_N "(cached) $ECHO_C" >&6
36599 else
36600 ac_cv_header_=$ac_header_preproc
36602 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
36603 echo "${ECHO_T}$ac_cv_header_" >&6; }
36606 if test $ac_cv_header_ = yes; then
36607 OGG_HEADER_FOUND=1
36608 else
36609 OGG_HEADER_FOUND=0
36613 CPPFLAGS="${saved_cppflags}"
36615 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
36616 OGG_LIB=""
36617 OGG_INCLUDE=""
36618 else
36619 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36620 OGG_LIB=""
36622 PBX_OGG=1
36623 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36625 cat >>confdefs.h <<_ACEOF
36626 #define HAVE_OGG 1
36627 _ACEOF
36630 cat >>confdefs.h <<_ACEOF
36631 #define HAVE_OGG_VERSION
36632 _ACEOF
36639 # Non-glibc platforms require libexecinfo for backtrace support
36641 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36642 pbxlibdir=""
36643 # if --with-BKTR=DIR has been specified, use it.
36644 if test "x${BKTR_DIR}" != "x"; then
36645 if test -d ${BKTR_DIR}/lib; then
36646 pbxlibdir="-L${BKTR_DIR}/lib"
36647 else
36648 pbxlibdir="-L${BKTR_DIR}"
36651 pbxfuncname="backtrace"
36652 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36653 AST_BKTR_FOUND=yes
36654 else
36655 as_ac_Lib=`echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
36656 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lexecinfo" >&5
36657 echo $ECHO_N "checking for ${pbxfuncname} in -lexecinfo... $ECHO_C" >&6; }
36658 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36659 echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661 ac_check_lib_save_LIBS=$LIBS
36662 LIBS="-lexecinfo ${pbxlibdir} $LIBS"
36663 cat >conftest.$ac_ext <<_ACEOF
36664 /* confdefs.h. */
36665 _ACEOF
36666 cat confdefs.h >>conftest.$ac_ext
36667 cat >>conftest.$ac_ext <<_ACEOF
36668 /* end confdefs.h. */
36670 /* Override any GCC internal prototype to avoid an error.
36671 Use char because int might match the return type of a GCC
36672 builtin and then its argument prototype would still apply. */
36673 #ifdef __cplusplus
36674 extern "C"
36675 #endif
36676 char ${pbxfuncname} ();
36678 main ()
36680 return ${pbxfuncname} ();
36682 return 0;
36684 _ACEOF
36685 rm -f conftest.$ac_objext conftest$ac_exeext
36686 if { (ac_try="$ac_link"
36687 case "(($ac_try" in
36688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36689 *) ac_try_echo=$ac_try;;
36690 esac
36691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36692 (eval "$ac_link") 2>conftest.er1
36693 ac_status=$?
36694 grep -v '^ *+' conftest.er1 >conftest.err
36695 rm -f conftest.er1
36696 cat conftest.err >&5
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); } && {
36699 test -z "$ac_c_werror_flag" ||
36700 test ! -s conftest.err
36701 } && test -s conftest$ac_exeext &&
36702 $as_test_x conftest$ac_exeext; then
36703 eval "$as_ac_Lib=yes"
36704 else
36705 echo "$as_me: failed program was:" >&5
36706 sed 's/^/| /' conftest.$ac_ext >&5
36708 eval "$as_ac_Lib=no"
36711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36712 conftest$ac_exeext conftest.$ac_ext
36713 LIBS=$ac_check_lib_save_LIBS
36715 ac_res=`eval echo '${'$as_ac_Lib'}'`
36716 { echo "$as_me:$LINENO: result: $ac_res" >&5
36717 echo "${ECHO_T}$ac_res" >&6; }
36718 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36719 AST_BKTR_FOUND=yes
36720 else
36721 AST_BKTR_FOUND=no
36726 # now check for the header.
36727 if test "${AST_BKTR_FOUND}" = "yes"; then
36728 BKTR_LIB="${pbxlibdir} -lexecinfo "
36729 # if --with-BKTR=DIR has been specified, use it.
36730 if test "x${BKTR_DIR}" != "x"; then
36731 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36733 BKTR_INCLUDE="${BKTR_INCLUDE} "
36734 if test "xexecinfo.h" = "x" ; then # no header, assume found
36735 BKTR_HEADER_FOUND="1"
36736 else # check for the header
36737 saved_cppflags="${CPPFLAGS}"
36738 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
36739 if test "${ac_cv_header_execinfo_h+set}" = set; then
36740 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36741 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36742 if test "${ac_cv_header_execinfo_h+set}" = set; then
36743 echo $ECHO_N "(cached) $ECHO_C" >&6
36745 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36746 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36747 else
36748 # Is the header compilable?
36749 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
36750 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
36751 cat >conftest.$ac_ext <<_ACEOF
36752 /* confdefs.h. */
36753 _ACEOF
36754 cat confdefs.h >>conftest.$ac_ext
36755 cat >>conftest.$ac_ext <<_ACEOF
36756 /* end confdefs.h. */
36757 $ac_includes_default
36758 #include <execinfo.h>
36759 _ACEOF
36760 rm -f conftest.$ac_objext
36761 if { (ac_try="$ac_compile"
36762 case "(($ac_try" in
36763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36764 *) ac_try_echo=$ac_try;;
36765 esac
36766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36767 (eval "$ac_compile") 2>conftest.er1
36768 ac_status=$?
36769 grep -v '^ *+' conftest.er1 >conftest.err
36770 rm -f conftest.er1
36771 cat conftest.err >&5
36772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773 (exit $ac_status); } && {
36774 test -z "$ac_c_werror_flag" ||
36775 test ! -s conftest.err
36776 } && test -s conftest.$ac_objext; then
36777 ac_header_compiler=yes
36778 else
36779 echo "$as_me: failed program was:" >&5
36780 sed 's/^/| /' conftest.$ac_ext >&5
36782 ac_header_compiler=no
36785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36787 echo "${ECHO_T}$ac_header_compiler" >&6; }
36789 # Is the header present?
36790 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
36791 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
36792 cat >conftest.$ac_ext <<_ACEOF
36793 /* confdefs.h. */
36794 _ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h. */
36798 #include <execinfo.h>
36799 _ACEOF
36800 if { (ac_try="$ac_cpp conftest.$ac_ext"
36801 case "(($ac_try" in
36802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36803 *) ac_try_echo=$ac_try;;
36804 esac
36805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36807 ac_status=$?
36808 grep -v '^ *+' conftest.er1 >conftest.err
36809 rm -f conftest.er1
36810 cat conftest.err >&5
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); } >/dev/null && {
36813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36814 test ! -s conftest.err
36815 }; then
36816 ac_header_preproc=yes
36817 else
36818 echo "$as_me: failed program was:" >&5
36819 sed 's/^/| /' conftest.$ac_ext >&5
36821 ac_header_preproc=no
36824 rm -f conftest.err conftest.$ac_ext
36825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36826 echo "${ECHO_T}$ac_header_preproc" >&6; }
36828 # So? What about this header?
36829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36830 yes:no: )
36831 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
36832 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36833 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
36834 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
36835 ac_header_preproc=yes
36837 no:yes:* )
36838 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
36839 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
36840 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
36841 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
36842 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
36843 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
36844 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
36845 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
36846 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
36847 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
36848 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
36849 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
36850 ( cat <<\_ASBOX
36851 ## ------------------------------- ##
36852 ## Report this to www.asterisk.org ##
36853 ## ------------------------------- ##
36854 _ASBOX
36855 ) | sed "s/^/$as_me: WARNING: /" >&2
36857 esac
36858 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
36859 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
36860 if test "${ac_cv_header_execinfo_h+set}" = set; then
36861 echo $ECHO_N "(cached) $ECHO_C" >&6
36862 else
36863 ac_cv_header_execinfo_h=$ac_header_preproc
36865 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
36866 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
36869 if test $ac_cv_header_execinfo_h = yes; then
36870 BKTR_HEADER_FOUND=1
36871 else
36872 BKTR_HEADER_FOUND=0
36876 CPPFLAGS="${saved_cppflags}"
36878 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
36879 BKTR_LIB=""
36880 BKTR_INCLUDE=""
36881 else
36882 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
36883 BKTR_LIB=""
36885 PBX_BKTR=1
36886 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
36888 cat >>confdefs.h <<_ACEOF
36889 #define HAVE_BKTR 1
36890 _ACEOF
36893 cat >>confdefs.h <<_ACEOF
36894 #define HAVE_BKTR_VERSION
36895 _ACEOF
36901 # Linux, however, has backtrace directly in glibc
36903 if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
36904 pbxlibdir=""
36905 # if --with-BKTR=DIR has been specified, use it.
36906 if test "x${BKTR_DIR}" != "x"; then
36907 if test -d ${BKTR_DIR}/lib; then
36908 pbxlibdir="-L${BKTR_DIR}/lib"
36909 else
36910 pbxlibdir="-L${BKTR_DIR}"
36913 pbxfuncname="backtrace"
36914 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
36915 AST_BKTR_FOUND=yes
36916 else
36917 as_ac_Lib=`echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
36918 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lc" >&5
36919 echo $ECHO_N "checking for ${pbxfuncname} in -lc... $ECHO_C" >&6; }
36920 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
36921 echo $ECHO_N "(cached) $ECHO_C" >&6
36922 else
36923 ac_check_lib_save_LIBS=$LIBS
36924 LIBS="-lc ${pbxlibdir} $LIBS"
36925 cat >conftest.$ac_ext <<_ACEOF
36926 /* confdefs.h. */
36927 _ACEOF
36928 cat confdefs.h >>conftest.$ac_ext
36929 cat >>conftest.$ac_ext <<_ACEOF
36930 /* end confdefs.h. */
36932 /* Override any GCC internal prototype to avoid an error.
36933 Use char because int might match the return type of a GCC
36934 builtin and then its argument prototype would still apply. */
36935 #ifdef __cplusplus
36936 extern "C"
36937 #endif
36938 char ${pbxfuncname} ();
36940 main ()
36942 return ${pbxfuncname} ();
36944 return 0;
36946 _ACEOF
36947 rm -f conftest.$ac_objext conftest$ac_exeext
36948 if { (ac_try="$ac_link"
36949 case "(($ac_try" in
36950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36951 *) ac_try_echo=$ac_try;;
36952 esac
36953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36954 (eval "$ac_link") 2>conftest.er1
36955 ac_status=$?
36956 grep -v '^ *+' conftest.er1 >conftest.err
36957 rm -f conftest.er1
36958 cat conftest.err >&5
36959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960 (exit $ac_status); } && {
36961 test -z "$ac_c_werror_flag" ||
36962 test ! -s conftest.err
36963 } && test -s conftest$ac_exeext &&
36964 $as_test_x conftest$ac_exeext; then
36965 eval "$as_ac_Lib=yes"
36966 else
36967 echo "$as_me: failed program was:" >&5
36968 sed 's/^/| /' conftest.$ac_ext >&5
36970 eval "$as_ac_Lib=no"
36973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36974 conftest$ac_exeext conftest.$ac_ext
36975 LIBS=$ac_check_lib_save_LIBS
36977 ac_res=`eval echo '${'$as_ac_Lib'}'`
36978 { echo "$as_me:$LINENO: result: $ac_res" >&5
36979 echo "${ECHO_T}$ac_res" >&6; }
36980 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36981 AST_BKTR_FOUND=yes
36982 else
36983 AST_BKTR_FOUND=no
36988 # now check for the header.
36989 if test "${AST_BKTR_FOUND}" = "yes"; then
36990 BKTR_LIB="${pbxlibdir} -lc "
36991 # if --with-BKTR=DIR has been specified, use it.
36992 if test "x${BKTR_DIR}" != "x"; then
36993 BKTR_INCLUDE="-I${BKTR_DIR}/include"
36995 BKTR_INCLUDE="${BKTR_INCLUDE} "
36996 if test "xexecinfo.h" = "x" ; then # no header, assume found
36997 BKTR_HEADER_FOUND="1"
36998 else # check for the header
36999 saved_cppflags="${CPPFLAGS}"
37000 CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE} "
37001 if test "${ac_cv_header_execinfo_h+set}" = set; then
37002 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
37003 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
37004 if test "${ac_cv_header_execinfo_h+set}" = set; then
37005 echo $ECHO_N "(cached) $ECHO_C" >&6
37007 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
37008 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
37009 else
37010 # Is the header compilable?
37011 { echo "$as_me:$LINENO: checking execinfo.h usability" >&5
37012 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6; }
37013 cat >conftest.$ac_ext <<_ACEOF
37014 /* confdefs.h. */
37015 _ACEOF
37016 cat confdefs.h >>conftest.$ac_ext
37017 cat >>conftest.$ac_ext <<_ACEOF
37018 /* end confdefs.h. */
37019 $ac_includes_default
37020 #include <execinfo.h>
37021 _ACEOF
37022 rm -f conftest.$ac_objext
37023 if { (ac_try="$ac_compile"
37024 case "(($ac_try" in
37025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37026 *) ac_try_echo=$ac_try;;
37027 esac
37028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37029 (eval "$ac_compile") 2>conftest.er1
37030 ac_status=$?
37031 grep -v '^ *+' conftest.er1 >conftest.err
37032 rm -f conftest.er1
37033 cat conftest.err >&5
37034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37035 (exit $ac_status); } && {
37036 test -z "$ac_c_werror_flag" ||
37037 test ! -s conftest.err
37038 } && test -s conftest.$ac_objext; then
37039 ac_header_compiler=yes
37040 else
37041 echo "$as_me: failed program was:" >&5
37042 sed 's/^/| /' conftest.$ac_ext >&5
37044 ac_header_compiler=no
37047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37049 echo "${ECHO_T}$ac_header_compiler" >&6; }
37051 # Is the header present?
37052 { echo "$as_me:$LINENO: checking execinfo.h presence" >&5
37053 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6; }
37054 cat >conftest.$ac_ext <<_ACEOF
37055 /* confdefs.h. */
37056 _ACEOF
37057 cat confdefs.h >>conftest.$ac_ext
37058 cat >>conftest.$ac_ext <<_ACEOF
37059 /* end confdefs.h. */
37060 #include <execinfo.h>
37061 _ACEOF
37062 if { (ac_try="$ac_cpp conftest.$ac_ext"
37063 case "(($ac_try" in
37064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37065 *) ac_try_echo=$ac_try;;
37066 esac
37067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37069 ac_status=$?
37070 grep -v '^ *+' conftest.er1 >conftest.err
37071 rm -f conftest.er1
37072 cat conftest.err >&5
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } >/dev/null && {
37075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37076 test ! -s conftest.err
37077 }; then
37078 ac_header_preproc=yes
37079 else
37080 echo "$as_me: failed program was:" >&5
37081 sed 's/^/| /' conftest.$ac_ext >&5
37083 ac_header_preproc=no
37086 rm -f conftest.err conftest.$ac_ext
37087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37088 echo "${ECHO_T}$ac_header_preproc" >&6; }
37090 # So? What about this header?
37091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37092 yes:no: )
37093 { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
37094 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37095 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
37096 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
37097 ac_header_preproc=yes
37099 no:yes:* )
37100 { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
37101 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
37102 { echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
37103 echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
37104 { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
37105 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
37106 { echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
37107 echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
37108 { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
37109 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
37110 { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
37111 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
37112 ( cat <<\_ASBOX
37113 ## ------------------------------- ##
37114 ## Report this to www.asterisk.org ##
37115 ## ------------------------------- ##
37116 _ASBOX
37117 ) | sed "s/^/$as_me: WARNING: /" >&2
37119 esac
37120 { echo "$as_me:$LINENO: checking for execinfo.h" >&5
37121 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6; }
37122 if test "${ac_cv_header_execinfo_h+set}" = set; then
37123 echo $ECHO_N "(cached) $ECHO_C" >&6
37124 else
37125 ac_cv_header_execinfo_h=$ac_header_preproc
37127 { echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
37128 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6; }
37131 if test $ac_cv_header_execinfo_h = yes; then
37132 BKTR_HEADER_FOUND=1
37133 else
37134 BKTR_HEADER_FOUND=0
37138 CPPFLAGS="${saved_cppflags}"
37140 if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
37141 BKTR_LIB=""
37142 BKTR_INCLUDE=""
37143 else
37144 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37145 BKTR_LIB=""
37147 PBX_BKTR=1
37148 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37150 cat >>confdefs.h <<_ACEOF
37151 #define HAVE_BKTR 1
37152 _ACEOF
37155 cat >>confdefs.h <<_ACEOF
37156 #define HAVE_BKTR_VERSION
37157 _ACEOF
37164 # possible places for oss definitions
37166 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37167 pbxlibdir=""
37168 # if --with-OSS=DIR has been specified, use it.
37169 if test "x${OSS_DIR}" != "x"; then
37170 if test -d ${OSS_DIR}/lib; then
37171 pbxlibdir="-L${OSS_DIR}/lib"
37172 else
37173 pbxlibdir="-L${OSS_DIR}"
37176 pbxfuncname=""
37177 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37178 AST_OSS_FOUND=yes
37179 else
37180 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37181 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37182 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37183 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37184 echo $ECHO_N "(cached) $ECHO_C" >&6
37185 else
37186 ac_check_lib_save_LIBS=$LIBS
37187 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37188 cat >conftest.$ac_ext <<_ACEOF
37189 /* confdefs.h. */
37190 _ACEOF
37191 cat confdefs.h >>conftest.$ac_ext
37192 cat >>conftest.$ac_ext <<_ACEOF
37193 /* end confdefs.h. */
37195 /* Override any GCC internal prototype to avoid an error.
37196 Use char because int might match the return type of a GCC
37197 builtin and then its argument prototype would still apply. */
37198 #ifdef __cplusplus
37199 extern "C"
37200 #endif
37201 char ${pbxfuncname} ();
37203 main ()
37205 return ${pbxfuncname} ();
37207 return 0;
37209 _ACEOF
37210 rm -f conftest.$ac_objext conftest$ac_exeext
37211 if { (ac_try="$ac_link"
37212 case "(($ac_try" in
37213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37214 *) ac_try_echo=$ac_try;;
37215 esac
37216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37217 (eval "$ac_link") 2>conftest.er1
37218 ac_status=$?
37219 grep -v '^ *+' conftest.er1 >conftest.err
37220 rm -f conftest.er1
37221 cat conftest.err >&5
37222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223 (exit $ac_status); } && {
37224 test -z "$ac_c_werror_flag" ||
37225 test ! -s conftest.err
37226 } && test -s conftest$ac_exeext &&
37227 $as_test_x conftest$ac_exeext; then
37228 eval "$as_ac_Lib=yes"
37229 else
37230 echo "$as_me: failed program was:" >&5
37231 sed 's/^/| /' conftest.$ac_ext >&5
37233 eval "$as_ac_Lib=no"
37236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37237 conftest$ac_exeext conftest.$ac_ext
37238 LIBS=$ac_check_lib_save_LIBS
37240 ac_res=`eval echo '${'$as_ac_Lib'}'`
37241 { echo "$as_me:$LINENO: result: $ac_res" >&5
37242 echo "${ECHO_T}$ac_res" >&6; }
37243 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37244 AST_OSS_FOUND=yes
37245 else
37246 AST_OSS_FOUND=no
37251 # now check for the header.
37252 if test "${AST_OSS_FOUND}" = "yes"; then
37253 OSS_LIB="${pbxlibdir} -lossaudio "
37254 # if --with-OSS=DIR has been specified, use it.
37255 if test "x${OSS_DIR}" != "x"; then
37256 OSS_INCLUDE="-I${OSS_DIR}/include"
37258 OSS_INCLUDE="${OSS_INCLUDE} "
37259 if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
37260 OSS_HEADER_FOUND="1"
37261 else # check for the header
37262 saved_cppflags="${CPPFLAGS}"
37263 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37264 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37265 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37266 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37267 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37268 echo $ECHO_N "(cached) $ECHO_C" >&6
37270 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37271 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37272 else
37273 # Is the header compilable?
37274 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
37275 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
37276 cat >conftest.$ac_ext <<_ACEOF
37277 /* confdefs.h. */
37278 _ACEOF
37279 cat confdefs.h >>conftest.$ac_ext
37280 cat >>conftest.$ac_ext <<_ACEOF
37281 /* end confdefs.h. */
37282 $ac_includes_default
37283 #include <linux/soundcard.h>
37284 _ACEOF
37285 rm -f conftest.$ac_objext
37286 if { (ac_try="$ac_compile"
37287 case "(($ac_try" in
37288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37289 *) ac_try_echo=$ac_try;;
37290 esac
37291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37292 (eval "$ac_compile") 2>conftest.er1
37293 ac_status=$?
37294 grep -v '^ *+' conftest.er1 >conftest.err
37295 rm -f conftest.er1
37296 cat conftest.err >&5
37297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37298 (exit $ac_status); } && {
37299 test -z "$ac_c_werror_flag" ||
37300 test ! -s conftest.err
37301 } && test -s conftest.$ac_objext; then
37302 ac_header_compiler=yes
37303 else
37304 echo "$as_me: failed program was:" >&5
37305 sed 's/^/| /' conftest.$ac_ext >&5
37307 ac_header_compiler=no
37310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37312 echo "${ECHO_T}$ac_header_compiler" >&6; }
37314 # Is the header present?
37315 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
37316 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
37317 cat >conftest.$ac_ext <<_ACEOF
37318 /* confdefs.h. */
37319 _ACEOF
37320 cat confdefs.h >>conftest.$ac_ext
37321 cat >>conftest.$ac_ext <<_ACEOF
37322 /* end confdefs.h. */
37323 #include <linux/soundcard.h>
37324 _ACEOF
37325 if { (ac_try="$ac_cpp conftest.$ac_ext"
37326 case "(($ac_try" in
37327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37328 *) ac_try_echo=$ac_try;;
37329 esac
37330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37332 ac_status=$?
37333 grep -v '^ *+' conftest.er1 >conftest.err
37334 rm -f conftest.er1
37335 cat conftest.err >&5
37336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337 (exit $ac_status); } >/dev/null && {
37338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37339 test ! -s conftest.err
37340 }; then
37341 ac_header_preproc=yes
37342 else
37343 echo "$as_me: failed program was:" >&5
37344 sed 's/^/| /' conftest.$ac_ext >&5
37346 ac_header_preproc=no
37349 rm -f conftest.err conftest.$ac_ext
37350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37351 echo "${ECHO_T}$ac_header_preproc" >&6; }
37353 # So? What about this header?
37354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37355 yes:no: )
37356 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37357 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37358 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
37359 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
37360 ac_header_preproc=yes
37362 no:yes:* )
37363 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
37364 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
37365 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
37366 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
37367 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
37368 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
37369 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37370 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37371 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
37372 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
37373 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
37374 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
37375 ( cat <<\_ASBOX
37376 ## ------------------------------- ##
37377 ## Report this to www.asterisk.org ##
37378 ## ------------------------------- ##
37379 _ASBOX
37380 ) | sed "s/^/$as_me: WARNING: /" >&2
37382 esac
37383 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
37384 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
37385 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
37386 echo $ECHO_N "(cached) $ECHO_C" >&6
37387 else
37388 ac_cv_header_linux_soundcard_h=$ac_header_preproc
37390 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
37391 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
37394 if test $ac_cv_header_linux_soundcard_h = yes; then
37395 OSS_HEADER_FOUND=1
37396 else
37397 OSS_HEADER_FOUND=0
37401 CPPFLAGS="${saved_cppflags}"
37403 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37404 OSS_LIB=""
37405 OSS_INCLUDE=""
37406 else
37407 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37408 OSS_LIB=""
37410 PBX_OSS=1
37411 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37413 cat >>confdefs.h <<_ACEOF
37414 #define HAVE_OSS 1
37415 _ACEOF
37418 cat >>confdefs.h <<_ACEOF
37419 #define HAVE_OSS_VERSION
37420 _ACEOF
37427 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37428 pbxlibdir=""
37429 # if --with-OSS=DIR has been specified, use it.
37430 if test "x${OSS_DIR}" != "x"; then
37431 if test -d ${OSS_DIR}/lib; then
37432 pbxlibdir="-L${OSS_DIR}/lib"
37433 else
37434 pbxlibdir="-L${OSS_DIR}"
37437 pbxfuncname=""
37438 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37439 AST_OSS_FOUND=yes
37440 else
37441 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37442 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37443 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37444 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37445 echo $ECHO_N "(cached) $ECHO_C" >&6
37446 else
37447 ac_check_lib_save_LIBS=$LIBS
37448 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37449 cat >conftest.$ac_ext <<_ACEOF
37450 /* confdefs.h. */
37451 _ACEOF
37452 cat confdefs.h >>conftest.$ac_ext
37453 cat >>conftest.$ac_ext <<_ACEOF
37454 /* end confdefs.h. */
37456 /* Override any GCC internal prototype to avoid an error.
37457 Use char because int might match the return type of a GCC
37458 builtin and then its argument prototype would still apply. */
37459 #ifdef __cplusplus
37460 extern "C"
37461 #endif
37462 char ${pbxfuncname} ();
37464 main ()
37466 return ${pbxfuncname} ();
37468 return 0;
37470 _ACEOF
37471 rm -f conftest.$ac_objext conftest$ac_exeext
37472 if { (ac_try="$ac_link"
37473 case "(($ac_try" in
37474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37475 *) ac_try_echo=$ac_try;;
37476 esac
37477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37478 (eval "$ac_link") 2>conftest.er1
37479 ac_status=$?
37480 grep -v '^ *+' conftest.er1 >conftest.err
37481 rm -f conftest.er1
37482 cat conftest.err >&5
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); } && {
37485 test -z "$ac_c_werror_flag" ||
37486 test ! -s conftest.err
37487 } && test -s conftest$ac_exeext &&
37488 $as_test_x conftest$ac_exeext; then
37489 eval "$as_ac_Lib=yes"
37490 else
37491 echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37494 eval "$as_ac_Lib=no"
37497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37498 conftest$ac_exeext conftest.$ac_ext
37499 LIBS=$ac_check_lib_save_LIBS
37501 ac_res=`eval echo '${'$as_ac_Lib'}'`
37502 { echo "$as_me:$LINENO: result: $ac_res" >&5
37503 echo "${ECHO_T}$ac_res" >&6; }
37504 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37505 AST_OSS_FOUND=yes
37506 else
37507 AST_OSS_FOUND=no
37512 # now check for the header.
37513 if test "${AST_OSS_FOUND}" = "yes"; then
37514 OSS_LIB="${pbxlibdir} -lossaudio "
37515 # if --with-OSS=DIR has been specified, use it.
37516 if test "x${OSS_DIR}" != "x"; then
37517 OSS_INCLUDE="-I${OSS_DIR}/include"
37519 OSS_INCLUDE="${OSS_INCLUDE} "
37520 if test "xsys/soundcard.h" = "x" ; then # no header, assume found
37521 OSS_HEADER_FOUND="1"
37522 else # check for the header
37523 saved_cppflags="${CPPFLAGS}"
37524 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37525 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37526 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37527 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37528 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37529 echo $ECHO_N "(cached) $ECHO_C" >&6
37531 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37532 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37533 else
37534 # Is the header compilable?
37535 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
37536 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
37537 cat >conftest.$ac_ext <<_ACEOF
37538 /* confdefs.h. */
37539 _ACEOF
37540 cat confdefs.h >>conftest.$ac_ext
37541 cat >>conftest.$ac_ext <<_ACEOF
37542 /* end confdefs.h. */
37543 $ac_includes_default
37544 #include <sys/soundcard.h>
37545 _ACEOF
37546 rm -f conftest.$ac_objext
37547 if { (ac_try="$ac_compile"
37548 case "(($ac_try" in
37549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37550 *) ac_try_echo=$ac_try;;
37551 esac
37552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37553 (eval "$ac_compile") 2>conftest.er1
37554 ac_status=$?
37555 grep -v '^ *+' conftest.er1 >conftest.err
37556 rm -f conftest.er1
37557 cat conftest.err >&5
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); } && {
37560 test -z "$ac_c_werror_flag" ||
37561 test ! -s conftest.err
37562 } && test -s conftest.$ac_objext; then
37563 ac_header_compiler=yes
37564 else
37565 echo "$as_me: failed program was:" >&5
37566 sed 's/^/| /' conftest.$ac_ext >&5
37568 ac_header_compiler=no
37571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37573 echo "${ECHO_T}$ac_header_compiler" >&6; }
37575 # Is the header present?
37576 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
37577 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
37578 cat >conftest.$ac_ext <<_ACEOF
37579 /* confdefs.h. */
37580 _ACEOF
37581 cat confdefs.h >>conftest.$ac_ext
37582 cat >>conftest.$ac_ext <<_ACEOF
37583 /* end confdefs.h. */
37584 #include <sys/soundcard.h>
37585 _ACEOF
37586 if { (ac_try="$ac_cpp conftest.$ac_ext"
37587 case "(($ac_try" in
37588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37589 *) ac_try_echo=$ac_try;;
37590 esac
37591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37593 ac_status=$?
37594 grep -v '^ *+' conftest.er1 >conftest.err
37595 rm -f conftest.er1
37596 cat conftest.err >&5
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); } >/dev/null && {
37599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37600 test ! -s conftest.err
37601 }; then
37602 ac_header_preproc=yes
37603 else
37604 echo "$as_me: failed program was:" >&5
37605 sed 's/^/| /' conftest.$ac_ext >&5
37607 ac_header_preproc=no
37610 rm -f conftest.err conftest.$ac_ext
37611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37612 echo "${ECHO_T}$ac_header_preproc" >&6; }
37614 # So? What about this header?
37615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37616 yes:no: )
37617 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37618 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37619 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
37620 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
37621 ac_header_preproc=yes
37623 no:yes:* )
37624 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
37625 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
37626 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
37627 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
37628 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
37629 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
37630 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37631 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37632 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
37633 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
37634 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
37635 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
37636 ( cat <<\_ASBOX
37637 ## ------------------------------- ##
37638 ## Report this to www.asterisk.org ##
37639 ## ------------------------------- ##
37640 _ASBOX
37641 ) | sed "s/^/$as_me: WARNING: /" >&2
37643 esac
37644 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
37645 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
37646 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
37647 echo $ECHO_N "(cached) $ECHO_C" >&6
37648 else
37649 ac_cv_header_sys_soundcard_h=$ac_header_preproc
37651 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
37652 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
37655 if test $ac_cv_header_sys_soundcard_h = yes; then
37656 OSS_HEADER_FOUND=1
37657 else
37658 OSS_HEADER_FOUND=0
37662 CPPFLAGS="${saved_cppflags}"
37664 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37665 OSS_LIB=""
37666 OSS_INCLUDE=""
37667 else
37668 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37669 OSS_LIB=""
37671 PBX_OSS=1
37672 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37674 cat >>confdefs.h <<_ACEOF
37675 #define HAVE_OSS 1
37676 _ACEOF
37679 cat >>confdefs.h <<_ACEOF
37680 #define HAVE_OSS_VERSION
37681 _ACEOF
37688 if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
37689 pbxlibdir=""
37690 # if --with-OSS=DIR has been specified, use it.
37691 if test "x${OSS_DIR}" != "x"; then
37692 if test -d ${OSS_DIR}/lib; then
37693 pbxlibdir="-L${OSS_DIR}/lib"
37694 else
37695 pbxlibdir="-L${OSS_DIR}"
37698 pbxfuncname="oss_ioctl_mixer"
37699 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
37700 AST_OSS_FOUND=yes
37701 else
37702 as_ac_Lib=`echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
37703 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lossaudio" >&5
37704 echo $ECHO_N "checking for ${pbxfuncname} in -lossaudio... $ECHO_C" >&6; }
37705 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
37706 echo $ECHO_N "(cached) $ECHO_C" >&6
37707 else
37708 ac_check_lib_save_LIBS=$LIBS
37709 LIBS="-lossaudio ${pbxlibdir} $LIBS"
37710 cat >conftest.$ac_ext <<_ACEOF
37711 /* confdefs.h. */
37712 _ACEOF
37713 cat confdefs.h >>conftest.$ac_ext
37714 cat >>conftest.$ac_ext <<_ACEOF
37715 /* end confdefs.h. */
37717 /* Override any GCC internal prototype to avoid an error.
37718 Use char because int might match the return type of a GCC
37719 builtin and then its argument prototype would still apply. */
37720 #ifdef __cplusplus
37721 extern "C"
37722 #endif
37723 char ${pbxfuncname} ();
37725 main ()
37727 return ${pbxfuncname} ();
37729 return 0;
37731 _ACEOF
37732 rm -f conftest.$ac_objext conftest$ac_exeext
37733 if { (ac_try="$ac_link"
37734 case "(($ac_try" in
37735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37736 *) ac_try_echo=$ac_try;;
37737 esac
37738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37739 (eval "$ac_link") 2>conftest.er1
37740 ac_status=$?
37741 grep -v '^ *+' conftest.er1 >conftest.err
37742 rm -f conftest.er1
37743 cat conftest.err >&5
37744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745 (exit $ac_status); } && {
37746 test -z "$ac_c_werror_flag" ||
37747 test ! -s conftest.err
37748 } && test -s conftest$ac_exeext &&
37749 $as_test_x conftest$ac_exeext; then
37750 eval "$as_ac_Lib=yes"
37751 else
37752 echo "$as_me: failed program was:" >&5
37753 sed 's/^/| /' conftest.$ac_ext >&5
37755 eval "$as_ac_Lib=no"
37758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37759 conftest$ac_exeext conftest.$ac_ext
37760 LIBS=$ac_check_lib_save_LIBS
37762 ac_res=`eval echo '${'$as_ac_Lib'}'`
37763 { echo "$as_me:$LINENO: result: $ac_res" >&5
37764 echo "${ECHO_T}$ac_res" >&6; }
37765 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37766 AST_OSS_FOUND=yes
37767 else
37768 AST_OSS_FOUND=no
37773 # now check for the header.
37774 if test "${AST_OSS_FOUND}" = "yes"; then
37775 OSS_LIB="${pbxlibdir} -lossaudio "
37776 # if --with-OSS=DIR has been specified, use it.
37777 if test "x${OSS_DIR}" != "x"; then
37778 OSS_INCLUDE="-I${OSS_DIR}/include"
37780 OSS_INCLUDE="${OSS_INCLUDE} "
37781 if test "xsoundcard.h" = "x" ; then # no header, assume found
37782 OSS_HEADER_FOUND="1"
37783 else # check for the header
37784 saved_cppflags="${CPPFLAGS}"
37785 CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE} "
37786 if test "${ac_cv_header_soundcard_h+set}" = set; then
37787 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37788 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37789 if test "${ac_cv_header_soundcard_h+set}" = set; then
37790 echo $ECHO_N "(cached) $ECHO_C" >&6
37792 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37793 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37794 else
37795 # Is the header compilable?
37796 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
37797 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
37798 cat >conftest.$ac_ext <<_ACEOF
37799 /* confdefs.h. */
37800 _ACEOF
37801 cat confdefs.h >>conftest.$ac_ext
37802 cat >>conftest.$ac_ext <<_ACEOF
37803 /* end confdefs.h. */
37804 $ac_includes_default
37805 #include <soundcard.h>
37806 _ACEOF
37807 rm -f conftest.$ac_objext
37808 if { (ac_try="$ac_compile"
37809 case "(($ac_try" in
37810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37811 *) ac_try_echo=$ac_try;;
37812 esac
37813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37814 (eval "$ac_compile") 2>conftest.er1
37815 ac_status=$?
37816 grep -v '^ *+' conftest.er1 >conftest.err
37817 rm -f conftest.er1
37818 cat conftest.err >&5
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); } && {
37821 test -z "$ac_c_werror_flag" ||
37822 test ! -s conftest.err
37823 } && test -s conftest.$ac_objext; then
37824 ac_header_compiler=yes
37825 else
37826 echo "$as_me: failed program was:" >&5
37827 sed 's/^/| /' conftest.$ac_ext >&5
37829 ac_header_compiler=no
37832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37834 echo "${ECHO_T}$ac_header_compiler" >&6; }
37836 # Is the header present?
37837 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
37838 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
37839 cat >conftest.$ac_ext <<_ACEOF
37840 /* confdefs.h. */
37841 _ACEOF
37842 cat confdefs.h >>conftest.$ac_ext
37843 cat >>conftest.$ac_ext <<_ACEOF
37844 /* end confdefs.h. */
37845 #include <soundcard.h>
37846 _ACEOF
37847 if { (ac_try="$ac_cpp conftest.$ac_ext"
37848 case "(($ac_try" in
37849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37850 *) ac_try_echo=$ac_try;;
37851 esac
37852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37854 ac_status=$?
37855 grep -v '^ *+' conftest.er1 >conftest.err
37856 rm -f conftest.er1
37857 cat conftest.err >&5
37858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859 (exit $ac_status); } >/dev/null && {
37860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37861 test ! -s conftest.err
37862 }; then
37863 ac_header_preproc=yes
37864 else
37865 echo "$as_me: failed program was:" >&5
37866 sed 's/^/| /' conftest.$ac_ext >&5
37868 ac_header_preproc=no
37871 rm -f conftest.err conftest.$ac_ext
37872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37873 echo "${ECHO_T}$ac_header_preproc" >&6; }
37875 # So? What about this header?
37876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37877 yes:no: )
37878 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
37879 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37880 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
37881 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
37882 ac_header_preproc=yes
37884 no:yes:* )
37885 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
37886 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
37887 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
37888 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
37889 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
37890 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
37891 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
37892 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
37893 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
37894 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
37895 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
37896 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
37897 ( cat <<\_ASBOX
37898 ## ------------------------------- ##
37899 ## Report this to www.asterisk.org ##
37900 ## ------------------------------- ##
37901 _ASBOX
37902 ) | sed "s/^/$as_me: WARNING: /" >&2
37904 esac
37905 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
37906 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
37907 if test "${ac_cv_header_soundcard_h+set}" = set; then
37908 echo $ECHO_N "(cached) $ECHO_C" >&6
37909 else
37910 ac_cv_header_soundcard_h=$ac_header_preproc
37912 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
37913 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
37916 if test $ac_cv_header_soundcard_h = yes; then
37917 OSS_HEADER_FOUND=1
37918 else
37919 OSS_HEADER_FOUND=0
37923 CPPFLAGS="${saved_cppflags}"
37925 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
37926 OSS_LIB=""
37927 OSS_INCLUDE=""
37928 else
37929 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
37930 OSS_LIB=""
37932 PBX_OSS=1
37933 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
37935 cat >>confdefs.h <<_ACEOF
37936 #define HAVE_OSS 1
37937 _ACEOF
37940 cat >>confdefs.h <<_ACEOF
37941 #define HAVE_OSS_VERSION
37942 _ACEOF
37949 PG_CONFIG=No
37950 if test "${USE_PGSQL}" != "no"; then
37951 if test "x${PGSQL_DIR}" != "x"; then
37952 if test -n "$ac_tool_prefix"; then
37953 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
37954 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
37955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37957 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
37958 echo $ECHO_N "(cached) $ECHO_C" >&6
37959 else
37960 case $PG_CONFIG in
37961 [\\/]* | ?:[\\/]*)
37962 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
37965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37966 for as_dir in ${PGSQL_DIR}/bin
37968 IFS=$as_save_IFS
37969 test -z "$as_dir" && as_dir=.
37970 for ac_exec_ext in '' $ac_executable_extensions; do
37971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37972 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37974 break 2
37976 done
37977 done
37978 IFS=$as_save_IFS
37981 esac
37983 PG_CONFIG=$ac_cv_path_PG_CONFIG
37984 if test -n "$PG_CONFIG"; then
37985 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
37986 echo "${ECHO_T}$PG_CONFIG" >&6; }
37987 else
37988 { echo "$as_me:$LINENO: result: no" >&5
37989 echo "${ECHO_T}no" >&6; }
37994 if test -z "$ac_cv_path_PG_CONFIG"; then
37995 ac_pt_PG_CONFIG=$PG_CONFIG
37996 # Extract the first word of "pg_config", so it can be a program name with args.
37997 set dummy pg_config; ac_word=$2
37998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38000 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
38001 echo $ECHO_N "(cached) $ECHO_C" >&6
38002 else
38003 case $ac_pt_PG_CONFIG in
38004 [\\/]* | ?:[\\/]*)
38005 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
38008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38009 for as_dir in ${PGSQL_DIR}/bin
38011 IFS=$as_save_IFS
38012 test -z "$as_dir" && as_dir=.
38013 for ac_exec_ext in '' $ac_executable_extensions; do
38014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38015 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38017 break 2
38019 done
38020 done
38021 IFS=$as_save_IFS
38024 esac
38026 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
38027 if test -n "$ac_pt_PG_CONFIG"; then
38028 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
38029 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38030 else
38031 { echo "$as_me:$LINENO: result: no" >&5
38032 echo "${ECHO_T}no" >&6; }
38035 if test "x$ac_pt_PG_CONFIG" = x; then
38036 PG_CONFIG="No"
38037 else
38038 case $cross_compiling:$ac_tool_warned in
38039 yes:)
38040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38041 whose name does not start with the host triplet. If you think this
38042 configuration is useful to you, please write to autoconf@gnu.org." >&5
38043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38044 whose name does not start with the host triplet. If you think this
38045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38046 ac_tool_warned=yes ;;
38047 esac
38048 PG_CONFIG=$ac_pt_PG_CONFIG
38050 else
38051 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38054 if test x"${PG_CONFIG}" = xNo; then
38055 { echo "$as_me:$LINENO: ***" >&5
38056 echo "$as_me: ***" >&6;}
38057 { echo "$as_me:$LINENO: *** pg_config was not found in the path you specified:" >&5
38058 echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
38059 { echo "$as_me:$LINENO: *** ${PGSQL_DIR}/bin" >&5
38060 echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
38061 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38062 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38063 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38064 echo "$as_me: *** including --without-postgres" >&6;}
38065 exit 1
38067 else
38068 if test -n "$ac_tool_prefix"; then
38069 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
38070 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
38071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38073 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
38074 echo $ECHO_N "(cached) $ECHO_C" >&6
38075 else
38076 case $PG_CONFIG in
38077 [\\/]* | ?:[\\/]*)
38078 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
38081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38082 for as_dir in $PATH
38084 IFS=$as_save_IFS
38085 test -z "$as_dir" && as_dir=.
38086 for ac_exec_ext in '' $ac_executable_extensions; do
38087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38088 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38090 break 2
38092 done
38093 done
38094 IFS=$as_save_IFS
38097 esac
38099 PG_CONFIG=$ac_cv_path_PG_CONFIG
38100 if test -n "$PG_CONFIG"; then
38101 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
38102 echo "${ECHO_T}$PG_CONFIG" >&6; }
38103 else
38104 { echo "$as_me:$LINENO: result: no" >&5
38105 echo "${ECHO_T}no" >&6; }
38110 if test -z "$ac_cv_path_PG_CONFIG"; then
38111 ac_pt_PG_CONFIG=$PG_CONFIG
38112 # Extract the first word of "pg_config", so it can be a program name with args.
38113 set dummy pg_config; ac_word=$2
38114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38116 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
38117 echo $ECHO_N "(cached) $ECHO_C" >&6
38118 else
38119 case $ac_pt_PG_CONFIG in
38120 [\\/]* | ?:[\\/]*)
38121 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
38124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38125 for as_dir in $PATH
38127 IFS=$as_save_IFS
38128 test -z "$as_dir" && as_dir=.
38129 for ac_exec_ext in '' $ac_executable_extensions; do
38130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38131 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38133 break 2
38135 done
38136 done
38137 IFS=$as_save_IFS
38140 esac
38142 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
38143 if test -n "$ac_pt_PG_CONFIG"; then
38144 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
38145 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
38146 else
38147 { echo "$as_me:$LINENO: result: no" >&5
38148 echo "${ECHO_T}no" >&6; }
38151 if test "x$ac_pt_PG_CONFIG" = x; then
38152 PG_CONFIG="No"
38153 else
38154 case $cross_compiling:$ac_tool_warned in
38155 yes:)
38156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
38157 whose name does not start with the host triplet. If you think this
38158 configuration is useful to you, please write to autoconf@gnu.org." >&5
38159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
38160 whose name does not start with the host triplet. If you think this
38161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
38162 ac_tool_warned=yes ;;
38163 esac
38164 PG_CONFIG=$ac_pt_PG_CONFIG
38166 else
38167 PG_CONFIG="$ac_cv_path_PG_CONFIG"
38172 if test "${PG_CONFIG}" != No; then
38173 PGSQL_libdir=`${PG_CONFIG} --libdir`
38174 PGSQL_includedir=`${PG_CONFIG} --includedir`
38175 if test "x$?" != "x0" ; then
38176 if test -n "${PGSQL_MANDATORY}" ; then
38177 { echo "$as_me:$LINENO: ***" >&5
38178 echo "$as_me: ***" >&6;}
38179 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38180 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38181 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38182 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38183 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38184 echo "$as_me: *** including --without-postgres" >&6;}
38185 exit 1
38187 else
38188 { echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
38189 echo $ECHO_N "checking for PQescapeStringConn in -lpq... $ECHO_C" >&6; }
38190 if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
38191 echo $ECHO_N "(cached) $ECHO_C" >&6
38192 else
38193 ac_check_lib_save_LIBS=$LIBS
38194 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
38195 cat >conftest.$ac_ext <<_ACEOF
38196 /* confdefs.h. */
38197 _ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h. */
38202 /* Override any GCC internal prototype to avoid an error.
38203 Use char because int might match the return type of a GCC
38204 builtin and then its argument prototype would still apply. */
38205 #ifdef __cplusplus
38206 extern "C"
38207 #endif
38208 char PQescapeStringConn ();
38210 main ()
38212 return PQescapeStringConn ();
38214 return 0;
38216 _ACEOF
38217 rm -f conftest.$ac_objext conftest$ac_exeext
38218 if { (ac_try="$ac_link"
38219 case "(($ac_try" in
38220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38221 *) ac_try_echo=$ac_try;;
38222 esac
38223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38224 (eval "$ac_link") 2>conftest.er1
38225 ac_status=$?
38226 grep -v '^ *+' conftest.er1 >conftest.err
38227 rm -f conftest.er1
38228 cat conftest.err >&5
38229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); } && {
38231 test -z "$ac_c_werror_flag" ||
38232 test ! -s conftest.err
38233 } && test -s conftest$ac_exeext &&
38234 $as_test_x conftest$ac_exeext; then
38235 ac_cv_lib_pq_PQescapeStringConn=yes
38236 else
38237 echo "$as_me: failed program was:" >&5
38238 sed 's/^/| /' conftest.$ac_ext >&5
38240 ac_cv_lib_pq_PQescapeStringConn=no
38243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38244 conftest$ac_exeext conftest.$ac_ext
38245 LIBS=$ac_check_lib_save_LIBS
38247 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
38248 echo "${ECHO_T}$ac_cv_lib_pq_PQescapeStringConn" >&6; }
38249 if test $ac_cv_lib_pq_PQescapeStringConn = yes; then
38251 cat >>confdefs.h <<_ACEOF
38252 #define HAVE_PGSQL 1
38253 _ACEOF
38258 if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
38259 PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
38260 PGSQL_INCLUDE="-I${PGSQL_includedir}"
38261 PBX_PGSQL=1
38262 elif test -n "${PGSQL_MANDATORY}";
38263 then
38264 { echo "$as_me:$LINENO: ***" >&5
38265 echo "$as_me: ***" >&6;}
38266 { echo "$as_me:$LINENO: *** The PostgreSQL installation on this system appears to be broken." >&5
38267 echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
38268 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
38269 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
38270 { echo "$as_me:$LINENO: *** including --without-postgres" >&5
38271 echo "$as_me: *** including --without-postgres" >&6;}
38272 exit 1
38278 if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
38279 pbxlibdir=""
38280 # if --with-POPT=DIR has been specified, use it.
38281 if test "x${POPT_DIR}" != "x"; then
38282 if test -d ${POPT_DIR}/lib; then
38283 pbxlibdir="-L${POPT_DIR}/lib"
38284 else
38285 pbxlibdir="-L${POPT_DIR}"
38288 pbxfuncname="poptStrerror"
38289 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38290 AST_POPT_FOUND=yes
38291 else
38292 as_ac_Lib=`echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
38293 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpopt" >&5
38294 echo $ECHO_N "checking for ${pbxfuncname} in -lpopt... $ECHO_C" >&6; }
38295 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38296 echo $ECHO_N "(cached) $ECHO_C" >&6
38297 else
38298 ac_check_lib_save_LIBS=$LIBS
38299 LIBS="-lpopt ${pbxlibdir} $LIBS"
38300 cat >conftest.$ac_ext <<_ACEOF
38301 /* confdefs.h. */
38302 _ACEOF
38303 cat confdefs.h >>conftest.$ac_ext
38304 cat >>conftest.$ac_ext <<_ACEOF
38305 /* end confdefs.h. */
38307 /* Override any GCC internal prototype to avoid an error.
38308 Use char because int might match the return type of a GCC
38309 builtin and then its argument prototype would still apply. */
38310 #ifdef __cplusplus
38311 extern "C"
38312 #endif
38313 char ${pbxfuncname} ();
38315 main ()
38317 return ${pbxfuncname} ();
38319 return 0;
38321 _ACEOF
38322 rm -f conftest.$ac_objext conftest$ac_exeext
38323 if { (ac_try="$ac_link"
38324 case "(($ac_try" in
38325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38326 *) ac_try_echo=$ac_try;;
38327 esac
38328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38329 (eval "$ac_link") 2>conftest.er1
38330 ac_status=$?
38331 grep -v '^ *+' conftest.er1 >conftest.err
38332 rm -f conftest.er1
38333 cat conftest.err >&5
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); } && {
38336 test -z "$ac_c_werror_flag" ||
38337 test ! -s conftest.err
38338 } && test -s conftest$ac_exeext &&
38339 $as_test_x conftest$ac_exeext; then
38340 eval "$as_ac_Lib=yes"
38341 else
38342 echo "$as_me: failed program was:" >&5
38343 sed 's/^/| /' conftest.$ac_ext >&5
38345 eval "$as_ac_Lib=no"
38348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38349 conftest$ac_exeext conftest.$ac_ext
38350 LIBS=$ac_check_lib_save_LIBS
38352 ac_res=`eval echo '${'$as_ac_Lib'}'`
38353 { echo "$as_me:$LINENO: result: $ac_res" >&5
38354 echo "${ECHO_T}$ac_res" >&6; }
38355 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38356 AST_POPT_FOUND=yes
38357 else
38358 AST_POPT_FOUND=no
38363 # now check for the header.
38364 if test "${AST_POPT_FOUND}" = "yes"; then
38365 POPT_LIB="${pbxlibdir} -lpopt "
38366 # if --with-POPT=DIR has been specified, use it.
38367 if test "x${POPT_DIR}" != "x"; then
38368 POPT_INCLUDE="-I${POPT_DIR}/include"
38370 POPT_INCLUDE="${POPT_INCLUDE} "
38371 if test "xpopt.h" = "x" ; then # no header, assume found
38372 POPT_HEADER_FOUND="1"
38373 else # check for the header
38374 saved_cppflags="${CPPFLAGS}"
38375 CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE} "
38376 if test "${ac_cv_header_popt_h+set}" = set; then
38377 { echo "$as_me:$LINENO: checking for popt.h" >&5
38378 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38379 if test "${ac_cv_header_popt_h+set}" = set; then
38380 echo $ECHO_N "(cached) $ECHO_C" >&6
38382 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38383 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38384 else
38385 # Is the header compilable?
38386 { echo "$as_me:$LINENO: checking popt.h usability" >&5
38387 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
38388 cat >conftest.$ac_ext <<_ACEOF
38389 /* confdefs.h. */
38390 _ACEOF
38391 cat confdefs.h >>conftest.$ac_ext
38392 cat >>conftest.$ac_ext <<_ACEOF
38393 /* end confdefs.h. */
38394 $ac_includes_default
38395 #include <popt.h>
38396 _ACEOF
38397 rm -f conftest.$ac_objext
38398 if { (ac_try="$ac_compile"
38399 case "(($ac_try" in
38400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38401 *) ac_try_echo=$ac_try;;
38402 esac
38403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38404 (eval "$ac_compile") 2>conftest.er1
38405 ac_status=$?
38406 grep -v '^ *+' conftest.er1 >conftest.err
38407 rm -f conftest.er1
38408 cat conftest.err >&5
38409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410 (exit $ac_status); } && {
38411 test -z "$ac_c_werror_flag" ||
38412 test ! -s conftest.err
38413 } && test -s conftest.$ac_objext; then
38414 ac_header_compiler=yes
38415 else
38416 echo "$as_me: failed program was:" >&5
38417 sed 's/^/| /' conftest.$ac_ext >&5
38419 ac_header_compiler=no
38422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38424 echo "${ECHO_T}$ac_header_compiler" >&6; }
38426 # Is the header present?
38427 { echo "$as_me:$LINENO: checking popt.h presence" >&5
38428 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
38429 cat >conftest.$ac_ext <<_ACEOF
38430 /* confdefs.h. */
38431 _ACEOF
38432 cat confdefs.h >>conftest.$ac_ext
38433 cat >>conftest.$ac_ext <<_ACEOF
38434 /* end confdefs.h. */
38435 #include <popt.h>
38436 _ACEOF
38437 if { (ac_try="$ac_cpp conftest.$ac_ext"
38438 case "(($ac_try" in
38439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38440 *) ac_try_echo=$ac_try;;
38441 esac
38442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38444 ac_status=$?
38445 grep -v '^ *+' conftest.er1 >conftest.err
38446 rm -f conftest.er1
38447 cat conftest.err >&5
38448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449 (exit $ac_status); } >/dev/null && {
38450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38451 test ! -s conftest.err
38452 }; then
38453 ac_header_preproc=yes
38454 else
38455 echo "$as_me: failed program was:" >&5
38456 sed 's/^/| /' conftest.$ac_ext >&5
38458 ac_header_preproc=no
38461 rm -f conftest.err conftest.$ac_ext
38462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38463 echo "${ECHO_T}$ac_header_preproc" >&6; }
38465 # So? What about this header?
38466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38467 yes:no: )
38468 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
38469 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38470 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
38471 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
38472 ac_header_preproc=yes
38474 no:yes:* )
38475 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
38476 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
38477 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
38478 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
38479 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
38480 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
38481 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
38482 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
38483 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
38484 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
38485 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
38486 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
38487 ( cat <<\_ASBOX
38488 ## ------------------------------- ##
38489 ## Report this to www.asterisk.org ##
38490 ## ------------------------------- ##
38491 _ASBOX
38492 ) | sed "s/^/$as_me: WARNING: /" >&2
38494 esac
38495 { echo "$as_me:$LINENO: checking for popt.h" >&5
38496 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
38497 if test "${ac_cv_header_popt_h+set}" = set; then
38498 echo $ECHO_N "(cached) $ECHO_C" >&6
38499 else
38500 ac_cv_header_popt_h=$ac_header_preproc
38502 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
38503 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
38506 if test $ac_cv_header_popt_h = yes; then
38507 POPT_HEADER_FOUND=1
38508 else
38509 POPT_HEADER_FOUND=0
38513 CPPFLAGS="${saved_cppflags}"
38515 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
38516 POPT_LIB=""
38517 POPT_INCLUDE=""
38518 else
38519 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38520 POPT_LIB=""
38522 PBX_POPT=1
38523 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38525 cat >>confdefs.h <<_ACEOF
38526 #define HAVE_POPT 1
38527 _ACEOF
38530 cat >>confdefs.h <<_ACEOF
38531 #define HAVE_POPT_VERSION
38532 _ACEOF
38540 if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
38541 pbxlibdir=""
38542 # if --with-PORTAUDIO=DIR has been specified, use it.
38543 if test "x${PORTAUDIO_DIR}" != "x"; then
38544 if test -d ${PORTAUDIO_DIR}/lib; then
38545 pbxlibdir="-L${PORTAUDIO_DIR}/lib"
38546 else
38547 pbxlibdir="-L${PORTAUDIO_DIR}"
38550 pbxfuncname="Pa_GetDeviceCount"
38551 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38552 AST_PORTAUDIO_FOUND=yes
38553 else
38554 as_ac_Lib=`echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
38555 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lportaudio" >&5
38556 echo $ECHO_N "checking for ${pbxfuncname} in -lportaudio... $ECHO_C" >&6; }
38557 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38558 echo $ECHO_N "(cached) $ECHO_C" >&6
38559 else
38560 ac_check_lib_save_LIBS=$LIBS
38561 LIBS="-lportaudio ${pbxlibdir} $LIBS"
38562 cat >conftest.$ac_ext <<_ACEOF
38563 /* confdefs.h. */
38564 _ACEOF
38565 cat confdefs.h >>conftest.$ac_ext
38566 cat >>conftest.$ac_ext <<_ACEOF
38567 /* end confdefs.h. */
38569 /* Override any GCC internal prototype to avoid an error.
38570 Use char because int might match the return type of a GCC
38571 builtin and then its argument prototype would still apply. */
38572 #ifdef __cplusplus
38573 extern "C"
38574 #endif
38575 char ${pbxfuncname} ();
38577 main ()
38579 return ${pbxfuncname} ();
38581 return 0;
38583 _ACEOF
38584 rm -f conftest.$ac_objext conftest$ac_exeext
38585 if { (ac_try="$ac_link"
38586 case "(($ac_try" in
38587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588 *) ac_try_echo=$ac_try;;
38589 esac
38590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38591 (eval "$ac_link") 2>conftest.er1
38592 ac_status=$?
38593 grep -v '^ *+' conftest.er1 >conftest.err
38594 rm -f conftest.er1
38595 cat conftest.err >&5
38596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } && {
38598 test -z "$ac_c_werror_flag" ||
38599 test ! -s conftest.err
38600 } && test -s conftest$ac_exeext &&
38601 $as_test_x conftest$ac_exeext; then
38602 eval "$as_ac_Lib=yes"
38603 else
38604 echo "$as_me: failed program was:" >&5
38605 sed 's/^/| /' conftest.$ac_ext >&5
38607 eval "$as_ac_Lib=no"
38610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38611 conftest$ac_exeext conftest.$ac_ext
38612 LIBS=$ac_check_lib_save_LIBS
38614 ac_res=`eval echo '${'$as_ac_Lib'}'`
38615 { echo "$as_me:$LINENO: result: $ac_res" >&5
38616 echo "${ECHO_T}$ac_res" >&6; }
38617 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38618 AST_PORTAUDIO_FOUND=yes
38619 else
38620 AST_PORTAUDIO_FOUND=no
38625 # now check for the header.
38626 if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
38627 PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
38628 # if --with-PORTAUDIO=DIR has been specified, use it.
38629 if test "x${PORTAUDIO_DIR}" != "x"; then
38630 PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
38632 PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
38633 if test "xportaudio.h" = "x" ; then # no header, assume found
38634 PORTAUDIO_HEADER_FOUND="1"
38635 else # check for the header
38636 saved_cppflags="${CPPFLAGS}"
38637 CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE} "
38638 if test "${ac_cv_header_portaudio_h+set}" = set; then
38639 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38640 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38641 if test "${ac_cv_header_portaudio_h+set}" = set; then
38642 echo $ECHO_N "(cached) $ECHO_C" >&6
38644 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38645 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38646 else
38647 # Is the header compilable?
38648 { echo "$as_me:$LINENO: checking portaudio.h usability" >&5
38649 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6; }
38650 cat >conftest.$ac_ext <<_ACEOF
38651 /* confdefs.h. */
38652 _ACEOF
38653 cat confdefs.h >>conftest.$ac_ext
38654 cat >>conftest.$ac_ext <<_ACEOF
38655 /* end confdefs.h. */
38656 $ac_includes_default
38657 #include <portaudio.h>
38658 _ACEOF
38659 rm -f conftest.$ac_objext
38660 if { (ac_try="$ac_compile"
38661 case "(($ac_try" in
38662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38663 *) ac_try_echo=$ac_try;;
38664 esac
38665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38666 (eval "$ac_compile") 2>conftest.er1
38667 ac_status=$?
38668 grep -v '^ *+' conftest.er1 >conftest.err
38669 rm -f conftest.er1
38670 cat conftest.err >&5
38671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); } && {
38673 test -z "$ac_c_werror_flag" ||
38674 test ! -s conftest.err
38675 } && test -s conftest.$ac_objext; then
38676 ac_header_compiler=yes
38677 else
38678 echo "$as_me: failed program was:" >&5
38679 sed 's/^/| /' conftest.$ac_ext >&5
38681 ac_header_compiler=no
38684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38686 echo "${ECHO_T}$ac_header_compiler" >&6; }
38688 # Is the header present?
38689 { echo "$as_me:$LINENO: checking portaudio.h presence" >&5
38690 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6; }
38691 cat >conftest.$ac_ext <<_ACEOF
38692 /* confdefs.h. */
38693 _ACEOF
38694 cat confdefs.h >>conftest.$ac_ext
38695 cat >>conftest.$ac_ext <<_ACEOF
38696 /* end confdefs.h. */
38697 #include <portaudio.h>
38698 _ACEOF
38699 if { (ac_try="$ac_cpp conftest.$ac_ext"
38700 case "(($ac_try" in
38701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38702 *) ac_try_echo=$ac_try;;
38703 esac
38704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38706 ac_status=$?
38707 grep -v '^ *+' conftest.er1 >conftest.err
38708 rm -f conftest.er1
38709 cat conftest.err >&5
38710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711 (exit $ac_status); } >/dev/null && {
38712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38713 test ! -s conftest.err
38714 }; then
38715 ac_header_preproc=yes
38716 else
38717 echo "$as_me: failed program was:" >&5
38718 sed 's/^/| /' conftest.$ac_ext >&5
38720 ac_header_preproc=no
38723 rm -f conftest.err conftest.$ac_ext
38724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38725 echo "${ECHO_T}$ac_header_preproc" >&6; }
38727 # So? What about this header?
38728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38729 yes:no: )
38730 { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
38731 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38732 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
38733 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
38734 ac_header_preproc=yes
38736 no:yes:* )
38737 { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
38738 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
38739 { echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
38740 echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
38741 { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
38742 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
38743 { echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
38744 echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
38745 { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
38746 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
38747 { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
38748 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
38749 ( cat <<\_ASBOX
38750 ## ------------------------------- ##
38751 ## Report this to www.asterisk.org ##
38752 ## ------------------------------- ##
38753 _ASBOX
38754 ) | sed "s/^/$as_me: WARNING: /" >&2
38756 esac
38757 { echo "$as_me:$LINENO: checking for portaudio.h" >&5
38758 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6; }
38759 if test "${ac_cv_header_portaudio_h+set}" = set; then
38760 echo $ECHO_N "(cached) $ECHO_C" >&6
38761 else
38762 ac_cv_header_portaudio_h=$ac_header_preproc
38764 { echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
38765 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6; }
38768 if test $ac_cv_header_portaudio_h = yes; then
38769 PORTAUDIO_HEADER_FOUND=1
38770 else
38771 PORTAUDIO_HEADER_FOUND=0
38775 CPPFLAGS="${saved_cppflags}"
38777 if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
38778 PORTAUDIO_LIB=""
38779 PORTAUDIO_INCLUDE=""
38780 else
38781 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
38782 PORTAUDIO_LIB=""
38784 PBX_PORTAUDIO=1
38785 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
38787 cat >>confdefs.h <<_ACEOF
38788 #define HAVE_PORTAUDIO 1
38789 _ACEOF
38792 cat >>confdefs.h <<_ACEOF
38793 #define HAVE_PORTAUDIO_VERSION
38794 _ACEOF
38802 if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
38803 pbxlibdir=""
38804 # if --with-PRI=DIR has been specified, use it.
38805 if test "x${PRI_DIR}" != "x"; then
38806 if test -d ${PRI_DIR}/lib; then
38807 pbxlibdir="-L${PRI_DIR}/lib"
38808 else
38809 pbxlibdir="-L${PRI_DIR}"
38812 pbxfuncname="pri_get_version"
38813 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
38814 AST_PRI_FOUND=yes
38815 else
38816 as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
38817 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
38818 echo $ECHO_N "checking for ${pbxfuncname} in -lpri... $ECHO_C" >&6; }
38819 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38820 echo $ECHO_N "(cached) $ECHO_C" >&6
38821 else
38822 ac_check_lib_save_LIBS=$LIBS
38823 LIBS="-lpri ${pbxlibdir} $LIBS"
38824 cat >conftest.$ac_ext <<_ACEOF
38825 /* confdefs.h. */
38826 _ACEOF
38827 cat confdefs.h >>conftest.$ac_ext
38828 cat >>conftest.$ac_ext <<_ACEOF
38829 /* end confdefs.h. */
38831 /* Override any GCC internal prototype to avoid an error.
38832 Use char because int might match the return type of a GCC
38833 builtin and then its argument prototype would still apply. */
38834 #ifdef __cplusplus
38835 extern "C"
38836 #endif
38837 char ${pbxfuncname} ();
38839 main ()
38841 return ${pbxfuncname} ();
38843 return 0;
38845 _ACEOF
38846 rm -f conftest.$ac_objext conftest$ac_exeext
38847 if { (ac_try="$ac_link"
38848 case "(($ac_try" in
38849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38850 *) ac_try_echo=$ac_try;;
38851 esac
38852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38853 (eval "$ac_link") 2>conftest.er1
38854 ac_status=$?
38855 grep -v '^ *+' conftest.er1 >conftest.err
38856 rm -f conftest.er1
38857 cat conftest.err >&5
38858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859 (exit $ac_status); } && {
38860 test -z "$ac_c_werror_flag" ||
38861 test ! -s conftest.err
38862 } && test -s conftest$ac_exeext &&
38863 $as_test_x conftest$ac_exeext; then
38864 eval "$as_ac_Lib=yes"
38865 else
38866 echo "$as_me: failed program was:" >&5
38867 sed 's/^/| /' conftest.$ac_ext >&5
38869 eval "$as_ac_Lib=no"
38872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38873 conftest$ac_exeext conftest.$ac_ext
38874 LIBS=$ac_check_lib_save_LIBS
38876 ac_res=`eval echo '${'$as_ac_Lib'}'`
38877 { echo "$as_me:$LINENO: result: $ac_res" >&5
38878 echo "${ECHO_T}$ac_res" >&6; }
38879 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38880 AST_PRI_FOUND=yes
38881 else
38882 AST_PRI_FOUND=no
38887 # now check for the header.
38888 if test "${AST_PRI_FOUND}" = "yes"; then
38889 PRI_LIB="${pbxlibdir} -lpri "
38890 # if --with-PRI=DIR has been specified, use it.
38891 if test "x${PRI_DIR}" != "x"; then
38892 PRI_INCLUDE="-I${PRI_DIR}/include"
38894 PRI_INCLUDE="${PRI_INCLUDE} "
38895 if test "xlibpri.h" = "x" ; then # no header, assume found
38896 PRI_HEADER_FOUND="1"
38897 else # check for the header
38898 saved_cppflags="${CPPFLAGS}"
38899 CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE} "
38900 if test "${ac_cv_header_libpri_h+set}" = set; then
38901 { echo "$as_me:$LINENO: checking for libpri.h" >&5
38902 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
38903 if test "${ac_cv_header_libpri_h+set}" = set; then
38904 echo $ECHO_N "(cached) $ECHO_C" >&6
38906 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
38907 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
38908 else
38909 # Is the header compilable?
38910 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
38911 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
38912 cat >conftest.$ac_ext <<_ACEOF
38913 /* confdefs.h. */
38914 _ACEOF
38915 cat confdefs.h >>conftest.$ac_ext
38916 cat >>conftest.$ac_ext <<_ACEOF
38917 /* end confdefs.h. */
38918 $ac_includes_default
38919 #include <libpri.h>
38920 _ACEOF
38921 rm -f conftest.$ac_objext
38922 if { (ac_try="$ac_compile"
38923 case "(($ac_try" in
38924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38925 *) ac_try_echo=$ac_try;;
38926 esac
38927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38928 (eval "$ac_compile") 2>conftest.er1
38929 ac_status=$?
38930 grep -v '^ *+' conftest.er1 >conftest.err
38931 rm -f conftest.er1
38932 cat conftest.err >&5
38933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38934 (exit $ac_status); } && {
38935 test -z "$ac_c_werror_flag" ||
38936 test ! -s conftest.err
38937 } && test -s conftest.$ac_objext; then
38938 ac_header_compiler=yes
38939 else
38940 echo "$as_me: failed program was:" >&5
38941 sed 's/^/| /' conftest.$ac_ext >&5
38943 ac_header_compiler=no
38946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38948 echo "${ECHO_T}$ac_header_compiler" >&6; }
38950 # Is the header present?
38951 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
38952 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
38953 cat >conftest.$ac_ext <<_ACEOF
38954 /* confdefs.h. */
38955 _ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h. */
38959 #include <libpri.h>
38960 _ACEOF
38961 if { (ac_try="$ac_cpp conftest.$ac_ext"
38962 case "(($ac_try" in
38963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38964 *) ac_try_echo=$ac_try;;
38965 esac
38966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38968 ac_status=$?
38969 grep -v '^ *+' conftest.er1 >conftest.err
38970 rm -f conftest.er1
38971 cat conftest.err >&5
38972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973 (exit $ac_status); } >/dev/null && {
38974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38975 test ! -s conftest.err
38976 }; then
38977 ac_header_preproc=yes
38978 else
38979 echo "$as_me: failed program was:" >&5
38980 sed 's/^/| /' conftest.$ac_ext >&5
38982 ac_header_preproc=no
38985 rm -f conftest.err conftest.$ac_ext
38986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38987 echo "${ECHO_T}$ac_header_preproc" >&6; }
38989 # So? What about this header?
38990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38991 yes:no: )
38992 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
38993 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38994 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
38995 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
38996 ac_header_preproc=yes
38998 no:yes:* )
38999 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
39000 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
39001 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
39002 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
39003 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
39004 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
39005 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
39006 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
39007 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
39008 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
39009 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
39010 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
39011 ( cat <<\_ASBOX
39012 ## ------------------------------- ##
39013 ## Report this to www.asterisk.org ##
39014 ## ------------------------------- ##
39015 _ASBOX
39016 ) | sed "s/^/$as_me: WARNING: /" >&2
39018 esac
39019 { echo "$as_me:$LINENO: checking for libpri.h" >&5
39020 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
39021 if test "${ac_cv_header_libpri_h+set}" = set; then
39022 echo $ECHO_N "(cached) $ECHO_C" >&6
39023 else
39024 ac_cv_header_libpri_h=$ac_header_preproc
39026 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
39027 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
39030 if test $ac_cv_header_libpri_h = yes; then
39031 PRI_HEADER_FOUND=1
39032 else
39033 PRI_HEADER_FOUND=0
39037 CPPFLAGS="${saved_cppflags}"
39039 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
39040 PRI_LIB=""
39041 PRI_INCLUDE=""
39042 else
39043 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39044 PRI_LIB=""
39046 PBX_PRI=1
39047 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39049 cat >>confdefs.h <<_ACEOF
39050 #define HAVE_PRI 1
39051 _ACEOF
39054 cat >>confdefs.h <<_ACEOF
39055 #define HAVE_PRI_VERSION
39056 _ACEOF
39064 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39065 { echo "$as_me:$LINENO: checking if \"
39066 #if SPANDSP_RELEASE_DATE < 20080516
39067 #error \"spandsp 0.0.5 or greater is required\"
39068 #endif
39069 \" compiles using spandsp/version.h" >&5
39070 echo $ECHO_N "checking if \"
39071 #if SPANDSP_RELEASE_DATE < 20080516
39072 #error \"spandsp 0.0.5 or greater is required\"
39073 #endif
39074 \" compiles using spandsp/version.h... $ECHO_C" >&6; }
39075 saved_cppflags="${CPPFLAGS}"
39076 if test "x${SPANDSP_DIR}" != "x"; then
39077 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39079 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
39081 cat >conftest.$ac_ext <<_ACEOF
39082 /* confdefs.h. */
39083 _ACEOF
39084 cat confdefs.h >>conftest.$ac_ext
39085 cat >>conftest.$ac_ext <<_ACEOF
39086 /* end confdefs.h. */
39087 #include <spandsp/version.h>
39089 main ()
39092 #if SPANDSP_RELEASE_DATE < 20080516
39093 #error "spandsp 0.0.5 or greater is required"
39094 #endif
39098 return 0;
39100 _ACEOF
39101 rm -f conftest.$ac_objext
39102 if { (ac_try="$ac_compile"
39103 case "(($ac_try" in
39104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39105 *) ac_try_echo=$ac_try;;
39106 esac
39107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39108 (eval "$ac_compile") 2>conftest.er1
39109 ac_status=$?
39110 grep -v '^ *+' conftest.er1 >conftest.err
39111 rm -f conftest.er1
39112 cat conftest.err >&5
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); } && {
39115 test -z "$ac_c_werror_flag" ||
39116 test ! -s conftest.err
39117 } && test -s conftest.$ac_objext; then
39118 { echo "$as_me:$LINENO: result: yes" >&5
39119 echo "${ECHO_T}yes" >&6; }
39120 PBX_SPANDSP=1
39122 cat >>confdefs.h <<\_ACEOF
39123 #define HAVE_SPANDSP 1
39124 _ACEOF
39127 cat >>confdefs.h <<\_ACEOF
39128 #define HAVE_SPANDSP_VERSION
39129 _ACEOF
39132 else
39133 echo "$as_me: failed program was:" >&5
39134 sed 's/^/| /' conftest.$ac_ext >&5
39136 { echo "$as_me:$LINENO: result: no" >&5
39137 echo "${ECHO_T}no" >&6; }
39141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39142 CPPFLAGS="${saved_cppflags}"
39146 if test "x${PBX_SPANDSP}" = "x1" ; then
39147 # We found the correct version in the header, now let's make sure it links
39148 # properly, and that libtiff is available
39149 PBX_SPANDSP=0
39151 if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
39152 pbxlibdir=""
39153 # if --with-SPANDSP=DIR has been specified, use it.
39154 if test "x${SPANDSP_DIR}" != "x"; then
39155 if test -d ${SPANDSP_DIR}/lib; then
39156 pbxlibdir="-L${SPANDSP_DIR}/lib"
39157 else
39158 pbxlibdir="-L${SPANDSP_DIR}"
39161 pbxfuncname="span_set_message_handler"
39162 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39163 AST_SPANDSP_FOUND=yes
39164 else
39165 as_ac_Lib=`echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
39166 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspandsp" >&5
39167 echo $ECHO_N "checking for ${pbxfuncname} in -lspandsp... $ECHO_C" >&6; }
39168 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39169 echo $ECHO_N "(cached) $ECHO_C" >&6
39170 else
39171 ac_check_lib_save_LIBS=$LIBS
39172 LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
39173 cat >conftest.$ac_ext <<_ACEOF
39174 /* confdefs.h. */
39175 _ACEOF
39176 cat confdefs.h >>conftest.$ac_ext
39177 cat >>conftest.$ac_ext <<_ACEOF
39178 /* end confdefs.h. */
39180 /* Override any GCC internal prototype to avoid an error.
39181 Use char because int might match the return type of a GCC
39182 builtin and then its argument prototype would still apply. */
39183 #ifdef __cplusplus
39184 extern "C"
39185 #endif
39186 char ${pbxfuncname} ();
39188 main ()
39190 return ${pbxfuncname} ();
39192 return 0;
39194 _ACEOF
39195 rm -f conftest.$ac_objext conftest$ac_exeext
39196 if { (ac_try="$ac_link"
39197 case "(($ac_try" in
39198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39199 *) ac_try_echo=$ac_try;;
39200 esac
39201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39202 (eval "$ac_link") 2>conftest.er1
39203 ac_status=$?
39204 grep -v '^ *+' conftest.er1 >conftest.err
39205 rm -f conftest.er1
39206 cat conftest.err >&5
39207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39208 (exit $ac_status); } && {
39209 test -z "$ac_c_werror_flag" ||
39210 test ! -s conftest.err
39211 } && test -s conftest$ac_exeext &&
39212 $as_test_x conftest$ac_exeext; then
39213 eval "$as_ac_Lib=yes"
39214 else
39215 echo "$as_me: failed program was:" >&5
39216 sed 's/^/| /' conftest.$ac_ext >&5
39218 eval "$as_ac_Lib=no"
39221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39222 conftest$ac_exeext conftest.$ac_ext
39223 LIBS=$ac_check_lib_save_LIBS
39225 ac_res=`eval echo '${'$as_ac_Lib'}'`
39226 { echo "$as_me:$LINENO: result: $ac_res" >&5
39227 echo "${ECHO_T}$ac_res" >&6; }
39228 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39229 AST_SPANDSP_FOUND=yes
39230 else
39231 AST_SPANDSP_FOUND=no
39236 # now check for the header.
39237 if test "${AST_SPANDSP_FOUND}" = "yes"; then
39238 SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
39239 # if --with-SPANDSP=DIR has been specified, use it.
39240 if test "x${SPANDSP_DIR}" != "x"; then
39241 SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
39243 SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
39244 if test "xspandsp.h" = "x" ; then # no header, assume found
39245 SPANDSP_HEADER_FOUND="1"
39246 else # check for the header
39247 saved_cppflags="${CPPFLAGS}"
39248 CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE} "
39249 if test "${ac_cv_header_spandsp_h+set}" = set; then
39250 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39251 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39252 if test "${ac_cv_header_spandsp_h+set}" = set; then
39253 echo $ECHO_N "(cached) $ECHO_C" >&6
39255 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39256 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39257 else
39258 # Is the header compilable?
39259 { echo "$as_me:$LINENO: checking spandsp.h usability" >&5
39260 echo $ECHO_N "checking spandsp.h usability... $ECHO_C" >&6; }
39261 cat >conftest.$ac_ext <<_ACEOF
39262 /* confdefs.h. */
39263 _ACEOF
39264 cat confdefs.h >>conftest.$ac_ext
39265 cat >>conftest.$ac_ext <<_ACEOF
39266 /* end confdefs.h. */
39267 $ac_includes_default
39268 #include <spandsp.h>
39269 _ACEOF
39270 rm -f conftest.$ac_objext
39271 if { (ac_try="$ac_compile"
39272 case "(($ac_try" in
39273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39274 *) ac_try_echo=$ac_try;;
39275 esac
39276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39277 (eval "$ac_compile") 2>conftest.er1
39278 ac_status=$?
39279 grep -v '^ *+' conftest.er1 >conftest.err
39280 rm -f conftest.er1
39281 cat conftest.err >&5
39282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39283 (exit $ac_status); } && {
39284 test -z "$ac_c_werror_flag" ||
39285 test ! -s conftest.err
39286 } && test -s conftest.$ac_objext; then
39287 ac_header_compiler=yes
39288 else
39289 echo "$as_me: failed program was:" >&5
39290 sed 's/^/| /' conftest.$ac_ext >&5
39292 ac_header_compiler=no
39295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39297 echo "${ECHO_T}$ac_header_compiler" >&6; }
39299 # Is the header present?
39300 { echo "$as_me:$LINENO: checking spandsp.h presence" >&5
39301 echo $ECHO_N "checking spandsp.h presence... $ECHO_C" >&6; }
39302 cat >conftest.$ac_ext <<_ACEOF
39303 /* confdefs.h. */
39304 _ACEOF
39305 cat confdefs.h >>conftest.$ac_ext
39306 cat >>conftest.$ac_ext <<_ACEOF
39307 /* end confdefs.h. */
39308 #include <spandsp.h>
39309 _ACEOF
39310 if { (ac_try="$ac_cpp conftest.$ac_ext"
39311 case "(($ac_try" in
39312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39313 *) ac_try_echo=$ac_try;;
39314 esac
39315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39317 ac_status=$?
39318 grep -v '^ *+' conftest.er1 >conftest.err
39319 rm -f conftest.er1
39320 cat conftest.err >&5
39321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322 (exit $ac_status); } >/dev/null && {
39323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39324 test ! -s conftest.err
39325 }; then
39326 ac_header_preproc=yes
39327 else
39328 echo "$as_me: failed program was:" >&5
39329 sed 's/^/| /' conftest.$ac_ext >&5
39331 ac_header_preproc=no
39334 rm -f conftest.err conftest.$ac_ext
39335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39336 echo "${ECHO_T}$ac_header_preproc" >&6; }
39338 # So? What about this header?
39339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39340 yes:no: )
39341 { echo "$as_me:$LINENO: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&5
39342 echo "$as_me: WARNING: spandsp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39343 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the compiler's result" >&5
39344 echo "$as_me: WARNING: spandsp.h: proceeding with the compiler's result" >&2;}
39345 ac_header_preproc=yes
39347 no:yes:* )
39348 { echo "$as_me:$LINENO: WARNING: spandsp.h: present but cannot be compiled" >&5
39349 echo "$as_me: WARNING: spandsp.h: present but cannot be compiled" >&2;}
39350 { echo "$as_me:$LINENO: WARNING: spandsp.h: check for missing prerequisite headers?" >&5
39351 echo "$as_me: WARNING: spandsp.h: check for missing prerequisite headers?" >&2;}
39352 { echo "$as_me:$LINENO: WARNING: spandsp.h: see the Autoconf documentation" >&5
39353 echo "$as_me: WARNING: spandsp.h: see the Autoconf documentation" >&2;}
39354 { echo "$as_me:$LINENO: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&5
39355 echo "$as_me: WARNING: spandsp.h: section \"Present But Cannot Be Compiled\"" >&2;}
39356 { echo "$as_me:$LINENO: WARNING: spandsp.h: proceeding with the preprocessor's result" >&5
39357 echo "$as_me: WARNING: spandsp.h: proceeding with the preprocessor's result" >&2;}
39358 { echo "$as_me:$LINENO: WARNING: spandsp.h: in the future, the compiler will take precedence" >&5
39359 echo "$as_me: WARNING: spandsp.h: in the future, the compiler will take precedence" >&2;}
39360 ( cat <<\_ASBOX
39361 ## ------------------------------- ##
39362 ## Report this to www.asterisk.org ##
39363 ## ------------------------------- ##
39364 _ASBOX
39365 ) | sed "s/^/$as_me: WARNING: /" >&2
39367 esac
39368 { echo "$as_me:$LINENO: checking for spandsp.h" >&5
39369 echo $ECHO_N "checking for spandsp.h... $ECHO_C" >&6; }
39370 if test "${ac_cv_header_spandsp_h+set}" = set; then
39371 echo $ECHO_N "(cached) $ECHO_C" >&6
39372 else
39373 ac_cv_header_spandsp_h=$ac_header_preproc
39375 { echo "$as_me:$LINENO: result: $ac_cv_header_spandsp_h" >&5
39376 echo "${ECHO_T}$ac_cv_header_spandsp_h" >&6; }
39379 if test $ac_cv_header_spandsp_h = yes; then
39380 SPANDSP_HEADER_FOUND=1
39381 else
39382 SPANDSP_HEADER_FOUND=0
39386 CPPFLAGS="${saved_cppflags}"
39388 if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
39389 SPANDSP_LIB=""
39390 SPANDSP_INCLUDE=""
39391 else
39392 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39393 SPANDSP_LIB=""
39395 PBX_SPANDSP=1
39396 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39398 cat >>confdefs.h <<_ACEOF
39399 #define HAVE_SPANDSP 1
39400 _ACEOF
39403 cat >>confdefs.h <<_ACEOF
39404 #define HAVE_SPANDSP_VERSION
39405 _ACEOF
39414 if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
39415 pbxlibdir=""
39416 # if --with-SS7=DIR has been specified, use it.
39417 if test "x${SS7_DIR}" != "x"; then
39418 if test -d ${SS7_DIR}/lib; then
39419 pbxlibdir="-L${SS7_DIR}/lib"
39420 else
39421 pbxlibdir="-L${SS7_DIR}"
39424 pbxfuncname="ss7_pollflags"
39425 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
39426 AST_SS7_FOUND=yes
39427 else
39428 as_ac_Lib=`echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
39429 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lss7" >&5
39430 echo $ECHO_N "checking for ${pbxfuncname} in -lss7... $ECHO_C" >&6; }
39431 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39432 echo $ECHO_N "(cached) $ECHO_C" >&6
39433 else
39434 ac_check_lib_save_LIBS=$LIBS
39435 LIBS="-lss7 ${pbxlibdir} $LIBS"
39436 cat >conftest.$ac_ext <<_ACEOF
39437 /* confdefs.h. */
39438 _ACEOF
39439 cat confdefs.h >>conftest.$ac_ext
39440 cat >>conftest.$ac_ext <<_ACEOF
39441 /* end confdefs.h. */
39443 /* Override any GCC internal prototype to avoid an error.
39444 Use char because int might match the return type of a GCC
39445 builtin and then its argument prototype would still apply. */
39446 #ifdef __cplusplus
39447 extern "C"
39448 #endif
39449 char ${pbxfuncname} ();
39451 main ()
39453 return ${pbxfuncname} ();
39455 return 0;
39457 _ACEOF
39458 rm -f conftest.$ac_objext conftest$ac_exeext
39459 if { (ac_try="$ac_link"
39460 case "(($ac_try" in
39461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39462 *) ac_try_echo=$ac_try;;
39463 esac
39464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39465 (eval "$ac_link") 2>conftest.er1
39466 ac_status=$?
39467 grep -v '^ *+' conftest.er1 >conftest.err
39468 rm -f conftest.er1
39469 cat conftest.err >&5
39470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471 (exit $ac_status); } && {
39472 test -z "$ac_c_werror_flag" ||
39473 test ! -s conftest.err
39474 } && test -s conftest$ac_exeext &&
39475 $as_test_x conftest$ac_exeext; then
39476 eval "$as_ac_Lib=yes"
39477 else
39478 echo "$as_me: failed program was:" >&5
39479 sed 's/^/| /' conftest.$ac_ext >&5
39481 eval "$as_ac_Lib=no"
39484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39485 conftest$ac_exeext conftest.$ac_ext
39486 LIBS=$ac_check_lib_save_LIBS
39488 ac_res=`eval echo '${'$as_ac_Lib'}'`
39489 { echo "$as_me:$LINENO: result: $ac_res" >&5
39490 echo "${ECHO_T}$ac_res" >&6; }
39491 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39492 AST_SS7_FOUND=yes
39493 else
39494 AST_SS7_FOUND=no
39499 # now check for the header.
39500 if test "${AST_SS7_FOUND}" = "yes"; then
39501 SS7_LIB="${pbxlibdir} -lss7 "
39502 # if --with-SS7=DIR has been specified, use it.
39503 if test "x${SS7_DIR}" != "x"; then
39504 SS7_INCLUDE="-I${SS7_DIR}/include"
39506 SS7_INCLUDE="${SS7_INCLUDE} "
39507 if test "xlibss7.h" = "x" ; then # no header, assume found
39508 SS7_HEADER_FOUND="1"
39509 else # check for the header
39510 saved_cppflags="${CPPFLAGS}"
39511 CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE} "
39512 if test "${ac_cv_header_libss7_h+set}" = set; then
39513 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39514 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39515 if test "${ac_cv_header_libss7_h+set}" = set; then
39516 echo $ECHO_N "(cached) $ECHO_C" >&6
39518 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39519 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39520 else
39521 # Is the header compilable?
39522 { echo "$as_me:$LINENO: checking libss7.h usability" >&5
39523 echo $ECHO_N "checking libss7.h usability... $ECHO_C" >&6; }
39524 cat >conftest.$ac_ext <<_ACEOF
39525 /* confdefs.h. */
39526 _ACEOF
39527 cat confdefs.h >>conftest.$ac_ext
39528 cat >>conftest.$ac_ext <<_ACEOF
39529 /* end confdefs.h. */
39530 $ac_includes_default
39531 #include <libss7.h>
39532 _ACEOF
39533 rm -f conftest.$ac_objext
39534 if { (ac_try="$ac_compile"
39535 case "(($ac_try" in
39536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39537 *) ac_try_echo=$ac_try;;
39538 esac
39539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39540 (eval "$ac_compile") 2>conftest.er1
39541 ac_status=$?
39542 grep -v '^ *+' conftest.er1 >conftest.err
39543 rm -f conftest.er1
39544 cat conftest.err >&5
39545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546 (exit $ac_status); } && {
39547 test -z "$ac_c_werror_flag" ||
39548 test ! -s conftest.err
39549 } && test -s conftest.$ac_objext; then
39550 ac_header_compiler=yes
39551 else
39552 echo "$as_me: failed program was:" >&5
39553 sed 's/^/| /' conftest.$ac_ext >&5
39555 ac_header_compiler=no
39558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39560 echo "${ECHO_T}$ac_header_compiler" >&6; }
39562 # Is the header present?
39563 { echo "$as_me:$LINENO: checking libss7.h presence" >&5
39564 echo $ECHO_N "checking libss7.h presence... $ECHO_C" >&6; }
39565 cat >conftest.$ac_ext <<_ACEOF
39566 /* confdefs.h. */
39567 _ACEOF
39568 cat confdefs.h >>conftest.$ac_ext
39569 cat >>conftest.$ac_ext <<_ACEOF
39570 /* end confdefs.h. */
39571 #include <libss7.h>
39572 _ACEOF
39573 if { (ac_try="$ac_cpp conftest.$ac_ext"
39574 case "(($ac_try" in
39575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39576 *) ac_try_echo=$ac_try;;
39577 esac
39578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39580 ac_status=$?
39581 grep -v '^ *+' conftest.er1 >conftest.err
39582 rm -f conftest.er1
39583 cat conftest.err >&5
39584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585 (exit $ac_status); } >/dev/null && {
39586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39587 test ! -s conftest.err
39588 }; then
39589 ac_header_preproc=yes
39590 else
39591 echo "$as_me: failed program was:" >&5
39592 sed 's/^/| /' conftest.$ac_ext >&5
39594 ac_header_preproc=no
39597 rm -f conftest.err conftest.$ac_ext
39598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39599 echo "${ECHO_T}$ac_header_preproc" >&6; }
39601 # So? What about this header?
39602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39603 yes:no: )
39604 { echo "$as_me:$LINENO: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&5
39605 echo "$as_me: WARNING: libss7.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39606 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the compiler's result" >&5
39607 echo "$as_me: WARNING: libss7.h: proceeding with the compiler's result" >&2;}
39608 ac_header_preproc=yes
39610 no:yes:* )
39611 { echo "$as_me:$LINENO: WARNING: libss7.h: present but cannot be compiled" >&5
39612 echo "$as_me: WARNING: libss7.h: present but cannot be compiled" >&2;}
39613 { echo "$as_me:$LINENO: WARNING: libss7.h: check for missing prerequisite headers?" >&5
39614 echo "$as_me: WARNING: libss7.h: check for missing prerequisite headers?" >&2;}
39615 { echo "$as_me:$LINENO: WARNING: libss7.h: see the Autoconf documentation" >&5
39616 echo "$as_me: WARNING: libss7.h: see the Autoconf documentation" >&2;}
39617 { echo "$as_me:$LINENO: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&5
39618 echo "$as_me: WARNING: libss7.h: section \"Present But Cannot Be Compiled\"" >&2;}
39619 { echo "$as_me:$LINENO: WARNING: libss7.h: proceeding with the preprocessor's result" >&5
39620 echo "$as_me: WARNING: libss7.h: proceeding with the preprocessor's result" >&2;}
39621 { echo "$as_me:$LINENO: WARNING: libss7.h: in the future, the compiler will take precedence" >&5
39622 echo "$as_me: WARNING: libss7.h: in the future, the compiler will take precedence" >&2;}
39623 ( cat <<\_ASBOX
39624 ## ------------------------------- ##
39625 ## Report this to www.asterisk.org ##
39626 ## ------------------------------- ##
39627 _ASBOX
39628 ) | sed "s/^/$as_me: WARNING: /" >&2
39630 esac
39631 { echo "$as_me:$LINENO: checking for libss7.h" >&5
39632 echo $ECHO_N "checking for libss7.h... $ECHO_C" >&6; }
39633 if test "${ac_cv_header_libss7_h+set}" = set; then
39634 echo $ECHO_N "(cached) $ECHO_C" >&6
39635 else
39636 ac_cv_header_libss7_h=$ac_header_preproc
39638 { echo "$as_me:$LINENO: result: $ac_cv_header_libss7_h" >&5
39639 echo "${ECHO_T}$ac_cv_header_libss7_h" >&6; }
39642 if test $ac_cv_header_libss7_h = yes; then
39643 SS7_HEADER_FOUND=1
39644 else
39645 SS7_HEADER_FOUND=0
39649 CPPFLAGS="${saved_cppflags}"
39651 if test "x${SS7_HEADER_FOUND}" = "x0" ; then
39652 SS7_LIB=""
39653 SS7_INCLUDE=""
39654 else
39655 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
39656 SS7_LIB=""
39658 PBX_SS7=1
39659 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
39661 cat >>confdefs.h <<_ACEOF
39662 #define HAVE_SS7 1
39663 _ACEOF
39666 cat >>confdefs.h <<_ACEOF
39667 #define HAVE_SS7_VERSION
39668 _ACEOF
39675 if test "${USE_PWLIB}" != "no"; then
39676 if test -n "${PWLIB_DIR}"; then
39677 PWLIBDIR="${PWLIB_DIR}"
39682 PWLIB_INCDIR=
39683 PWLIB_LIBDIR=
39684 ac_ext=cpp
39685 ac_cpp='$CXXCPP $CPPFLAGS'
39686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39690 if test "${PWLIBDIR:-unset}" != "unset" ; then
39691 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
39692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39693 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39694 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39696 echo $ECHO_N "(cached) $ECHO_C" >&6
39698 ac_res=`eval echo '${'$as_ac_Header'}'`
39699 { echo "$as_me:$LINENO: result: $ac_res" >&5
39700 echo "${ECHO_T}$ac_res" >&6; }
39701 else
39702 # Is the header compilable?
39703 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h usability" >&5
39704 echo $ECHO_N "checking ${PWLIBDIR}/version.h usability... $ECHO_C" >&6; }
39705 cat >conftest.$ac_ext <<_ACEOF
39706 /* confdefs.h. */
39707 _ACEOF
39708 cat confdefs.h >>conftest.$ac_ext
39709 cat >>conftest.$ac_ext <<_ACEOF
39710 /* end confdefs.h. */
39711 $ac_includes_default
39712 #include <${PWLIBDIR}/version.h>
39713 _ACEOF
39714 rm -f conftest.$ac_objext
39715 if { (ac_try="$ac_compile"
39716 case "(($ac_try" in
39717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39718 *) ac_try_echo=$ac_try;;
39719 esac
39720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39721 (eval "$ac_compile") 2>conftest.er1
39722 ac_status=$?
39723 grep -v '^ *+' conftest.er1 >conftest.err
39724 rm -f conftest.er1
39725 cat conftest.err >&5
39726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727 (exit $ac_status); } && {
39728 test -z "$ac_cxx_werror_flag" ||
39729 test ! -s conftest.err
39730 } && test -s conftest.$ac_objext; then
39731 ac_header_compiler=yes
39732 else
39733 echo "$as_me: failed program was:" >&5
39734 sed 's/^/| /' conftest.$ac_ext >&5
39736 ac_header_compiler=no
39739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39741 echo "${ECHO_T}$ac_header_compiler" >&6; }
39743 # Is the header present?
39744 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/version.h presence" >&5
39745 echo $ECHO_N "checking ${PWLIBDIR}/version.h presence... $ECHO_C" >&6; }
39746 cat >conftest.$ac_ext <<_ACEOF
39747 /* confdefs.h. */
39748 _ACEOF
39749 cat confdefs.h >>conftest.$ac_ext
39750 cat >>conftest.$ac_ext <<_ACEOF
39751 /* end confdefs.h. */
39752 #include <${PWLIBDIR}/version.h>
39753 _ACEOF
39754 if { (ac_try="$ac_cpp conftest.$ac_ext"
39755 case "(($ac_try" in
39756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39757 *) ac_try_echo=$ac_try;;
39758 esac
39759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39761 ac_status=$?
39762 grep -v '^ *+' conftest.er1 >conftest.err
39763 rm -f conftest.er1
39764 cat conftest.err >&5
39765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766 (exit $ac_status); } >/dev/null && {
39767 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39768 test ! -s conftest.err
39769 }; then
39770 ac_header_preproc=yes
39771 else
39772 echo "$as_me: failed program was:" >&5
39773 sed 's/^/| /' conftest.$ac_ext >&5
39775 ac_header_preproc=no
39778 rm -f conftest.err conftest.$ac_ext
39779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39780 echo "${ECHO_T}$ac_header_preproc" >&6; }
39782 # So? What about this header?
39783 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39784 yes:no: )
39785 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39786 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39787 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&5
39788 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the compiler's result" >&2;}
39789 ac_header_preproc=yes
39791 no:yes:* )
39792 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&5
39793 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: present but cannot be compiled" >&2;}
39794 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&5
39795 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: check for missing prerequisite headers?" >&2;}
39796 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&5
39797 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: see the Autoconf documentation" >&2;}
39798 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
39799 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39800 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&5
39801 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: proceeding with the preprocessor's result" >&2;}
39802 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&5
39803 echo "$as_me: WARNING: ${PWLIBDIR}/version.h: in the future, the compiler will take precedence" >&2;}
39804 ( cat <<\_ASBOX
39805 ## ------------------------------- ##
39806 ## Report this to www.asterisk.org ##
39807 ## ------------------------------- ##
39808 _ASBOX
39809 ) | sed "s/^/$as_me: WARNING: /" >&2
39811 esac
39812 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
39813 echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6; }
39814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39815 echo $ECHO_N "(cached) $ECHO_C" >&6
39816 else
39817 eval "$as_ac_Header=\$ac_header_preproc"
39819 ac_res=`eval echo '${'$as_ac_Header'}'`
39820 { echo "$as_me:$LINENO: result: $ac_res" >&5
39821 echo "${ECHO_T}$ac_res" >&6; }
39824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39825 HAS_PWLIB=1
39830 if test "${HAS_PWLIB:-unset}" = "unset" ; then
39831 if test "${OPENH323DIR:-unset}" != "unset"; then
39832 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
39833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39834 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39835 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39837 echo $ECHO_N "(cached) $ECHO_C" >&6
39839 ac_res=`eval echo '${'$as_ac_Header'}'`
39840 { echo "$as_me:$LINENO: result: $ac_res" >&5
39841 echo "${ECHO_T}$ac_res" >&6; }
39842 else
39843 # Is the header compilable?
39844 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h usability" >&5
39845 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h usability... $ECHO_C" >&6; }
39846 cat >conftest.$ac_ext <<_ACEOF
39847 /* confdefs.h. */
39848 _ACEOF
39849 cat confdefs.h >>conftest.$ac_ext
39850 cat >>conftest.$ac_ext <<_ACEOF
39851 /* end confdefs.h. */
39852 $ac_includes_default
39853 #include <${OPENH323DIR}/../pwlib/version.h>
39854 _ACEOF
39855 rm -f conftest.$ac_objext
39856 if { (ac_try="$ac_compile"
39857 case "(($ac_try" in
39858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39859 *) ac_try_echo=$ac_try;;
39860 esac
39861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39862 (eval "$ac_compile") 2>conftest.er1
39863 ac_status=$?
39864 grep -v '^ *+' conftest.er1 >conftest.err
39865 rm -f conftest.er1
39866 cat conftest.err >&5
39867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); } && {
39869 test -z "$ac_cxx_werror_flag" ||
39870 test ! -s conftest.err
39871 } && test -s conftest.$ac_objext; then
39872 ac_header_compiler=yes
39873 else
39874 echo "$as_me: failed program was:" >&5
39875 sed 's/^/| /' conftest.$ac_ext >&5
39877 ac_header_compiler=no
39880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39882 echo "${ECHO_T}$ac_header_compiler" >&6; }
39884 # Is the header present?
39885 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/../pwlib/version.h presence" >&5
39886 echo $ECHO_N "checking ${OPENH323DIR}/../pwlib/version.h presence... $ECHO_C" >&6; }
39887 cat >conftest.$ac_ext <<_ACEOF
39888 /* confdefs.h. */
39889 _ACEOF
39890 cat confdefs.h >>conftest.$ac_ext
39891 cat >>conftest.$ac_ext <<_ACEOF
39892 /* end confdefs.h. */
39893 #include <${OPENH323DIR}/../pwlib/version.h>
39894 _ACEOF
39895 if { (ac_try="$ac_cpp conftest.$ac_ext"
39896 case "(($ac_try" in
39897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39898 *) ac_try_echo=$ac_try;;
39899 esac
39900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39902 ac_status=$?
39903 grep -v '^ *+' conftest.er1 >conftest.err
39904 rm -f conftest.er1
39905 cat conftest.err >&5
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); } >/dev/null && {
39908 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
39909 test ! -s conftest.err
39910 }; then
39911 ac_header_preproc=yes
39912 else
39913 echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39916 ac_header_preproc=no
39919 rm -f conftest.err conftest.$ac_ext
39920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39921 echo "${ECHO_T}$ac_header_preproc" >&6; }
39923 # So? What about this header?
39924 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
39925 yes:no: )
39926 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
39927 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39928 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&5
39929 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the compiler's result" >&2;}
39930 ac_header_preproc=yes
39932 no:yes:* )
39933 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&5
39934 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: present but cannot be compiled" >&2;}
39935 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&5
39936 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: check for missing prerequisite headers?" >&2;}
39937 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&5
39938 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: see the Autoconf documentation" >&2;}
39939 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&5
39940 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
39941 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&5
39942 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: proceeding with the preprocessor's result" >&2;}
39943 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&5
39944 echo "$as_me: WARNING: ${OPENH323DIR}/../pwlib/version.h: in the future, the compiler will take precedence" >&2;}
39945 ( cat <<\_ASBOX
39946 ## ------------------------------- ##
39947 ## Report this to www.asterisk.org ##
39948 ## ------------------------------- ##
39949 _ASBOX
39950 ) | sed "s/^/$as_me: WARNING: /" >&2
39952 esac
39953 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
39954 echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6; }
39955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39956 echo $ECHO_N "(cached) $ECHO_C" >&6
39957 else
39958 eval "$as_ac_Header=\$ac_header_preproc"
39960 ac_res=`eval echo '${'$as_ac_Header'}'`
39961 { echo "$as_me:$LINENO: result: $ac_res" >&5
39962 echo "${ECHO_T}$ac_res" >&6; }
39965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39966 HAS_PWLIB=1
39971 if test "${HAS_PWLIB:-unset}" != "unset" ; then
39972 PWLIBDIR="${OPENH323DIR}/../pwlib"
39973 else
39974 as_ac_Header=`echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
39975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39976 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
39977 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
39978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39979 echo $ECHO_N "(cached) $ECHO_C" >&6
39981 ac_res=`eval echo '${'$as_ac_Header'}'`
39982 { echo "$as_me:$LINENO: result: $ac_res" >&5
39983 echo "${ECHO_T}$ac_res" >&6; }
39984 else
39985 # Is the header compilable?
39986 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h usability" >&5
39987 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h usability... $ECHO_C" >&6; }
39988 cat >conftest.$ac_ext <<_ACEOF
39989 /* confdefs.h. */
39990 _ACEOF
39991 cat confdefs.h >>conftest.$ac_ext
39992 cat >>conftest.$ac_ext <<_ACEOF
39993 /* end confdefs.h. */
39994 $ac_includes_default
39995 #include <${HOME}/pwlib/include/ptlib.h>
39996 _ACEOF
39997 rm -f conftest.$ac_objext
39998 if { (ac_try="$ac_compile"
39999 case "(($ac_try" in
40000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40001 *) ac_try_echo=$ac_try;;
40002 esac
40003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40004 (eval "$ac_compile") 2>conftest.er1
40005 ac_status=$?
40006 grep -v '^ *+' conftest.er1 >conftest.err
40007 rm -f conftest.er1
40008 cat conftest.err >&5
40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); } && {
40011 test -z "$ac_cxx_werror_flag" ||
40012 test ! -s conftest.err
40013 } && test -s conftest.$ac_objext; then
40014 ac_header_compiler=yes
40015 else
40016 echo "$as_me: failed program was:" >&5
40017 sed 's/^/| /' conftest.$ac_ext >&5
40019 ac_header_compiler=no
40022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40024 echo "${ECHO_T}$ac_header_compiler" >&6; }
40026 # Is the header present?
40027 { echo "$as_me:$LINENO: checking ${HOME}/pwlib/include/ptlib.h presence" >&5
40028 echo $ECHO_N "checking ${HOME}/pwlib/include/ptlib.h presence... $ECHO_C" >&6; }
40029 cat >conftest.$ac_ext <<_ACEOF
40030 /* confdefs.h. */
40031 _ACEOF
40032 cat confdefs.h >>conftest.$ac_ext
40033 cat >>conftest.$ac_ext <<_ACEOF
40034 /* end confdefs.h. */
40035 #include <${HOME}/pwlib/include/ptlib.h>
40036 _ACEOF
40037 if { (ac_try="$ac_cpp conftest.$ac_ext"
40038 case "(($ac_try" in
40039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40040 *) ac_try_echo=$ac_try;;
40041 esac
40042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40044 ac_status=$?
40045 grep -v '^ *+' conftest.er1 >conftest.err
40046 rm -f conftest.er1
40047 cat conftest.err >&5
40048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40049 (exit $ac_status); } >/dev/null && {
40050 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40051 test ! -s conftest.err
40052 }; then
40053 ac_header_preproc=yes
40054 else
40055 echo "$as_me: failed program was:" >&5
40056 sed 's/^/| /' conftest.$ac_ext >&5
40058 ac_header_preproc=no
40061 rm -f conftest.err conftest.$ac_ext
40062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40063 echo "${ECHO_T}$ac_header_preproc" >&6; }
40065 # So? What about this header?
40066 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40067 yes:no: )
40068 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40069 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40070 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&5
40071 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the compiler's result" >&2;}
40072 ac_header_preproc=yes
40074 no:yes:* )
40075 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&5
40076 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: present but cannot be compiled" >&2;}
40077 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&5
40078 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40079 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&5
40080 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: see the Autoconf documentation" >&2;}
40081 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40082 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40083 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&5
40084 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40085 { echo "$as_me:$LINENO: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&5
40086 echo "$as_me: WARNING: ${HOME}/pwlib/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40087 ( cat <<\_ASBOX
40088 ## ------------------------------- ##
40089 ## Report this to www.asterisk.org ##
40090 ## ------------------------------- ##
40091 _ASBOX
40092 ) | sed "s/^/$as_me: WARNING: /" >&2
40094 esac
40095 { echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
40096 echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6; }
40097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40098 echo $ECHO_N "(cached) $ECHO_C" >&6
40099 else
40100 eval "$as_ac_Header=\$ac_header_preproc"
40102 ac_res=`eval echo '${'$as_ac_Header'}'`
40103 { echo "$as_me:$LINENO: result: $ac_res" >&5
40104 echo "${ECHO_T}$ac_res" >&6; }
40107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40108 HAS_PWLIB=1
40112 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40113 PWLIBDIR="${HOME}/pwlib"
40114 else
40115 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40116 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40117 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40118 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40119 echo $ECHO_N "(cached) $ECHO_C" >&6
40121 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40122 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40123 else
40124 # Is the header compilable?
40125 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h usability" >&5
40126 echo $ECHO_N "checking /usr/local/include/ptlib.h usability... $ECHO_C" >&6; }
40127 cat >conftest.$ac_ext <<_ACEOF
40128 /* confdefs.h. */
40129 _ACEOF
40130 cat confdefs.h >>conftest.$ac_ext
40131 cat >>conftest.$ac_ext <<_ACEOF
40132 /* end confdefs.h. */
40133 $ac_includes_default
40134 #include </usr/local/include/ptlib.h>
40135 _ACEOF
40136 rm -f conftest.$ac_objext
40137 if { (ac_try="$ac_compile"
40138 case "(($ac_try" in
40139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40140 *) ac_try_echo=$ac_try;;
40141 esac
40142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40143 (eval "$ac_compile") 2>conftest.er1
40144 ac_status=$?
40145 grep -v '^ *+' conftest.er1 >conftest.err
40146 rm -f conftest.er1
40147 cat conftest.err >&5
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149 (exit $ac_status); } && {
40150 test -z "$ac_cxx_werror_flag" ||
40151 test ! -s conftest.err
40152 } && test -s conftest.$ac_objext; then
40153 ac_header_compiler=yes
40154 else
40155 echo "$as_me: failed program was:" >&5
40156 sed 's/^/| /' conftest.$ac_ext >&5
40158 ac_header_compiler=no
40161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40163 echo "${ECHO_T}$ac_header_compiler" >&6; }
40165 # Is the header present?
40166 { echo "$as_me:$LINENO: checking /usr/local/include/ptlib.h presence" >&5
40167 echo $ECHO_N "checking /usr/local/include/ptlib.h presence... $ECHO_C" >&6; }
40168 cat >conftest.$ac_ext <<_ACEOF
40169 /* confdefs.h. */
40170 _ACEOF
40171 cat confdefs.h >>conftest.$ac_ext
40172 cat >>conftest.$ac_ext <<_ACEOF
40173 /* end confdefs.h. */
40174 #include </usr/local/include/ptlib.h>
40175 _ACEOF
40176 if { (ac_try="$ac_cpp conftest.$ac_ext"
40177 case "(($ac_try" in
40178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40179 *) ac_try_echo=$ac_try;;
40180 esac
40181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40183 ac_status=$?
40184 grep -v '^ *+' conftest.er1 >conftest.err
40185 rm -f conftest.er1
40186 cat conftest.err >&5
40187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40188 (exit $ac_status); } >/dev/null && {
40189 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40190 test ! -s conftest.err
40191 }; then
40192 ac_header_preproc=yes
40193 else
40194 echo "$as_me: failed program was:" >&5
40195 sed 's/^/| /' conftest.$ac_ext >&5
40197 ac_header_preproc=no
40200 rm -f conftest.err conftest.$ac_ext
40201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40202 echo "${ECHO_T}$ac_header_preproc" >&6; }
40204 # So? What about this header?
40205 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40206 yes:no: )
40207 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40208 echo "$as_me: WARNING: /usr/local/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40209 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&5
40210 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the compiler's result" >&2;}
40211 ac_header_preproc=yes
40213 no:yes:* )
40214 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&5
40215 echo "$as_me: WARNING: /usr/local/include/ptlib.h: present but cannot be compiled" >&2;}
40216 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&5
40217 echo "$as_me: WARNING: /usr/local/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40218 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&5
40219 echo "$as_me: WARNING: /usr/local/include/ptlib.h: see the Autoconf documentation" >&2;}
40220 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40221 echo "$as_me: WARNING: /usr/local/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40222 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&5
40223 echo "$as_me: WARNING: /usr/local/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40224 { echo "$as_me:$LINENO: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&5
40225 echo "$as_me: WARNING: /usr/local/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40226 ( cat <<\_ASBOX
40227 ## ------------------------------- ##
40228 ## Report this to www.asterisk.org ##
40229 ## ------------------------------- ##
40230 _ASBOX
40231 ) | sed "s/^/$as_me: WARNING: /" >&2
40233 esac
40234 { echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
40235 echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6; }
40236 if test "${ac_cv_header__usr_local_include_ptlib_h+set}" = set; then
40237 echo $ECHO_N "(cached) $ECHO_C" >&6
40238 else
40239 ac_cv_header__usr_local_include_ptlib_h=$ac_header_preproc
40241 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_ptlib_h" >&5
40242 echo "${ECHO_T}$ac_cv_header__usr_local_include_ptlib_h" >&6; }
40245 if test $ac_cv_header__usr_local_include_ptlib_h = yes; then
40246 HAS_PWLIB=1
40250 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40251 # Extract the first word of "ptlib-config", so it can be a program name with args.
40252 set dummy ptlib-config; ac_word=$2
40253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40255 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40256 echo $ECHO_N "(cached) $ECHO_C" >&6
40257 else
40258 case $PTLIB_CONFIG in
40259 [\\/]* | ?:[\\/]*)
40260 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40264 for as_dir in /usr/local/bin
40266 IFS=$as_save_IFS
40267 test -z "$as_dir" && as_dir=.
40268 for ac_exec_ext in '' $ac_executable_extensions; do
40269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40270 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40272 break 2
40274 done
40275 done
40276 IFS=$as_save_IFS
40279 esac
40281 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40282 if test -n "$PTLIB_CONFIG"; then
40283 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40284 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40285 else
40286 { echo "$as_me:$LINENO: result: no" >&5
40287 echo "${ECHO_T}no" >&6; }
40291 if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
40292 # Extract the first word of "ptlib-config", so it can be a program name with args.
40293 set dummy ptlib-config; ac_word=$2
40294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40296 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40297 echo $ECHO_N "(cached) $ECHO_C" >&6
40298 else
40299 case $PTLIB_CONFIG in
40300 [\\/]* | ?:[\\/]*)
40301 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40305 for as_dir in /usr/local/share/pwlib/make
40307 IFS=$as_save_IFS
40308 test -z "$as_dir" && as_dir=.
40309 for ac_exec_ext in '' $ac_executable_extensions; do
40310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40311 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40313 break 2
40315 done
40316 done
40317 IFS=$as_save_IFS
40320 esac
40322 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40323 if test -n "$PTLIB_CONFIG"; then
40324 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40325 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40326 else
40327 { echo "$as_me:$LINENO: result: no" >&5
40328 echo "${ECHO_T}no" >&6; }
40333 PWLIB_INCDIR="/usr/local/include"
40334 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40335 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40336 if test "x$LIB64" != "x"; then
40337 PWLIB_LIBDIR="/usr/local/lib64"
40338 else
40339 PWLIB_LIBDIR="/usr/local/lib"
40342 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40343 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40344 else
40345 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40346 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40347 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40348 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40349 echo $ECHO_N "(cached) $ECHO_C" >&6
40351 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40352 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40353 else
40354 # Is the header compilable?
40355 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h usability" >&5
40356 echo $ECHO_N "checking /usr/include/ptlib.h usability... $ECHO_C" >&6; }
40357 cat >conftest.$ac_ext <<_ACEOF
40358 /* confdefs.h. */
40359 _ACEOF
40360 cat confdefs.h >>conftest.$ac_ext
40361 cat >>conftest.$ac_ext <<_ACEOF
40362 /* end confdefs.h. */
40363 $ac_includes_default
40364 #include </usr/include/ptlib.h>
40365 _ACEOF
40366 rm -f conftest.$ac_objext
40367 if { (ac_try="$ac_compile"
40368 case "(($ac_try" in
40369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40370 *) ac_try_echo=$ac_try;;
40371 esac
40372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40373 (eval "$ac_compile") 2>conftest.er1
40374 ac_status=$?
40375 grep -v '^ *+' conftest.er1 >conftest.err
40376 rm -f conftest.er1
40377 cat conftest.err >&5
40378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40379 (exit $ac_status); } && {
40380 test -z "$ac_cxx_werror_flag" ||
40381 test ! -s conftest.err
40382 } && test -s conftest.$ac_objext; then
40383 ac_header_compiler=yes
40384 else
40385 echo "$as_me: failed program was:" >&5
40386 sed 's/^/| /' conftest.$ac_ext >&5
40388 ac_header_compiler=no
40391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40393 echo "${ECHO_T}$ac_header_compiler" >&6; }
40395 # Is the header present?
40396 { echo "$as_me:$LINENO: checking /usr/include/ptlib.h presence" >&5
40397 echo $ECHO_N "checking /usr/include/ptlib.h presence... $ECHO_C" >&6; }
40398 cat >conftest.$ac_ext <<_ACEOF
40399 /* confdefs.h. */
40400 _ACEOF
40401 cat confdefs.h >>conftest.$ac_ext
40402 cat >>conftest.$ac_ext <<_ACEOF
40403 /* end confdefs.h. */
40404 #include </usr/include/ptlib.h>
40405 _ACEOF
40406 if { (ac_try="$ac_cpp conftest.$ac_ext"
40407 case "(($ac_try" in
40408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40409 *) ac_try_echo=$ac_try;;
40410 esac
40411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40413 ac_status=$?
40414 grep -v '^ *+' conftest.er1 >conftest.err
40415 rm -f conftest.er1
40416 cat conftest.err >&5
40417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418 (exit $ac_status); } >/dev/null && {
40419 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40420 test ! -s conftest.err
40421 }; then
40422 ac_header_preproc=yes
40423 else
40424 echo "$as_me: failed program was:" >&5
40425 sed 's/^/| /' conftest.$ac_ext >&5
40427 ac_header_preproc=no
40430 rm -f conftest.err conftest.$ac_ext
40431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40432 echo "${ECHO_T}$ac_header_preproc" >&6; }
40434 # So? What about this header?
40435 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40436 yes:no: )
40437 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40438 echo "$as_me: WARNING: /usr/include/ptlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40439 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&5
40440 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the compiler's result" >&2;}
40441 ac_header_preproc=yes
40443 no:yes:* )
40444 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&5
40445 echo "$as_me: WARNING: /usr/include/ptlib.h: present but cannot be compiled" >&2;}
40446 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&5
40447 echo "$as_me: WARNING: /usr/include/ptlib.h: check for missing prerequisite headers?" >&2;}
40448 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&5
40449 echo "$as_me: WARNING: /usr/include/ptlib.h: see the Autoconf documentation" >&2;}
40450 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&5
40451 echo "$as_me: WARNING: /usr/include/ptlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40452 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&5
40453 echo "$as_me: WARNING: /usr/include/ptlib.h: proceeding with the preprocessor's result" >&2;}
40454 { echo "$as_me:$LINENO: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&5
40455 echo "$as_me: WARNING: /usr/include/ptlib.h: in the future, the compiler will take precedence" >&2;}
40456 ( cat <<\_ASBOX
40457 ## ------------------------------- ##
40458 ## Report this to www.asterisk.org ##
40459 ## ------------------------------- ##
40460 _ASBOX
40461 ) | sed "s/^/$as_me: WARNING: /" >&2
40463 esac
40464 { echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
40465 echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6; }
40466 if test "${ac_cv_header__usr_include_ptlib_h+set}" = set; then
40467 echo $ECHO_N "(cached) $ECHO_C" >&6
40468 else
40469 ac_cv_header__usr_include_ptlib_h=$ac_header_preproc
40471 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_ptlib_h" >&5
40472 echo "${ECHO_T}$ac_cv_header__usr_include_ptlib_h" >&6; }
40475 if test $ac_cv_header__usr_include_ptlib_h = yes; then
40476 HAS_PWLIB=1
40480 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40481 # Extract the first word of "ptlib-config", so it can be a program name with args.
40482 set dummy ptlib-config; ac_word=$2
40483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40485 if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
40486 echo $ECHO_N "(cached) $ECHO_C" >&6
40487 else
40488 case $PTLIB_CONFIG in
40489 [\\/]* | ?:[\\/]*)
40490 ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
40493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40494 for as_dir in /usr/share/pwlib/make
40496 IFS=$as_save_IFS
40497 test -z "$as_dir" && as_dir=.
40498 for ac_exec_ext in '' $ac_executable_extensions; do
40499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40500 ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40502 break 2
40504 done
40505 done
40506 IFS=$as_save_IFS
40509 esac
40511 PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
40512 if test -n "$PTLIB_CONFIG"; then
40513 { echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
40514 echo "${ECHO_T}$PTLIB_CONFIG" >&6; }
40515 else
40516 { echo "$as_me:$LINENO: result: no" >&5
40517 echo "${ECHO_T}no" >&6; }
40521 PWLIB_INCDIR="/usr/include"
40522 PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir`
40523 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40524 if test "x$LIB64" != "x"; then
40525 PWLIB_LIBDIR="/usr/lib64"
40526 else
40527 PWLIB_LIBDIR="/usr/lib"
40530 PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
40531 PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
40538 #if test "${HAS_PWLIB:-unset}" = "unset" ; then
40539 # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
40540 # exit
40543 if test "${HAS_PWLIB:-unset}" != "unset" ; then
40544 if test "${PWLIBDIR:-unset}" = "unset" ; then
40545 if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
40546 PWLIBDIR=`$PTLIB_CONFIG --prefix`
40547 else
40548 echo "Cannot find ptlib-config - please install and try again"
40549 exit
40553 if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
40554 PWLIBDIR="/usr/share/pwlib"
40555 PWLIB_INCDIR="/usr/include"
40556 if test "x$LIB64" != "x"; then
40557 PWLIB_LIBDIR="/usr/lib64"
40558 else
40559 PWLIB_LIBDIR="/usr/lib"
40562 if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
40563 PWLIBDIR="/usr/local/share/pwlib"
40564 PWLIB_INCDIR="/usr/local/include"
40565 if test "x$LIB64" != "x"; then
40566 PWLIB_LIBDIR="/usr/local/lib64"
40567 else
40568 PWLIB_LIBDIR="/usr/local/lib"
40572 if test "${PWLIB_INCDIR:-unset}" = "unset"; then
40573 PWLIB_INCDIR="${PWLIBDIR}/include"
40575 if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
40576 PWLIB_LIBDIR="${PWLIBDIR}/lib"
40583 ac_ext=c
40584 ac_cpp='$CPP $CPPFLAGS'
40585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40591 if test "${HAS_PWLIB:-unset}" != "unset"; then
40592 PWLIB_VERSION=`grep "PWLIB_VERSION" ${PWLIB_INCDIR}/ptbuildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
40593 PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
40594 PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
40595 PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
40596 let PWLIB_VER=${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}
40597 let PWLIB_REQ=1*10000+9*100+2
40599 { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
40600 echo $ECHO_N "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
40601 if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
40602 { echo "$as_me:$LINENO: result: no" >&5
40603 echo "${ECHO_T}no" >&6; }
40604 unset HAS_PWLIB
40605 else
40606 { echo "$as_me:$LINENO: result: yes" >&5
40607 echo "${ECHO_T}yes" >&6; }
40612 if test "${HAS_PWLIB:-unset}" != "unset"; then
40614 PWLIB_OSTYPE=
40615 case "$host_os" in
40616 linux*) PWLIB_OSTYPE=linux ;
40618 freebsd* ) PWLIB_OSTYPE=FreeBSD ;
40620 openbsd* ) PWLIB_OSTYPE=OpenBSD ;
40621 ENDLDLIBS="-lossaudio" ;
40623 netbsd* ) PWLIB_OSTYPE=NetBSD ;
40624 ENDLDLIBS="-lossaudio" ;
40626 solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
40628 darwin* ) PWLIB_OSTYPE=Darwin ;
40630 beos*) PWLIB_OSTYPE=beos ;
40631 STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
40633 cygwin*) PWLIB_OSTYPE=cygwin ;
40635 mingw*) PWLIB_OSTYPE=mingw ;
40636 STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
40637 ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
40639 * ) PWLIB_OSTYPE="$host_os" ;
40640 { echo "$as_me:$LINENO: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
40641 echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
40643 esac
40645 PWLIB_MACHTYPE=
40646 case "$host_cpu" in
40647 x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
40650 x86_64) PWLIB_MACHTYPE=x86_64 ;
40651 P_64BIT=1 ;
40652 LIB64=1 ;
40655 alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
40656 P_64BIT=1 ;
40659 sparc ) PWLIB_MACHTYPE=sparc ;
40662 powerpc ) PWLIB_MACHTYPE=ppc ;
40665 ppc ) PWLIB_MACHTYPE=ppc ;
40668 powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
40669 P_64BIT=1 ;
40670 LIB64=1 ;
40673 ppc64 ) PWLIB_MACHTYPE=ppc64 ;
40674 P_64BIT=1 ;
40675 LIB64=1 ;
40678 ia64) PWLIB_MACHTYPE=ia64 ;
40679 P_64BIT=1 ;
40682 s390x) PWLIB_MACHTYPE=s390x ;
40683 P_64BIT=1 ;
40684 LIB64=1 ;
40687 s390) PWLIB_MACHTYPE=s390 ;
40690 * ) PWLIB_MACHTYPE="$host_cpu";
40691 { echo "$as_me:$LINENO: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
40692 echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
40693 esac
40695 PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
40700 PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
40703 if test "${HAS_PWLIB:-unset}" != "unset"; then
40704 { echo "$as_me:$LINENO: checking PWLib installation validity" >&5
40705 echo $ECHO_N "checking PWLib installation validity... $ECHO_C" >&6; }
40707 saved_cppflags="${CPPFLAGS}"
40708 saved_libs="${LIBS}"
40709 if test "${PWLIB_LIB:-unset}" != "unset"; then
40710 LIBS="${LIBS} ${PWLIB_LIB} "
40711 else
40712 LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
40714 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
40716 ac_ext=cpp
40717 ac_cpp='$CXXCPP $CPPFLAGS'
40718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40723 cat >conftest.$ac_ext <<_ACEOF
40724 /* confdefs.h. */
40725 _ACEOF
40726 cat confdefs.h >>conftest.$ac_ext
40727 cat >>conftest.$ac_ext <<_ACEOF
40728 /* end confdefs.h. */
40729 #include "ptlib.h"
40731 main ()
40733 BOOL q = PTime::IsDaylightSavings();
40735 return 0;
40737 _ACEOF
40738 rm -f conftest.$ac_objext conftest$ac_exeext
40739 if { (ac_try="$ac_link"
40740 case "(($ac_try" in
40741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40742 *) ac_try_echo=$ac_try;;
40743 esac
40744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40745 (eval "$ac_link") 2>conftest.er1
40746 ac_status=$?
40747 grep -v '^ *+' conftest.er1 >conftest.err
40748 rm -f conftest.er1
40749 cat conftest.err >&5
40750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751 (exit $ac_status); } && {
40752 test -z "$ac_cxx_werror_flag" ||
40753 test ! -s conftest.err
40754 } && test -s conftest$ac_exeext &&
40755 $as_test_x conftest$ac_exeext; then
40756 { echo "$as_me:$LINENO: result: yes" >&5
40757 echo "${ECHO_T}yes" >&6; }
40758 ac_cv_lib_PWLIB="yes"
40760 else
40761 echo "$as_me: failed program was:" >&5
40762 sed 's/^/| /' conftest.$ac_ext >&5
40764 { echo "$as_me:$LINENO: result: no" >&5
40765 echo "${ECHO_T}no" >&6; }
40766 ac_cv_lib_PWLIB="no"
40771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40772 conftest$ac_exeext conftest.$ac_ext
40774 ac_ext=c
40775 ac_cpp='$CPP $CPPFLAGS'
40776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40781 LIBS="${saved_libs}"
40782 CPPFLAGS="${saved_cppflags}"
40784 if test "${ac_cv_lib_PWLIB}" = "yes"; then
40785 if test "${PWLIB_LIB:-undef}" = "undef"; then
40786 if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
40787 PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
40788 else
40789 PWLIB_LIB="-l${PLATFORM_PWLIB}"
40792 if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
40793 PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
40795 PBX_PWLIB=1
40797 cat >>confdefs.h <<\_ACEOF
40798 #define HAVE_PWLIB 1
40799 _ACEOF
40807 if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
40808 if test -n "${OPENH323_DIR}"; then
40809 OPENH323DIR="${OPENH323_DIR}"
40812 OPENH323_INCDIR=
40813 OPENH323_LIBDIR=
40814 ac_ext=cpp
40815 ac_cpp='$CXXCPP $CPPFLAGS'
40816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40820 if test "${OPENH323DIR:-unset}" != "unset" ; then
40821 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
40822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40823 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40824 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40826 echo $ECHO_N "(cached) $ECHO_C" >&6
40828 ac_res=`eval echo '${'$as_ac_Header'}'`
40829 { echo "$as_me:$LINENO: result: $ac_res" >&5
40830 echo "${ECHO_T}$ac_res" >&6; }
40831 else
40832 # Is the header compilable?
40833 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h usability" >&5
40834 echo $ECHO_N "checking ${OPENH323DIR}/version.h usability... $ECHO_C" >&6; }
40835 cat >conftest.$ac_ext <<_ACEOF
40836 /* confdefs.h. */
40837 _ACEOF
40838 cat confdefs.h >>conftest.$ac_ext
40839 cat >>conftest.$ac_ext <<_ACEOF
40840 /* end confdefs.h. */
40841 $ac_includes_default
40842 #include <${OPENH323DIR}/version.h>
40843 _ACEOF
40844 rm -f conftest.$ac_objext
40845 if { (ac_try="$ac_compile"
40846 case "(($ac_try" in
40847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40848 *) ac_try_echo=$ac_try;;
40849 esac
40850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40851 (eval "$ac_compile") 2>conftest.er1
40852 ac_status=$?
40853 grep -v '^ *+' conftest.er1 >conftest.err
40854 rm -f conftest.er1
40855 cat conftest.err >&5
40856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857 (exit $ac_status); } && {
40858 test -z "$ac_cxx_werror_flag" ||
40859 test ! -s conftest.err
40860 } && test -s conftest.$ac_objext; then
40861 ac_header_compiler=yes
40862 else
40863 echo "$as_me: failed program was:" >&5
40864 sed 's/^/| /' conftest.$ac_ext >&5
40866 ac_header_compiler=no
40869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40871 echo "${ECHO_T}$ac_header_compiler" >&6; }
40873 # Is the header present?
40874 { echo "$as_me:$LINENO: checking ${OPENH323DIR}/version.h presence" >&5
40875 echo $ECHO_N "checking ${OPENH323DIR}/version.h presence... $ECHO_C" >&6; }
40876 cat >conftest.$ac_ext <<_ACEOF
40877 /* confdefs.h. */
40878 _ACEOF
40879 cat confdefs.h >>conftest.$ac_ext
40880 cat >>conftest.$ac_ext <<_ACEOF
40881 /* end confdefs.h. */
40882 #include <${OPENH323DIR}/version.h>
40883 _ACEOF
40884 if { (ac_try="$ac_cpp conftest.$ac_ext"
40885 case "(($ac_try" in
40886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40887 *) ac_try_echo=$ac_try;;
40888 esac
40889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40891 ac_status=$?
40892 grep -v '^ *+' conftest.er1 >conftest.err
40893 rm -f conftest.er1
40894 cat conftest.err >&5
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); } >/dev/null && {
40897 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40898 test ! -s conftest.err
40899 }; then
40900 ac_header_preproc=yes
40901 else
40902 echo "$as_me: failed program was:" >&5
40903 sed 's/^/| /' conftest.$ac_ext >&5
40905 ac_header_preproc=no
40908 rm -f conftest.err conftest.$ac_ext
40909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40910 echo "${ECHO_T}$ac_header_preproc" >&6; }
40912 # So? What about this header?
40913 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40914 yes:no: )
40915 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
40916 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40917 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&5
40918 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the compiler's result" >&2;}
40919 ac_header_preproc=yes
40921 no:yes:* )
40922 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&5
40923 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: present but cannot be compiled" >&2;}
40924 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&5
40925 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: check for missing prerequisite headers?" >&2;}
40926 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&5
40927 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: see the Autoconf documentation" >&2;}
40928 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&5
40929 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
40930 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&5
40931 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: proceeding with the preprocessor's result" >&2;}
40932 { echo "$as_me:$LINENO: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&5
40933 echo "$as_me: WARNING: ${OPENH323DIR}/version.h: in the future, the compiler will take precedence" >&2;}
40934 ( cat <<\_ASBOX
40935 ## ------------------------------- ##
40936 ## Report this to www.asterisk.org ##
40937 ## ------------------------------- ##
40938 _ASBOX
40939 ) | sed "s/^/$as_me: WARNING: /" >&2
40941 esac
40942 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/version.h" >&5
40943 echo $ECHO_N "checking for ${OPENH323DIR}/version.h... $ECHO_C" >&6; }
40944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40945 echo $ECHO_N "(cached) $ECHO_C" >&6
40946 else
40947 eval "$as_ac_Header=\$ac_header_preproc"
40949 ac_res=`eval echo '${'$as_ac_Header'}'`
40950 { echo "$as_me:$LINENO: result: $ac_res" >&5
40951 echo "${ECHO_T}$ac_res" >&6; }
40954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40955 HAS_OPENH323=1
40960 if test "${HAS_OPENH323:-unset}" = "unset" ; then
40961 as_ac_Header=`echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
40962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40963 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
40964 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
40965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40966 echo $ECHO_N "(cached) $ECHO_C" >&6
40968 ac_res=`eval echo '${'$as_ac_Header'}'`
40969 { echo "$as_me:$LINENO: result: $ac_res" >&5
40970 echo "${ECHO_T}$ac_res" >&6; }
40971 else
40972 # Is the header compilable?
40973 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h usability" >&5
40974 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h usability... $ECHO_C" >&6; }
40975 cat >conftest.$ac_ext <<_ACEOF
40976 /* confdefs.h. */
40977 _ACEOF
40978 cat confdefs.h >>conftest.$ac_ext
40979 cat >>conftest.$ac_ext <<_ACEOF
40980 /* end confdefs.h. */
40981 $ac_includes_default
40982 #include <${PWLIBDIR}/../openh323/version.h>
40983 _ACEOF
40984 rm -f conftest.$ac_objext
40985 if { (ac_try="$ac_compile"
40986 case "(($ac_try" in
40987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40988 *) ac_try_echo=$ac_try;;
40989 esac
40990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40991 (eval "$ac_compile") 2>conftest.er1
40992 ac_status=$?
40993 grep -v '^ *+' conftest.er1 >conftest.err
40994 rm -f conftest.er1
40995 cat conftest.err >&5
40996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40997 (exit $ac_status); } && {
40998 test -z "$ac_cxx_werror_flag" ||
40999 test ! -s conftest.err
41000 } && test -s conftest.$ac_objext; then
41001 ac_header_compiler=yes
41002 else
41003 echo "$as_me: failed program was:" >&5
41004 sed 's/^/| /' conftest.$ac_ext >&5
41006 ac_header_compiler=no
41009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41011 echo "${ECHO_T}$ac_header_compiler" >&6; }
41013 # Is the header present?
41014 { echo "$as_me:$LINENO: checking ${PWLIBDIR}/../openh323/version.h presence" >&5
41015 echo $ECHO_N "checking ${PWLIBDIR}/../openh323/version.h presence... $ECHO_C" >&6; }
41016 cat >conftest.$ac_ext <<_ACEOF
41017 /* confdefs.h. */
41018 _ACEOF
41019 cat confdefs.h >>conftest.$ac_ext
41020 cat >>conftest.$ac_ext <<_ACEOF
41021 /* end confdefs.h. */
41022 #include <${PWLIBDIR}/../openh323/version.h>
41023 _ACEOF
41024 if { (ac_try="$ac_cpp conftest.$ac_ext"
41025 case "(($ac_try" in
41026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41027 *) ac_try_echo=$ac_try;;
41028 esac
41029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41031 ac_status=$?
41032 grep -v '^ *+' conftest.er1 >conftest.err
41033 rm -f conftest.er1
41034 cat conftest.err >&5
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); } >/dev/null && {
41037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41038 test ! -s conftest.err
41039 }; then
41040 ac_header_preproc=yes
41041 else
41042 echo "$as_me: failed program was:" >&5
41043 sed 's/^/| /' conftest.$ac_ext >&5
41045 ac_header_preproc=no
41048 rm -f conftest.err conftest.$ac_ext
41049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41050 echo "${ECHO_T}$ac_header_preproc" >&6; }
41052 # So? What about this header?
41053 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41054 yes:no: )
41055 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
41056 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41057 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&5
41058 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the compiler's result" >&2;}
41059 ac_header_preproc=yes
41061 no:yes:* )
41062 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&5
41063 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: present but cannot be compiled" >&2;}
41064 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&5
41065 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: check for missing prerequisite headers?" >&2;}
41066 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&5
41067 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: see the Autoconf documentation" >&2;}
41068 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&5
41069 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
41070 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&5
41071 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: proceeding with the preprocessor's result" >&2;}
41072 { echo "$as_me:$LINENO: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&5
41073 echo "$as_me: WARNING: ${PWLIBDIR}/../openh323/version.h: in the future, the compiler will take precedence" >&2;}
41074 ( cat <<\_ASBOX
41075 ## ------------------------------- ##
41076 ## Report this to www.asterisk.org ##
41077 ## ------------------------------- ##
41078 _ASBOX
41079 ) | sed "s/^/$as_me: WARNING: /" >&2
41081 esac
41082 { echo "$as_me:$LINENO: checking for ${PWLIBDIR}/../openh323/version.h" >&5
41083 echo $ECHO_N "checking for ${PWLIBDIR}/../openh323/version.h... $ECHO_C" >&6; }
41084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41085 echo $ECHO_N "(cached) $ECHO_C" >&6
41086 else
41087 eval "$as_ac_Header=\$ac_header_preproc"
41089 ac_res=`eval echo '${'$as_ac_Header'}'`
41090 { echo "$as_me:$LINENO: result: $ac_res" >&5
41091 echo "${ECHO_T}$ac_res" >&6; }
41094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41095 OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
41099 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41100 OPENH323DIR="${PWLIBDIR}/../openh323"
41101 saved_cppflags="${CPPFLAGS}"
41102 CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
41103 as_ac_Header=`echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
41104 { echo "$as_me:$LINENO: checking for ${OPENH323DIR}/include/h323.h" >&5
41105 echo $ECHO_N "checking for ${OPENH323DIR}/include/h323.h... $ECHO_C" >&6; }
41106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41107 echo $ECHO_N "(cached) $ECHO_C" >&6
41108 else
41109 cat >conftest.$ac_ext <<_ACEOF
41110 /* confdefs.h. */
41111 _ACEOF
41112 cat confdefs.h >>conftest.$ac_ext
41113 cat >>conftest.$ac_ext <<_ACEOF
41114 /* end confdefs.h. */
41115 #include <ptlib.h>
41117 #include <${OPENH323DIR}/include/h323.h>
41118 _ACEOF
41119 rm -f conftest.$ac_objext
41120 if { (ac_try="$ac_compile"
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_compile") 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); } && {
41133 test -z "$ac_cxx_werror_flag" ||
41134 test ! -s conftest.err
41135 } && test -s conftest.$ac_objext; then
41136 eval "$as_ac_Header=yes"
41137 else
41138 echo "$as_me: failed program was:" >&5
41139 sed 's/^/| /' conftest.$ac_ext >&5
41141 eval "$as_ac_Header=no"
41144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41146 ac_res=`eval echo '${'$as_ac_Header'}'`
41147 { echo "$as_me:$LINENO: result: $ac_res" >&5
41148 echo "${ECHO_T}$ac_res" >&6; }
41149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41151 else
41152 OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
41156 CPPFLAGS="${saved_cppflags}"
41157 else
41158 saved_cppflags="${CPPFLAGS}"
41159 CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
41160 as_ac_Header=`echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
41161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41162 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41163 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41165 echo $ECHO_N "(cached) $ECHO_C" >&6
41167 ac_res=`eval echo '${'$as_ac_Header'}'`
41168 { echo "$as_me:$LINENO: result: $ac_res" >&5
41169 echo "${ECHO_T}$ac_res" >&6; }
41170 else
41171 # Is the header compilable?
41172 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h usability" >&5
41173 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h usability... $ECHO_C" >&6; }
41174 cat >conftest.$ac_ext <<_ACEOF
41175 /* confdefs.h. */
41176 _ACEOF
41177 cat confdefs.h >>conftest.$ac_ext
41178 cat >>conftest.$ac_ext <<_ACEOF
41179 /* end confdefs.h. */
41180 $ac_includes_default
41181 #include <${HOME}/openh323/include/h323.h>
41182 _ACEOF
41183 rm -f conftest.$ac_objext
41184 if { (ac_try="$ac_compile"
41185 case "(($ac_try" in
41186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41187 *) ac_try_echo=$ac_try;;
41188 esac
41189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41190 (eval "$ac_compile") 2>conftest.er1
41191 ac_status=$?
41192 grep -v '^ *+' conftest.er1 >conftest.err
41193 rm -f conftest.er1
41194 cat conftest.err >&5
41195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196 (exit $ac_status); } && {
41197 test -z "$ac_cxx_werror_flag" ||
41198 test ! -s conftest.err
41199 } && test -s conftest.$ac_objext; then
41200 ac_header_compiler=yes
41201 else
41202 echo "$as_me: failed program was:" >&5
41203 sed 's/^/| /' conftest.$ac_ext >&5
41205 ac_header_compiler=no
41208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41210 echo "${ECHO_T}$ac_header_compiler" >&6; }
41212 # Is the header present?
41213 { echo "$as_me:$LINENO: checking ${HOME}/openh323/include/h323.h presence" >&5
41214 echo $ECHO_N "checking ${HOME}/openh323/include/h323.h presence... $ECHO_C" >&6; }
41215 cat >conftest.$ac_ext <<_ACEOF
41216 /* confdefs.h. */
41217 _ACEOF
41218 cat confdefs.h >>conftest.$ac_ext
41219 cat >>conftest.$ac_ext <<_ACEOF
41220 /* end confdefs.h. */
41221 #include <${HOME}/openh323/include/h323.h>
41222 _ACEOF
41223 if { (ac_try="$ac_cpp conftest.$ac_ext"
41224 case "(($ac_try" in
41225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41226 *) ac_try_echo=$ac_try;;
41227 esac
41228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41230 ac_status=$?
41231 grep -v '^ *+' conftest.er1 >conftest.err
41232 rm -f conftest.er1
41233 cat conftest.err >&5
41234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41235 (exit $ac_status); } >/dev/null && {
41236 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41237 test ! -s conftest.err
41238 }; then
41239 ac_header_preproc=yes
41240 else
41241 echo "$as_me: failed program was:" >&5
41242 sed 's/^/| /' conftest.$ac_ext >&5
41244 ac_header_preproc=no
41247 rm -f conftest.err conftest.$ac_ext
41248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41249 echo "${ECHO_T}$ac_header_preproc" >&6; }
41251 # So? What about this header?
41252 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41253 yes:no: )
41254 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41255 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41256 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&5
41257 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the compiler's result" >&2;}
41258 ac_header_preproc=yes
41260 no:yes:* )
41261 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&5
41262 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: present but cannot be compiled" >&2;}
41263 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&5
41264 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: check for missing prerequisite headers?" >&2;}
41265 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&5
41266 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: see the Autoconf documentation" >&2;}
41267 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41268 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41269 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&5
41270 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: proceeding with the preprocessor's result" >&2;}
41271 { echo "$as_me:$LINENO: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&5
41272 echo "$as_me: WARNING: ${HOME}/openh323/include/h323.h: in the future, the compiler will take precedence" >&2;}
41273 ( cat <<\_ASBOX
41274 ## ------------------------------- ##
41275 ## Report this to www.asterisk.org ##
41276 ## ------------------------------- ##
41277 _ASBOX
41278 ) | sed "s/^/$as_me: WARNING: /" >&2
41280 esac
41281 { echo "$as_me:$LINENO: checking for ${HOME}/openh323/include/h323.h" >&5
41282 echo $ECHO_N "checking for ${HOME}/openh323/include/h323.h... $ECHO_C" >&6; }
41283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41284 echo $ECHO_N "(cached) $ECHO_C" >&6
41285 else
41286 eval "$as_ac_Header=\$ac_header_preproc"
41288 ac_res=`eval echo '${'$as_ac_Header'}'`
41289 { echo "$as_me:$LINENO: result: $ac_res" >&5
41290 echo "${ECHO_T}$ac_res" >&6; }
41293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41294 HAS_OPENH323=1
41298 CPPFLAGS="${saved_cppflags}"
41299 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41300 OPENH323DIR="${HOME}/openh323"
41301 else
41302 saved_cppflags="${CPPFLAGS}"
41303 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
41304 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41305 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41306 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41307 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41308 echo $ECHO_N "(cached) $ECHO_C" >&6
41310 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41311 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41312 else
41313 # Is the header compilable?
41314 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h usability" >&5
41315 echo $ECHO_N "checking /usr/local/include/openh323/h323.h usability... $ECHO_C" >&6; }
41316 cat >conftest.$ac_ext <<_ACEOF
41317 /* confdefs.h. */
41318 _ACEOF
41319 cat confdefs.h >>conftest.$ac_ext
41320 cat >>conftest.$ac_ext <<_ACEOF
41321 /* end confdefs.h. */
41322 $ac_includes_default
41323 #include </usr/local/include/openh323/h323.h>
41324 _ACEOF
41325 rm -f conftest.$ac_objext
41326 if { (ac_try="$ac_compile"
41327 case "(($ac_try" in
41328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41329 *) ac_try_echo=$ac_try;;
41330 esac
41331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41332 (eval "$ac_compile") 2>conftest.er1
41333 ac_status=$?
41334 grep -v '^ *+' conftest.er1 >conftest.err
41335 rm -f conftest.er1
41336 cat conftest.err >&5
41337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338 (exit $ac_status); } && {
41339 test -z "$ac_cxx_werror_flag" ||
41340 test ! -s conftest.err
41341 } && test -s conftest.$ac_objext; then
41342 ac_header_compiler=yes
41343 else
41344 echo "$as_me: failed program was:" >&5
41345 sed 's/^/| /' conftest.$ac_ext >&5
41347 ac_header_compiler=no
41350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41352 echo "${ECHO_T}$ac_header_compiler" >&6; }
41354 # Is the header present?
41355 { echo "$as_me:$LINENO: checking /usr/local/include/openh323/h323.h presence" >&5
41356 echo $ECHO_N "checking /usr/local/include/openh323/h323.h presence... $ECHO_C" >&6; }
41357 cat >conftest.$ac_ext <<_ACEOF
41358 /* confdefs.h. */
41359 _ACEOF
41360 cat confdefs.h >>conftest.$ac_ext
41361 cat >>conftest.$ac_ext <<_ACEOF
41362 /* end confdefs.h. */
41363 #include </usr/local/include/openh323/h323.h>
41364 _ACEOF
41365 if { (ac_try="$ac_cpp conftest.$ac_ext"
41366 case "(($ac_try" in
41367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41368 *) ac_try_echo=$ac_try;;
41369 esac
41370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41372 ac_status=$?
41373 grep -v '^ *+' conftest.er1 >conftest.err
41374 rm -f conftest.er1
41375 cat conftest.err >&5
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); } >/dev/null && {
41378 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41379 test ! -s conftest.err
41380 }; then
41381 ac_header_preproc=yes
41382 else
41383 echo "$as_me: failed program was:" >&5
41384 sed 's/^/| /' conftest.$ac_ext >&5
41386 ac_header_preproc=no
41389 rm -f conftest.err conftest.$ac_ext
41390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41391 echo "${ECHO_T}$ac_header_preproc" >&6; }
41393 # So? What about this header?
41394 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41395 yes:no: )
41396 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
41397 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41398 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&5
41399 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the compiler's result" >&2;}
41400 ac_header_preproc=yes
41402 no:yes:* )
41403 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&5
41404 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled" >&2;}
41405 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&5
41406 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: check for missing prerequisite headers?" >&2;}
41407 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&5
41408 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation" >&2;}
41409 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&5
41410 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
41411 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&5
41412 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result" >&2;}
41413 { echo "$as_me:$LINENO: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&5
41414 echo "$as_me: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence" >&2;}
41415 ( cat <<\_ASBOX
41416 ## ------------------------------- ##
41417 ## Report this to www.asterisk.org ##
41418 ## ------------------------------- ##
41419 _ASBOX
41420 ) | sed "s/^/$as_me: WARNING: /" >&2
41422 esac
41423 { echo "$as_me:$LINENO: checking for /usr/local/include/openh323/h323.h" >&5
41424 echo $ECHO_N "checking for /usr/local/include/openh323/h323.h... $ECHO_C" >&6; }
41425 if test "${ac_cv_header__usr_local_include_openh323_h323_h+set}" = set; then
41426 echo $ECHO_N "(cached) $ECHO_C" >&6
41427 else
41428 ac_cv_header__usr_local_include_openh323_h323_h=$ac_header_preproc
41430 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_openh323_h323_h" >&5
41431 echo "${ECHO_T}$ac_cv_header__usr_local_include_openh323_h323_h" >&6; }
41434 if test $ac_cv_header__usr_local_include_openh323_h323_h = yes; then
41435 HAS_OPENH323=1
41439 CPPFLAGS="${saved_cppflags}"
41440 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41441 OPENH323DIR="/usr/local/share/openh323"
41442 OPENH323_INCDIR="/usr/local/include/openh323"
41443 if test "x$LIB64" != "x"; then
41444 OPENH323_LIBDIR="/usr/local/lib64"
41445 else
41446 OPENH323_LIBDIR="/usr/local/lib"
41448 else
41449 saved_cppflags="${CPPFLAGS}"
41450 CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
41451 { echo "$as_me:$LINENO: checking for /usr/include/openh323/h323.h" >&5
41452 echo $ECHO_N "checking for /usr/include/openh323/h323.h... $ECHO_C" >&6; }
41453 if test "${ac_cv_header__usr_include_openh323_h323_h+set}" = set; then
41454 echo $ECHO_N "(cached) $ECHO_C" >&6
41455 else
41456 cat >conftest.$ac_ext <<_ACEOF
41457 /* confdefs.h. */
41458 _ACEOF
41459 cat confdefs.h >>conftest.$ac_ext
41460 cat >>conftest.$ac_ext <<_ACEOF
41461 /* end confdefs.h. */
41462 #include <ptlib.h>
41464 #include </usr/include/openh323/h323.h>
41465 _ACEOF
41466 rm -f conftest.$ac_objext
41467 if { (ac_try="$ac_compile"
41468 case "(($ac_try" in
41469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41470 *) ac_try_echo=$ac_try;;
41471 esac
41472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41473 (eval "$ac_compile") 2>conftest.er1
41474 ac_status=$?
41475 grep -v '^ *+' conftest.er1 >conftest.err
41476 rm -f conftest.er1
41477 cat conftest.err >&5
41478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479 (exit $ac_status); } && {
41480 test -z "$ac_cxx_werror_flag" ||
41481 test ! -s conftest.err
41482 } && test -s conftest.$ac_objext; then
41483 ac_cv_header__usr_include_openh323_h323_h=yes
41484 else
41485 echo "$as_me: failed program was:" >&5
41486 sed 's/^/| /' conftest.$ac_ext >&5
41488 ac_cv_header__usr_include_openh323_h323_h=no
41491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41493 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_openh323_h323_h" >&5
41494 echo "${ECHO_T}$ac_cv_header__usr_include_openh323_h323_h" >&6; }
41495 if test $ac_cv_header__usr_include_openh323_h323_h = yes; then
41496 HAS_OPENH323=1
41500 CPPFLAGS="${saved_cppflags}"
41501 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41502 OPENH323DIR="/usr/share/openh323"
41503 OPENH323_INCDIR="/usr/include/openh323"
41504 if test "x$LIB64" != "x"; then
41505 OPENH323_LIBDIR="/usr/lib64"
41506 else
41507 OPENH323_LIBDIR="/usr/lib"
41515 if test "${HAS_OPENH323:-unset}" != "unset" ; then
41516 if test "${OPENH323_INCDIR:-unset}" = "unset"; then
41517 OPENH323_INCDIR="${OPENH323DIR}/include"
41519 if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
41520 OPENH323_LIBDIR="${OPENH323DIR}/lib"
41523 OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
41524 OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
41525 OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
41531 ac_ext=c
41532 ac_cpp='$CPP $CPPFLAGS'
41533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41539 if test "${HAS_OPENH323:-unset}" != "unset"; then
41540 OPENH323_VERSION=`grep "OPENH323_VERSION" ${OPENH323_INCDIR}/openh323buildopts.h | cut -f2 -d ' ' | sed -e 's/"//g'`
41541 OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
41542 OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
41543 OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
41544 let OPENH323_VER=${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}
41545 let OPENH323_REQ=1*10000+17*100+3
41547 { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
41548 echo $ECHO_N "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... $ECHO_C" >&6; }
41549 if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
41550 { echo "$as_me:$LINENO: result: no" >&5
41551 echo "${ECHO_T}no" >&6; }
41552 unset HAS_OPENH323
41553 else
41554 { echo "$as_me:$LINENO: result: yes" >&5
41555 echo "${ECHO_T}yes" >&6; }
41560 if test "${HAS_OPENH323:-unset}" != "unset"; then
41561 { echo "$as_me:$LINENO: checking OpenH323 build option" >&5
41562 echo $ECHO_N "checking OpenH323 build option... $ECHO_C" >&6; }
41563 OPENH323_SUFFIX=
41564 prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
41565 for pfx in $prefixes; do
41566 files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
41567 libfile=
41568 if test -n "$files"; then
41569 for f in $files; do
41570 if test -f $f -a ! -L $f; then
41571 libfile=`basename $f`
41572 break;
41574 done
41576 if test -n "$libfile"; then
41577 OPENH323_PREFIX=$pfx
41578 break;
41580 done
41581 if test "${libfile:-unset}" != "unset"; then
41582 OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
41584 case "${OPENH323_SUFFIX}" in
41586 OPENH323_BUILD="notrace";;
41588 OPENH323_BUILD="opt";;
41590 OPENH323_BUILD="debug";;
41592 if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
41593 notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
41594 if test "x$notrace" = "x"; then
41595 notrace="0"
41597 if test "$notrace" -ne 0; then
41598 OPENH323_BUILD="notrace"
41599 else
41600 OPENH323_BUILD="opt"
41602 OPENH323_LIB="-l${OPENH323_PREFIX}"
41603 else
41604 OPENH323_BUILD="notrace"
41607 esac
41608 { echo "$as_me:$LINENO: result: ${OPENH323_BUILD}" >&5
41609 echo "${ECHO_T}${OPENH323_BUILD}" >&6; }
41615 PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
41617 if test "${HAS_OPENH323:-unset}" != "unset"; then
41618 { echo "$as_me:$LINENO: checking OpenH323 installation validity" >&5
41619 echo $ECHO_N "checking OpenH323 installation validity... $ECHO_C" >&6; }
41621 saved_cppflags="${CPPFLAGS}"
41622 saved_libs="${LIBS}"
41623 if test "${OPENH323_LIB:-unset}" != "unset"; then
41624 LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
41625 else
41626 LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
41628 CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
41630 ac_ext=cpp
41631 ac_cpp='$CXXCPP $CPPFLAGS'
41632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41637 cat >conftest.$ac_ext <<_ACEOF
41638 /* confdefs.h. */
41639 _ACEOF
41640 cat confdefs.h >>conftest.$ac_ext
41641 cat >>conftest.$ac_ext <<_ACEOF
41642 /* end confdefs.h. */
41643 #include "ptlib.h"
41644 #include "h323.h"
41645 #include "h323ep.h"
41647 main ()
41649 H323EndPoint ep = H323EndPoint();
41651 return 0;
41653 _ACEOF
41654 rm -f conftest.$ac_objext conftest$ac_exeext
41655 if { (ac_try="$ac_link"
41656 case "(($ac_try" in
41657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41658 *) ac_try_echo=$ac_try;;
41659 esac
41660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41661 (eval "$ac_link") 2>conftest.er1
41662 ac_status=$?
41663 grep -v '^ *+' conftest.er1 >conftest.err
41664 rm -f conftest.er1
41665 cat conftest.err >&5
41666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41667 (exit $ac_status); } && {
41668 test -z "$ac_cxx_werror_flag" ||
41669 test ! -s conftest.err
41670 } && test -s conftest$ac_exeext &&
41671 $as_test_x conftest$ac_exeext; then
41672 { echo "$as_me:$LINENO: result: yes" >&5
41673 echo "${ECHO_T}yes" >&6; }
41674 ac_cv_lib_OPENH323="yes"
41676 else
41677 echo "$as_me: failed program was:" >&5
41678 sed 's/^/| /' conftest.$ac_ext >&5
41680 { echo "$as_me:$LINENO: result: no" >&5
41681 echo "${ECHO_T}no" >&6; }
41682 ac_cv_lib_OPENH323="no"
41687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41688 conftest$ac_exeext conftest.$ac_ext
41690 ac_ext=c
41691 ac_cpp='$CPP $CPPFLAGS'
41692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41697 LIBS="${saved_libs}"
41698 CPPFLAGS="${saved_cppflags}"
41700 if test "${ac_cv_lib_OPENH323}" = "yes"; then
41701 if test "${OPENH323_LIB:-undef}" = "undef"; then
41702 if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
41703 OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
41704 else
41705 OPENH323_LIB="-l${PLATFORM_OPENH323}"
41708 if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
41709 OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
41711 PBX_OPENH323=1
41713 cat >>confdefs.h <<\_ACEOF
41714 #define HAVE_OPENH323 1
41715 _ACEOF
41722 LUA_INCLUDE="-I/usr/include/lua5.1"
41723 LUA_LIB="-llua5.1"
41725 if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
41726 pbxlibdir=""
41727 # if --with-LUA=DIR has been specified, use it.
41728 if test "x${LUA_DIR}" != "x"; then
41729 if test -d ${LUA_DIR}/lib; then
41730 pbxlibdir="-L${LUA_DIR}/lib"
41731 else
41732 pbxlibdir="-L${LUA_DIR}"
41735 pbxfuncname="luaL_newstate"
41736 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41737 AST_LUA_FOUND=yes
41738 else
41739 as_ac_Lib=`echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
41740 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -llua5.1" >&5
41741 echo $ECHO_N "checking for ${pbxfuncname} in -llua5.1... $ECHO_C" >&6; }
41742 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41743 echo $ECHO_N "(cached) $ECHO_C" >&6
41744 else
41745 ac_check_lib_save_LIBS=$LIBS
41746 LIBS="-llua5.1 ${pbxlibdir} $LIBS"
41747 cat >conftest.$ac_ext <<_ACEOF
41748 /* confdefs.h. */
41749 _ACEOF
41750 cat confdefs.h >>conftest.$ac_ext
41751 cat >>conftest.$ac_ext <<_ACEOF
41752 /* end confdefs.h. */
41754 /* Override any GCC internal prototype to avoid an error.
41755 Use char because int might match the return type of a GCC
41756 builtin and then its argument prototype would still apply. */
41757 #ifdef __cplusplus
41758 extern "C"
41759 #endif
41760 char ${pbxfuncname} ();
41762 main ()
41764 return ${pbxfuncname} ();
41766 return 0;
41768 _ACEOF
41769 rm -f conftest.$ac_objext conftest$ac_exeext
41770 if { (ac_try="$ac_link"
41771 case "(($ac_try" in
41772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41773 *) ac_try_echo=$ac_try;;
41774 esac
41775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41776 (eval "$ac_link") 2>conftest.er1
41777 ac_status=$?
41778 grep -v '^ *+' conftest.er1 >conftest.err
41779 rm -f conftest.er1
41780 cat conftest.err >&5
41781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782 (exit $ac_status); } && {
41783 test -z "$ac_c_werror_flag" ||
41784 test ! -s conftest.err
41785 } && test -s conftest$ac_exeext &&
41786 $as_test_x conftest$ac_exeext; then
41787 eval "$as_ac_Lib=yes"
41788 else
41789 echo "$as_me: failed program was:" >&5
41790 sed 's/^/| /' conftest.$ac_ext >&5
41792 eval "$as_ac_Lib=no"
41795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41796 conftest$ac_exeext conftest.$ac_ext
41797 LIBS=$ac_check_lib_save_LIBS
41799 ac_res=`eval echo '${'$as_ac_Lib'}'`
41800 { echo "$as_me:$LINENO: result: $ac_res" >&5
41801 echo "${ECHO_T}$ac_res" >&6; }
41802 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41803 AST_LUA_FOUND=yes
41804 else
41805 AST_LUA_FOUND=no
41810 # now check for the header.
41811 if test "${AST_LUA_FOUND}" = "yes"; then
41812 LUA_LIB="${pbxlibdir} -llua5.1 "
41813 # if --with-LUA=DIR has been specified, use it.
41814 if test "x${LUA_DIR}" != "x"; then
41815 LUA_INCLUDE="-I${LUA_DIR}/include"
41817 LUA_INCLUDE="${LUA_INCLUDE} "
41818 if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
41819 LUA_HEADER_FOUND="1"
41820 else # check for the header
41821 saved_cppflags="${CPPFLAGS}"
41822 CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE} "
41823 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41824 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41825 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41826 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41827 echo $ECHO_N "(cached) $ECHO_C" >&6
41829 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41830 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41831 else
41832 # Is the header compilable?
41833 { echo "$as_me:$LINENO: checking lua5.1/lua.h usability" >&5
41834 echo $ECHO_N "checking lua5.1/lua.h usability... $ECHO_C" >&6; }
41835 cat >conftest.$ac_ext <<_ACEOF
41836 /* confdefs.h. */
41837 _ACEOF
41838 cat confdefs.h >>conftest.$ac_ext
41839 cat >>conftest.$ac_ext <<_ACEOF
41840 /* end confdefs.h. */
41841 $ac_includes_default
41842 #include <lua5.1/lua.h>
41843 _ACEOF
41844 rm -f conftest.$ac_objext
41845 if { (ac_try="$ac_compile"
41846 case "(($ac_try" in
41847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41848 *) ac_try_echo=$ac_try;;
41849 esac
41850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41851 (eval "$ac_compile") 2>conftest.er1
41852 ac_status=$?
41853 grep -v '^ *+' conftest.er1 >conftest.err
41854 rm -f conftest.er1
41855 cat conftest.err >&5
41856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857 (exit $ac_status); } && {
41858 test -z "$ac_c_werror_flag" ||
41859 test ! -s conftest.err
41860 } && test -s conftest.$ac_objext; then
41861 ac_header_compiler=yes
41862 else
41863 echo "$as_me: failed program was:" >&5
41864 sed 's/^/| /' conftest.$ac_ext >&5
41866 ac_header_compiler=no
41869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41871 echo "${ECHO_T}$ac_header_compiler" >&6; }
41873 # Is the header present?
41874 { echo "$as_me:$LINENO: checking lua5.1/lua.h presence" >&5
41875 echo $ECHO_N "checking lua5.1/lua.h presence... $ECHO_C" >&6; }
41876 cat >conftest.$ac_ext <<_ACEOF
41877 /* confdefs.h. */
41878 _ACEOF
41879 cat confdefs.h >>conftest.$ac_ext
41880 cat >>conftest.$ac_ext <<_ACEOF
41881 /* end confdefs.h. */
41882 #include <lua5.1/lua.h>
41883 _ACEOF
41884 if { (ac_try="$ac_cpp conftest.$ac_ext"
41885 case "(($ac_try" in
41886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41887 *) ac_try_echo=$ac_try;;
41888 esac
41889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41891 ac_status=$?
41892 grep -v '^ *+' conftest.er1 >conftest.err
41893 rm -f conftest.er1
41894 cat conftest.err >&5
41895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896 (exit $ac_status); } >/dev/null && {
41897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41898 test ! -s conftest.err
41899 }; then
41900 ac_header_preproc=yes
41901 else
41902 echo "$as_me: failed program was:" >&5
41903 sed 's/^/| /' conftest.$ac_ext >&5
41905 ac_header_preproc=no
41908 rm -f conftest.err conftest.$ac_ext
41909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41910 echo "${ECHO_T}$ac_header_preproc" >&6; }
41912 # So? What about this header?
41913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41914 yes:no: )
41915 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
41916 echo "$as_me: WARNING: lua5.1/lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41917 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&5
41918 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the compiler's result" >&2;}
41919 ac_header_preproc=yes
41921 no:yes:* )
41922 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: present but cannot be compiled" >&5
41923 echo "$as_me: WARNING: lua5.1/lua.h: present but cannot be compiled" >&2;}
41924 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&5
41925 echo "$as_me: WARNING: lua5.1/lua.h: check for missing prerequisite headers?" >&2;}
41926 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&5
41927 echo "$as_me: WARNING: lua5.1/lua.h: see the Autoconf documentation" >&2;}
41928 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&5
41929 echo "$as_me: WARNING: lua5.1/lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
41930 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&5
41931 echo "$as_me: WARNING: lua5.1/lua.h: proceeding with the preprocessor's result" >&2;}
41932 { echo "$as_me:$LINENO: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&5
41933 echo "$as_me: WARNING: lua5.1/lua.h: in the future, the compiler will take precedence" >&2;}
41934 ( cat <<\_ASBOX
41935 ## ------------------------------- ##
41936 ## Report this to www.asterisk.org ##
41937 ## ------------------------------- ##
41938 _ASBOX
41939 ) | sed "s/^/$as_me: WARNING: /" >&2
41941 esac
41942 { echo "$as_me:$LINENO: checking for lua5.1/lua.h" >&5
41943 echo $ECHO_N "checking for lua5.1/lua.h... $ECHO_C" >&6; }
41944 if test "${ac_cv_header_lua5_1_lua_h+set}" = set; then
41945 echo $ECHO_N "(cached) $ECHO_C" >&6
41946 else
41947 ac_cv_header_lua5_1_lua_h=$ac_header_preproc
41949 { echo "$as_me:$LINENO: result: $ac_cv_header_lua5_1_lua_h" >&5
41950 echo "${ECHO_T}$ac_cv_header_lua5_1_lua_h" >&6; }
41953 if test $ac_cv_header_lua5_1_lua_h = yes; then
41954 LUA_HEADER_FOUND=1
41955 else
41956 LUA_HEADER_FOUND=0
41960 CPPFLAGS="${saved_cppflags}"
41962 if test "x${LUA_HEADER_FOUND}" = "x0" ; then
41963 LUA_LIB=""
41964 LUA_INCLUDE=""
41965 else
41966 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
41967 LUA_LIB=""
41969 PBX_LUA=1
41970 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
41972 cat >>confdefs.h <<_ACEOF
41973 #define HAVE_LUA 1
41974 _ACEOF
41977 cat >>confdefs.h <<_ACEOF
41978 #define HAVE_LUA_VERSION
41979 _ACEOF
41987 if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
41988 pbxlibdir=""
41989 # if --with-RADIUS=DIR has been specified, use it.
41990 if test "x${RADIUS_DIR}" != "x"; then
41991 if test -d ${RADIUS_DIR}/lib; then
41992 pbxlibdir="-L${RADIUS_DIR}/lib"
41993 else
41994 pbxlibdir="-L${RADIUS_DIR}"
41997 pbxfuncname="rc_read_config"
41998 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
41999 AST_RADIUS_FOUND=yes
42000 else
42001 as_ac_Lib=`echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
42002 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
42003 echo $ECHO_N "checking for ${pbxfuncname} in -lradiusclient-ng... $ECHO_C" >&6; }
42004 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42005 echo $ECHO_N "(cached) $ECHO_C" >&6
42006 else
42007 ac_check_lib_save_LIBS=$LIBS
42008 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
42009 cat >conftest.$ac_ext <<_ACEOF
42010 /* confdefs.h. */
42011 _ACEOF
42012 cat confdefs.h >>conftest.$ac_ext
42013 cat >>conftest.$ac_ext <<_ACEOF
42014 /* end confdefs.h. */
42016 /* Override any GCC internal prototype to avoid an error.
42017 Use char because int might match the return type of a GCC
42018 builtin and then its argument prototype would still apply. */
42019 #ifdef __cplusplus
42020 extern "C"
42021 #endif
42022 char ${pbxfuncname} ();
42024 main ()
42026 return ${pbxfuncname} ();
42028 return 0;
42030 _ACEOF
42031 rm -f conftest.$ac_objext conftest$ac_exeext
42032 if { (ac_try="$ac_link"
42033 case "(($ac_try" in
42034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42035 *) ac_try_echo=$ac_try;;
42036 esac
42037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42038 (eval "$ac_link") 2>conftest.er1
42039 ac_status=$?
42040 grep -v '^ *+' conftest.er1 >conftest.err
42041 rm -f conftest.er1
42042 cat conftest.err >&5
42043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42044 (exit $ac_status); } && {
42045 test -z "$ac_c_werror_flag" ||
42046 test ! -s conftest.err
42047 } && test -s conftest$ac_exeext &&
42048 $as_test_x conftest$ac_exeext; then
42049 eval "$as_ac_Lib=yes"
42050 else
42051 echo "$as_me: failed program was:" >&5
42052 sed 's/^/| /' conftest.$ac_ext >&5
42054 eval "$as_ac_Lib=no"
42057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42058 conftest$ac_exeext conftest.$ac_ext
42059 LIBS=$ac_check_lib_save_LIBS
42061 ac_res=`eval echo '${'$as_ac_Lib'}'`
42062 { echo "$as_me:$LINENO: result: $ac_res" >&5
42063 echo "${ECHO_T}$ac_res" >&6; }
42064 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42065 AST_RADIUS_FOUND=yes
42066 else
42067 AST_RADIUS_FOUND=no
42072 # now check for the header.
42073 if test "${AST_RADIUS_FOUND}" = "yes"; then
42074 RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
42075 # if --with-RADIUS=DIR has been specified, use it.
42076 if test "x${RADIUS_DIR}" != "x"; then
42077 RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
42079 RADIUS_INCLUDE="${RADIUS_INCLUDE} "
42080 if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
42081 RADIUS_HEADER_FOUND="1"
42082 else # check for the header
42083 saved_cppflags="${CPPFLAGS}"
42084 CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE} "
42085 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42086 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42087 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42088 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42089 echo $ECHO_N "(cached) $ECHO_C" >&6
42091 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42092 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42093 else
42094 # Is the header compilable?
42095 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
42096 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
42097 cat >conftest.$ac_ext <<_ACEOF
42098 /* confdefs.h. */
42099 _ACEOF
42100 cat confdefs.h >>conftest.$ac_ext
42101 cat >>conftest.$ac_ext <<_ACEOF
42102 /* end confdefs.h. */
42103 $ac_includes_default
42104 #include <radiusclient-ng.h>
42105 _ACEOF
42106 rm -f conftest.$ac_objext
42107 if { (ac_try="$ac_compile"
42108 case "(($ac_try" in
42109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42110 *) ac_try_echo=$ac_try;;
42111 esac
42112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42113 (eval "$ac_compile") 2>conftest.er1
42114 ac_status=$?
42115 grep -v '^ *+' conftest.er1 >conftest.err
42116 rm -f conftest.er1
42117 cat conftest.err >&5
42118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42119 (exit $ac_status); } && {
42120 test -z "$ac_c_werror_flag" ||
42121 test ! -s conftest.err
42122 } && test -s conftest.$ac_objext; then
42123 ac_header_compiler=yes
42124 else
42125 echo "$as_me: failed program was:" >&5
42126 sed 's/^/| /' conftest.$ac_ext >&5
42128 ac_header_compiler=no
42131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42133 echo "${ECHO_T}$ac_header_compiler" >&6; }
42135 # Is the header present?
42136 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
42137 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
42138 cat >conftest.$ac_ext <<_ACEOF
42139 /* confdefs.h. */
42140 _ACEOF
42141 cat confdefs.h >>conftest.$ac_ext
42142 cat >>conftest.$ac_ext <<_ACEOF
42143 /* end confdefs.h. */
42144 #include <radiusclient-ng.h>
42145 _ACEOF
42146 if { (ac_try="$ac_cpp conftest.$ac_ext"
42147 case "(($ac_try" in
42148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42149 *) ac_try_echo=$ac_try;;
42150 esac
42151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42153 ac_status=$?
42154 grep -v '^ *+' conftest.er1 >conftest.err
42155 rm -f conftest.er1
42156 cat conftest.err >&5
42157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158 (exit $ac_status); } >/dev/null && {
42159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42160 test ! -s conftest.err
42161 }; then
42162 ac_header_preproc=yes
42163 else
42164 echo "$as_me: failed program was:" >&5
42165 sed 's/^/| /' conftest.$ac_ext >&5
42167 ac_header_preproc=no
42170 rm -f conftest.err conftest.$ac_ext
42171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42172 echo "${ECHO_T}$ac_header_preproc" >&6; }
42174 # So? What about this header?
42175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42176 yes:no: )
42177 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
42178 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42179 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
42180 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
42181 ac_header_preproc=yes
42183 no:yes:* )
42184 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
42185 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
42186 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
42187 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
42188 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
42189 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
42190 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
42191 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
42192 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
42193 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
42194 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
42195 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
42196 ( cat <<\_ASBOX
42197 ## ------------------------------- ##
42198 ## Report this to www.asterisk.org ##
42199 ## ------------------------------- ##
42200 _ASBOX
42201 ) | sed "s/^/$as_me: WARNING: /" >&2
42203 esac
42204 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
42205 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
42206 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
42207 echo $ECHO_N "(cached) $ECHO_C" >&6
42208 else
42209 ac_cv_header_radiusclient_ng_h=$ac_header_preproc
42211 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
42212 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
42215 if test $ac_cv_header_radiusclient_ng_h = yes; then
42216 RADIUS_HEADER_FOUND=1
42217 else
42218 RADIUS_HEADER_FOUND=0
42222 CPPFLAGS="${saved_cppflags}"
42224 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
42225 RADIUS_LIB=""
42226 RADIUS_INCLUDE=""
42227 else
42228 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42229 RADIUS_LIB=""
42231 PBX_RADIUS=1
42232 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42234 cat >>confdefs.h <<_ACEOF
42235 #define HAVE_RADIUS 1
42236 _ACEOF
42239 cat >>confdefs.h <<_ACEOF
42240 #define HAVE_RADIUS_VERSION
42241 _ACEOF
42249 if test "x${PBX_SACLM}" != "x1" -a "${USE_SACLM}" != "no"; then
42250 pbxlibdir=""
42251 # if --with-SACLM=DIR has been specified, use it.
42252 if test "x${SACLM_DIR}" != "x"; then
42253 if test -d ${SACLM_DIR}/lib; then
42254 pbxlibdir="-L${SACLM_DIR}/lib"
42255 else
42256 pbxlibdir="-L${SACLM_DIR}"
42259 pbxfuncname="saClmInitialize"
42260 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42261 AST_SACLM_FOUND=yes
42262 else
42263 as_ac_Lib=`echo "ac_cv_lib_SaClm_${pbxfuncname}" | $as_tr_sh`
42264 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaClm" >&5
42265 echo $ECHO_N "checking for ${pbxfuncname} in -lSaClm... $ECHO_C" >&6; }
42266 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42267 echo $ECHO_N "(cached) $ECHO_C" >&6
42268 else
42269 ac_check_lib_save_LIBS=$LIBS
42270 LIBS="-lSaClm ${pbxlibdir} $LIBS"
42271 cat >conftest.$ac_ext <<_ACEOF
42272 /* confdefs.h. */
42273 _ACEOF
42274 cat confdefs.h >>conftest.$ac_ext
42275 cat >>conftest.$ac_ext <<_ACEOF
42276 /* end confdefs.h. */
42278 /* Override any GCC internal prototype to avoid an error.
42279 Use char because int might match the return type of a GCC
42280 builtin and then its argument prototype would still apply. */
42281 #ifdef __cplusplus
42282 extern "C"
42283 #endif
42284 char ${pbxfuncname} ();
42286 main ()
42288 return ${pbxfuncname} ();
42290 return 0;
42292 _ACEOF
42293 rm -f conftest.$ac_objext conftest$ac_exeext
42294 if { (ac_try="$ac_link"
42295 case "(($ac_try" in
42296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42297 *) ac_try_echo=$ac_try;;
42298 esac
42299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42300 (eval "$ac_link") 2>conftest.er1
42301 ac_status=$?
42302 grep -v '^ *+' conftest.er1 >conftest.err
42303 rm -f conftest.er1
42304 cat conftest.err >&5
42305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42306 (exit $ac_status); } && {
42307 test -z "$ac_c_werror_flag" ||
42308 test ! -s conftest.err
42309 } && test -s conftest$ac_exeext &&
42310 $as_test_x conftest$ac_exeext; then
42311 eval "$as_ac_Lib=yes"
42312 else
42313 echo "$as_me: failed program was:" >&5
42314 sed 's/^/| /' conftest.$ac_ext >&5
42316 eval "$as_ac_Lib=no"
42319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42320 conftest$ac_exeext conftest.$ac_ext
42321 LIBS=$ac_check_lib_save_LIBS
42323 ac_res=`eval echo '${'$as_ac_Lib'}'`
42324 { echo "$as_me:$LINENO: result: $ac_res" >&5
42325 echo "${ECHO_T}$ac_res" >&6; }
42326 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42327 AST_SACLM_FOUND=yes
42328 else
42329 AST_SACLM_FOUND=no
42334 # now check for the header.
42335 if test "${AST_SACLM_FOUND}" = "yes"; then
42336 SACLM_LIB="${pbxlibdir} -lSaClm "
42337 # if --with-SACLM=DIR has been specified, use it.
42338 if test "x${SACLM_DIR}" != "x"; then
42339 SACLM_INCLUDE="-I${SACLM_DIR}/include"
42341 SACLM_INCLUDE="${SACLM_INCLUDE} "
42342 if test "xopenais/saClm.h" = "x" ; then # no header, assume found
42343 SACLM_HEADER_FOUND="1"
42344 else # check for the header
42345 saved_cppflags="${CPPFLAGS}"
42346 CPPFLAGS="${CPPFLAGS} ${SACLM_INCLUDE} "
42347 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42348 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
42349 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
42350 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42351 echo $ECHO_N "(cached) $ECHO_C" >&6
42353 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
42354 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
42355 else
42356 # Is the header compilable?
42357 { echo "$as_me:$LINENO: checking openais/saClm.h usability" >&5
42358 echo $ECHO_N "checking openais/saClm.h usability... $ECHO_C" >&6; }
42359 cat >conftest.$ac_ext <<_ACEOF
42360 /* confdefs.h. */
42361 _ACEOF
42362 cat confdefs.h >>conftest.$ac_ext
42363 cat >>conftest.$ac_ext <<_ACEOF
42364 /* end confdefs.h. */
42365 $ac_includes_default
42366 #include <openais/saClm.h>
42367 _ACEOF
42368 rm -f conftest.$ac_objext
42369 if { (ac_try="$ac_compile"
42370 case "(($ac_try" in
42371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42372 *) ac_try_echo=$ac_try;;
42373 esac
42374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42375 (eval "$ac_compile") 2>conftest.er1
42376 ac_status=$?
42377 grep -v '^ *+' conftest.er1 >conftest.err
42378 rm -f conftest.er1
42379 cat conftest.err >&5
42380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42381 (exit $ac_status); } && {
42382 test -z "$ac_c_werror_flag" ||
42383 test ! -s conftest.err
42384 } && test -s conftest.$ac_objext; then
42385 ac_header_compiler=yes
42386 else
42387 echo "$as_me: failed program was:" >&5
42388 sed 's/^/| /' conftest.$ac_ext >&5
42390 ac_header_compiler=no
42393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42395 echo "${ECHO_T}$ac_header_compiler" >&6; }
42397 # Is the header present?
42398 { echo "$as_me:$LINENO: checking openais/saClm.h presence" >&5
42399 echo $ECHO_N "checking openais/saClm.h presence... $ECHO_C" >&6; }
42400 cat >conftest.$ac_ext <<_ACEOF
42401 /* confdefs.h. */
42402 _ACEOF
42403 cat confdefs.h >>conftest.$ac_ext
42404 cat >>conftest.$ac_ext <<_ACEOF
42405 /* end confdefs.h. */
42406 #include <openais/saClm.h>
42407 _ACEOF
42408 if { (ac_try="$ac_cpp conftest.$ac_ext"
42409 case "(($ac_try" in
42410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42411 *) ac_try_echo=$ac_try;;
42412 esac
42413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42415 ac_status=$?
42416 grep -v '^ *+' conftest.er1 >conftest.err
42417 rm -f conftest.er1
42418 cat conftest.err >&5
42419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42420 (exit $ac_status); } >/dev/null && {
42421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42422 test ! -s conftest.err
42423 }; then
42424 ac_header_preproc=yes
42425 else
42426 echo "$as_me: failed program was:" >&5
42427 sed 's/^/| /' conftest.$ac_ext >&5
42429 ac_header_preproc=no
42432 rm -f conftest.err conftest.$ac_ext
42433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42434 echo "${ECHO_T}$ac_header_preproc" >&6; }
42436 # So? What about this header?
42437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42438 yes:no: )
42439 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&5
42440 echo "$as_me: WARNING: openais/saClm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42441 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the compiler's result" >&5
42442 echo "$as_me: WARNING: openais/saClm.h: proceeding with the compiler's result" >&2;}
42443 ac_header_preproc=yes
42445 no:yes:* )
42446 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: present but cannot be compiled" >&5
42447 echo "$as_me: WARNING: openais/saClm.h: present but cannot be compiled" >&2;}
42448 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&5
42449 echo "$as_me: WARNING: openais/saClm.h: check for missing prerequisite headers?" >&2;}
42450 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: see the Autoconf documentation" >&5
42451 echo "$as_me: WARNING: openais/saClm.h: see the Autoconf documentation" >&2;}
42452 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&5
42453 echo "$as_me: WARNING: openais/saClm.h: section \"Present But Cannot Be Compiled\"" >&2;}
42454 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&5
42455 echo "$as_me: WARNING: openais/saClm.h: proceeding with the preprocessor's result" >&2;}
42456 { echo "$as_me:$LINENO: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&5
42457 echo "$as_me: WARNING: openais/saClm.h: in the future, the compiler will take precedence" >&2;}
42458 ( cat <<\_ASBOX
42459 ## ------------------------------- ##
42460 ## Report this to www.asterisk.org ##
42461 ## ------------------------------- ##
42462 _ASBOX
42463 ) | sed "s/^/$as_me: WARNING: /" >&2
42465 esac
42466 { echo "$as_me:$LINENO: checking for openais/saClm.h" >&5
42467 echo $ECHO_N "checking for openais/saClm.h... $ECHO_C" >&6; }
42468 if test "${ac_cv_header_openais_saClm_h+set}" = set; then
42469 echo $ECHO_N "(cached) $ECHO_C" >&6
42470 else
42471 ac_cv_header_openais_saClm_h=$ac_header_preproc
42473 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saClm_h" >&5
42474 echo "${ECHO_T}$ac_cv_header_openais_saClm_h" >&6; }
42477 if test $ac_cv_header_openais_saClm_h = yes; then
42478 SACLM_HEADER_FOUND=1
42479 else
42480 SACLM_HEADER_FOUND=0
42484 CPPFLAGS="${saved_cppflags}"
42486 if test "x${SACLM_HEADER_FOUND}" = "x0" ; then
42487 SACLM_LIB=""
42488 SACLM_INCLUDE=""
42489 else
42490 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42491 SACLM_LIB=""
42493 PBX_SACLM=1
42494 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42496 cat >>confdefs.h <<_ACEOF
42497 #define HAVE_SACLM 1
42498 _ACEOF
42501 cat >>confdefs.h <<_ACEOF
42502 #define HAVE_SACLM_VERSION
42503 _ACEOF
42510 if test "x${PBX_SAEVT}" != "x1" -a "${USE_SAEVT}" != "no"; then
42511 pbxlibdir=""
42512 # if --with-SAEVT=DIR has been specified, use it.
42513 if test "x${SAEVT_DIR}" != "x"; then
42514 if test -d ${SAEVT_DIR}/lib; then
42515 pbxlibdir="-L${SAEVT_DIR}/lib"
42516 else
42517 pbxlibdir="-L${SAEVT_DIR}"
42520 pbxfuncname="saEvtInitialize"
42521 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42522 AST_SAEVT_FOUND=yes
42523 else
42524 as_ac_Lib=`echo "ac_cv_lib_SaEvt_${pbxfuncname}" | $as_tr_sh`
42525 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSaEvt" >&5
42526 echo $ECHO_N "checking for ${pbxfuncname} in -lSaEvt... $ECHO_C" >&6; }
42527 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42528 echo $ECHO_N "(cached) $ECHO_C" >&6
42529 else
42530 ac_check_lib_save_LIBS=$LIBS
42531 LIBS="-lSaEvt ${pbxlibdir} $LIBS"
42532 cat >conftest.$ac_ext <<_ACEOF
42533 /* confdefs.h. */
42534 _ACEOF
42535 cat confdefs.h >>conftest.$ac_ext
42536 cat >>conftest.$ac_ext <<_ACEOF
42537 /* end confdefs.h. */
42539 /* Override any GCC internal prototype to avoid an error.
42540 Use char because int might match the return type of a GCC
42541 builtin and then its argument prototype would still apply. */
42542 #ifdef __cplusplus
42543 extern "C"
42544 #endif
42545 char ${pbxfuncname} ();
42547 main ()
42549 return ${pbxfuncname} ();
42551 return 0;
42553 _ACEOF
42554 rm -f conftest.$ac_objext conftest$ac_exeext
42555 if { (ac_try="$ac_link"
42556 case "(($ac_try" in
42557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42558 *) ac_try_echo=$ac_try;;
42559 esac
42560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42561 (eval "$ac_link") 2>conftest.er1
42562 ac_status=$?
42563 grep -v '^ *+' conftest.er1 >conftest.err
42564 rm -f conftest.er1
42565 cat conftest.err >&5
42566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567 (exit $ac_status); } && {
42568 test -z "$ac_c_werror_flag" ||
42569 test ! -s conftest.err
42570 } && test -s conftest$ac_exeext &&
42571 $as_test_x conftest$ac_exeext; then
42572 eval "$as_ac_Lib=yes"
42573 else
42574 echo "$as_me: failed program was:" >&5
42575 sed 's/^/| /' conftest.$ac_ext >&5
42577 eval "$as_ac_Lib=no"
42580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42581 conftest$ac_exeext conftest.$ac_ext
42582 LIBS=$ac_check_lib_save_LIBS
42584 ac_res=`eval echo '${'$as_ac_Lib'}'`
42585 { echo "$as_me:$LINENO: result: $ac_res" >&5
42586 echo "${ECHO_T}$ac_res" >&6; }
42587 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42588 AST_SAEVT_FOUND=yes
42589 else
42590 AST_SAEVT_FOUND=no
42595 # now check for the header.
42596 if test "${AST_SAEVT_FOUND}" = "yes"; then
42597 SAEVT_LIB="${pbxlibdir} -lSaEvt "
42598 # if --with-SAEVT=DIR has been specified, use it.
42599 if test "x${SAEVT_DIR}" != "x"; then
42600 SAEVT_INCLUDE="-I${SAEVT_DIR}/include"
42602 SAEVT_INCLUDE="${SAEVT_INCLUDE} "
42603 if test "xopenais/saEvt.h" = "x" ; then # no header, assume found
42604 SAEVT_HEADER_FOUND="1"
42605 else # check for the header
42606 saved_cppflags="${CPPFLAGS}"
42607 CPPFLAGS="${CPPFLAGS} ${SAEVT_INCLUDE} "
42608 if test "${ac_cv_header_openais_saEvt_h+set}" = set; then
42609 { echo "$as_me:$LINENO: checking for openais/saEvt.h" >&5
42610 echo $ECHO_N "checking for openais/saEvt.h... $ECHO_C" >&6; }
42611 if test "${ac_cv_header_openais_saEvt_h+set}" = set; then
42612 echo $ECHO_N "(cached) $ECHO_C" >&6
42614 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saEvt_h" >&5
42615 echo "${ECHO_T}$ac_cv_header_openais_saEvt_h" >&6; }
42616 else
42617 # Is the header compilable?
42618 { echo "$as_me:$LINENO: checking openais/saEvt.h usability" >&5
42619 echo $ECHO_N "checking openais/saEvt.h usability... $ECHO_C" >&6; }
42620 cat >conftest.$ac_ext <<_ACEOF
42621 /* confdefs.h. */
42622 _ACEOF
42623 cat confdefs.h >>conftest.$ac_ext
42624 cat >>conftest.$ac_ext <<_ACEOF
42625 /* end confdefs.h. */
42626 $ac_includes_default
42627 #include <openais/saEvt.h>
42628 _ACEOF
42629 rm -f conftest.$ac_objext
42630 if { (ac_try="$ac_compile"
42631 case "(($ac_try" in
42632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42633 *) ac_try_echo=$ac_try;;
42634 esac
42635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42636 (eval "$ac_compile") 2>conftest.er1
42637 ac_status=$?
42638 grep -v '^ *+' conftest.er1 >conftest.err
42639 rm -f conftest.er1
42640 cat conftest.err >&5
42641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42642 (exit $ac_status); } && {
42643 test -z "$ac_c_werror_flag" ||
42644 test ! -s conftest.err
42645 } && test -s conftest.$ac_objext; then
42646 ac_header_compiler=yes
42647 else
42648 echo "$as_me: failed program was:" >&5
42649 sed 's/^/| /' conftest.$ac_ext >&5
42651 ac_header_compiler=no
42654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42656 echo "${ECHO_T}$ac_header_compiler" >&6; }
42658 # Is the header present?
42659 { echo "$as_me:$LINENO: checking openais/saEvt.h presence" >&5
42660 echo $ECHO_N "checking openais/saEvt.h presence... $ECHO_C" >&6; }
42661 cat >conftest.$ac_ext <<_ACEOF
42662 /* confdefs.h. */
42663 _ACEOF
42664 cat confdefs.h >>conftest.$ac_ext
42665 cat >>conftest.$ac_ext <<_ACEOF
42666 /* end confdefs.h. */
42667 #include <openais/saEvt.h>
42668 _ACEOF
42669 if { (ac_try="$ac_cpp conftest.$ac_ext"
42670 case "(($ac_try" in
42671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42672 *) ac_try_echo=$ac_try;;
42673 esac
42674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42676 ac_status=$?
42677 grep -v '^ *+' conftest.er1 >conftest.err
42678 rm -f conftest.er1
42679 cat conftest.err >&5
42680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681 (exit $ac_status); } >/dev/null && {
42682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42683 test ! -s conftest.err
42684 }; then
42685 ac_header_preproc=yes
42686 else
42687 echo "$as_me: failed program was:" >&5
42688 sed 's/^/| /' conftest.$ac_ext >&5
42690 ac_header_preproc=no
42693 rm -f conftest.err conftest.$ac_ext
42694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42695 echo "${ECHO_T}$ac_header_preproc" >&6; }
42697 # So? What about this header?
42698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42699 yes:no: )
42700 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: accepted by the compiler, rejected by the preprocessor!" >&5
42701 echo "$as_me: WARNING: openais/saEvt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42702 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: proceeding with the compiler's result" >&5
42703 echo "$as_me: WARNING: openais/saEvt.h: proceeding with the compiler's result" >&2;}
42704 ac_header_preproc=yes
42706 no:yes:* )
42707 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: present but cannot be compiled" >&5
42708 echo "$as_me: WARNING: openais/saEvt.h: present but cannot be compiled" >&2;}
42709 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: check for missing prerequisite headers?" >&5
42710 echo "$as_me: WARNING: openais/saEvt.h: check for missing prerequisite headers?" >&2;}
42711 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: see the Autoconf documentation" >&5
42712 echo "$as_me: WARNING: openais/saEvt.h: see the Autoconf documentation" >&2;}
42713 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: section \"Present But Cannot Be Compiled\"" >&5
42714 echo "$as_me: WARNING: openais/saEvt.h: section \"Present But Cannot Be Compiled\"" >&2;}
42715 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: proceeding with the preprocessor's result" >&5
42716 echo "$as_me: WARNING: openais/saEvt.h: proceeding with the preprocessor's result" >&2;}
42717 { echo "$as_me:$LINENO: WARNING: openais/saEvt.h: in the future, the compiler will take precedence" >&5
42718 echo "$as_me: WARNING: openais/saEvt.h: in the future, the compiler will take precedence" >&2;}
42719 ( cat <<\_ASBOX
42720 ## ------------------------------- ##
42721 ## Report this to www.asterisk.org ##
42722 ## ------------------------------- ##
42723 _ASBOX
42724 ) | sed "s/^/$as_me: WARNING: /" >&2
42726 esac
42727 { echo "$as_me:$LINENO: checking for openais/saEvt.h" >&5
42728 echo $ECHO_N "checking for openais/saEvt.h... $ECHO_C" >&6; }
42729 if test "${ac_cv_header_openais_saEvt_h+set}" = set; then
42730 echo $ECHO_N "(cached) $ECHO_C" >&6
42731 else
42732 ac_cv_header_openais_saEvt_h=$ac_header_preproc
42734 { echo "$as_me:$LINENO: result: $ac_cv_header_openais_saEvt_h" >&5
42735 echo "${ECHO_T}$ac_cv_header_openais_saEvt_h" >&6; }
42738 if test $ac_cv_header_openais_saEvt_h = yes; then
42739 SAEVT_HEADER_FOUND=1
42740 else
42741 SAEVT_HEADER_FOUND=0
42745 CPPFLAGS="${saved_cppflags}"
42747 if test "x${SAEVT_HEADER_FOUND}" = "x0" ; then
42748 SAEVT_LIB=""
42749 SAEVT_INCLUDE=""
42750 else
42751 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
42752 SAEVT_LIB=""
42754 PBX_SAEVT=1
42755 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
42757 cat >>confdefs.h <<_ACEOF
42758 #define HAVE_SAEVT 1
42759 _ACEOF
42762 cat >>confdefs.h <<_ACEOF
42763 #define HAVE_SAEVT_VERSION
42764 _ACEOF
42772 if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
42773 pbxlibdir=""
42774 # if --with-SPEEX=DIR has been specified, use it.
42775 if test "x${SPEEX_DIR}" != "x"; then
42776 if test -d ${SPEEX_DIR}/lib; then
42777 pbxlibdir="-L${SPEEX_DIR}/lib"
42778 else
42779 pbxlibdir="-L${SPEEX_DIR}"
42782 pbxfuncname="speex_encode"
42783 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
42784 AST_SPEEX_FOUND=yes
42785 else
42786 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
42787 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
42788 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
42789 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42790 echo $ECHO_N "(cached) $ECHO_C" >&6
42791 else
42792 ac_check_lib_save_LIBS=$LIBS
42793 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
42794 cat >conftest.$ac_ext <<_ACEOF
42795 /* confdefs.h. */
42796 _ACEOF
42797 cat confdefs.h >>conftest.$ac_ext
42798 cat >>conftest.$ac_ext <<_ACEOF
42799 /* end confdefs.h. */
42801 /* Override any GCC internal prototype to avoid an error.
42802 Use char because int might match the return type of a GCC
42803 builtin and then its argument prototype would still apply. */
42804 #ifdef __cplusplus
42805 extern "C"
42806 #endif
42807 char ${pbxfuncname} ();
42809 main ()
42811 return ${pbxfuncname} ();
42813 return 0;
42815 _ACEOF
42816 rm -f conftest.$ac_objext conftest$ac_exeext
42817 if { (ac_try="$ac_link"
42818 case "(($ac_try" in
42819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42820 *) ac_try_echo=$ac_try;;
42821 esac
42822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42823 (eval "$ac_link") 2>conftest.er1
42824 ac_status=$?
42825 grep -v '^ *+' conftest.er1 >conftest.err
42826 rm -f conftest.er1
42827 cat conftest.err >&5
42828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829 (exit $ac_status); } && {
42830 test -z "$ac_c_werror_flag" ||
42831 test ! -s conftest.err
42832 } && test -s conftest$ac_exeext &&
42833 $as_test_x conftest$ac_exeext; then
42834 eval "$as_ac_Lib=yes"
42835 else
42836 echo "$as_me: failed program was:" >&5
42837 sed 's/^/| /' conftest.$ac_ext >&5
42839 eval "$as_ac_Lib=no"
42842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42843 conftest$ac_exeext conftest.$ac_ext
42844 LIBS=$ac_check_lib_save_LIBS
42846 ac_res=`eval echo '${'$as_ac_Lib'}'`
42847 { echo "$as_me:$LINENO: result: $ac_res" >&5
42848 echo "${ECHO_T}$ac_res" >&6; }
42849 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42850 AST_SPEEX_FOUND=yes
42851 else
42852 AST_SPEEX_FOUND=no
42857 # now check for the header.
42858 if test "${AST_SPEEX_FOUND}" = "yes"; then
42859 SPEEX_LIB="${pbxlibdir} -lspeex -lm"
42860 # if --with-SPEEX=DIR has been specified, use it.
42861 if test "x${SPEEX_DIR}" != "x"; then
42862 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
42864 SPEEX_INCLUDE="${SPEEX_INCLUDE} "
42865 if test "xspeex/speex.h" = "x" ; then # no header, assume found
42866 SPEEX_HEADER_FOUND="1"
42867 else # check for the header
42868 saved_cppflags="${CPPFLAGS}"
42869 CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE} "
42870 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42871 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42872 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42873 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42874 echo $ECHO_N "(cached) $ECHO_C" >&6
42876 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42877 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
42878 else
42879 # Is the header compilable?
42880 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
42881 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
42882 cat >conftest.$ac_ext <<_ACEOF
42883 /* confdefs.h. */
42884 _ACEOF
42885 cat confdefs.h >>conftest.$ac_ext
42886 cat >>conftest.$ac_ext <<_ACEOF
42887 /* end confdefs.h. */
42888 $ac_includes_default
42889 #include <speex/speex.h>
42890 _ACEOF
42891 rm -f conftest.$ac_objext
42892 if { (ac_try="$ac_compile"
42893 case "(($ac_try" in
42894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42895 *) ac_try_echo=$ac_try;;
42896 esac
42897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42898 (eval "$ac_compile") 2>conftest.er1
42899 ac_status=$?
42900 grep -v '^ *+' conftest.er1 >conftest.err
42901 rm -f conftest.er1
42902 cat conftest.err >&5
42903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42904 (exit $ac_status); } && {
42905 test -z "$ac_c_werror_flag" ||
42906 test ! -s conftest.err
42907 } && test -s conftest.$ac_objext; then
42908 ac_header_compiler=yes
42909 else
42910 echo "$as_me: failed program was:" >&5
42911 sed 's/^/| /' conftest.$ac_ext >&5
42913 ac_header_compiler=no
42916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42918 echo "${ECHO_T}$ac_header_compiler" >&6; }
42920 # Is the header present?
42921 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
42922 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
42923 cat >conftest.$ac_ext <<_ACEOF
42924 /* confdefs.h. */
42925 _ACEOF
42926 cat confdefs.h >>conftest.$ac_ext
42927 cat >>conftest.$ac_ext <<_ACEOF
42928 /* end confdefs.h. */
42929 #include <speex/speex.h>
42930 _ACEOF
42931 if { (ac_try="$ac_cpp conftest.$ac_ext"
42932 case "(($ac_try" in
42933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42934 *) ac_try_echo=$ac_try;;
42935 esac
42936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42938 ac_status=$?
42939 grep -v '^ *+' conftest.er1 >conftest.err
42940 rm -f conftest.er1
42941 cat conftest.err >&5
42942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42943 (exit $ac_status); } >/dev/null && {
42944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42945 test ! -s conftest.err
42946 }; then
42947 ac_header_preproc=yes
42948 else
42949 echo "$as_me: failed program was:" >&5
42950 sed 's/^/| /' conftest.$ac_ext >&5
42952 ac_header_preproc=no
42955 rm -f conftest.err conftest.$ac_ext
42956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42957 echo "${ECHO_T}$ac_header_preproc" >&6; }
42959 # So? What about this header?
42960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42961 yes:no: )
42962 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
42963 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42964 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
42965 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
42966 ac_header_preproc=yes
42968 no:yes:* )
42969 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
42970 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
42971 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
42972 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
42973 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
42974 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
42975 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
42976 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
42977 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
42978 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
42979 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
42980 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
42981 ( cat <<\_ASBOX
42982 ## ------------------------------- ##
42983 ## Report this to www.asterisk.org ##
42984 ## ------------------------------- ##
42985 _ASBOX
42986 ) | sed "s/^/$as_me: WARNING: /" >&2
42988 esac
42989 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
42990 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
42991 if test "${ac_cv_header_speex_speex_h+set}" = set; then
42992 echo $ECHO_N "(cached) $ECHO_C" >&6
42993 else
42994 ac_cv_header_speex_speex_h=$ac_header_preproc
42996 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
42997 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43000 if test $ac_cv_header_speex_speex_h = yes; then
43001 SPEEX_HEADER_FOUND=1
43002 else
43003 SPEEX_HEADER_FOUND=0
43007 CPPFLAGS="${saved_cppflags}"
43009 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
43010 SPEEX_LIB=""
43011 SPEEX_INCLUDE=""
43012 else
43013 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43014 SPEEX_LIB=""
43016 PBX_SPEEX=1
43017 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43019 cat >>confdefs.h <<_ACEOF
43020 #define HAVE_SPEEX 1
43021 _ACEOF
43024 cat >>confdefs.h <<_ACEOF
43025 #define HAVE_SPEEX_VERSION
43026 _ACEOF
43033 # See if the main speex library contains the preprocess functions
43035 if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
43036 pbxlibdir=""
43037 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
43038 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
43039 if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
43040 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
43041 else
43042 pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
43045 pbxfuncname="speex_preprocess_ctl"
43046 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43047 AST_SPEEX_PREPROCESS_FOUND=yes
43048 else
43049 as_ac_Lib=`echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
43050 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeex" >&5
43051 echo $ECHO_N "checking for ${pbxfuncname} in -lspeex... $ECHO_C" >&6; }
43052 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43053 echo $ECHO_N "(cached) $ECHO_C" >&6
43054 else
43055 ac_check_lib_save_LIBS=$LIBS
43056 LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
43057 cat >conftest.$ac_ext <<_ACEOF
43058 /* confdefs.h. */
43059 _ACEOF
43060 cat confdefs.h >>conftest.$ac_ext
43061 cat >>conftest.$ac_ext <<_ACEOF
43062 /* end confdefs.h. */
43064 /* Override any GCC internal prototype to avoid an error.
43065 Use char because int might match the return type of a GCC
43066 builtin and then its argument prototype would still apply. */
43067 #ifdef __cplusplus
43068 extern "C"
43069 #endif
43070 char ${pbxfuncname} ();
43072 main ()
43074 return ${pbxfuncname} ();
43076 return 0;
43078 _ACEOF
43079 rm -f conftest.$ac_objext conftest$ac_exeext
43080 if { (ac_try="$ac_link"
43081 case "(($ac_try" in
43082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43083 *) ac_try_echo=$ac_try;;
43084 esac
43085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43086 (eval "$ac_link") 2>conftest.er1
43087 ac_status=$?
43088 grep -v '^ *+' conftest.er1 >conftest.err
43089 rm -f conftest.er1
43090 cat conftest.err >&5
43091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43092 (exit $ac_status); } && {
43093 test -z "$ac_c_werror_flag" ||
43094 test ! -s conftest.err
43095 } && test -s conftest$ac_exeext &&
43096 $as_test_x conftest$ac_exeext; then
43097 eval "$as_ac_Lib=yes"
43098 else
43099 echo "$as_me: failed program was:" >&5
43100 sed 's/^/| /' conftest.$ac_ext >&5
43102 eval "$as_ac_Lib=no"
43105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43106 conftest$ac_exeext conftest.$ac_ext
43107 LIBS=$ac_check_lib_save_LIBS
43109 ac_res=`eval echo '${'$as_ac_Lib'}'`
43110 { echo "$as_me:$LINENO: result: $ac_res" >&5
43111 echo "${ECHO_T}$ac_res" >&6; }
43112 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43113 AST_SPEEX_PREPROCESS_FOUND=yes
43114 else
43115 AST_SPEEX_PREPROCESS_FOUND=no
43120 # now check for the header.
43121 if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
43122 SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
43123 # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
43124 if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
43125 SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
43127 SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
43128 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43129 SPEEX_PREPROCESS_HEADER_FOUND="1"
43130 else # check for the header
43131 saved_cppflags="${CPPFLAGS}"
43132 CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE} "
43133 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43134 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43135 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43136 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43137 echo $ECHO_N "(cached) $ECHO_C" >&6
43139 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43140 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43141 else
43142 # Is the header compilable?
43143 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43144 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43145 cat >conftest.$ac_ext <<_ACEOF
43146 /* confdefs.h. */
43147 _ACEOF
43148 cat confdefs.h >>conftest.$ac_ext
43149 cat >>conftest.$ac_ext <<_ACEOF
43150 /* end confdefs.h. */
43151 $ac_includes_default
43152 #include <speex/speex.h>
43153 _ACEOF
43154 rm -f conftest.$ac_objext
43155 if { (ac_try="$ac_compile"
43156 case "(($ac_try" in
43157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43158 *) ac_try_echo=$ac_try;;
43159 esac
43160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43161 (eval "$ac_compile") 2>conftest.er1
43162 ac_status=$?
43163 grep -v '^ *+' conftest.er1 >conftest.err
43164 rm -f conftest.er1
43165 cat conftest.err >&5
43166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43167 (exit $ac_status); } && {
43168 test -z "$ac_c_werror_flag" ||
43169 test ! -s conftest.err
43170 } && test -s conftest.$ac_objext; then
43171 ac_header_compiler=yes
43172 else
43173 echo "$as_me: failed program was:" >&5
43174 sed 's/^/| /' conftest.$ac_ext >&5
43176 ac_header_compiler=no
43179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43181 echo "${ECHO_T}$ac_header_compiler" >&6; }
43183 # Is the header present?
43184 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43185 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43186 cat >conftest.$ac_ext <<_ACEOF
43187 /* confdefs.h. */
43188 _ACEOF
43189 cat confdefs.h >>conftest.$ac_ext
43190 cat >>conftest.$ac_ext <<_ACEOF
43191 /* end confdefs.h. */
43192 #include <speex/speex.h>
43193 _ACEOF
43194 if { (ac_try="$ac_cpp conftest.$ac_ext"
43195 case "(($ac_try" in
43196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43197 *) ac_try_echo=$ac_try;;
43198 esac
43199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43201 ac_status=$?
43202 grep -v '^ *+' conftest.er1 >conftest.err
43203 rm -f conftest.er1
43204 cat conftest.err >&5
43205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43206 (exit $ac_status); } >/dev/null && {
43207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43208 test ! -s conftest.err
43209 }; then
43210 ac_header_preproc=yes
43211 else
43212 echo "$as_me: failed program was:" >&5
43213 sed 's/^/| /' conftest.$ac_ext >&5
43215 ac_header_preproc=no
43218 rm -f conftest.err conftest.$ac_ext
43219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43220 echo "${ECHO_T}$ac_header_preproc" >&6; }
43222 # So? What about this header?
43223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43224 yes:no: )
43225 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43226 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43227 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43228 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43229 ac_header_preproc=yes
43231 no:yes:* )
43232 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43233 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43234 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43235 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43236 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43237 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43238 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43239 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43240 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43241 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43242 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43243 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43244 ( cat <<\_ASBOX
43245 ## ------------------------------- ##
43246 ## Report this to www.asterisk.org ##
43247 ## ------------------------------- ##
43248 _ASBOX
43249 ) | sed "s/^/$as_me: WARNING: /" >&2
43251 esac
43252 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43253 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43254 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43255 echo $ECHO_N "(cached) $ECHO_C" >&6
43256 else
43257 ac_cv_header_speex_speex_h=$ac_header_preproc
43259 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43260 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43263 if test $ac_cv_header_speex_speex_h = yes; then
43264 SPEEX_PREPROCESS_HEADER_FOUND=1
43265 else
43266 SPEEX_PREPROCESS_HEADER_FOUND=0
43270 CPPFLAGS="${saved_cppflags}"
43272 if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
43273 SPEEX_PREPROCESS_LIB=""
43274 SPEEX_PREPROCESS_INCLUDE=""
43275 else
43276 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43277 SPEEX_PREPROCESS_LIB=""
43279 PBX_SPEEX_PREPROCESS=1
43280 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43282 cat >>confdefs.h <<_ACEOF
43283 #define HAVE_SPEEX_PREPROCESS 1
43284 _ACEOF
43287 cat >>confdefs.h <<_ACEOF
43288 #define HAVE_SPEEX_PREPROCESS_VERSION
43289 _ACEOF
43295 if test "${PBX_SPEEX_PREPROCESS}" = 1; then
43296 PBX_SPEEX_PREPROCESS=1
43300 if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
43301 pbxlibdir=""
43302 # if --with-SPEEXDSP=DIR has been specified, use it.
43303 if test "x${SPEEXDSP_DIR}" != "x"; then
43304 if test -d ${SPEEXDSP_DIR}/lib; then
43305 pbxlibdir="-L${SPEEXDSP_DIR}/lib"
43306 else
43307 pbxlibdir="-L${SPEEXDSP_DIR}"
43310 pbxfuncname="speex_preprocess_ctl"
43311 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43312 AST_SPEEXDSP_FOUND=yes
43313 else
43314 as_ac_Lib=`echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
43315 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lspeexdsp" >&5
43316 echo $ECHO_N "checking for ${pbxfuncname} in -lspeexdsp... $ECHO_C" >&6; }
43317 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43318 echo $ECHO_N "(cached) $ECHO_C" >&6
43319 else
43320 ac_check_lib_save_LIBS=$LIBS
43321 LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
43322 cat >conftest.$ac_ext <<_ACEOF
43323 /* confdefs.h. */
43324 _ACEOF
43325 cat confdefs.h >>conftest.$ac_ext
43326 cat >>conftest.$ac_ext <<_ACEOF
43327 /* end confdefs.h. */
43329 /* Override any GCC internal prototype to avoid an error.
43330 Use char because int might match the return type of a GCC
43331 builtin and then its argument prototype would still apply. */
43332 #ifdef __cplusplus
43333 extern "C"
43334 #endif
43335 char ${pbxfuncname} ();
43337 main ()
43339 return ${pbxfuncname} ();
43341 return 0;
43343 _ACEOF
43344 rm -f conftest.$ac_objext conftest$ac_exeext
43345 if { (ac_try="$ac_link"
43346 case "(($ac_try" in
43347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43348 *) ac_try_echo=$ac_try;;
43349 esac
43350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43351 (eval "$ac_link") 2>conftest.er1
43352 ac_status=$?
43353 grep -v '^ *+' conftest.er1 >conftest.err
43354 rm -f conftest.er1
43355 cat conftest.err >&5
43356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43357 (exit $ac_status); } && {
43358 test -z "$ac_c_werror_flag" ||
43359 test ! -s conftest.err
43360 } && test -s conftest$ac_exeext &&
43361 $as_test_x conftest$ac_exeext; then
43362 eval "$as_ac_Lib=yes"
43363 else
43364 echo "$as_me: failed program was:" >&5
43365 sed 's/^/| /' conftest.$ac_ext >&5
43367 eval "$as_ac_Lib=no"
43370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43371 conftest$ac_exeext conftest.$ac_ext
43372 LIBS=$ac_check_lib_save_LIBS
43374 ac_res=`eval echo '${'$as_ac_Lib'}'`
43375 { echo "$as_me:$LINENO: result: $ac_res" >&5
43376 echo "${ECHO_T}$ac_res" >&6; }
43377 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43378 AST_SPEEXDSP_FOUND=yes
43379 else
43380 AST_SPEEXDSP_FOUND=no
43385 # now check for the header.
43386 if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
43387 SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
43388 # if --with-SPEEXDSP=DIR has been specified, use it.
43389 if test "x${SPEEXDSP_DIR}" != "x"; then
43390 SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
43392 SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
43393 if test "xspeex/speex.h" = "x" ; then # no header, assume found
43394 SPEEXDSP_HEADER_FOUND="1"
43395 else # check for the header
43396 saved_cppflags="${CPPFLAGS}"
43397 CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE} "
43398 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43399 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43400 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43401 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43402 echo $ECHO_N "(cached) $ECHO_C" >&6
43404 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43405 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43406 else
43407 # Is the header compilable?
43408 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
43409 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
43410 cat >conftest.$ac_ext <<_ACEOF
43411 /* confdefs.h. */
43412 _ACEOF
43413 cat confdefs.h >>conftest.$ac_ext
43414 cat >>conftest.$ac_ext <<_ACEOF
43415 /* end confdefs.h. */
43416 $ac_includes_default
43417 #include <speex/speex.h>
43418 _ACEOF
43419 rm -f conftest.$ac_objext
43420 if { (ac_try="$ac_compile"
43421 case "(($ac_try" in
43422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43423 *) ac_try_echo=$ac_try;;
43424 esac
43425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43426 (eval "$ac_compile") 2>conftest.er1
43427 ac_status=$?
43428 grep -v '^ *+' conftest.er1 >conftest.err
43429 rm -f conftest.er1
43430 cat conftest.err >&5
43431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43432 (exit $ac_status); } && {
43433 test -z "$ac_c_werror_flag" ||
43434 test ! -s conftest.err
43435 } && test -s conftest.$ac_objext; then
43436 ac_header_compiler=yes
43437 else
43438 echo "$as_me: failed program was:" >&5
43439 sed 's/^/| /' conftest.$ac_ext >&5
43441 ac_header_compiler=no
43444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43446 echo "${ECHO_T}$ac_header_compiler" >&6; }
43448 # Is the header present?
43449 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
43450 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
43451 cat >conftest.$ac_ext <<_ACEOF
43452 /* confdefs.h. */
43453 _ACEOF
43454 cat confdefs.h >>conftest.$ac_ext
43455 cat >>conftest.$ac_ext <<_ACEOF
43456 /* end confdefs.h. */
43457 #include <speex/speex.h>
43458 _ACEOF
43459 if { (ac_try="$ac_cpp conftest.$ac_ext"
43460 case "(($ac_try" in
43461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43462 *) ac_try_echo=$ac_try;;
43463 esac
43464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43466 ac_status=$?
43467 grep -v '^ *+' conftest.er1 >conftest.err
43468 rm -f conftest.er1
43469 cat conftest.err >&5
43470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43471 (exit $ac_status); } >/dev/null && {
43472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43473 test ! -s conftest.err
43474 }; then
43475 ac_header_preproc=yes
43476 else
43477 echo "$as_me: failed program was:" >&5
43478 sed 's/^/| /' conftest.$ac_ext >&5
43480 ac_header_preproc=no
43483 rm -f conftest.err conftest.$ac_ext
43484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43485 echo "${ECHO_T}$ac_header_preproc" >&6; }
43487 # So? What about this header?
43488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43489 yes:no: )
43490 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
43491 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43492 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
43493 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
43494 ac_header_preproc=yes
43496 no:yes:* )
43497 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
43498 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
43499 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
43500 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
43501 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
43502 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
43503 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
43504 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
43505 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
43506 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
43507 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
43508 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
43509 ( cat <<\_ASBOX
43510 ## ------------------------------- ##
43511 ## Report this to www.asterisk.org ##
43512 ## ------------------------------- ##
43513 _ASBOX
43514 ) | sed "s/^/$as_me: WARNING: /" >&2
43516 esac
43517 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
43518 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
43519 if test "${ac_cv_header_speex_speex_h+set}" = set; then
43520 echo $ECHO_N "(cached) $ECHO_C" >&6
43521 else
43522 ac_cv_header_speex_speex_h=$ac_header_preproc
43524 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
43525 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
43528 if test $ac_cv_header_speex_speex_h = yes; then
43529 SPEEXDSP_HEADER_FOUND=1
43530 else
43531 SPEEXDSP_HEADER_FOUND=0
43535 CPPFLAGS="${saved_cppflags}"
43537 if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
43538 SPEEXDSP_LIB=""
43539 SPEEXDSP_INCLUDE=""
43540 else
43541 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43542 SPEEXDSP_LIB=""
43544 PBX_SPEEXDSP=1
43545 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43547 cat >>confdefs.h <<_ACEOF
43548 #define HAVE_SPEEXDSP 1
43549 _ACEOF
43552 cat >>confdefs.h <<_ACEOF
43553 #define HAVE_SPEEXDSP_VERSION
43554 _ACEOF
43560 if test "${PBX_SPEEXDSP}" = 1; then
43561 PBX_SPEEX_PREPROCESS=1
43567 if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
43568 pbxlibdir=""
43569 # if --with-SQLITE=DIR has been specified, use it.
43570 if test "x${SQLITE_DIR}" != "x"; then
43571 if test -d ${SQLITE_DIR}/lib; then
43572 pbxlibdir="-L${SQLITE_DIR}/lib"
43573 else
43574 pbxlibdir="-L${SQLITE_DIR}"
43577 pbxfuncname="sqlite_exec"
43578 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43579 AST_SQLITE_FOUND=yes
43580 else
43581 as_ac_Lib=`echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
43582 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite" >&5
43583 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite... $ECHO_C" >&6; }
43584 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43585 echo $ECHO_N "(cached) $ECHO_C" >&6
43586 else
43587 ac_check_lib_save_LIBS=$LIBS
43588 LIBS="-lsqlite ${pbxlibdir} $LIBS"
43589 cat >conftest.$ac_ext <<_ACEOF
43590 /* confdefs.h. */
43591 _ACEOF
43592 cat confdefs.h >>conftest.$ac_ext
43593 cat >>conftest.$ac_ext <<_ACEOF
43594 /* end confdefs.h. */
43596 /* Override any GCC internal prototype to avoid an error.
43597 Use char because int might match the return type of a GCC
43598 builtin and then its argument prototype would still apply. */
43599 #ifdef __cplusplus
43600 extern "C"
43601 #endif
43602 char ${pbxfuncname} ();
43604 main ()
43606 return ${pbxfuncname} ();
43608 return 0;
43610 _ACEOF
43611 rm -f conftest.$ac_objext conftest$ac_exeext
43612 if { (ac_try="$ac_link"
43613 case "(($ac_try" in
43614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43615 *) ac_try_echo=$ac_try;;
43616 esac
43617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43618 (eval "$ac_link") 2>conftest.er1
43619 ac_status=$?
43620 grep -v '^ *+' conftest.er1 >conftest.err
43621 rm -f conftest.er1
43622 cat conftest.err >&5
43623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43624 (exit $ac_status); } && {
43625 test -z "$ac_c_werror_flag" ||
43626 test ! -s conftest.err
43627 } && test -s conftest$ac_exeext &&
43628 $as_test_x conftest$ac_exeext; then
43629 eval "$as_ac_Lib=yes"
43630 else
43631 echo "$as_me: failed program was:" >&5
43632 sed 's/^/| /' conftest.$ac_ext >&5
43634 eval "$as_ac_Lib=no"
43637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43638 conftest$ac_exeext conftest.$ac_ext
43639 LIBS=$ac_check_lib_save_LIBS
43641 ac_res=`eval echo '${'$as_ac_Lib'}'`
43642 { echo "$as_me:$LINENO: result: $ac_res" >&5
43643 echo "${ECHO_T}$ac_res" >&6; }
43644 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43645 AST_SQLITE_FOUND=yes
43646 else
43647 AST_SQLITE_FOUND=no
43652 # now check for the header.
43653 if test "${AST_SQLITE_FOUND}" = "yes"; then
43654 SQLITE_LIB="${pbxlibdir} -lsqlite "
43655 # if --with-SQLITE=DIR has been specified, use it.
43656 if test "x${SQLITE_DIR}" != "x"; then
43657 SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
43659 SQLITE_INCLUDE="${SQLITE_INCLUDE} "
43660 if test "xsqlite.h" = "x" ; then # no header, assume found
43661 SQLITE_HEADER_FOUND="1"
43662 else # check for the header
43663 saved_cppflags="${CPPFLAGS}"
43664 CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE} "
43665 if test "${ac_cv_header_sqlite_h+set}" = set; then
43666 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
43667 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
43668 if test "${ac_cv_header_sqlite_h+set}" = set; then
43669 echo $ECHO_N "(cached) $ECHO_C" >&6
43671 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
43672 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
43673 else
43674 # Is the header compilable?
43675 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
43676 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
43677 cat >conftest.$ac_ext <<_ACEOF
43678 /* confdefs.h. */
43679 _ACEOF
43680 cat confdefs.h >>conftest.$ac_ext
43681 cat >>conftest.$ac_ext <<_ACEOF
43682 /* end confdefs.h. */
43683 $ac_includes_default
43684 #include <sqlite.h>
43685 _ACEOF
43686 rm -f conftest.$ac_objext
43687 if { (ac_try="$ac_compile"
43688 case "(($ac_try" in
43689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43690 *) ac_try_echo=$ac_try;;
43691 esac
43692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43693 (eval "$ac_compile") 2>conftest.er1
43694 ac_status=$?
43695 grep -v '^ *+' conftest.er1 >conftest.err
43696 rm -f conftest.er1
43697 cat conftest.err >&5
43698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43699 (exit $ac_status); } && {
43700 test -z "$ac_c_werror_flag" ||
43701 test ! -s conftest.err
43702 } && test -s conftest.$ac_objext; then
43703 ac_header_compiler=yes
43704 else
43705 echo "$as_me: failed program was:" >&5
43706 sed 's/^/| /' conftest.$ac_ext >&5
43708 ac_header_compiler=no
43711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43713 echo "${ECHO_T}$ac_header_compiler" >&6; }
43715 # Is the header present?
43716 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
43717 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
43718 cat >conftest.$ac_ext <<_ACEOF
43719 /* confdefs.h. */
43720 _ACEOF
43721 cat confdefs.h >>conftest.$ac_ext
43722 cat >>conftest.$ac_ext <<_ACEOF
43723 /* end confdefs.h. */
43724 #include <sqlite.h>
43725 _ACEOF
43726 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
43739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43740 test ! -s conftest.err
43741 }; then
43742 ac_header_preproc=yes
43743 else
43744 echo "$as_me: failed program was:" >&5
43745 sed 's/^/| /' conftest.$ac_ext >&5
43747 ac_header_preproc=no
43750 rm -f conftest.err conftest.$ac_ext
43751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43752 echo "${ECHO_T}$ac_header_preproc" >&6; }
43754 # So? What about this header?
43755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43756 yes:no: )
43757 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
43758 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43759 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
43760 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
43761 ac_header_preproc=yes
43763 no:yes:* )
43764 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
43765 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
43766 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
43767 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
43768 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
43769 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
43770 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
43771 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
43772 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
43773 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
43774 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
43775 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
43776 ( cat <<\_ASBOX
43777 ## ------------------------------- ##
43778 ## Report this to www.asterisk.org ##
43779 ## ------------------------------- ##
43780 _ASBOX
43781 ) | sed "s/^/$as_me: WARNING: /" >&2
43783 esac
43784 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
43785 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
43786 if test "${ac_cv_header_sqlite_h+set}" = set; then
43787 echo $ECHO_N "(cached) $ECHO_C" >&6
43788 else
43789 ac_cv_header_sqlite_h=$ac_header_preproc
43791 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
43792 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
43795 if test $ac_cv_header_sqlite_h = yes; then
43796 SQLITE_HEADER_FOUND=1
43797 else
43798 SQLITE_HEADER_FOUND=0
43802 CPPFLAGS="${saved_cppflags}"
43804 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
43805 SQLITE_LIB=""
43806 SQLITE_INCLUDE=""
43807 else
43808 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
43809 SQLITE_LIB=""
43811 PBX_SQLITE=1
43812 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
43814 cat >>confdefs.h <<_ACEOF
43815 #define HAVE_SQLITE 1
43816 _ACEOF
43819 cat >>confdefs.h <<_ACEOF
43820 #define HAVE_SQLITE_VERSION
43821 _ACEOF
43829 if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
43830 pbxlibdir=""
43831 # if --with-SQLITE3=DIR has been specified, use it.
43832 if test "x${SQLITE3_DIR}" != "x"; then
43833 if test -d ${SQLITE3_DIR}/lib; then
43834 pbxlibdir="-L${SQLITE3_DIR}/lib"
43835 else
43836 pbxlibdir="-L${SQLITE3_DIR}"
43839 pbxfuncname="sqlite3_open"
43840 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
43841 AST_SQLITE3_FOUND=yes
43842 else
43843 as_ac_Lib=`echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
43844 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lsqlite3" >&5
43845 echo $ECHO_N "checking for ${pbxfuncname} in -lsqlite3... $ECHO_C" >&6; }
43846 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
43847 echo $ECHO_N "(cached) $ECHO_C" >&6
43848 else
43849 ac_check_lib_save_LIBS=$LIBS
43850 LIBS="-lsqlite3 ${pbxlibdir} $LIBS"
43851 cat >conftest.$ac_ext <<_ACEOF
43852 /* confdefs.h. */
43853 _ACEOF
43854 cat confdefs.h >>conftest.$ac_ext
43855 cat >>conftest.$ac_ext <<_ACEOF
43856 /* end confdefs.h. */
43858 /* Override any GCC internal prototype to avoid an error.
43859 Use char because int might match the return type of a GCC
43860 builtin and then its argument prototype would still apply. */
43861 #ifdef __cplusplus
43862 extern "C"
43863 #endif
43864 char ${pbxfuncname} ();
43866 main ()
43868 return ${pbxfuncname} ();
43870 return 0;
43872 _ACEOF
43873 rm -f conftest.$ac_objext conftest$ac_exeext
43874 if { (ac_try="$ac_link"
43875 case "(($ac_try" in
43876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43877 *) ac_try_echo=$ac_try;;
43878 esac
43879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43880 (eval "$ac_link") 2>conftest.er1
43881 ac_status=$?
43882 grep -v '^ *+' conftest.er1 >conftest.err
43883 rm -f conftest.er1
43884 cat conftest.err >&5
43885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43886 (exit $ac_status); } && {
43887 test -z "$ac_c_werror_flag" ||
43888 test ! -s conftest.err
43889 } && test -s conftest$ac_exeext &&
43890 $as_test_x conftest$ac_exeext; then
43891 eval "$as_ac_Lib=yes"
43892 else
43893 echo "$as_me: failed program was:" >&5
43894 sed 's/^/| /' conftest.$ac_ext >&5
43896 eval "$as_ac_Lib=no"
43899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43900 conftest$ac_exeext conftest.$ac_ext
43901 LIBS=$ac_check_lib_save_LIBS
43903 ac_res=`eval echo '${'$as_ac_Lib'}'`
43904 { echo "$as_me:$LINENO: result: $ac_res" >&5
43905 echo "${ECHO_T}$ac_res" >&6; }
43906 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
43907 AST_SQLITE3_FOUND=yes
43908 else
43909 AST_SQLITE3_FOUND=no
43914 # now check for the header.
43915 if test "${AST_SQLITE3_FOUND}" = "yes"; then
43916 SQLITE3_LIB="${pbxlibdir} -lsqlite3 "
43917 # if --with-SQLITE3=DIR has been specified, use it.
43918 if test "x${SQLITE3_DIR}" != "x"; then
43919 SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
43921 SQLITE3_INCLUDE="${SQLITE3_INCLUDE} "
43922 if test "xsqlite3.h" = "x" ; then # no header, assume found
43923 SQLITE3_HEADER_FOUND="1"
43924 else # check for the header
43925 saved_cppflags="${CPPFLAGS}"
43926 CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE} "
43927 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43928 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
43929 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
43930 if test "${ac_cv_header_sqlite3_h+set}" = set; then
43931 echo $ECHO_N "(cached) $ECHO_C" >&6
43933 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
43934 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
43935 else
43936 # Is the header compilable?
43937 { echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
43938 echo $ECHO_N "checking sqlite3.h usability... $ECHO_C" >&6; }
43939 cat >conftest.$ac_ext <<_ACEOF
43940 /* confdefs.h. */
43941 _ACEOF
43942 cat confdefs.h >>conftest.$ac_ext
43943 cat >>conftest.$ac_ext <<_ACEOF
43944 /* end confdefs.h. */
43945 $ac_includes_default
43946 #include <sqlite3.h>
43947 _ACEOF
43948 rm -f conftest.$ac_objext
43949 if { (ac_try="$ac_compile"
43950 case "(($ac_try" in
43951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43952 *) ac_try_echo=$ac_try;;
43953 esac
43954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43955 (eval "$ac_compile") 2>conftest.er1
43956 ac_status=$?
43957 grep -v '^ *+' conftest.er1 >conftest.err
43958 rm -f conftest.er1
43959 cat conftest.err >&5
43960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43961 (exit $ac_status); } && {
43962 test -z "$ac_c_werror_flag" ||
43963 test ! -s conftest.err
43964 } && test -s conftest.$ac_objext; then
43965 ac_header_compiler=yes
43966 else
43967 echo "$as_me: failed program was:" >&5
43968 sed 's/^/| /' conftest.$ac_ext >&5
43970 ac_header_compiler=no
43973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43975 echo "${ECHO_T}$ac_header_compiler" >&6; }
43977 # Is the header present?
43978 { echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
43979 echo $ECHO_N "checking sqlite3.h presence... $ECHO_C" >&6; }
43980 cat >conftest.$ac_ext <<_ACEOF
43981 /* confdefs.h. */
43982 _ACEOF
43983 cat confdefs.h >>conftest.$ac_ext
43984 cat >>conftest.$ac_ext <<_ACEOF
43985 /* end confdefs.h. */
43986 #include <sqlite3.h>
43987 _ACEOF
43988 if { (ac_try="$ac_cpp conftest.$ac_ext"
43989 case "(($ac_try" in
43990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43991 *) ac_try_echo=$ac_try;;
43992 esac
43993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43995 ac_status=$?
43996 grep -v '^ *+' conftest.er1 >conftest.err
43997 rm -f conftest.er1
43998 cat conftest.err >&5
43999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44000 (exit $ac_status); } >/dev/null && {
44001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44002 test ! -s conftest.err
44003 }; then
44004 ac_header_preproc=yes
44005 else
44006 echo "$as_me: failed program was:" >&5
44007 sed 's/^/| /' conftest.$ac_ext >&5
44009 ac_header_preproc=no
44012 rm -f conftest.err conftest.$ac_ext
44013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44014 echo "${ECHO_T}$ac_header_preproc" >&6; }
44016 # So? What about this header?
44017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44018 yes:no: )
44019 { echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
44020 echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44021 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
44022 echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
44023 ac_header_preproc=yes
44025 no:yes:* )
44026 { echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
44027 echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
44028 { echo "$as_me:$LINENO: WARNING: sqlite3.h: check for missing prerequisite headers?" >&5
44029 echo "$as_me: WARNING: sqlite3.h: check for missing prerequisite headers?" >&2;}
44030 { echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
44031 echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
44032 { echo "$as_me:$LINENO: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&5
44033 echo "$as_me: WARNING: sqlite3.h: section \"Present But Cannot Be Compiled\"" >&2;}
44034 { echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
44035 echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
44036 { echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
44037 echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
44038 ( cat <<\_ASBOX
44039 ## ------------------------------- ##
44040 ## Report this to www.asterisk.org ##
44041 ## ------------------------------- ##
44042 _ASBOX
44043 ) | sed "s/^/$as_me: WARNING: /" >&2
44045 esac
44046 { echo "$as_me:$LINENO: checking for sqlite3.h" >&5
44047 echo $ECHO_N "checking for sqlite3.h... $ECHO_C" >&6; }
44048 if test "${ac_cv_header_sqlite3_h+set}" = set; then
44049 echo $ECHO_N "(cached) $ECHO_C" >&6
44050 else
44051 ac_cv_header_sqlite3_h=$ac_header_preproc
44053 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
44054 echo "${ECHO_T}$ac_cv_header_sqlite3_h" >&6; }
44057 if test $ac_cv_header_sqlite3_h = yes; then
44058 SQLITE3_HEADER_FOUND=1
44059 else
44060 SQLITE3_HEADER_FOUND=0
44064 CPPFLAGS="${saved_cppflags}"
44066 if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
44067 SQLITE3_LIB=""
44068 SQLITE3_INCLUDE=""
44069 else
44070 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44071 SQLITE3_LIB=""
44073 PBX_SQLITE3=1
44074 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44076 cat >>confdefs.h <<_ACEOF
44077 #define HAVE_SQLITE3 1
44078 _ACEOF
44081 cat >>confdefs.h <<_ACEOF
44082 #define HAVE_SQLITE3_VERSION
44083 _ACEOF
44091 if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
44092 pbxlibdir=""
44093 # if --with-CRYPTO=DIR has been specified, use it.
44094 if test "x${CRYPTO_DIR}" != "x"; then
44095 if test -d ${CRYPTO_DIR}/lib; then
44096 pbxlibdir="-L${CRYPTO_DIR}/lib"
44097 else
44098 pbxlibdir="-L${CRYPTO_DIR}"
44101 pbxfuncname="AES_encrypt"
44102 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44103 AST_CRYPTO_FOUND=yes
44104 else
44105 as_ac_Lib=`echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
44106 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lcrypto" >&5
44107 echo $ECHO_N "checking for ${pbxfuncname} in -lcrypto... $ECHO_C" >&6; }
44108 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44109 echo $ECHO_N "(cached) $ECHO_C" >&6
44110 else
44111 ac_check_lib_save_LIBS=$LIBS
44112 LIBS="-lcrypto ${pbxlibdir} $LIBS"
44113 cat >conftest.$ac_ext <<_ACEOF
44114 /* confdefs.h. */
44115 _ACEOF
44116 cat confdefs.h >>conftest.$ac_ext
44117 cat >>conftest.$ac_ext <<_ACEOF
44118 /* end confdefs.h. */
44120 /* Override any GCC internal prototype to avoid an error.
44121 Use char because int might match the return type of a GCC
44122 builtin and then its argument prototype would still apply. */
44123 #ifdef __cplusplus
44124 extern "C"
44125 #endif
44126 char ${pbxfuncname} ();
44128 main ()
44130 return ${pbxfuncname} ();
44132 return 0;
44134 _ACEOF
44135 rm -f conftest.$ac_objext conftest$ac_exeext
44136 if { (ac_try="$ac_link"
44137 case "(($ac_try" in
44138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44139 *) ac_try_echo=$ac_try;;
44140 esac
44141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44142 (eval "$ac_link") 2>conftest.er1
44143 ac_status=$?
44144 grep -v '^ *+' conftest.er1 >conftest.err
44145 rm -f conftest.er1
44146 cat conftest.err >&5
44147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44148 (exit $ac_status); } && {
44149 test -z "$ac_c_werror_flag" ||
44150 test ! -s conftest.err
44151 } && test -s conftest$ac_exeext &&
44152 $as_test_x conftest$ac_exeext; then
44153 eval "$as_ac_Lib=yes"
44154 else
44155 echo "$as_me: failed program was:" >&5
44156 sed 's/^/| /' conftest.$ac_ext >&5
44158 eval "$as_ac_Lib=no"
44161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44162 conftest$ac_exeext conftest.$ac_ext
44163 LIBS=$ac_check_lib_save_LIBS
44165 ac_res=`eval echo '${'$as_ac_Lib'}'`
44166 { echo "$as_me:$LINENO: result: $ac_res" >&5
44167 echo "${ECHO_T}$ac_res" >&6; }
44168 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44169 AST_CRYPTO_FOUND=yes
44170 else
44171 AST_CRYPTO_FOUND=no
44176 # now check for the header.
44177 if test "${AST_CRYPTO_FOUND}" = "yes"; then
44178 CRYPTO_LIB="${pbxlibdir} -lcrypto "
44179 # if --with-CRYPTO=DIR has been specified, use it.
44180 if test "x${CRYPTO_DIR}" != "x"; then
44181 CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
44183 CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
44184 if test "xopenssl/aes.h" = "x" ; then # no header, assume found
44185 CRYPTO_HEADER_FOUND="1"
44186 else # check for the header
44187 saved_cppflags="${CPPFLAGS}"
44188 CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE} "
44189 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44190 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44191 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44192 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44193 echo $ECHO_N "(cached) $ECHO_C" >&6
44195 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44196 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44197 else
44198 # Is the header compilable?
44199 { echo "$as_me:$LINENO: checking openssl/aes.h usability" >&5
44200 echo $ECHO_N "checking openssl/aes.h usability... $ECHO_C" >&6; }
44201 cat >conftest.$ac_ext <<_ACEOF
44202 /* confdefs.h. */
44203 _ACEOF
44204 cat confdefs.h >>conftest.$ac_ext
44205 cat >>conftest.$ac_ext <<_ACEOF
44206 /* end confdefs.h. */
44207 $ac_includes_default
44208 #include <openssl/aes.h>
44209 _ACEOF
44210 rm -f conftest.$ac_objext
44211 if { (ac_try="$ac_compile"
44212 case "(($ac_try" in
44213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44214 *) ac_try_echo=$ac_try;;
44215 esac
44216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44217 (eval "$ac_compile") 2>conftest.er1
44218 ac_status=$?
44219 grep -v '^ *+' conftest.er1 >conftest.err
44220 rm -f conftest.er1
44221 cat conftest.err >&5
44222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44223 (exit $ac_status); } && {
44224 test -z "$ac_c_werror_flag" ||
44225 test ! -s conftest.err
44226 } && test -s conftest.$ac_objext; then
44227 ac_header_compiler=yes
44228 else
44229 echo "$as_me: failed program was:" >&5
44230 sed 's/^/| /' conftest.$ac_ext >&5
44232 ac_header_compiler=no
44235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44237 echo "${ECHO_T}$ac_header_compiler" >&6; }
44239 # Is the header present?
44240 { echo "$as_me:$LINENO: checking openssl/aes.h presence" >&5
44241 echo $ECHO_N "checking openssl/aes.h presence... $ECHO_C" >&6; }
44242 cat >conftest.$ac_ext <<_ACEOF
44243 /* confdefs.h. */
44244 _ACEOF
44245 cat confdefs.h >>conftest.$ac_ext
44246 cat >>conftest.$ac_ext <<_ACEOF
44247 /* end confdefs.h. */
44248 #include <openssl/aes.h>
44249 _ACEOF
44250 if { (ac_try="$ac_cpp conftest.$ac_ext"
44251 case "(($ac_try" in
44252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44253 *) ac_try_echo=$ac_try;;
44254 esac
44255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44257 ac_status=$?
44258 grep -v '^ *+' conftest.er1 >conftest.err
44259 rm -f conftest.er1
44260 cat conftest.err >&5
44261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44262 (exit $ac_status); } >/dev/null && {
44263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44264 test ! -s conftest.err
44265 }; then
44266 ac_header_preproc=yes
44267 else
44268 echo "$as_me: failed program was:" >&5
44269 sed 's/^/| /' conftest.$ac_ext >&5
44271 ac_header_preproc=no
44274 rm -f conftest.err conftest.$ac_ext
44275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44276 echo "${ECHO_T}$ac_header_preproc" >&6; }
44278 # So? What about this header?
44279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44280 yes:no: )
44281 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&5
44282 echo "$as_me: WARNING: openssl/aes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44283 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the compiler's result" >&5
44284 echo "$as_me: WARNING: openssl/aes.h: proceeding with the compiler's result" >&2;}
44285 ac_header_preproc=yes
44287 no:yes:* )
44288 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: present but cannot be compiled" >&5
44289 echo "$as_me: WARNING: openssl/aes.h: present but cannot be compiled" >&2;}
44290 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&5
44291 echo "$as_me: WARNING: openssl/aes.h: check for missing prerequisite headers?" >&2;}
44292 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: see the Autoconf documentation" >&5
44293 echo "$as_me: WARNING: openssl/aes.h: see the Autoconf documentation" >&2;}
44294 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&5
44295 echo "$as_me: WARNING: openssl/aes.h: section \"Present But Cannot Be Compiled\"" >&2;}
44296 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&5
44297 echo "$as_me: WARNING: openssl/aes.h: proceeding with the preprocessor's result" >&2;}
44298 { echo "$as_me:$LINENO: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&5
44299 echo "$as_me: WARNING: openssl/aes.h: in the future, the compiler will take precedence" >&2;}
44300 ( cat <<\_ASBOX
44301 ## ------------------------------- ##
44302 ## Report this to www.asterisk.org ##
44303 ## ------------------------------- ##
44304 _ASBOX
44305 ) | sed "s/^/$as_me: WARNING: /" >&2
44307 esac
44308 { echo "$as_me:$LINENO: checking for openssl/aes.h" >&5
44309 echo $ECHO_N "checking for openssl/aes.h... $ECHO_C" >&6; }
44310 if test "${ac_cv_header_openssl_aes_h+set}" = set; then
44311 echo $ECHO_N "(cached) $ECHO_C" >&6
44312 else
44313 ac_cv_header_openssl_aes_h=$ac_header_preproc
44315 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_aes_h" >&5
44316 echo "${ECHO_T}$ac_cv_header_openssl_aes_h" >&6; }
44319 if test $ac_cv_header_openssl_aes_h = yes; then
44320 CRYPTO_HEADER_FOUND=1
44321 else
44322 CRYPTO_HEADER_FOUND=0
44326 CPPFLAGS="${saved_cppflags}"
44328 if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
44329 CRYPTO_LIB=""
44330 CRYPTO_INCLUDE=""
44331 else
44332 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44333 CRYPTO_LIB=""
44335 PBX_CRYPTO=1
44336 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44338 cat >>confdefs.h <<_ACEOF
44339 #define HAVE_CRYPTO 1
44340 _ACEOF
44343 cat >>confdefs.h <<_ACEOF
44344 #define HAVE_CRYPTO_VERSION
44345 _ACEOF
44352 if test "$PBX_CRYPTO" = "1";
44353 then
44355 if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
44356 pbxlibdir=""
44357 # if --with-OPENSSL=DIR has been specified, use it.
44358 if test "x${OPENSSL_DIR}" != "x"; then
44359 if test -d ${OPENSSL_DIR}/lib; then
44360 pbxlibdir="-L${OPENSSL_DIR}/lib"
44361 else
44362 pbxlibdir="-L${OPENSSL_DIR}"
44365 pbxfuncname="ssl2_connect"
44366 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44367 AST_OPENSSL_FOUND=yes
44368 else
44369 as_ac_Lib=`echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
44370 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lssl" >&5
44371 echo $ECHO_N "checking for ${pbxfuncname} in -lssl... $ECHO_C" >&6; }
44372 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44373 echo $ECHO_N "(cached) $ECHO_C" >&6
44374 else
44375 ac_check_lib_save_LIBS=$LIBS
44376 LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
44377 cat >conftest.$ac_ext <<_ACEOF
44378 /* confdefs.h. */
44379 _ACEOF
44380 cat confdefs.h >>conftest.$ac_ext
44381 cat >>conftest.$ac_ext <<_ACEOF
44382 /* end confdefs.h. */
44384 /* Override any GCC internal prototype to avoid an error.
44385 Use char because int might match the return type of a GCC
44386 builtin and then its argument prototype would still apply. */
44387 #ifdef __cplusplus
44388 extern "C"
44389 #endif
44390 char ${pbxfuncname} ();
44392 main ()
44394 return ${pbxfuncname} ();
44396 return 0;
44398 _ACEOF
44399 rm -f conftest.$ac_objext conftest$ac_exeext
44400 if { (ac_try="$ac_link"
44401 case "(($ac_try" in
44402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44403 *) ac_try_echo=$ac_try;;
44404 esac
44405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44406 (eval "$ac_link") 2>conftest.er1
44407 ac_status=$?
44408 grep -v '^ *+' conftest.er1 >conftest.err
44409 rm -f conftest.er1
44410 cat conftest.err >&5
44411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44412 (exit $ac_status); } && {
44413 test -z "$ac_c_werror_flag" ||
44414 test ! -s conftest.err
44415 } && test -s conftest$ac_exeext &&
44416 $as_test_x conftest$ac_exeext; then
44417 eval "$as_ac_Lib=yes"
44418 else
44419 echo "$as_me: failed program was:" >&5
44420 sed 's/^/| /' conftest.$ac_ext >&5
44422 eval "$as_ac_Lib=no"
44425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44426 conftest$ac_exeext conftest.$ac_ext
44427 LIBS=$ac_check_lib_save_LIBS
44429 ac_res=`eval echo '${'$as_ac_Lib'}'`
44430 { echo "$as_me:$LINENO: result: $ac_res" >&5
44431 echo "${ECHO_T}$ac_res" >&6; }
44432 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44433 AST_OPENSSL_FOUND=yes
44434 else
44435 AST_OPENSSL_FOUND=no
44440 # now check for the header.
44441 if test "${AST_OPENSSL_FOUND}" = "yes"; then
44442 OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
44443 # if --with-OPENSSL=DIR has been specified, use it.
44444 if test "x${OPENSSL_DIR}" != "x"; then
44445 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
44447 OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
44448 if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
44449 OPENSSL_HEADER_FOUND="1"
44450 else # check for the header
44451 saved_cppflags="${CPPFLAGS}"
44452 CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE} "
44453 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44454 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44455 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44456 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44457 echo $ECHO_N "(cached) $ECHO_C" >&6
44459 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44460 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44461 else
44462 # Is the header compilable?
44463 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
44464 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
44465 cat >conftest.$ac_ext <<_ACEOF
44466 /* confdefs.h. */
44467 _ACEOF
44468 cat confdefs.h >>conftest.$ac_ext
44469 cat >>conftest.$ac_ext <<_ACEOF
44470 /* end confdefs.h. */
44471 $ac_includes_default
44472 #include <openssl/ssl.h>
44473 _ACEOF
44474 rm -f conftest.$ac_objext
44475 if { (ac_try="$ac_compile"
44476 case "(($ac_try" in
44477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44478 *) ac_try_echo=$ac_try;;
44479 esac
44480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44481 (eval "$ac_compile") 2>conftest.er1
44482 ac_status=$?
44483 grep -v '^ *+' conftest.er1 >conftest.err
44484 rm -f conftest.er1
44485 cat conftest.err >&5
44486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487 (exit $ac_status); } && {
44488 test -z "$ac_c_werror_flag" ||
44489 test ! -s conftest.err
44490 } && test -s conftest.$ac_objext; then
44491 ac_header_compiler=yes
44492 else
44493 echo "$as_me: failed program was:" >&5
44494 sed 's/^/| /' conftest.$ac_ext >&5
44496 ac_header_compiler=no
44499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44501 echo "${ECHO_T}$ac_header_compiler" >&6; }
44503 # Is the header present?
44504 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
44505 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
44506 cat >conftest.$ac_ext <<_ACEOF
44507 /* confdefs.h. */
44508 _ACEOF
44509 cat confdefs.h >>conftest.$ac_ext
44510 cat >>conftest.$ac_ext <<_ACEOF
44511 /* end confdefs.h. */
44512 #include <openssl/ssl.h>
44513 _ACEOF
44514 if { (ac_try="$ac_cpp conftest.$ac_ext"
44515 case "(($ac_try" in
44516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44517 *) ac_try_echo=$ac_try;;
44518 esac
44519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44521 ac_status=$?
44522 grep -v '^ *+' conftest.er1 >conftest.err
44523 rm -f conftest.er1
44524 cat conftest.err >&5
44525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44526 (exit $ac_status); } >/dev/null && {
44527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44528 test ! -s conftest.err
44529 }; then
44530 ac_header_preproc=yes
44531 else
44532 echo "$as_me: failed program was:" >&5
44533 sed 's/^/| /' conftest.$ac_ext >&5
44535 ac_header_preproc=no
44538 rm -f conftest.err conftest.$ac_ext
44539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44540 echo "${ECHO_T}$ac_header_preproc" >&6; }
44542 # So? What about this header?
44543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44544 yes:no: )
44545 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
44546 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44547 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
44548 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
44549 ac_header_preproc=yes
44551 no:yes:* )
44552 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
44553 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
44554 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
44555 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
44556 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
44557 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
44558 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
44559 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
44560 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
44561 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
44562 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
44563 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
44564 ( cat <<\_ASBOX
44565 ## ------------------------------- ##
44566 ## Report this to www.asterisk.org ##
44567 ## ------------------------------- ##
44568 _ASBOX
44569 ) | sed "s/^/$as_me: WARNING: /" >&2
44571 esac
44572 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
44573 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
44574 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
44575 echo $ECHO_N "(cached) $ECHO_C" >&6
44576 else
44577 ac_cv_header_openssl_ssl_h=$ac_header_preproc
44579 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
44580 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
44583 if test $ac_cv_header_openssl_ssl_h = yes; then
44584 OPENSSL_HEADER_FOUND=1
44585 else
44586 OPENSSL_HEADER_FOUND=0
44590 CPPFLAGS="${saved_cppflags}"
44592 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
44593 OPENSSL_LIB=""
44594 OPENSSL_INCLUDE=""
44595 else
44596 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44597 OPENSSL_LIB=""
44599 PBX_OPENSSL=1
44600 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44602 cat >>confdefs.h <<_ACEOF
44603 #define HAVE_OPENSSL 1
44604 _ACEOF
44607 cat >>confdefs.h <<_ACEOF
44608 #define HAVE_OPENSSL_VERSION
44609 _ACEOF
44617 if test "$PBX_OPENSSL" = "1";
44618 then
44620 if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
44621 pbxlibdir=""
44622 # if --with-OSPTK=DIR has been specified, use it.
44623 if test "x${OSPTK_DIR}" != "x"; then
44624 if test -d ${OSPTK_DIR}/lib; then
44625 pbxlibdir="-L${OSPTK_DIR}/lib"
44626 else
44627 pbxlibdir="-L${OSPTK_DIR}"
44630 pbxfuncname="OSPPCryptoDecrypt"
44631 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
44632 AST_OSPTK_FOUND=yes
44633 else
44634 as_ac_Lib=`echo "ac_cv_lib_osptk_${pbxfuncname}" | $as_tr_sh`
44635 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -losptk" >&5
44636 echo $ECHO_N "checking for ${pbxfuncname} in -losptk... $ECHO_C" >&6; }
44637 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44638 echo $ECHO_N "(cached) $ECHO_C" >&6
44639 else
44640 ac_check_lib_save_LIBS=$LIBS
44641 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
44642 cat >conftest.$ac_ext <<_ACEOF
44643 /* confdefs.h. */
44644 _ACEOF
44645 cat confdefs.h >>conftest.$ac_ext
44646 cat >>conftest.$ac_ext <<_ACEOF
44647 /* end confdefs.h. */
44649 /* Override any GCC internal prototype to avoid an error.
44650 Use char because int might match the return type of a GCC
44651 builtin and then its argument prototype would still apply. */
44652 #ifdef __cplusplus
44653 extern "C"
44654 #endif
44655 char ${pbxfuncname} ();
44657 main ()
44659 return ${pbxfuncname} ();
44661 return 0;
44663 _ACEOF
44664 rm -f conftest.$ac_objext conftest$ac_exeext
44665 if { (ac_try="$ac_link"
44666 case "(($ac_try" in
44667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44668 *) ac_try_echo=$ac_try;;
44669 esac
44670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44671 (eval "$ac_link") 2>conftest.er1
44672 ac_status=$?
44673 grep -v '^ *+' conftest.er1 >conftest.err
44674 rm -f conftest.er1
44675 cat conftest.err >&5
44676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44677 (exit $ac_status); } && {
44678 test -z "$ac_c_werror_flag" ||
44679 test ! -s conftest.err
44680 } && test -s conftest$ac_exeext &&
44681 $as_test_x conftest$ac_exeext; then
44682 eval "$as_ac_Lib=yes"
44683 else
44684 echo "$as_me: failed program was:" >&5
44685 sed 's/^/| /' conftest.$ac_ext >&5
44687 eval "$as_ac_Lib=no"
44690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44691 conftest$ac_exeext conftest.$ac_ext
44692 LIBS=$ac_check_lib_save_LIBS
44694 ac_res=`eval echo '${'$as_ac_Lib'}'`
44695 { echo "$as_me:$LINENO: result: $ac_res" >&5
44696 echo "${ECHO_T}$ac_res" >&6; }
44697 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44698 AST_OSPTK_FOUND=yes
44699 else
44700 AST_OSPTK_FOUND=no
44705 # now check for the header.
44706 if test "${AST_OSPTK_FOUND}" = "yes"; then
44707 OSPTK_LIB="${pbxlibdir} -losptk -lcrypto -lssl"
44708 # if --with-OSPTK=DIR has been specified, use it.
44709 if test "x${OSPTK_DIR}" != "x"; then
44710 OSPTK_INCLUDE="-I${OSPTK_DIR}/include"
44712 OSPTK_INCLUDE="${OSPTK_INCLUDE} "
44713 if test "xosp/osp.h" = "x" ; then # no header, assume found
44714 OSPTK_HEADER_FOUND="1"
44715 else # check for the header
44716 saved_cppflags="${CPPFLAGS}"
44717 CPPFLAGS="${CPPFLAGS} ${OSPTK_INCLUDE} "
44718 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44719 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
44720 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
44721 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44722 echo $ECHO_N "(cached) $ECHO_C" >&6
44724 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
44725 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
44726 else
44727 # Is the header compilable?
44728 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
44729 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
44730 cat >conftest.$ac_ext <<_ACEOF
44731 /* confdefs.h. */
44732 _ACEOF
44733 cat confdefs.h >>conftest.$ac_ext
44734 cat >>conftest.$ac_ext <<_ACEOF
44735 /* end confdefs.h. */
44736 $ac_includes_default
44737 #include <osp/osp.h>
44738 _ACEOF
44739 rm -f conftest.$ac_objext
44740 if { (ac_try="$ac_compile"
44741 case "(($ac_try" in
44742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44743 *) ac_try_echo=$ac_try;;
44744 esac
44745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44746 (eval "$ac_compile") 2>conftest.er1
44747 ac_status=$?
44748 grep -v '^ *+' conftest.er1 >conftest.err
44749 rm -f conftest.er1
44750 cat conftest.err >&5
44751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44752 (exit $ac_status); } && {
44753 test -z "$ac_c_werror_flag" ||
44754 test ! -s conftest.err
44755 } && test -s conftest.$ac_objext; then
44756 ac_header_compiler=yes
44757 else
44758 echo "$as_me: failed program was:" >&5
44759 sed 's/^/| /' conftest.$ac_ext >&5
44761 ac_header_compiler=no
44764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44766 echo "${ECHO_T}$ac_header_compiler" >&6; }
44768 # Is the header present?
44769 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
44770 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
44771 cat >conftest.$ac_ext <<_ACEOF
44772 /* confdefs.h. */
44773 _ACEOF
44774 cat confdefs.h >>conftest.$ac_ext
44775 cat >>conftest.$ac_ext <<_ACEOF
44776 /* end confdefs.h. */
44777 #include <osp/osp.h>
44778 _ACEOF
44779 if { (ac_try="$ac_cpp conftest.$ac_ext"
44780 case "(($ac_try" in
44781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44782 *) ac_try_echo=$ac_try;;
44783 esac
44784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44786 ac_status=$?
44787 grep -v '^ *+' conftest.er1 >conftest.err
44788 rm -f conftest.er1
44789 cat conftest.err >&5
44790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44791 (exit $ac_status); } >/dev/null && {
44792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44793 test ! -s conftest.err
44794 }; then
44795 ac_header_preproc=yes
44796 else
44797 echo "$as_me: failed program was:" >&5
44798 sed 's/^/| /' conftest.$ac_ext >&5
44800 ac_header_preproc=no
44803 rm -f conftest.err conftest.$ac_ext
44804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44805 echo "${ECHO_T}$ac_header_preproc" >&6; }
44807 # So? What about this header?
44808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44809 yes:no: )
44810 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
44811 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44812 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
44813 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
44814 ac_header_preproc=yes
44816 no:yes:* )
44817 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
44818 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
44819 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
44820 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
44821 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
44822 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
44823 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
44824 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
44825 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
44826 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
44827 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
44828 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
44829 ( cat <<\_ASBOX
44830 ## ------------------------------- ##
44831 ## Report this to www.asterisk.org ##
44832 ## ------------------------------- ##
44833 _ASBOX
44834 ) | sed "s/^/$as_me: WARNING: /" >&2
44836 esac
44837 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
44838 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
44839 if test "${ac_cv_header_osp_osp_h+set}" = set; then
44840 echo $ECHO_N "(cached) $ECHO_C" >&6
44841 else
44842 ac_cv_header_osp_osp_h=$ac_header_preproc
44844 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
44845 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
44848 if test $ac_cv_header_osp_osp_h = yes; then
44849 OSPTK_HEADER_FOUND=1
44850 else
44851 OSPTK_HEADER_FOUND=0
44855 CPPFLAGS="${saved_cppflags}"
44857 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
44858 OSPTK_LIB=""
44859 OSPTK_INCLUDE=""
44860 else
44861 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
44862 OSPTK_LIB=""
44864 PBX_OSPTK=1
44865 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
44867 cat >>confdefs.h <<_ACEOF
44868 #define HAVE_OSPTK 1
44869 _ACEOF
44872 cat >>confdefs.h <<_ACEOF
44873 #define HAVE_OSPTK_VERSION
44874 _ACEOF
44883 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
44884 PBX_GMIME=0
44885 if test -n "$ac_tool_prefix"; then
44886 # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args.
44887 set dummy ${ac_tool_prefix}gmime-config; ac_word=$2
44888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44890 if test "${ac_cv_prog_CONFIG_GMIME+set}" = set; then
44891 echo $ECHO_N "(cached) $ECHO_C" >&6
44892 else
44893 if test -n "$CONFIG_GMIME"; then
44894 ac_cv_prog_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test.
44895 else
44896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44897 for as_dir in $PATH
44899 IFS=$as_save_IFS
44900 test -z "$as_dir" && as_dir=.
44901 for ac_exec_ext in '' $ac_executable_extensions; do
44902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44903 ac_cv_prog_CONFIG_GMIME="${ac_tool_prefix}gmime-config"
44904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44905 break 2
44907 done
44908 done
44909 IFS=$as_save_IFS
44913 CONFIG_GMIME=$ac_cv_prog_CONFIG_GMIME
44914 if test -n "$CONFIG_GMIME"; then
44915 { echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5
44916 echo "${ECHO_T}$CONFIG_GMIME" >&6; }
44917 else
44918 { echo "$as_me:$LINENO: result: no" >&5
44919 echo "${ECHO_T}no" >&6; }
44924 if test -z "$ac_cv_prog_CONFIG_GMIME"; then
44925 ac_ct_CONFIG_GMIME=$CONFIG_GMIME
44926 # Extract the first word of "gmime-config", so it can be a program name with args.
44927 set dummy gmime-config; ac_word=$2
44928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44930 if test "${ac_cv_prog_ac_ct_CONFIG_GMIME+set}" = set; then
44931 echo $ECHO_N "(cached) $ECHO_C" >&6
44932 else
44933 if test -n "$ac_ct_CONFIG_GMIME"; then
44934 ac_cv_prog_ac_ct_CONFIG_GMIME="$ac_ct_CONFIG_GMIME" # Let the user override the test.
44935 else
44936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44937 for as_dir in $PATH
44939 IFS=$as_save_IFS
44940 test -z "$as_dir" && as_dir=.
44941 for ac_exec_ext in '' $ac_executable_extensions; do
44942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44943 ac_cv_prog_ac_ct_CONFIG_GMIME="gmime-config"
44944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44945 break 2
44947 done
44948 done
44949 IFS=$as_save_IFS
44953 ac_ct_CONFIG_GMIME=$ac_cv_prog_ac_ct_CONFIG_GMIME
44954 if test -n "$ac_ct_CONFIG_GMIME"; then
44955 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GMIME" >&5
44956 echo "${ECHO_T}$ac_ct_CONFIG_GMIME" >&6; }
44957 else
44958 { echo "$as_me:$LINENO: result: no" >&5
44959 echo "${ECHO_T}no" >&6; }
44962 if test "x$ac_ct_CONFIG_GMIME" = x; then
44963 CONFIG_GMIME="No"
44964 else
44965 case $cross_compiling:$ac_tool_warned in
44966 yes:)
44967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44968 whose name does not start with the host triplet. If you think this
44969 configuration is useful to you, please write to autoconf@gnu.org." >&5
44970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44971 whose name does not start with the host triplet. If you think this
44972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44973 ac_tool_warned=yes ;;
44974 esac
44975 CONFIG_GMIME=$ac_ct_CONFIG_GMIME
44977 else
44978 CONFIG_GMIME="$ac_cv_prog_CONFIG_GMIME"
44981 if test ! "x${CONFIG_GMIME}" = xNo; then
44982 if test x"" = x ; then A=--cflags ; else A="" ; fi
44983 GMIME_INCLUDE=$(${CONFIG_GMIME} $A)
44984 if test x"" = x ; then A=--libs ; else A="" ; fi
44985 GMIME_LIB=$(${CONFIG_GMIME} $A)
44986 if test x"" != x ; then
44987 saved_cppflags="${CPPFLAGS}"
44988 if test "x${GMIME_DIR}" != "x"; then
44989 GMIME_INCLUDE="-I${GMIME_DIR}/include"
44991 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}"
44993 saved_ldflags="${LDFLAGS}"
44994 LDFLAGS="${GMIME_LIB}"
44996 cat >conftest.$ac_ext <<_ACEOF
44997 /* confdefs.h. */
44998 _ACEOF
44999 cat confdefs.h >>conftest.$ac_ext
45000 cat >>conftest.$ac_ext <<_ACEOF
45001 /* end confdefs.h. */
45004 main ()
45009 return 0;
45011 _ACEOF
45012 rm -f conftest.$ac_objext conftest$ac_exeext
45013 if { (ac_try="$ac_link"
45014 case "(($ac_try" in
45015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45016 *) ac_try_echo=$ac_try;;
45017 esac
45018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45019 (eval "$ac_link") 2>conftest.er1
45020 ac_status=$?
45021 grep -v '^ *+' conftest.er1 >conftest.err
45022 rm -f conftest.er1
45023 cat conftest.err >&5
45024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45025 (exit $ac_status); } && {
45026 test -z "$ac_c_werror_flag" ||
45027 test ! -s conftest.err
45028 } && test -s conftest$ac_exeext &&
45029 $as_test_x conftest$ac_exeext; then
45030 PBX_GMIME=1
45032 cat >>confdefs.h <<\_ACEOF
45033 #define HAVE_GMIME 1
45034 _ACEOF
45037 else
45038 echo "$as_me: failed program was:" >&5
45039 sed 's/^/| /' conftest.$ac_ext >&5
45045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45046 conftest$ac_exeext conftest.$ac_ext
45047 CPPFLAGS="${saved_cppflags}"
45048 LDFLAGS="${saved_ldflags}"
45049 else
45050 PBX_GMIME=1
45052 cat >>confdefs.h <<\_ACEOF
45053 #define HAVE_GMIME 1
45054 _ACEOF
45062 if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
45063 pbxlibdir=""
45064 # if --with-FREETDS=DIR has been specified, use it.
45065 if test "x${FREETDS_DIR}" != "x"; then
45066 if test -d ${FREETDS_DIR}/lib; then
45067 pbxlibdir="-L${FREETDS_DIR}/lib"
45068 else
45069 pbxlibdir="-L${FREETDS_DIR}"
45072 pbxfuncname="tds_version"
45073 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45074 AST_FREETDS_FOUND=yes
45075 else
45076 as_ac_Lib=`echo "ac_cv_lib_tds_${pbxfuncname}" | $as_tr_sh`
45077 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltds" >&5
45078 echo $ECHO_N "checking for ${pbxfuncname} in -ltds... $ECHO_C" >&6; }
45079 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45080 echo $ECHO_N "(cached) $ECHO_C" >&6
45081 else
45082 ac_check_lib_save_LIBS=$LIBS
45083 LIBS="-ltds ${pbxlibdir} $LIBS"
45084 cat >conftest.$ac_ext <<_ACEOF
45085 /* confdefs.h. */
45086 _ACEOF
45087 cat confdefs.h >>conftest.$ac_ext
45088 cat >>conftest.$ac_ext <<_ACEOF
45089 /* end confdefs.h. */
45091 /* Override any GCC internal prototype to avoid an error.
45092 Use char because int might match the return type of a GCC
45093 builtin and then its argument prototype would still apply. */
45094 #ifdef __cplusplus
45095 extern "C"
45096 #endif
45097 char ${pbxfuncname} ();
45099 main ()
45101 return ${pbxfuncname} ();
45103 return 0;
45105 _ACEOF
45106 rm -f conftest.$ac_objext conftest$ac_exeext
45107 if { (ac_try="$ac_link"
45108 case "(($ac_try" in
45109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45110 *) ac_try_echo=$ac_try;;
45111 esac
45112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45113 (eval "$ac_link") 2>conftest.er1
45114 ac_status=$?
45115 grep -v '^ *+' conftest.er1 >conftest.err
45116 rm -f conftest.er1
45117 cat conftest.err >&5
45118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45119 (exit $ac_status); } && {
45120 test -z "$ac_c_werror_flag" ||
45121 test ! -s conftest.err
45122 } && test -s conftest$ac_exeext &&
45123 $as_test_x conftest$ac_exeext; then
45124 eval "$as_ac_Lib=yes"
45125 else
45126 echo "$as_me: failed program was:" >&5
45127 sed 's/^/| /' conftest.$ac_ext >&5
45129 eval "$as_ac_Lib=no"
45132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45133 conftest$ac_exeext conftest.$ac_ext
45134 LIBS=$ac_check_lib_save_LIBS
45136 ac_res=`eval echo '${'$as_ac_Lib'}'`
45137 { echo "$as_me:$LINENO: result: $ac_res" >&5
45138 echo "${ECHO_T}$ac_res" >&6; }
45139 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45140 AST_FREETDS_FOUND=yes
45141 else
45142 AST_FREETDS_FOUND=no
45147 # now check for the header.
45148 if test "${AST_FREETDS_FOUND}" = "yes"; then
45149 FREETDS_LIB="${pbxlibdir} -ltds "
45150 # if --with-FREETDS=DIR has been specified, use it.
45151 if test "x${FREETDS_DIR}" != "x"; then
45152 FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
45154 FREETDS_INCLUDE="${FREETDS_INCLUDE} "
45155 if test "xtds.h" = "x" ; then # no header, assume found
45156 FREETDS_HEADER_FOUND="1"
45157 else # check for the header
45158 saved_cppflags="${CPPFLAGS}"
45159 CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE} "
45160 if test "${ac_cv_header_tds_h+set}" = set; then
45161 { echo "$as_me:$LINENO: checking for tds.h" >&5
45162 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
45163 if test "${ac_cv_header_tds_h+set}" = set; then
45164 echo $ECHO_N "(cached) $ECHO_C" >&6
45166 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
45167 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
45168 else
45169 # Is the header compilable?
45170 { echo "$as_me:$LINENO: checking tds.h usability" >&5
45171 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
45172 cat >conftest.$ac_ext <<_ACEOF
45173 /* confdefs.h. */
45174 _ACEOF
45175 cat confdefs.h >>conftest.$ac_ext
45176 cat >>conftest.$ac_ext <<_ACEOF
45177 /* end confdefs.h. */
45178 $ac_includes_default
45179 #include <tds.h>
45180 _ACEOF
45181 rm -f conftest.$ac_objext
45182 if { (ac_try="$ac_compile"
45183 case "(($ac_try" in
45184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45185 *) ac_try_echo=$ac_try;;
45186 esac
45187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45188 (eval "$ac_compile") 2>conftest.er1
45189 ac_status=$?
45190 grep -v '^ *+' conftest.er1 >conftest.err
45191 rm -f conftest.er1
45192 cat conftest.err >&5
45193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194 (exit $ac_status); } && {
45195 test -z "$ac_c_werror_flag" ||
45196 test ! -s conftest.err
45197 } && test -s conftest.$ac_objext; then
45198 ac_header_compiler=yes
45199 else
45200 echo "$as_me: failed program was:" >&5
45201 sed 's/^/| /' conftest.$ac_ext >&5
45203 ac_header_compiler=no
45206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45208 echo "${ECHO_T}$ac_header_compiler" >&6; }
45210 # Is the header present?
45211 { echo "$as_me:$LINENO: checking tds.h presence" >&5
45212 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
45213 cat >conftest.$ac_ext <<_ACEOF
45214 /* confdefs.h. */
45215 _ACEOF
45216 cat confdefs.h >>conftest.$ac_ext
45217 cat >>conftest.$ac_ext <<_ACEOF
45218 /* end confdefs.h. */
45219 #include <tds.h>
45220 _ACEOF
45221 if { (ac_try="$ac_cpp conftest.$ac_ext"
45222 case "(($ac_try" in
45223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45224 *) ac_try_echo=$ac_try;;
45225 esac
45226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45228 ac_status=$?
45229 grep -v '^ *+' conftest.er1 >conftest.err
45230 rm -f conftest.er1
45231 cat conftest.err >&5
45232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45233 (exit $ac_status); } >/dev/null && {
45234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45235 test ! -s conftest.err
45236 }; then
45237 ac_header_preproc=yes
45238 else
45239 echo "$as_me: failed program was:" >&5
45240 sed 's/^/| /' conftest.$ac_ext >&5
45242 ac_header_preproc=no
45245 rm -f conftest.err conftest.$ac_ext
45246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45247 echo "${ECHO_T}$ac_header_preproc" >&6; }
45249 # So? What about this header?
45250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45251 yes:no: )
45252 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
45253 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
45254 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
45255 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
45256 ac_header_preproc=yes
45258 no:yes:* )
45259 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
45260 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
45261 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
45262 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
45263 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
45264 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
45265 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
45266 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
45267 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
45268 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
45269 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
45270 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
45271 ( cat <<\_ASBOX
45272 ## ------------------------------- ##
45273 ## Report this to www.asterisk.org ##
45274 ## ------------------------------- ##
45275 _ASBOX
45276 ) | sed "s/^/$as_me: WARNING: /" >&2
45278 esac
45279 { echo "$as_me:$LINENO: checking for tds.h" >&5
45280 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
45281 if test "${ac_cv_header_tds_h+set}" = set; then
45282 echo $ECHO_N "(cached) $ECHO_C" >&6
45283 else
45284 ac_cv_header_tds_h=$ac_header_preproc
45286 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
45287 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
45290 if test $ac_cv_header_tds_h = yes; then
45291 FREETDS_HEADER_FOUND=1
45292 else
45293 FREETDS_HEADER_FOUND=0
45297 CPPFLAGS="${saved_cppflags}"
45299 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
45300 FREETDS_LIB=""
45301 FREETDS_INCLUDE=""
45302 else
45303 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45304 FREETDS_LIB=""
45306 PBX_FREETDS=1
45307 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45309 cat >>confdefs.h <<_ACEOF
45310 #define HAVE_FREETDS 1
45311 _ACEOF
45314 cat >>confdefs.h <<_ACEOF
45315 #define HAVE_FREETDS_VERSION
45316 _ACEOF
45322 if test "${PBX_FREETDS}" != "0";
45323 then
45324 if test "${FREETDS_DIR}x" = "x";
45325 then
45326 for tds_dir in /usr /usr/local;
45328 if test -f "${tds_dir}/include/tdsver.h";
45329 then
45330 FREETDS_DIR="${tds_dir}"
45332 done
45334 case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
45335 *0.64*)
45336 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
45338 *0.63*)
45339 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
45341 *0.62*)
45342 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
45345 FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
45347 esac
45351 if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
45352 pbxlibdir=""
45353 # if --with-TERMCAP=DIR has been specified, use it.
45354 if test "x${TERMCAP_DIR}" != "x"; then
45355 if test -d ${TERMCAP_DIR}/lib; then
45356 pbxlibdir="-L${TERMCAP_DIR}/lib"
45357 else
45358 pbxlibdir="-L${TERMCAP_DIR}"
45361 pbxfuncname="tgetent"
45362 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45363 AST_TERMCAP_FOUND=yes
45364 else
45365 as_ac_Lib=`echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
45366 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltermcap" >&5
45367 echo $ECHO_N "checking for ${pbxfuncname} in -ltermcap... $ECHO_C" >&6; }
45368 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45369 echo $ECHO_N "(cached) $ECHO_C" >&6
45370 else
45371 ac_check_lib_save_LIBS=$LIBS
45372 LIBS="-ltermcap ${pbxlibdir} $LIBS"
45373 cat >conftest.$ac_ext <<_ACEOF
45374 /* confdefs.h. */
45375 _ACEOF
45376 cat confdefs.h >>conftest.$ac_ext
45377 cat >>conftest.$ac_ext <<_ACEOF
45378 /* end confdefs.h. */
45380 /* Override any GCC internal prototype to avoid an error.
45381 Use char because int might match the return type of a GCC
45382 builtin and then its argument prototype would still apply. */
45383 #ifdef __cplusplus
45384 extern "C"
45385 #endif
45386 char ${pbxfuncname} ();
45388 main ()
45390 return ${pbxfuncname} ();
45392 return 0;
45394 _ACEOF
45395 rm -f conftest.$ac_objext conftest$ac_exeext
45396 if { (ac_try="$ac_link"
45397 case "(($ac_try" in
45398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45399 *) ac_try_echo=$ac_try;;
45400 esac
45401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45402 (eval "$ac_link") 2>conftest.er1
45403 ac_status=$?
45404 grep -v '^ *+' conftest.er1 >conftest.err
45405 rm -f conftest.er1
45406 cat conftest.err >&5
45407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45408 (exit $ac_status); } && {
45409 test -z "$ac_c_werror_flag" ||
45410 test ! -s conftest.err
45411 } && test -s conftest$ac_exeext &&
45412 $as_test_x conftest$ac_exeext; then
45413 eval "$as_ac_Lib=yes"
45414 else
45415 echo "$as_me: failed program was:" >&5
45416 sed 's/^/| /' conftest.$ac_ext >&5
45418 eval "$as_ac_Lib=no"
45421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45422 conftest$ac_exeext conftest.$ac_ext
45423 LIBS=$ac_check_lib_save_LIBS
45425 ac_res=`eval echo '${'$as_ac_Lib'}'`
45426 { echo "$as_me:$LINENO: result: $ac_res" >&5
45427 echo "${ECHO_T}$ac_res" >&6; }
45428 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45429 AST_TERMCAP_FOUND=yes
45430 else
45431 AST_TERMCAP_FOUND=no
45436 # now check for the header.
45437 if test "${AST_TERMCAP_FOUND}" = "yes"; then
45438 TERMCAP_LIB="${pbxlibdir} -ltermcap "
45439 # if --with-TERMCAP=DIR has been specified, use it.
45440 if test "x${TERMCAP_DIR}" != "x"; then
45441 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
45443 TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
45444 if test "x" = "x" ; then # no header, assume found
45445 TERMCAP_HEADER_FOUND="1"
45446 else # check for the header
45447 saved_cppflags="${CPPFLAGS}"
45448 CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE} "
45449 if test "${ac_cv_header_+set}" = set; then
45450 { echo "$as_me:$LINENO: checking for " >&5
45451 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45452 if test "${ac_cv_header_+set}" = set; then
45453 echo $ECHO_N "(cached) $ECHO_C" >&6
45455 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45456 echo "${ECHO_T}$ac_cv_header_" >&6; }
45457 else
45458 # Is the header compilable?
45459 { echo "$as_me:$LINENO: checking usability" >&5
45460 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45461 cat >conftest.$ac_ext <<_ACEOF
45462 /* confdefs.h. */
45463 _ACEOF
45464 cat confdefs.h >>conftest.$ac_ext
45465 cat >>conftest.$ac_ext <<_ACEOF
45466 /* end confdefs.h. */
45467 $ac_includes_default
45468 #include <>
45469 _ACEOF
45470 rm -f conftest.$ac_objext
45471 if { (ac_try="$ac_compile"
45472 case "(($ac_try" in
45473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45474 *) ac_try_echo=$ac_try;;
45475 esac
45476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45477 (eval "$ac_compile") 2>conftest.er1
45478 ac_status=$?
45479 grep -v '^ *+' conftest.er1 >conftest.err
45480 rm -f conftest.er1
45481 cat conftest.err >&5
45482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45483 (exit $ac_status); } && {
45484 test -z "$ac_c_werror_flag" ||
45485 test ! -s conftest.err
45486 } && test -s conftest.$ac_objext; then
45487 ac_header_compiler=yes
45488 else
45489 echo "$as_me: failed program was:" >&5
45490 sed 's/^/| /' conftest.$ac_ext >&5
45492 ac_header_compiler=no
45495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45497 echo "${ECHO_T}$ac_header_compiler" >&6; }
45499 # Is the header present?
45500 { echo "$as_me:$LINENO: checking presence" >&5
45501 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45502 cat >conftest.$ac_ext <<_ACEOF
45503 /* confdefs.h. */
45504 _ACEOF
45505 cat confdefs.h >>conftest.$ac_ext
45506 cat >>conftest.$ac_ext <<_ACEOF
45507 /* end confdefs.h. */
45508 #include <>
45509 _ACEOF
45510 if { (ac_try="$ac_cpp conftest.$ac_ext"
45511 case "(($ac_try" in
45512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45513 *) ac_try_echo=$ac_try;;
45514 esac
45515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45517 ac_status=$?
45518 grep -v '^ *+' conftest.er1 >conftest.err
45519 rm -f conftest.er1
45520 cat conftest.err >&5
45521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45522 (exit $ac_status); } >/dev/null && {
45523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45524 test ! -s conftest.err
45525 }; then
45526 ac_header_preproc=yes
45527 else
45528 echo "$as_me: failed program was:" >&5
45529 sed 's/^/| /' conftest.$ac_ext >&5
45531 ac_header_preproc=no
45534 rm -f conftest.err conftest.$ac_ext
45535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45536 echo "${ECHO_T}$ac_header_preproc" >&6; }
45538 # So? What about this header?
45539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45540 yes:no: )
45541 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45542 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45543 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45544 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45545 ac_header_preproc=yes
45547 no:yes:* )
45548 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45549 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45550 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45551 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45552 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45553 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45554 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45555 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45556 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45557 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45558 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45559 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45560 ( cat <<\_ASBOX
45561 ## ------------------------------- ##
45562 ## Report this to www.asterisk.org ##
45563 ## ------------------------------- ##
45564 _ASBOX
45565 ) | sed "s/^/$as_me: WARNING: /" >&2
45567 esac
45568 { echo "$as_me:$LINENO: checking for " >&5
45569 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45570 if test "${ac_cv_header_+set}" = set; then
45571 echo $ECHO_N "(cached) $ECHO_C" >&6
45572 else
45573 ac_cv_header_=$ac_header_preproc
45575 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45576 echo "${ECHO_T}$ac_cv_header_" >&6; }
45579 if test $ac_cv_header_ = yes; then
45580 TERMCAP_HEADER_FOUND=1
45581 else
45582 TERMCAP_HEADER_FOUND=0
45586 CPPFLAGS="${saved_cppflags}"
45588 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
45589 TERMCAP_LIB=""
45590 TERMCAP_INCLUDE=""
45591 else
45592 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45593 TERMCAP_LIB=""
45595 PBX_TERMCAP=1
45596 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45598 cat >>confdefs.h <<_ACEOF
45599 #define HAVE_TERMCAP 1
45600 _ACEOF
45603 cat >>confdefs.h <<_ACEOF
45604 #define HAVE_TERMCAP_VERSION
45605 _ACEOF
45613 if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
45614 pbxlibdir=""
45615 # if --with-TINFO=DIR has been specified, use it.
45616 if test "x${TINFO_DIR}" != "x"; then
45617 if test -d ${TINFO_DIR}/lib; then
45618 pbxlibdir="-L${TINFO_DIR}/lib"
45619 else
45620 pbxlibdir="-L${TINFO_DIR}"
45623 pbxfuncname="tgetent"
45624 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45625 AST_TINFO_FOUND=yes
45626 else
45627 as_ac_Lib=`echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
45628 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltinfo" >&5
45629 echo $ECHO_N "checking for ${pbxfuncname} in -ltinfo... $ECHO_C" >&6; }
45630 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45631 echo $ECHO_N "(cached) $ECHO_C" >&6
45632 else
45633 ac_check_lib_save_LIBS=$LIBS
45634 LIBS="-ltinfo ${pbxlibdir} $LIBS"
45635 cat >conftest.$ac_ext <<_ACEOF
45636 /* confdefs.h. */
45637 _ACEOF
45638 cat confdefs.h >>conftest.$ac_ext
45639 cat >>conftest.$ac_ext <<_ACEOF
45640 /* end confdefs.h. */
45642 /* Override any GCC internal prototype to avoid an error.
45643 Use char because int might match the return type of a GCC
45644 builtin and then its argument prototype would still apply. */
45645 #ifdef __cplusplus
45646 extern "C"
45647 #endif
45648 char ${pbxfuncname} ();
45650 main ()
45652 return ${pbxfuncname} ();
45654 return 0;
45656 _ACEOF
45657 rm -f conftest.$ac_objext conftest$ac_exeext
45658 if { (ac_try="$ac_link"
45659 case "(($ac_try" in
45660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45661 *) ac_try_echo=$ac_try;;
45662 esac
45663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45664 (eval "$ac_link") 2>conftest.er1
45665 ac_status=$?
45666 grep -v '^ *+' conftest.er1 >conftest.err
45667 rm -f conftest.er1
45668 cat conftest.err >&5
45669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45670 (exit $ac_status); } && {
45671 test -z "$ac_c_werror_flag" ||
45672 test ! -s conftest.err
45673 } && test -s conftest$ac_exeext &&
45674 $as_test_x conftest$ac_exeext; then
45675 eval "$as_ac_Lib=yes"
45676 else
45677 echo "$as_me: failed program was:" >&5
45678 sed 's/^/| /' conftest.$ac_ext >&5
45680 eval "$as_ac_Lib=no"
45683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45684 conftest$ac_exeext conftest.$ac_ext
45685 LIBS=$ac_check_lib_save_LIBS
45687 ac_res=`eval echo '${'$as_ac_Lib'}'`
45688 { echo "$as_me:$LINENO: result: $ac_res" >&5
45689 echo "${ECHO_T}$ac_res" >&6; }
45690 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45691 AST_TINFO_FOUND=yes
45692 else
45693 AST_TINFO_FOUND=no
45698 # now check for the header.
45699 if test "${AST_TINFO_FOUND}" = "yes"; then
45700 TINFO_LIB="${pbxlibdir} -ltinfo "
45701 # if --with-TINFO=DIR has been specified, use it.
45702 if test "x${TINFO_DIR}" != "x"; then
45703 TINFO_INCLUDE="-I${TINFO_DIR}/include"
45705 TINFO_INCLUDE="${TINFO_INCLUDE} "
45706 if test "x" = "x" ; then # no header, assume found
45707 TINFO_HEADER_FOUND="1"
45708 else # check for the header
45709 saved_cppflags="${CPPFLAGS}"
45710 CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE} "
45711 if test "${ac_cv_header_+set}" = set; then
45712 { echo "$as_me:$LINENO: checking for " >&5
45713 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45714 if test "${ac_cv_header_+set}" = set; then
45715 echo $ECHO_N "(cached) $ECHO_C" >&6
45717 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45718 echo "${ECHO_T}$ac_cv_header_" >&6; }
45719 else
45720 # Is the header compilable?
45721 { echo "$as_me:$LINENO: checking usability" >&5
45722 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
45723 cat >conftest.$ac_ext <<_ACEOF
45724 /* confdefs.h. */
45725 _ACEOF
45726 cat confdefs.h >>conftest.$ac_ext
45727 cat >>conftest.$ac_ext <<_ACEOF
45728 /* end confdefs.h. */
45729 $ac_includes_default
45730 #include <>
45731 _ACEOF
45732 rm -f conftest.$ac_objext
45733 if { (ac_try="$ac_compile"
45734 case "(($ac_try" in
45735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45736 *) ac_try_echo=$ac_try;;
45737 esac
45738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45739 (eval "$ac_compile") 2>conftest.er1
45740 ac_status=$?
45741 grep -v '^ *+' conftest.er1 >conftest.err
45742 rm -f conftest.er1
45743 cat conftest.err >&5
45744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45745 (exit $ac_status); } && {
45746 test -z "$ac_c_werror_flag" ||
45747 test ! -s conftest.err
45748 } && test -s conftest.$ac_objext; then
45749 ac_header_compiler=yes
45750 else
45751 echo "$as_me: failed program was:" >&5
45752 sed 's/^/| /' conftest.$ac_ext >&5
45754 ac_header_compiler=no
45757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45759 echo "${ECHO_T}$ac_header_compiler" >&6; }
45761 # Is the header present?
45762 { echo "$as_me:$LINENO: checking presence" >&5
45763 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
45764 cat >conftest.$ac_ext <<_ACEOF
45765 /* confdefs.h. */
45766 _ACEOF
45767 cat confdefs.h >>conftest.$ac_ext
45768 cat >>conftest.$ac_ext <<_ACEOF
45769 /* end confdefs.h. */
45770 #include <>
45771 _ACEOF
45772 if { (ac_try="$ac_cpp conftest.$ac_ext"
45773 case "(($ac_try" in
45774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45775 *) ac_try_echo=$ac_try;;
45776 esac
45777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45779 ac_status=$?
45780 grep -v '^ *+' conftest.er1 >conftest.err
45781 rm -f conftest.er1
45782 cat conftest.err >&5
45783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45784 (exit $ac_status); } >/dev/null && {
45785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45786 test ! -s conftest.err
45787 }; then
45788 ac_header_preproc=yes
45789 else
45790 echo "$as_me: failed program was:" >&5
45791 sed 's/^/| /' conftest.$ac_ext >&5
45793 ac_header_preproc=no
45796 rm -f conftest.err conftest.$ac_ext
45797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45798 echo "${ECHO_T}$ac_header_preproc" >&6; }
45800 # So? What about this header?
45801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45802 yes:no: )
45803 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
45804 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
45805 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
45806 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
45807 ac_header_preproc=yes
45809 no:yes:* )
45810 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
45811 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
45812 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
45813 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
45814 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
45815 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
45816 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
45817 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
45818 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
45819 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
45820 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
45821 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
45822 ( cat <<\_ASBOX
45823 ## ------------------------------- ##
45824 ## Report this to www.asterisk.org ##
45825 ## ------------------------------- ##
45826 _ASBOX
45827 ) | sed "s/^/$as_me: WARNING: /" >&2
45829 esac
45830 { echo "$as_me:$LINENO: checking for " >&5
45831 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
45832 if test "${ac_cv_header_+set}" = set; then
45833 echo $ECHO_N "(cached) $ECHO_C" >&6
45834 else
45835 ac_cv_header_=$ac_header_preproc
45837 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
45838 echo "${ECHO_T}$ac_cv_header_" >&6; }
45841 if test $ac_cv_header_ = yes; then
45842 TINFO_HEADER_FOUND=1
45843 else
45844 TINFO_HEADER_FOUND=0
45848 CPPFLAGS="${saved_cppflags}"
45850 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
45851 TINFO_LIB=""
45852 TINFO_INCLUDE=""
45853 else
45854 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
45855 TINFO_LIB=""
45857 PBX_TINFO=1
45858 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
45860 cat >>confdefs.h <<_ACEOF
45861 #define HAVE_TINFO 1
45862 _ACEOF
45865 cat >>confdefs.h <<_ACEOF
45866 #define HAVE_TINFO_VERSION
45867 _ACEOF
45874 if test "${host_os}" != "linux-gnu" ; then
45875 tonezone_extra="-lm"
45878 # new tonezone, version 1.4.0
45880 if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
45881 pbxlibdir=""
45882 # if --with-TONEZONE=DIR has been specified, use it.
45883 if test "x${TONEZONE_DIR}" != "x"; then
45884 if test -d ${TONEZONE_DIR}/lib; then
45885 pbxlibdir="-L${TONEZONE_DIR}/lib"
45886 else
45887 pbxlibdir="-L${TONEZONE_DIR}"
45890 pbxfuncname="tone_zone_find"
45891 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
45892 AST_TONEZONE_FOUND=yes
45893 else
45894 as_ac_Lib=`echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
45895 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -ltonezone" >&5
45896 echo $ECHO_N "checking for ${pbxfuncname} in -ltonezone... $ECHO_C" >&6; }
45897 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45898 echo $ECHO_N "(cached) $ECHO_C" >&6
45899 else
45900 ac_check_lib_save_LIBS=$LIBS
45901 LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
45902 cat >conftest.$ac_ext <<_ACEOF
45903 /* confdefs.h. */
45904 _ACEOF
45905 cat confdefs.h >>conftest.$ac_ext
45906 cat >>conftest.$ac_ext <<_ACEOF
45907 /* end confdefs.h. */
45909 /* Override any GCC internal prototype to avoid an error.
45910 Use char because int might match the return type of a GCC
45911 builtin and then its argument prototype would still apply. */
45912 #ifdef __cplusplus
45913 extern "C"
45914 #endif
45915 char ${pbxfuncname} ();
45917 main ()
45919 return ${pbxfuncname} ();
45921 return 0;
45923 _ACEOF
45924 rm -f conftest.$ac_objext conftest$ac_exeext
45925 if { (ac_try="$ac_link"
45926 case "(($ac_try" in
45927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45928 *) ac_try_echo=$ac_try;;
45929 esac
45930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45931 (eval "$ac_link") 2>conftest.er1
45932 ac_status=$?
45933 grep -v '^ *+' conftest.er1 >conftest.err
45934 rm -f conftest.er1
45935 cat conftest.err >&5
45936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45937 (exit $ac_status); } && {
45938 test -z "$ac_c_werror_flag" ||
45939 test ! -s conftest.err
45940 } && test -s conftest$ac_exeext &&
45941 $as_test_x conftest$ac_exeext; then
45942 eval "$as_ac_Lib=yes"
45943 else
45944 echo "$as_me: failed program was:" >&5
45945 sed 's/^/| /' conftest.$ac_ext >&5
45947 eval "$as_ac_Lib=no"
45950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45951 conftest$ac_exeext conftest.$ac_ext
45952 LIBS=$ac_check_lib_save_LIBS
45954 ac_res=`eval echo '${'$as_ac_Lib'}'`
45955 { echo "$as_me:$LINENO: result: $ac_res" >&5
45956 echo "${ECHO_T}$ac_res" >&6; }
45957 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
45958 AST_TONEZONE_FOUND=yes
45959 else
45960 AST_TONEZONE_FOUND=no
45965 # now check for the header.
45966 if test "${AST_TONEZONE_FOUND}" = "yes"; then
45967 TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra}"
45968 # if --with-TONEZONE=DIR has been specified, use it.
45969 if test "x${TONEZONE_DIR}" != "x"; then
45970 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
45972 TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
45973 if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
45974 TONEZONE_HEADER_FOUND="1"
45975 else # check for the header
45976 saved_cppflags="${CPPFLAGS}"
45977 CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE} "
45978 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
45979 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
45980 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
45981 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
45982 echo $ECHO_N "(cached) $ECHO_C" >&6
45984 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
45985 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
45986 else
45987 # Is the header compilable?
45988 { echo "$as_me:$LINENO: checking dahdi/tonezone.h usability" >&5
45989 echo $ECHO_N "checking dahdi/tonezone.h usability... $ECHO_C" >&6; }
45990 cat >conftest.$ac_ext <<_ACEOF
45991 /* confdefs.h. */
45992 _ACEOF
45993 cat confdefs.h >>conftest.$ac_ext
45994 cat >>conftest.$ac_ext <<_ACEOF
45995 /* end confdefs.h. */
45996 $ac_includes_default
45997 #include <dahdi/tonezone.h>
45998 _ACEOF
45999 rm -f conftest.$ac_objext
46000 if { (ac_try="$ac_compile"
46001 case "(($ac_try" in
46002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46003 *) ac_try_echo=$ac_try;;
46004 esac
46005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46006 (eval "$ac_compile") 2>conftest.er1
46007 ac_status=$?
46008 grep -v '^ *+' conftest.er1 >conftest.err
46009 rm -f conftest.er1
46010 cat conftest.err >&5
46011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46012 (exit $ac_status); } && {
46013 test -z "$ac_c_werror_flag" ||
46014 test ! -s conftest.err
46015 } && test -s conftest.$ac_objext; then
46016 ac_header_compiler=yes
46017 else
46018 echo "$as_me: failed program was:" >&5
46019 sed 's/^/| /' conftest.$ac_ext >&5
46021 ac_header_compiler=no
46024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46026 echo "${ECHO_T}$ac_header_compiler" >&6; }
46028 # Is the header present?
46029 { echo "$as_me:$LINENO: checking dahdi/tonezone.h presence" >&5
46030 echo $ECHO_N "checking dahdi/tonezone.h presence... $ECHO_C" >&6; }
46031 cat >conftest.$ac_ext <<_ACEOF
46032 /* confdefs.h. */
46033 _ACEOF
46034 cat confdefs.h >>conftest.$ac_ext
46035 cat >>conftest.$ac_ext <<_ACEOF
46036 /* end confdefs.h. */
46037 #include <dahdi/tonezone.h>
46038 _ACEOF
46039 if { (ac_try="$ac_cpp conftest.$ac_ext"
46040 case "(($ac_try" in
46041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46042 *) ac_try_echo=$ac_try;;
46043 esac
46044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46046 ac_status=$?
46047 grep -v '^ *+' conftest.er1 >conftest.err
46048 rm -f conftest.er1
46049 cat conftest.err >&5
46050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46051 (exit $ac_status); } >/dev/null && {
46052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46053 test ! -s conftest.err
46054 }; then
46055 ac_header_preproc=yes
46056 else
46057 echo "$as_me: failed program was:" >&5
46058 sed 's/^/| /' conftest.$ac_ext >&5
46060 ac_header_preproc=no
46063 rm -f conftest.err conftest.$ac_ext
46064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46065 echo "${ECHO_T}$ac_header_preproc" >&6; }
46067 # So? What about this header?
46068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46069 yes:no: )
46070 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
46071 echo "$as_me: WARNING: dahdi/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46072 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&5
46073 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the compiler's result" >&2;}
46074 ac_header_preproc=yes
46076 no:yes:* )
46077 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&5
46078 echo "$as_me: WARNING: dahdi/tonezone.h: present but cannot be compiled" >&2;}
46079 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&5
46080 echo "$as_me: WARNING: dahdi/tonezone.h: check for missing prerequisite headers?" >&2;}
46081 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&5
46082 echo "$as_me: WARNING: dahdi/tonezone.h: see the Autoconf documentation" >&2;}
46083 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
46084 echo "$as_me: WARNING: dahdi/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
46085 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&5
46086 echo "$as_me: WARNING: dahdi/tonezone.h: proceeding with the preprocessor's result" >&2;}
46087 { echo "$as_me:$LINENO: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&5
46088 echo "$as_me: WARNING: dahdi/tonezone.h: in the future, the compiler will take precedence" >&2;}
46089 ( cat <<\_ASBOX
46090 ## ------------------------------- ##
46091 ## Report this to www.asterisk.org ##
46092 ## ------------------------------- ##
46093 _ASBOX
46094 ) | sed "s/^/$as_me: WARNING: /" >&2
46096 esac
46097 { echo "$as_me:$LINENO: checking for dahdi/tonezone.h" >&5
46098 echo $ECHO_N "checking for dahdi/tonezone.h... $ECHO_C" >&6; }
46099 if test "${ac_cv_header_dahdi_tonezone_h+set}" = set; then
46100 echo $ECHO_N "(cached) $ECHO_C" >&6
46101 else
46102 ac_cv_header_dahdi_tonezone_h=$ac_header_preproc
46104 { echo "$as_me:$LINENO: result: $ac_cv_header_dahdi_tonezone_h" >&5
46105 echo "${ECHO_T}$ac_cv_header_dahdi_tonezone_h" >&6; }
46108 if test $ac_cv_header_dahdi_tonezone_h = yes; then
46109 TONEZONE_HEADER_FOUND=1
46110 else
46111 TONEZONE_HEADER_FOUND=0
46115 CPPFLAGS="${saved_cppflags}"
46117 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
46118 TONEZONE_LIB=""
46119 TONEZONE_INCLUDE=""
46120 else
46121 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46122 TONEZONE_LIB=""
46124 PBX_TONEZONE=1
46125 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46127 cat >>confdefs.h <<_ACEOF
46128 #define HAVE_TONEZONE 1
46129 _ACEOF
46132 cat >>confdefs.h <<_ACEOF
46133 #define HAVE_TONEZONE_VERSION
46134 _ACEOF
46142 if test "x${PBX_USB}" != "x1" -a "${USE_USB}" != "no"; then
46143 pbxlibdir=""
46144 # if --with-USB=DIR has been specified, use it.
46145 if test "x${USB_DIR}" != "x"; then
46146 if test -d ${USB_DIR}/lib; then
46147 pbxlibdir="-L${USB_DIR}/lib"
46148 else
46149 pbxlibdir="-L${USB_DIR}"
46152 pbxfuncname="usb_init"
46153 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46154 AST_USB_FOUND=yes
46155 else
46156 as_ac_Lib=`echo "ac_cv_lib_usb_${pbxfuncname}" | $as_tr_sh`
46157 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lusb" >&5
46158 echo $ECHO_N "checking for ${pbxfuncname} in -lusb... $ECHO_C" >&6; }
46159 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46160 echo $ECHO_N "(cached) $ECHO_C" >&6
46161 else
46162 ac_check_lib_save_LIBS=$LIBS
46163 LIBS="-lusb ${pbxlibdir} $LIBS"
46164 cat >conftest.$ac_ext <<_ACEOF
46165 /* confdefs.h. */
46166 _ACEOF
46167 cat confdefs.h >>conftest.$ac_ext
46168 cat >>conftest.$ac_ext <<_ACEOF
46169 /* end confdefs.h. */
46171 /* Override any GCC internal prototype to avoid an error.
46172 Use char because int might match the return type of a GCC
46173 builtin and then its argument prototype would still apply. */
46174 #ifdef __cplusplus
46175 extern "C"
46176 #endif
46177 char ${pbxfuncname} ();
46179 main ()
46181 return ${pbxfuncname} ();
46183 return 0;
46185 _ACEOF
46186 rm -f conftest.$ac_objext conftest$ac_exeext
46187 if { (ac_try="$ac_link"
46188 case "(($ac_try" in
46189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46190 *) ac_try_echo=$ac_try;;
46191 esac
46192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46193 (eval "$ac_link") 2>conftest.er1
46194 ac_status=$?
46195 grep -v '^ *+' conftest.er1 >conftest.err
46196 rm -f conftest.er1
46197 cat conftest.err >&5
46198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46199 (exit $ac_status); } && {
46200 test -z "$ac_c_werror_flag" ||
46201 test ! -s conftest.err
46202 } && test -s conftest$ac_exeext &&
46203 $as_test_x conftest$ac_exeext; then
46204 eval "$as_ac_Lib=yes"
46205 else
46206 echo "$as_me: failed program was:" >&5
46207 sed 's/^/| /' conftest.$ac_ext >&5
46209 eval "$as_ac_Lib=no"
46212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46213 conftest$ac_exeext conftest.$ac_ext
46214 LIBS=$ac_check_lib_save_LIBS
46216 ac_res=`eval echo '${'$as_ac_Lib'}'`
46217 { echo "$as_me:$LINENO: result: $ac_res" >&5
46218 echo "${ECHO_T}$ac_res" >&6; }
46219 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46220 AST_USB_FOUND=yes
46221 else
46222 AST_USB_FOUND=no
46227 # now check for the header.
46228 if test "${AST_USB_FOUND}" = "yes"; then
46229 USB_LIB="${pbxlibdir} -lusb "
46230 # if --with-USB=DIR has been specified, use it.
46231 if test "x${USB_DIR}" != "x"; then
46232 USB_INCLUDE="-I${USB_DIR}/include"
46234 USB_INCLUDE="${USB_INCLUDE} "
46235 if test "xusb.h" = "x" ; then # no header, assume found
46236 USB_HEADER_FOUND="1"
46237 else # check for the header
46238 saved_cppflags="${CPPFLAGS}"
46239 CPPFLAGS="${CPPFLAGS} ${USB_INCLUDE} "
46240 if test "${ac_cv_header_usb_h+set}" = set; then
46241 { echo "$as_me:$LINENO: checking for usb.h" >&5
46242 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46243 if test "${ac_cv_header_usb_h+set}" = set; then
46244 echo $ECHO_N "(cached) $ECHO_C" >&6
46246 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46247 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46248 else
46249 # Is the header compilable?
46250 { echo "$as_me:$LINENO: checking usb.h usability" >&5
46251 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
46252 cat >conftest.$ac_ext <<_ACEOF
46253 /* confdefs.h. */
46254 _ACEOF
46255 cat confdefs.h >>conftest.$ac_ext
46256 cat >>conftest.$ac_ext <<_ACEOF
46257 /* end confdefs.h. */
46258 $ac_includes_default
46259 #include <usb.h>
46260 _ACEOF
46261 rm -f conftest.$ac_objext
46262 if { (ac_try="$ac_compile"
46263 case "(($ac_try" in
46264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46265 *) ac_try_echo=$ac_try;;
46266 esac
46267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46268 (eval "$ac_compile") 2>conftest.er1
46269 ac_status=$?
46270 grep -v '^ *+' conftest.er1 >conftest.err
46271 rm -f conftest.er1
46272 cat conftest.err >&5
46273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46274 (exit $ac_status); } && {
46275 test -z "$ac_c_werror_flag" ||
46276 test ! -s conftest.err
46277 } && test -s conftest.$ac_objext; then
46278 ac_header_compiler=yes
46279 else
46280 echo "$as_me: failed program was:" >&5
46281 sed 's/^/| /' conftest.$ac_ext >&5
46283 ac_header_compiler=no
46286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46288 echo "${ECHO_T}$ac_header_compiler" >&6; }
46290 # Is the header present?
46291 { echo "$as_me:$LINENO: checking usb.h presence" >&5
46292 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
46293 cat >conftest.$ac_ext <<_ACEOF
46294 /* confdefs.h. */
46295 _ACEOF
46296 cat confdefs.h >>conftest.$ac_ext
46297 cat >>conftest.$ac_ext <<_ACEOF
46298 /* end confdefs.h. */
46299 #include <usb.h>
46300 _ACEOF
46301 if { (ac_try="$ac_cpp conftest.$ac_ext"
46302 case "(($ac_try" in
46303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46304 *) ac_try_echo=$ac_try;;
46305 esac
46306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46308 ac_status=$?
46309 grep -v '^ *+' conftest.er1 >conftest.err
46310 rm -f conftest.er1
46311 cat conftest.err >&5
46312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46313 (exit $ac_status); } >/dev/null && {
46314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46315 test ! -s conftest.err
46316 }; then
46317 ac_header_preproc=yes
46318 else
46319 echo "$as_me: failed program was:" >&5
46320 sed 's/^/| /' conftest.$ac_ext >&5
46322 ac_header_preproc=no
46325 rm -f conftest.err conftest.$ac_ext
46326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46327 echo "${ECHO_T}$ac_header_preproc" >&6; }
46329 # So? What about this header?
46330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46331 yes:no: )
46332 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
46333 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46334 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
46335 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
46336 ac_header_preproc=yes
46338 no:yes:* )
46339 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
46340 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
46341 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
46342 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
46343 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
46344 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
46345 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
46346 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
46347 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
46348 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
46349 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
46350 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
46351 ( cat <<\_ASBOX
46352 ## ------------------------------- ##
46353 ## Report this to www.asterisk.org ##
46354 ## ------------------------------- ##
46355 _ASBOX
46356 ) | sed "s/^/$as_me: WARNING: /" >&2
46358 esac
46359 { echo "$as_me:$LINENO: checking for usb.h" >&5
46360 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
46361 if test "${ac_cv_header_usb_h+set}" = set; then
46362 echo $ECHO_N "(cached) $ECHO_C" >&6
46363 else
46364 ac_cv_header_usb_h=$ac_header_preproc
46366 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
46367 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
46370 if test $ac_cv_header_usb_h = yes; then
46371 USB_HEADER_FOUND=1
46372 else
46373 USB_HEADER_FOUND=0
46377 CPPFLAGS="${saved_cppflags}"
46379 if test "x${USB_HEADER_FOUND}" = "x0" ; then
46380 USB_LIB=""
46381 USB_INCLUDE=""
46382 else
46383 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46384 USB_LIB=""
46386 PBX_USB=1
46387 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46389 cat >>confdefs.h <<_ACEOF
46390 #define HAVE_USB 1
46391 _ACEOF
46394 cat >>confdefs.h <<_ACEOF
46395 #define HAVE_USB_VERSION
46396 _ACEOF
46404 if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
46405 pbxlibdir=""
46406 # if --with-VORBIS=DIR has been specified, use it.
46407 if test "x${VORBIS_DIR}" != "x"; then
46408 if test -d ${VORBIS_DIR}/lib; then
46409 pbxlibdir="-L${VORBIS_DIR}/lib"
46410 else
46411 pbxlibdir="-L${VORBIS_DIR}"
46414 pbxfuncname="vorbis_info_init"
46415 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46416 AST_VORBIS_FOUND=yes
46417 else
46418 as_ac_Lib=`echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
46419 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lvorbis" >&5
46420 echo $ECHO_N "checking for ${pbxfuncname} in -lvorbis... $ECHO_C" >&6; }
46421 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46422 echo $ECHO_N "(cached) $ECHO_C" >&6
46423 else
46424 ac_check_lib_save_LIBS=$LIBS
46425 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
46426 cat >conftest.$ac_ext <<_ACEOF
46427 /* confdefs.h. */
46428 _ACEOF
46429 cat confdefs.h >>conftest.$ac_ext
46430 cat >>conftest.$ac_ext <<_ACEOF
46431 /* end confdefs.h. */
46433 /* Override any GCC internal prototype to avoid an error.
46434 Use char because int might match the return type of a GCC
46435 builtin and then its argument prototype would still apply. */
46436 #ifdef __cplusplus
46437 extern "C"
46438 #endif
46439 char ${pbxfuncname} ();
46441 main ()
46443 return ${pbxfuncname} ();
46445 return 0;
46447 _ACEOF
46448 rm -f conftest.$ac_objext conftest$ac_exeext
46449 if { (ac_try="$ac_link"
46450 case "(($ac_try" in
46451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46452 *) ac_try_echo=$ac_try;;
46453 esac
46454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46455 (eval "$ac_link") 2>conftest.er1
46456 ac_status=$?
46457 grep -v '^ *+' conftest.er1 >conftest.err
46458 rm -f conftest.er1
46459 cat conftest.err >&5
46460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46461 (exit $ac_status); } && {
46462 test -z "$ac_c_werror_flag" ||
46463 test ! -s conftest.err
46464 } && test -s conftest$ac_exeext &&
46465 $as_test_x conftest$ac_exeext; then
46466 eval "$as_ac_Lib=yes"
46467 else
46468 echo "$as_me: failed program was:" >&5
46469 sed 's/^/| /' conftest.$ac_ext >&5
46471 eval "$as_ac_Lib=no"
46474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46475 conftest$ac_exeext conftest.$ac_ext
46476 LIBS=$ac_check_lib_save_LIBS
46478 ac_res=`eval echo '${'$as_ac_Lib'}'`
46479 { echo "$as_me:$LINENO: result: $ac_res" >&5
46480 echo "${ECHO_T}$ac_res" >&6; }
46481 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46482 AST_VORBIS_FOUND=yes
46483 else
46484 AST_VORBIS_FOUND=no
46489 # now check for the header.
46490 if test "${AST_VORBIS_FOUND}" = "yes"; then
46491 VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc"
46492 # if --with-VORBIS=DIR has been specified, use it.
46493 if test "x${VORBIS_DIR}" != "x"; then
46494 VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
46496 VORBIS_INCLUDE="${VORBIS_INCLUDE} "
46497 if test "xvorbis/codec.h" = "x" ; then # no header, assume found
46498 VORBIS_HEADER_FOUND="1"
46499 else # check for the header
46500 saved_cppflags="${CPPFLAGS}"
46501 CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE} "
46502 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46503 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46504 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46505 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46506 echo $ECHO_N "(cached) $ECHO_C" >&6
46508 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46509 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46510 else
46511 # Is the header compilable?
46512 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
46513 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
46514 cat >conftest.$ac_ext <<_ACEOF
46515 /* confdefs.h. */
46516 _ACEOF
46517 cat confdefs.h >>conftest.$ac_ext
46518 cat >>conftest.$ac_ext <<_ACEOF
46519 /* end confdefs.h. */
46520 $ac_includes_default
46521 #include <vorbis/codec.h>
46522 _ACEOF
46523 rm -f conftest.$ac_objext
46524 if { (ac_try="$ac_compile"
46525 case "(($ac_try" in
46526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46527 *) ac_try_echo=$ac_try;;
46528 esac
46529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46530 (eval "$ac_compile") 2>conftest.er1
46531 ac_status=$?
46532 grep -v '^ *+' conftest.er1 >conftest.err
46533 rm -f conftest.er1
46534 cat conftest.err >&5
46535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46536 (exit $ac_status); } && {
46537 test -z "$ac_c_werror_flag" ||
46538 test ! -s conftest.err
46539 } && test -s conftest.$ac_objext; then
46540 ac_header_compiler=yes
46541 else
46542 echo "$as_me: failed program was:" >&5
46543 sed 's/^/| /' conftest.$ac_ext >&5
46545 ac_header_compiler=no
46548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46550 echo "${ECHO_T}$ac_header_compiler" >&6; }
46552 # Is the header present?
46553 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
46554 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
46555 cat >conftest.$ac_ext <<_ACEOF
46556 /* confdefs.h. */
46557 _ACEOF
46558 cat confdefs.h >>conftest.$ac_ext
46559 cat >>conftest.$ac_ext <<_ACEOF
46560 /* end confdefs.h. */
46561 #include <vorbis/codec.h>
46562 _ACEOF
46563 if { (ac_try="$ac_cpp conftest.$ac_ext"
46564 case "(($ac_try" in
46565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46566 *) ac_try_echo=$ac_try;;
46567 esac
46568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46570 ac_status=$?
46571 grep -v '^ *+' conftest.er1 >conftest.err
46572 rm -f conftest.er1
46573 cat conftest.err >&5
46574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46575 (exit $ac_status); } >/dev/null && {
46576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46577 test ! -s conftest.err
46578 }; then
46579 ac_header_preproc=yes
46580 else
46581 echo "$as_me: failed program was:" >&5
46582 sed 's/^/| /' conftest.$ac_ext >&5
46584 ac_header_preproc=no
46587 rm -f conftest.err conftest.$ac_ext
46588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46589 echo "${ECHO_T}$ac_header_preproc" >&6; }
46591 # So? What about this header?
46592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46593 yes:no: )
46594 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
46595 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46596 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
46597 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
46598 ac_header_preproc=yes
46600 no:yes:* )
46601 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
46602 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
46603 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
46604 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
46605 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
46606 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
46607 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
46608 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
46609 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
46610 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
46611 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
46612 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
46613 ( cat <<\_ASBOX
46614 ## ------------------------------- ##
46615 ## Report this to www.asterisk.org ##
46616 ## ------------------------------- ##
46617 _ASBOX
46618 ) | sed "s/^/$as_me: WARNING: /" >&2
46620 esac
46621 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
46622 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
46623 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
46624 echo $ECHO_N "(cached) $ECHO_C" >&6
46625 else
46626 ac_cv_header_vorbis_codec_h=$ac_header_preproc
46628 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
46629 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
46632 if test $ac_cv_header_vorbis_codec_h = yes; then
46633 VORBIS_HEADER_FOUND=1
46634 else
46635 VORBIS_HEADER_FOUND=0
46639 CPPFLAGS="${saved_cppflags}"
46641 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
46642 VORBIS_LIB=""
46643 VORBIS_INCLUDE=""
46644 else
46645 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
46646 VORBIS_LIB=""
46648 PBX_VORBIS=1
46649 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
46651 cat >>confdefs.h <<_ACEOF
46652 #define HAVE_VORBIS 1
46653 _ACEOF
46656 cat >>confdefs.h <<_ACEOF
46657 #define HAVE_VORBIS_VERSION
46658 _ACEOF
46665 ac_ext=cpp
46666 ac_cpp='$CXXCPP $CPPFLAGS'
46667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46672 if test "${USE_VPB}" != "no"; then
46673 { echo "$as_me:$LINENO: checking for vpb_open in -lvpb" >&5
46674 echo $ECHO_N "checking for vpb_open in -lvpb... $ECHO_C" >&6; }
46675 saved_libs="${LIBS}"
46676 saved_cppflags="${CPPFLAGS}"
46677 if test "x${VPB_DIR}" != "x"; then
46678 if test -d ${VPB_DIR}/lib; then
46679 vpblibdir=${VPB_DIR}/lib
46680 else
46681 vpblibdir=${VPB_DIR}
46683 LIBS="${LIBS} -L${vpblibdir}"
46684 CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
46686 LIBS="${LIBS} -lvpb -lpthread"
46687 cat >conftest.$ac_ext <<_ACEOF
46689 /* confdefs.h. */
46690 _ACEOF
46691 cat confdefs.h >>conftest.$ac_ext
46692 cat >>conftest.$ac_ext <<_ACEOF
46693 /* end confdefs.h. */
46694 #include <vpbapi.h>
46696 main ()
46698 int q = vpb_open(0,0);
46700 return 0;
46703 _ACEOF
46704 rm -f conftest.$ac_objext conftest$ac_exeext
46705 if { (ac_try="$ac_link"
46706 case "(($ac_try" in
46707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46708 *) ac_try_echo=$ac_try;;
46709 esac
46710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46711 (eval "$ac_link") 2>conftest.er1
46712 ac_status=$?
46713 grep -v '^ *+' conftest.er1 >conftest.err
46714 rm -f conftest.er1
46715 cat conftest.err >&5
46716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46717 (exit $ac_status); } && {
46718 test -z "$ac_cxx_werror_flag" ||
46719 test ! -s conftest.err
46720 } && test -s conftest$ac_exeext &&
46721 $as_test_x conftest$ac_exeext; then
46722 { echo "$as_me:$LINENO: result: yes" >&5
46723 echo "${ECHO_T}yes" >&6; }
46724 ac_cv_lib_vpb_vpb_open="yes"
46726 else
46727 echo "$as_me: failed program was:" >&5
46728 sed 's/^/| /' conftest.$ac_ext >&5
46730 { echo "$as_me:$LINENO: result: no" >&5
46731 echo "${ECHO_T}no" >&6; }
46732 ac_cv_lib_vpb_vpb_open="no"
46737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46738 conftest$ac_exeext conftest.$ac_ext
46739 LIBS="${saved_libs}"
46740 CPPFLAGS="${saved_cppflags}"
46741 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
46742 VPB_LIB="-lvpb"
46743 if test "${VPB_DIR}" != ""; then
46744 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
46745 VPB_INCLUDE="-I${VPB_DIR}/include"
46747 PBX_VPB=1
46749 cat >>confdefs.h <<\_ACEOF
46750 #define HAVE_VPB 1
46751 _ACEOF
46756 ac_ext=c
46757 ac_cpp='$CPP $CPPFLAGS'
46758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46764 if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
46765 pbxlibdir=""
46766 # if --with-ZLIB=DIR has been specified, use it.
46767 if test "x${ZLIB_DIR}" != "x"; then
46768 if test -d ${ZLIB_DIR}/lib; then
46769 pbxlibdir="-L${ZLIB_DIR}/lib"
46770 else
46771 pbxlibdir="-L${ZLIB_DIR}"
46774 pbxfuncname="compress"
46775 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
46776 AST_ZLIB_FOUND=yes
46777 else
46778 as_ac_Lib=`echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
46779 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lz" >&5
46780 echo $ECHO_N "checking for ${pbxfuncname} in -lz... $ECHO_C" >&6; }
46781 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
46782 echo $ECHO_N "(cached) $ECHO_C" >&6
46783 else
46784 ac_check_lib_save_LIBS=$LIBS
46785 LIBS="-lz ${pbxlibdir} $LIBS"
46786 cat >conftest.$ac_ext <<_ACEOF
46787 /* confdefs.h. */
46788 _ACEOF
46789 cat confdefs.h >>conftest.$ac_ext
46790 cat >>conftest.$ac_ext <<_ACEOF
46791 /* end confdefs.h. */
46793 /* Override any GCC internal prototype to avoid an error.
46794 Use char because int might match the return type of a GCC
46795 builtin and then its argument prototype would still apply. */
46796 #ifdef __cplusplus
46797 extern "C"
46798 #endif
46799 char ${pbxfuncname} ();
46801 main ()
46803 return ${pbxfuncname} ();
46805 return 0;
46807 _ACEOF
46808 rm -f conftest.$ac_objext conftest$ac_exeext
46809 if { (ac_try="$ac_link"
46810 case "(($ac_try" in
46811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46812 *) ac_try_echo=$ac_try;;
46813 esac
46814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46815 (eval "$ac_link") 2>conftest.er1
46816 ac_status=$?
46817 grep -v '^ *+' conftest.er1 >conftest.err
46818 rm -f conftest.er1
46819 cat conftest.err >&5
46820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46821 (exit $ac_status); } && {
46822 test -z "$ac_c_werror_flag" ||
46823 test ! -s conftest.err
46824 } && test -s conftest$ac_exeext &&
46825 $as_test_x conftest$ac_exeext; then
46826 eval "$as_ac_Lib=yes"
46827 else
46828 echo "$as_me: failed program was:" >&5
46829 sed 's/^/| /' conftest.$ac_ext >&5
46831 eval "$as_ac_Lib=no"
46834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46835 conftest$ac_exeext conftest.$ac_ext
46836 LIBS=$ac_check_lib_save_LIBS
46838 ac_res=`eval echo '${'$as_ac_Lib'}'`
46839 { echo "$as_me:$LINENO: result: $ac_res" >&5
46840 echo "${ECHO_T}$ac_res" >&6; }
46841 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
46842 AST_ZLIB_FOUND=yes
46843 else
46844 AST_ZLIB_FOUND=no
46849 # now check for the header.
46850 if test "${AST_ZLIB_FOUND}" = "yes"; then
46851 ZLIB_LIB="${pbxlibdir} -lz "
46852 # if --with-ZLIB=DIR has been specified, use it.
46853 if test "x${ZLIB_DIR}" != "x"; then
46854 ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
46856 ZLIB_INCLUDE="${ZLIB_INCLUDE} "
46857 if test "xzlib.h" = "x" ; then # no header, assume found
46858 ZLIB_HEADER_FOUND="1"
46859 else # check for the header
46860 saved_cppflags="${CPPFLAGS}"
46861 CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE} "
46862 if test "${ac_cv_header_zlib_h+set}" = set; then
46863 { echo "$as_me:$LINENO: checking for zlib.h" >&5
46864 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
46865 if test "${ac_cv_header_zlib_h+set}" = set; then
46866 echo $ECHO_N "(cached) $ECHO_C" >&6
46868 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
46869 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
46870 else
46871 # Is the header compilable?
46872 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
46873 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
46874 cat >conftest.$ac_ext <<_ACEOF
46875 /* confdefs.h. */
46876 _ACEOF
46877 cat confdefs.h >>conftest.$ac_ext
46878 cat >>conftest.$ac_ext <<_ACEOF
46879 /* end confdefs.h. */
46880 $ac_includes_default
46881 #include <zlib.h>
46882 _ACEOF
46883 rm -f conftest.$ac_objext
46884 if { (ac_try="$ac_compile"
46885 case "(($ac_try" in
46886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46887 *) ac_try_echo=$ac_try;;
46888 esac
46889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46890 (eval "$ac_compile") 2>conftest.er1
46891 ac_status=$?
46892 grep -v '^ *+' conftest.er1 >conftest.err
46893 rm -f conftest.er1
46894 cat conftest.err >&5
46895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46896 (exit $ac_status); } && {
46897 test -z "$ac_c_werror_flag" ||
46898 test ! -s conftest.err
46899 } && test -s conftest.$ac_objext; then
46900 ac_header_compiler=yes
46901 else
46902 echo "$as_me: failed program was:" >&5
46903 sed 's/^/| /' conftest.$ac_ext >&5
46905 ac_header_compiler=no
46908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46910 echo "${ECHO_T}$ac_header_compiler" >&6; }
46912 # Is the header present?
46913 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
46914 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
46915 cat >conftest.$ac_ext <<_ACEOF
46916 /* confdefs.h. */
46917 _ACEOF
46918 cat confdefs.h >>conftest.$ac_ext
46919 cat >>conftest.$ac_ext <<_ACEOF
46920 /* end confdefs.h. */
46921 #include <zlib.h>
46922 _ACEOF
46923 if { (ac_try="$ac_cpp conftest.$ac_ext"
46924 case "(($ac_try" in
46925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46926 *) ac_try_echo=$ac_try;;
46927 esac
46928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46930 ac_status=$?
46931 grep -v '^ *+' conftest.er1 >conftest.err
46932 rm -f conftest.er1
46933 cat conftest.err >&5
46934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46935 (exit $ac_status); } >/dev/null && {
46936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46937 test ! -s conftest.err
46938 }; then
46939 ac_header_preproc=yes
46940 else
46941 echo "$as_me: failed program was:" >&5
46942 sed 's/^/| /' conftest.$ac_ext >&5
46944 ac_header_preproc=no
46947 rm -f conftest.err conftest.$ac_ext
46948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46949 echo "${ECHO_T}$ac_header_preproc" >&6; }
46951 # So? What about this header?
46952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46953 yes:no: )
46954 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
46955 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46956 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
46957 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
46958 ac_header_preproc=yes
46960 no:yes:* )
46961 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
46962 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
46963 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
46964 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
46965 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
46966 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
46967 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
46968 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
46969 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
46970 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
46971 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
46972 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
46973 ( cat <<\_ASBOX
46974 ## ------------------------------- ##
46975 ## Report this to www.asterisk.org ##
46976 ## ------------------------------- ##
46977 _ASBOX
46978 ) | sed "s/^/$as_me: WARNING: /" >&2
46980 esac
46981 { echo "$as_me:$LINENO: checking for zlib.h" >&5
46982 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
46983 if test "${ac_cv_header_zlib_h+set}" = set; then
46984 echo $ECHO_N "(cached) $ECHO_C" >&6
46985 else
46986 ac_cv_header_zlib_h=$ac_header_preproc
46988 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
46989 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
46992 if test $ac_cv_header_zlib_h = yes; then
46993 ZLIB_HEADER_FOUND=1
46994 else
46995 ZLIB_HEADER_FOUND=0
46999 CPPFLAGS="${saved_cppflags}"
47001 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
47002 ZLIB_LIB=""
47003 ZLIB_INCLUDE=""
47004 else
47005 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47006 ZLIB_LIB=""
47008 PBX_ZLIB=1
47009 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47011 cat >>confdefs.h <<_ACEOF
47012 #define HAVE_ZLIB 1
47013 _ACEOF
47016 cat >>confdefs.h <<_ACEOF
47017 #define HAVE_ZLIB_VERSION
47018 _ACEOF
47025 EDITLINE_LIB=""
47026 if test "x$TERMCAP_LIB" != "x" ; then
47027 EDITLINE_LIB="$TERMCAP_LIB"
47028 elif test "x$TINFO_LIB" != "x" ; then
47029 EDITLINE_LIB="$TINFO_LIB"
47030 elif test "x$CURSES_LIB" != "x" ; then
47031 EDITLINE_LIB="$CURSES_LIB"
47032 elif test "x$NCURSES_LIB" != "x" ; then
47033 EDITLINE_LIB="$NCURSES_LIB"
47034 else
47035 { { echo "$as_me:$LINENO: error: *** termcap support not found" >&5
47036 echo "$as_me: error: *** termcap support not found" >&2;}
47037 { (exit 1); exit 1; }; }
47041 if test "${ac_cv_header_h323_h+set}" = set; then
47042 { echo "$as_me:$LINENO: checking for h323.h" >&5
47043 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47044 if test "${ac_cv_header_h323_h+set}" = set; then
47045 echo $ECHO_N "(cached) $ECHO_C" >&6
47047 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47048 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47049 else
47050 # Is the header compilable?
47051 { echo "$as_me:$LINENO: checking h323.h usability" >&5
47052 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
47053 cat >conftest.$ac_ext <<_ACEOF
47054 /* confdefs.h. */
47055 _ACEOF
47056 cat confdefs.h >>conftest.$ac_ext
47057 cat >>conftest.$ac_ext <<_ACEOF
47058 /* end confdefs.h. */
47059 $ac_includes_default
47060 #include <h323.h>
47061 _ACEOF
47062 rm -f conftest.$ac_objext
47063 if { (ac_try="$ac_compile"
47064 case "(($ac_try" in
47065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47066 *) ac_try_echo=$ac_try;;
47067 esac
47068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47069 (eval "$ac_compile") 2>conftest.er1
47070 ac_status=$?
47071 grep -v '^ *+' conftest.er1 >conftest.err
47072 rm -f conftest.er1
47073 cat conftest.err >&5
47074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47075 (exit $ac_status); } && {
47076 test -z "$ac_c_werror_flag" ||
47077 test ! -s conftest.err
47078 } && test -s conftest.$ac_objext; then
47079 ac_header_compiler=yes
47080 else
47081 echo "$as_me: failed program was:" >&5
47082 sed 's/^/| /' conftest.$ac_ext >&5
47084 ac_header_compiler=no
47087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47089 echo "${ECHO_T}$ac_header_compiler" >&6; }
47091 # Is the header present?
47092 { echo "$as_me:$LINENO: checking h323.h presence" >&5
47093 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
47094 cat >conftest.$ac_ext <<_ACEOF
47095 /* confdefs.h. */
47096 _ACEOF
47097 cat confdefs.h >>conftest.$ac_ext
47098 cat >>conftest.$ac_ext <<_ACEOF
47099 /* end confdefs.h. */
47100 #include <h323.h>
47101 _ACEOF
47102 if { (ac_try="$ac_cpp conftest.$ac_ext"
47103 case "(($ac_try" in
47104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47105 *) ac_try_echo=$ac_try;;
47106 esac
47107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47109 ac_status=$?
47110 grep -v '^ *+' conftest.er1 >conftest.err
47111 rm -f conftest.er1
47112 cat conftest.err >&5
47113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47114 (exit $ac_status); } >/dev/null && {
47115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47116 test ! -s conftest.err
47117 }; then
47118 ac_header_preproc=yes
47119 else
47120 echo "$as_me: failed program was:" >&5
47121 sed 's/^/| /' conftest.$ac_ext >&5
47123 ac_header_preproc=no
47126 rm -f conftest.err conftest.$ac_ext
47127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47128 echo "${ECHO_T}$ac_header_preproc" >&6; }
47130 # So? What about this header?
47131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47132 yes:no: )
47133 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
47134 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47135 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
47136 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
47137 ac_header_preproc=yes
47139 no:yes:* )
47140 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
47141 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
47142 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
47143 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
47144 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
47145 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
47146 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
47147 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
47148 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
47149 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
47150 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
47151 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
47152 ( cat <<\_ASBOX
47153 ## ------------------------------- ##
47154 ## Report this to www.asterisk.org ##
47155 ## ------------------------------- ##
47156 _ASBOX
47157 ) | sed "s/^/$as_me: WARNING: /" >&2
47159 esac
47160 { echo "$as_me:$LINENO: checking for h323.h" >&5
47161 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
47162 if test "${ac_cv_header_h323_h+set}" = set; then
47163 echo $ECHO_N "(cached) $ECHO_C" >&6
47164 else
47165 ac_cv_header_h323_h=$ac_header_preproc
47167 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
47168 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
47171 if test $ac_cv_header_h323_h = yes; then
47172 PBX_H323=1
47173 else
47174 PBX_H323=0
47180 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47181 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47182 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47183 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47184 echo $ECHO_N "(cached) $ECHO_C" >&6
47186 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47187 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47188 else
47189 # Is the header compilable?
47190 { echo "$as_me:$LINENO: checking linux/compiler.h usability" >&5
47191 echo $ECHO_N "checking linux/compiler.h usability... $ECHO_C" >&6; }
47192 cat >conftest.$ac_ext <<_ACEOF
47193 /* confdefs.h. */
47194 _ACEOF
47195 cat confdefs.h >>conftest.$ac_ext
47196 cat >>conftest.$ac_ext <<_ACEOF
47197 /* end confdefs.h. */
47198 $ac_includes_default
47199 #include <linux/compiler.h>
47200 _ACEOF
47201 rm -f conftest.$ac_objext
47202 if { (ac_try="$ac_compile"
47203 case "(($ac_try" in
47204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47205 *) ac_try_echo=$ac_try;;
47206 esac
47207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47208 (eval "$ac_compile") 2>conftest.er1
47209 ac_status=$?
47210 grep -v '^ *+' conftest.er1 >conftest.err
47211 rm -f conftest.er1
47212 cat conftest.err >&5
47213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47214 (exit $ac_status); } && {
47215 test -z "$ac_c_werror_flag" ||
47216 test ! -s conftest.err
47217 } && test -s conftest.$ac_objext; then
47218 ac_header_compiler=yes
47219 else
47220 echo "$as_me: failed program was:" >&5
47221 sed 's/^/| /' conftest.$ac_ext >&5
47223 ac_header_compiler=no
47226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47228 echo "${ECHO_T}$ac_header_compiler" >&6; }
47230 # Is the header present?
47231 { echo "$as_me:$LINENO: checking linux/compiler.h presence" >&5
47232 echo $ECHO_N "checking linux/compiler.h presence... $ECHO_C" >&6; }
47233 cat >conftest.$ac_ext <<_ACEOF
47234 /* confdefs.h. */
47235 _ACEOF
47236 cat confdefs.h >>conftest.$ac_ext
47237 cat >>conftest.$ac_ext <<_ACEOF
47238 /* end confdefs.h. */
47239 #include <linux/compiler.h>
47240 _ACEOF
47241 if { (ac_try="$ac_cpp conftest.$ac_ext"
47242 case "(($ac_try" in
47243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47244 *) ac_try_echo=$ac_try;;
47245 esac
47246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47248 ac_status=$?
47249 grep -v '^ *+' conftest.er1 >conftest.err
47250 rm -f conftest.er1
47251 cat conftest.err >&5
47252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47253 (exit $ac_status); } >/dev/null && {
47254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47255 test ! -s conftest.err
47256 }; then
47257 ac_header_preproc=yes
47258 else
47259 echo "$as_me: failed program was:" >&5
47260 sed 's/^/| /' conftest.$ac_ext >&5
47262 ac_header_preproc=no
47265 rm -f conftest.err conftest.$ac_ext
47266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47267 echo "${ECHO_T}$ac_header_preproc" >&6; }
47269 # So? What about this header?
47270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47271 yes:no: )
47272 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&5
47273 echo "$as_me: WARNING: linux/compiler.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47274 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the compiler's result" >&5
47275 echo "$as_me: WARNING: linux/compiler.h: proceeding with the compiler's result" >&2;}
47276 ac_header_preproc=yes
47278 no:yes:* )
47279 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: present but cannot be compiled" >&5
47280 echo "$as_me: WARNING: linux/compiler.h: present but cannot be compiled" >&2;}
47281 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&5
47282 echo "$as_me: WARNING: linux/compiler.h: check for missing prerequisite headers?" >&2;}
47283 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: see the Autoconf documentation" >&5
47284 echo "$as_me: WARNING: linux/compiler.h: see the Autoconf documentation" >&2;}
47285 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&5
47286 echo "$as_me: WARNING: linux/compiler.h: section \"Present But Cannot Be Compiled\"" >&2;}
47287 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&5
47288 echo "$as_me: WARNING: linux/compiler.h: proceeding with the preprocessor's result" >&2;}
47289 { echo "$as_me:$LINENO: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&5
47290 echo "$as_me: WARNING: linux/compiler.h: in the future, the compiler will take precedence" >&2;}
47291 ( cat <<\_ASBOX
47292 ## ------------------------------- ##
47293 ## Report this to www.asterisk.org ##
47294 ## ------------------------------- ##
47295 _ASBOX
47296 ) | sed "s/^/$as_me: WARNING: /" >&2
47298 esac
47299 { echo "$as_me:$LINENO: checking for linux/compiler.h" >&5
47300 echo $ECHO_N "checking for linux/compiler.h... $ECHO_C" >&6; }
47301 if test "${ac_cv_header_linux_compiler_h+set}" = set; then
47302 echo $ECHO_N "(cached) $ECHO_C" >&6
47303 else
47304 ac_cv_header_linux_compiler_h=$ac_header_preproc
47306 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_compiler_h" >&5
47307 echo "${ECHO_T}$ac_cv_header_linux_compiler_h" >&6; }
47310 if test $ac_cv_header_linux_compiler_h = yes; then
47312 cat >>confdefs.h <<_ACEOF
47313 #define HAVE_LINUX_COMPILER_H 1
47314 _ACEOF
47320 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
47321 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
47322 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
47323 echo $ECHO_N "(cached) $ECHO_C" >&6
47324 else
47325 cat >conftest.$ac_ext <<_ACEOF
47326 /* confdefs.h. */
47327 _ACEOF
47328 cat confdefs.h >>conftest.$ac_ext
47329 cat >>conftest.$ac_ext <<_ACEOF
47330 /* end confdefs.h. */
47332 #include <linux/version.h>
47333 #ifdef HAVE_LINUX_COMPILER_H
47334 #include <linux/compiler.h>
47335 #endif
47338 #include <linux/ixjuser.h>
47339 _ACEOF
47340 rm -f conftest.$ac_objext
47341 if { (ac_try="$ac_compile"
47342 case "(($ac_try" in
47343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47344 *) ac_try_echo=$ac_try;;
47345 esac
47346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47347 (eval "$ac_compile") 2>conftest.er1
47348 ac_status=$?
47349 grep -v '^ *+' conftest.er1 >conftest.err
47350 rm -f conftest.er1
47351 cat conftest.err >&5
47352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47353 (exit $ac_status); } && {
47354 test -z "$ac_c_werror_flag" ||
47355 test ! -s conftest.err
47356 } && test -s conftest.$ac_objext; then
47357 ac_cv_header_linux_ixjuser_h=yes
47358 else
47359 echo "$as_me: failed program was:" >&5
47360 sed 's/^/| /' conftest.$ac_ext >&5
47362 ac_cv_header_linux_ixjuser_h=no
47365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47367 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
47368 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
47369 if test $ac_cv_header_linux_ixjuser_h = yes; then
47370 PBX_IXJUSER=1
47371 else
47372 PBX_IXJUSER=0
47379 if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
47380 PBX_SDL=0
47381 if test -n "$ac_tool_prefix"; then
47382 # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
47383 set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
47384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47386 if test "${ac_cv_prog_CONFIG_SDL+set}" = set; then
47387 echo $ECHO_N "(cached) $ECHO_C" >&6
47388 else
47389 if test -n "$CONFIG_SDL"; then
47390 ac_cv_prog_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test.
47391 else
47392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47393 for as_dir in $PATH
47395 IFS=$as_save_IFS
47396 test -z "$as_dir" && as_dir=.
47397 for ac_exec_ext in '' $ac_executable_extensions; do
47398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47399 ac_cv_prog_CONFIG_SDL="${ac_tool_prefix}sdl-config"
47400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47401 break 2
47403 done
47404 done
47405 IFS=$as_save_IFS
47409 CONFIG_SDL=$ac_cv_prog_CONFIG_SDL
47410 if test -n "$CONFIG_SDL"; then
47411 { echo "$as_me:$LINENO: result: $CONFIG_SDL" >&5
47412 echo "${ECHO_T}$CONFIG_SDL" >&6; }
47413 else
47414 { echo "$as_me:$LINENO: result: no" >&5
47415 echo "${ECHO_T}no" >&6; }
47420 if test -z "$ac_cv_prog_CONFIG_SDL"; then
47421 ac_ct_CONFIG_SDL=$CONFIG_SDL
47422 # Extract the first word of "sdl-config", so it can be a program name with args.
47423 set dummy sdl-config; ac_word=$2
47424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47426 if test "${ac_cv_prog_ac_ct_CONFIG_SDL+set}" = set; then
47427 echo $ECHO_N "(cached) $ECHO_C" >&6
47428 else
47429 if test -n "$ac_ct_CONFIG_SDL"; then
47430 ac_cv_prog_ac_ct_CONFIG_SDL="$ac_ct_CONFIG_SDL" # Let the user override the test.
47431 else
47432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47433 for as_dir in $PATH
47435 IFS=$as_save_IFS
47436 test -z "$as_dir" && as_dir=.
47437 for ac_exec_ext in '' $ac_executable_extensions; do
47438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47439 ac_cv_prog_ac_ct_CONFIG_SDL="sdl-config"
47440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47441 break 2
47443 done
47444 done
47445 IFS=$as_save_IFS
47449 ac_ct_CONFIG_SDL=$ac_cv_prog_ac_ct_CONFIG_SDL
47450 if test -n "$ac_ct_CONFIG_SDL"; then
47451 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_SDL" >&5
47452 echo "${ECHO_T}$ac_ct_CONFIG_SDL" >&6; }
47453 else
47454 { echo "$as_me:$LINENO: result: no" >&5
47455 echo "${ECHO_T}no" >&6; }
47458 if test "x$ac_ct_CONFIG_SDL" = x; then
47459 CONFIG_SDL="No"
47460 else
47461 case $cross_compiling:$ac_tool_warned in
47462 yes:)
47463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47464 whose name does not start with the host triplet. If you think this
47465 configuration is useful to you, please write to autoconf@gnu.org." >&5
47466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47467 whose name does not start with the host triplet. If you think this
47468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47469 ac_tool_warned=yes ;;
47470 esac
47471 CONFIG_SDL=$ac_ct_CONFIG_SDL
47473 else
47474 CONFIG_SDL="$ac_cv_prog_CONFIG_SDL"
47477 if test ! "x${CONFIG_SDL}" = xNo; then
47478 if test x"" = x ; then A=--cflags ; else A="" ; fi
47479 SDL_INCLUDE=$(${CONFIG_SDL} $A)
47480 if test x"" = x ; then A=--libs ; else A="" ; fi
47481 SDL_LIB=$(${CONFIG_SDL} $A)
47482 if test x"" != x ; then
47483 saved_cppflags="${CPPFLAGS}"
47484 if test "x${SDL_DIR}" != "x"; then
47485 SDL_INCLUDE="-I${SDL_DIR}/include"
47487 CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
47489 saved_ldflags="${LDFLAGS}"
47490 LDFLAGS="${SDL_LIB}"
47492 cat >conftest.$ac_ext <<_ACEOF
47493 /* confdefs.h. */
47494 _ACEOF
47495 cat confdefs.h >>conftest.$ac_ext
47496 cat >>conftest.$ac_ext <<_ACEOF
47497 /* end confdefs.h. */
47500 main ()
47505 return 0;
47507 _ACEOF
47508 rm -f conftest.$ac_objext conftest$ac_exeext
47509 if { (ac_try="$ac_link"
47510 case "(($ac_try" in
47511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47512 *) ac_try_echo=$ac_try;;
47513 esac
47514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47515 (eval "$ac_link") 2>conftest.er1
47516 ac_status=$?
47517 grep -v '^ *+' conftest.er1 >conftest.err
47518 rm -f conftest.er1
47519 cat conftest.err >&5
47520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47521 (exit $ac_status); } && {
47522 test -z "$ac_c_werror_flag" ||
47523 test ! -s conftest.err
47524 } && test -s conftest$ac_exeext &&
47525 $as_test_x conftest$ac_exeext; then
47526 PBX_SDL=1
47528 cat >>confdefs.h <<\_ACEOF
47529 #define HAVE_SDL 1
47530 _ACEOF
47533 else
47534 echo "$as_me: failed program was:" >&5
47535 sed 's/^/| /' conftest.$ac_ext >&5
47541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47542 conftest$ac_exeext conftest.$ac_ext
47543 CPPFLAGS="${saved_cppflags}"
47544 LDFLAGS="${saved_ldflags}"
47545 else
47546 PBX_SDL=1
47548 cat >>confdefs.h <<\_ACEOF
47549 #define HAVE_SDL 1
47550 _ACEOF
47557 if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
47558 pbxlibdir=""
47559 # if --with-SDL_IMAGE=DIR has been specified, use it.
47560 if test "x${SDL_IMAGE_DIR}" != "x"; then
47561 if test -d ${SDL_IMAGE_DIR}/lib; then
47562 pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
47563 else
47564 pbxlibdir="-L${SDL_IMAGE_DIR}"
47567 pbxfuncname="IMG_Load"
47568 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47569 AST_SDL_IMAGE_FOUND=yes
47570 else
47571 as_ac_Lib=`echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
47572 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lSDL_image" >&5
47573 echo $ECHO_N "checking for ${pbxfuncname} in -lSDL_image... $ECHO_C" >&6; }
47574 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47575 echo $ECHO_N "(cached) $ECHO_C" >&6
47576 else
47577 ac_check_lib_save_LIBS=$LIBS
47578 LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
47579 cat >conftest.$ac_ext <<_ACEOF
47580 /* confdefs.h. */
47581 _ACEOF
47582 cat confdefs.h >>conftest.$ac_ext
47583 cat >>conftest.$ac_ext <<_ACEOF
47584 /* end confdefs.h. */
47586 /* Override any GCC internal prototype to avoid an error.
47587 Use char because int might match the return type of a GCC
47588 builtin and then its argument prototype would still apply. */
47589 #ifdef __cplusplus
47590 extern "C"
47591 #endif
47592 char ${pbxfuncname} ();
47594 main ()
47596 return ${pbxfuncname} ();
47598 return 0;
47600 _ACEOF
47601 rm -f conftest.$ac_objext conftest$ac_exeext
47602 if { (ac_try="$ac_link"
47603 case "(($ac_try" in
47604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47605 *) ac_try_echo=$ac_try;;
47606 esac
47607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47608 (eval "$ac_link") 2>conftest.er1
47609 ac_status=$?
47610 grep -v '^ *+' conftest.er1 >conftest.err
47611 rm -f conftest.er1
47612 cat conftest.err >&5
47613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47614 (exit $ac_status); } && {
47615 test -z "$ac_c_werror_flag" ||
47616 test ! -s conftest.err
47617 } && test -s conftest$ac_exeext &&
47618 $as_test_x conftest$ac_exeext; then
47619 eval "$as_ac_Lib=yes"
47620 else
47621 echo "$as_me: failed program was:" >&5
47622 sed 's/^/| /' conftest.$ac_ext >&5
47624 eval "$as_ac_Lib=no"
47627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47628 conftest$ac_exeext conftest.$ac_ext
47629 LIBS=$ac_check_lib_save_LIBS
47631 ac_res=`eval echo '${'$as_ac_Lib'}'`
47632 { echo "$as_me:$LINENO: result: $ac_res" >&5
47633 echo "${ECHO_T}$ac_res" >&6; }
47634 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47635 AST_SDL_IMAGE_FOUND=yes
47636 else
47637 AST_SDL_IMAGE_FOUND=no
47642 # now check for the header.
47643 if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
47644 SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
47645 # if --with-SDL_IMAGE=DIR has been specified, use it.
47646 if test "x${SDL_IMAGE_DIR}" != "x"; then
47647 SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
47649 SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
47650 if test "xSDL_image.h" = "x" ; then # no header, assume found
47651 SDL_IMAGE_HEADER_FOUND="1"
47652 else # check for the header
47653 saved_cppflags="${CPPFLAGS}"
47654 CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
47655 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47656 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
47657 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
47658 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47659 echo $ECHO_N "(cached) $ECHO_C" >&6
47661 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
47662 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
47663 else
47664 # Is the header compilable?
47665 { echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
47666 echo $ECHO_N "checking SDL_image.h usability... $ECHO_C" >&6; }
47667 cat >conftest.$ac_ext <<_ACEOF
47668 /* confdefs.h. */
47669 _ACEOF
47670 cat confdefs.h >>conftest.$ac_ext
47671 cat >>conftest.$ac_ext <<_ACEOF
47672 /* end confdefs.h. */
47673 $ac_includes_default
47674 #include <SDL_image.h>
47675 _ACEOF
47676 rm -f conftest.$ac_objext
47677 if { (ac_try="$ac_compile"
47678 case "(($ac_try" in
47679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47680 *) ac_try_echo=$ac_try;;
47681 esac
47682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47683 (eval "$ac_compile") 2>conftest.er1
47684 ac_status=$?
47685 grep -v '^ *+' conftest.er1 >conftest.err
47686 rm -f conftest.er1
47687 cat conftest.err >&5
47688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47689 (exit $ac_status); } && {
47690 test -z "$ac_c_werror_flag" ||
47691 test ! -s conftest.err
47692 } && test -s conftest.$ac_objext; then
47693 ac_header_compiler=yes
47694 else
47695 echo "$as_me: failed program was:" >&5
47696 sed 's/^/| /' conftest.$ac_ext >&5
47698 ac_header_compiler=no
47701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47703 echo "${ECHO_T}$ac_header_compiler" >&6; }
47705 # Is the header present?
47706 { echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
47707 echo $ECHO_N "checking SDL_image.h presence... $ECHO_C" >&6; }
47708 cat >conftest.$ac_ext <<_ACEOF
47709 /* confdefs.h. */
47710 _ACEOF
47711 cat confdefs.h >>conftest.$ac_ext
47712 cat >>conftest.$ac_ext <<_ACEOF
47713 /* end confdefs.h. */
47714 #include <SDL_image.h>
47715 _ACEOF
47716 if { (ac_try="$ac_cpp conftest.$ac_ext"
47717 case "(($ac_try" in
47718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47719 *) ac_try_echo=$ac_try;;
47720 esac
47721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47723 ac_status=$?
47724 grep -v '^ *+' conftest.er1 >conftest.err
47725 rm -f conftest.er1
47726 cat conftest.err >&5
47727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47728 (exit $ac_status); } >/dev/null && {
47729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47730 test ! -s conftest.err
47731 }; then
47732 ac_header_preproc=yes
47733 else
47734 echo "$as_me: failed program was:" >&5
47735 sed 's/^/| /' conftest.$ac_ext >&5
47737 ac_header_preproc=no
47740 rm -f conftest.err conftest.$ac_ext
47741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47742 echo "${ECHO_T}$ac_header_preproc" >&6; }
47744 # So? What about this header?
47745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47746 yes:no: )
47747 { echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
47748 echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
47749 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
47750 echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
47751 ac_header_preproc=yes
47753 no:yes:* )
47754 { echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
47755 echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
47756 { echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
47757 echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
47758 { echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
47759 echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
47760 { echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
47761 echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
47762 { echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
47763 echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
47764 { echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
47765 echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
47766 ( cat <<\_ASBOX
47767 ## ------------------------------- ##
47768 ## Report this to www.asterisk.org ##
47769 ## ------------------------------- ##
47770 _ASBOX
47771 ) | sed "s/^/$as_me: WARNING: /" >&2
47773 esac
47774 { echo "$as_me:$LINENO: checking for SDL_image.h" >&5
47775 echo $ECHO_N "checking for SDL_image.h... $ECHO_C" >&6; }
47776 if test "${ac_cv_header_SDL_image_h+set}" = set; then
47777 echo $ECHO_N "(cached) $ECHO_C" >&6
47778 else
47779 ac_cv_header_SDL_image_h=$ac_header_preproc
47781 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
47782 echo "${ECHO_T}$ac_cv_header_SDL_image_h" >&6; }
47785 if test $ac_cv_header_SDL_image_h = yes; then
47786 SDL_IMAGE_HEADER_FOUND=1
47787 else
47788 SDL_IMAGE_HEADER_FOUND=0
47792 CPPFLAGS="${saved_cppflags}"
47794 if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
47795 SDL_IMAGE_LIB=""
47796 SDL_IMAGE_INCLUDE=""
47797 else
47798 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
47799 SDL_IMAGE_LIB=""
47801 PBX_SDL_IMAGE=1
47802 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
47804 cat >>confdefs.h <<_ACEOF
47805 #define HAVE_SDL_IMAGE 1
47806 _ACEOF
47809 cat >>confdefs.h <<_ACEOF
47810 #define HAVE_SDL_IMAGE_VERSION
47811 _ACEOF
47818 if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
47819 pbxlibdir=""
47820 # if --with-FFMPEG=DIR has been specified, use it.
47821 if test "x${FFMPEG_DIR}" != "x"; then
47822 if test -d ${FFMPEG_DIR}/lib; then
47823 pbxlibdir="-L${FFMPEG_DIR}/lib"
47824 else
47825 pbxlibdir="-L${FFMPEG_DIR}"
47828 pbxfuncname="sws_getContext"
47829 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
47830 AST_FFMPEG_FOUND=yes
47831 else
47832 as_ac_Lib=`echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
47833 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lavcodec" >&5
47834 echo $ECHO_N "checking for ${pbxfuncname} in -lavcodec... $ECHO_C" >&6; }
47835 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
47836 echo $ECHO_N "(cached) $ECHO_C" >&6
47837 else
47838 ac_check_lib_save_LIBS=$LIBS
47839 LIBS="-lavcodec ${pbxlibdir} -lpthread -lz -lm $LIBS"
47840 cat >conftest.$ac_ext <<_ACEOF
47841 /* confdefs.h. */
47842 _ACEOF
47843 cat confdefs.h >>conftest.$ac_ext
47844 cat >>conftest.$ac_ext <<_ACEOF
47845 /* end confdefs.h. */
47847 /* Override any GCC internal prototype to avoid an error.
47848 Use char because int might match the return type of a GCC
47849 builtin and then its argument prototype would still apply. */
47850 #ifdef __cplusplus
47851 extern "C"
47852 #endif
47853 char ${pbxfuncname} ();
47855 main ()
47857 return ${pbxfuncname} ();
47859 return 0;
47861 _ACEOF
47862 rm -f conftest.$ac_objext conftest$ac_exeext
47863 if { (ac_try="$ac_link"
47864 case "(($ac_try" in
47865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47866 *) ac_try_echo=$ac_try;;
47867 esac
47868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47869 (eval "$ac_link") 2>conftest.er1
47870 ac_status=$?
47871 grep -v '^ *+' conftest.er1 >conftest.err
47872 rm -f conftest.er1
47873 cat conftest.err >&5
47874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47875 (exit $ac_status); } && {
47876 test -z "$ac_c_werror_flag" ||
47877 test ! -s conftest.err
47878 } && test -s conftest$ac_exeext &&
47879 $as_test_x conftest$ac_exeext; then
47880 eval "$as_ac_Lib=yes"
47881 else
47882 echo "$as_me: failed program was:" >&5
47883 sed 's/^/| /' conftest.$ac_ext >&5
47885 eval "$as_ac_Lib=no"
47888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47889 conftest$ac_exeext conftest.$ac_ext
47890 LIBS=$ac_check_lib_save_LIBS
47892 ac_res=`eval echo '${'$as_ac_Lib'}'`
47893 { echo "$as_me:$LINENO: result: $ac_res" >&5
47894 echo "${ECHO_T}$ac_res" >&6; }
47895 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
47896 AST_FFMPEG_FOUND=yes
47897 else
47898 AST_FFMPEG_FOUND=no
47903 # now check for the header.
47904 if test "${AST_FFMPEG_FOUND}" = "yes"; then
47905 FFMPEG_LIB="${pbxlibdir} -lavcodec -lpthread -lz -lm"
47906 # if --with-FFMPEG=DIR has been specified, use it.
47907 if test "x${FFMPEG_DIR}" != "x"; then
47908 FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
47910 FFMPEG_INCLUDE="${FFMPEG_INCLUDE} "
47911 if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
47912 FFMPEG_HEADER_FOUND="1"
47913 else # check for the header
47914 saved_cppflags="${CPPFLAGS}"
47915 CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE} "
47916 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
47917 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
47918 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
47919 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
47920 echo $ECHO_N "(cached) $ECHO_C" >&6
47922 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
47923 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
47924 else
47925 # Is the header compilable?
47926 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h usability" >&5
47927 echo $ECHO_N "checking ffmpeg/avcodec.h usability... $ECHO_C" >&6; }
47928 cat >conftest.$ac_ext <<_ACEOF
47929 /* confdefs.h. */
47930 _ACEOF
47931 cat confdefs.h >>conftest.$ac_ext
47932 cat >>conftest.$ac_ext <<_ACEOF
47933 /* end confdefs.h. */
47934 $ac_includes_default
47935 #include <ffmpeg/avcodec.h>
47936 _ACEOF
47937 rm -f conftest.$ac_objext
47938 if { (ac_try="$ac_compile"
47939 case "(($ac_try" in
47940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47941 *) ac_try_echo=$ac_try;;
47942 esac
47943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47944 (eval "$ac_compile") 2>conftest.er1
47945 ac_status=$?
47946 grep -v '^ *+' conftest.er1 >conftest.err
47947 rm -f conftest.er1
47948 cat conftest.err >&5
47949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47950 (exit $ac_status); } && {
47951 test -z "$ac_c_werror_flag" ||
47952 test ! -s conftest.err
47953 } && test -s conftest.$ac_objext; then
47954 ac_header_compiler=yes
47955 else
47956 echo "$as_me: failed program was:" >&5
47957 sed 's/^/| /' conftest.$ac_ext >&5
47959 ac_header_compiler=no
47962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47964 echo "${ECHO_T}$ac_header_compiler" >&6; }
47966 # Is the header present?
47967 { echo "$as_me:$LINENO: checking ffmpeg/avcodec.h presence" >&5
47968 echo $ECHO_N "checking ffmpeg/avcodec.h presence... $ECHO_C" >&6; }
47969 cat >conftest.$ac_ext <<_ACEOF
47970 /* confdefs.h. */
47971 _ACEOF
47972 cat confdefs.h >>conftest.$ac_ext
47973 cat >>conftest.$ac_ext <<_ACEOF
47974 /* end confdefs.h. */
47975 #include <ffmpeg/avcodec.h>
47976 _ACEOF
47977 if { (ac_try="$ac_cpp conftest.$ac_ext"
47978 case "(($ac_try" in
47979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47980 *) ac_try_echo=$ac_try;;
47981 esac
47982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47984 ac_status=$?
47985 grep -v '^ *+' conftest.er1 >conftest.err
47986 rm -f conftest.er1
47987 cat conftest.err >&5
47988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47989 (exit $ac_status); } >/dev/null && {
47990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47991 test ! -s conftest.err
47992 }; then
47993 ac_header_preproc=yes
47994 else
47995 echo "$as_me: failed program was:" >&5
47996 sed 's/^/| /' conftest.$ac_ext >&5
47998 ac_header_preproc=no
48001 rm -f conftest.err conftest.$ac_ext
48002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48003 echo "${ECHO_T}$ac_header_preproc" >&6; }
48005 # So? What about this header?
48006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48007 yes:no: )
48008 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&5
48009 echo "$as_me: WARNING: ffmpeg/avcodec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48010 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&5
48011 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the compiler's result" >&2;}
48012 ac_header_preproc=yes
48014 no:yes:* )
48015 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&5
48016 echo "$as_me: WARNING: ffmpeg/avcodec.h: present but cannot be compiled" >&2;}
48017 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&5
48018 echo "$as_me: WARNING: ffmpeg/avcodec.h: check for missing prerequisite headers?" >&2;}
48019 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&5
48020 echo "$as_me: WARNING: ffmpeg/avcodec.h: see the Autoconf documentation" >&2;}
48021 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&5
48022 echo "$as_me: WARNING: ffmpeg/avcodec.h: section \"Present But Cannot Be Compiled\"" >&2;}
48023 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&5
48024 echo "$as_me: WARNING: ffmpeg/avcodec.h: proceeding with the preprocessor's result" >&2;}
48025 { echo "$as_me:$LINENO: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&5
48026 echo "$as_me: WARNING: ffmpeg/avcodec.h: in the future, the compiler will take precedence" >&2;}
48027 ( cat <<\_ASBOX
48028 ## ------------------------------- ##
48029 ## Report this to www.asterisk.org ##
48030 ## ------------------------------- ##
48031 _ASBOX
48032 ) | sed "s/^/$as_me: WARNING: /" >&2
48034 esac
48035 { echo "$as_me:$LINENO: checking for ffmpeg/avcodec.h" >&5
48036 echo $ECHO_N "checking for ffmpeg/avcodec.h... $ECHO_C" >&6; }
48037 if test "${ac_cv_header_ffmpeg_avcodec_h+set}" = set; then
48038 echo $ECHO_N "(cached) $ECHO_C" >&6
48039 else
48040 ac_cv_header_ffmpeg_avcodec_h=$ac_header_preproc
48042 { echo "$as_me:$LINENO: result: $ac_cv_header_ffmpeg_avcodec_h" >&5
48043 echo "${ECHO_T}$ac_cv_header_ffmpeg_avcodec_h" >&6; }
48046 if test $ac_cv_header_ffmpeg_avcodec_h = yes; then
48047 FFMPEG_HEADER_FOUND=1
48048 else
48049 FFMPEG_HEADER_FOUND=0
48053 CPPFLAGS="${saved_cppflags}"
48055 if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
48056 FFMPEG_LIB=""
48057 FFMPEG_INCLUDE=""
48058 else
48059 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48060 FFMPEG_LIB=""
48062 PBX_FFMPEG=1
48063 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48065 cat >>confdefs.h <<_ACEOF
48066 #define HAVE_FFMPEG 1
48067 _ACEOF
48070 cat >>confdefs.h <<_ACEOF
48071 #define HAVE_FFMPEG_VERSION
48072 _ACEOF
48079 # possible places for video4linux version 1
48080 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48081 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48082 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48083 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48084 echo $ECHO_N "(cached) $ECHO_C" >&6
48086 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48087 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48088 else
48089 # Is the header compilable?
48090 { echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
48091 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6; }
48092 cat >conftest.$ac_ext <<_ACEOF
48093 /* confdefs.h. */
48094 _ACEOF
48095 cat confdefs.h >>conftest.$ac_ext
48096 cat >>conftest.$ac_ext <<_ACEOF
48097 /* end confdefs.h. */
48098 $ac_includes_default
48099 #include <linux/videodev.h>
48100 _ACEOF
48101 rm -f conftest.$ac_objext
48102 if { (ac_try="$ac_compile"
48103 case "(($ac_try" in
48104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48105 *) ac_try_echo=$ac_try;;
48106 esac
48107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48108 (eval "$ac_compile") 2>conftest.er1
48109 ac_status=$?
48110 grep -v '^ *+' conftest.er1 >conftest.err
48111 rm -f conftest.er1
48112 cat conftest.err >&5
48113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48114 (exit $ac_status); } && {
48115 test -z "$ac_c_werror_flag" ||
48116 test ! -s conftest.err
48117 } && test -s conftest.$ac_objext; then
48118 ac_header_compiler=yes
48119 else
48120 echo "$as_me: failed program was:" >&5
48121 sed 's/^/| /' conftest.$ac_ext >&5
48123 ac_header_compiler=no
48126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48128 echo "${ECHO_T}$ac_header_compiler" >&6; }
48130 # Is the header present?
48131 { echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
48132 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6; }
48133 cat >conftest.$ac_ext <<_ACEOF
48134 /* confdefs.h. */
48135 _ACEOF
48136 cat confdefs.h >>conftest.$ac_ext
48137 cat >>conftest.$ac_ext <<_ACEOF
48138 /* end confdefs.h. */
48139 #include <linux/videodev.h>
48140 _ACEOF
48141 if { (ac_try="$ac_cpp conftest.$ac_ext"
48142 case "(($ac_try" in
48143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48144 *) ac_try_echo=$ac_try;;
48145 esac
48146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48148 ac_status=$?
48149 grep -v '^ *+' conftest.er1 >conftest.err
48150 rm -f conftest.er1
48151 cat conftest.err >&5
48152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48153 (exit $ac_status); } >/dev/null && {
48154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48155 test ! -s conftest.err
48156 }; then
48157 ac_header_preproc=yes
48158 else
48159 echo "$as_me: failed program was:" >&5
48160 sed 's/^/| /' conftest.$ac_ext >&5
48162 ac_header_preproc=no
48165 rm -f conftest.err conftest.$ac_ext
48166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48167 echo "${ECHO_T}$ac_header_preproc" >&6; }
48169 # So? What about this header?
48170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48171 yes:no: )
48172 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
48173 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48174 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
48175 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
48176 ac_header_preproc=yes
48178 no:yes:* )
48179 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
48180 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
48181 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
48182 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
48183 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
48184 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
48185 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
48186 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
48187 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
48188 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
48189 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
48190 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
48191 ( cat <<\_ASBOX
48192 ## ------------------------------- ##
48193 ## Report this to www.asterisk.org ##
48194 ## ------------------------------- ##
48195 _ASBOX
48196 ) | sed "s/^/$as_me: WARNING: /" >&2
48198 esac
48199 { echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
48200 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6; }
48201 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
48202 echo $ECHO_N "(cached) $ECHO_C" >&6
48203 else
48204 ac_cv_header_linux_videodev_h=$ac_header_preproc
48206 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
48207 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6; }
48210 if test $ac_cv_header_linux_videodev_h = yes; then
48212 cat >>confdefs.h <<_ACEOF
48213 #define HAVE_VIDEODEV_H 1
48214 _ACEOF
48220 # possible places for X11
48222 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48223 pbxlibdir=""
48224 # if --with-X11=DIR has been specified, use it.
48225 if test "x${X11_DIR}" != "x"; then
48226 if test -d ${X11_DIR}/lib; then
48227 pbxlibdir="-L${X11_DIR}/lib"
48228 else
48229 pbxlibdir="-L${X11_DIR}"
48232 pbxfuncname="XOpenDisplay"
48233 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48234 AST_X11_FOUND=yes
48235 else
48236 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48237 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48238 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48239 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48240 echo $ECHO_N "(cached) $ECHO_C" >&6
48241 else
48242 ac_check_lib_save_LIBS=$LIBS
48243 LIBS="-lX11 ${pbxlibdir} $LIBS"
48244 cat >conftest.$ac_ext <<_ACEOF
48245 /* confdefs.h. */
48246 _ACEOF
48247 cat confdefs.h >>conftest.$ac_ext
48248 cat >>conftest.$ac_ext <<_ACEOF
48249 /* end confdefs.h. */
48251 /* Override any GCC internal prototype to avoid an error.
48252 Use char because int might match the return type of a GCC
48253 builtin and then its argument prototype would still apply. */
48254 #ifdef __cplusplus
48255 extern "C"
48256 #endif
48257 char ${pbxfuncname} ();
48259 main ()
48261 return ${pbxfuncname} ();
48263 return 0;
48265 _ACEOF
48266 rm -f conftest.$ac_objext conftest$ac_exeext
48267 if { (ac_try="$ac_link"
48268 case "(($ac_try" in
48269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48270 *) ac_try_echo=$ac_try;;
48271 esac
48272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48273 (eval "$ac_link") 2>conftest.er1
48274 ac_status=$?
48275 grep -v '^ *+' conftest.er1 >conftest.err
48276 rm -f conftest.er1
48277 cat conftest.err >&5
48278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48279 (exit $ac_status); } && {
48280 test -z "$ac_c_werror_flag" ||
48281 test ! -s conftest.err
48282 } && test -s conftest$ac_exeext &&
48283 $as_test_x conftest$ac_exeext; then
48284 eval "$as_ac_Lib=yes"
48285 else
48286 echo "$as_me: failed program was:" >&5
48287 sed 's/^/| /' conftest.$ac_ext >&5
48289 eval "$as_ac_Lib=no"
48292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48293 conftest$ac_exeext conftest.$ac_ext
48294 LIBS=$ac_check_lib_save_LIBS
48296 ac_res=`eval echo '${'$as_ac_Lib'}'`
48297 { echo "$as_me:$LINENO: result: $ac_res" >&5
48298 echo "${ECHO_T}$ac_res" >&6; }
48299 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48300 AST_X11_FOUND=yes
48301 else
48302 AST_X11_FOUND=no
48307 # now check for the header.
48308 if test "${AST_X11_FOUND}" = "yes"; then
48309 X11_LIB="${pbxlibdir} -lX11 "
48310 # if --with-X11=DIR has been specified, use it.
48311 if test "x${X11_DIR}" != "x"; then
48312 X11_INCLUDE="-I${X11_DIR}/include"
48314 X11_INCLUDE="${X11_INCLUDE} "
48315 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48316 X11_HEADER_FOUND="1"
48317 else # check for the header
48318 saved_cppflags="${CPPFLAGS}"
48319 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} "
48320 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48321 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48322 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48323 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48324 echo $ECHO_N "(cached) $ECHO_C" >&6
48326 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48327 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48328 else
48329 # Is the header compilable?
48330 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48331 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48332 cat >conftest.$ac_ext <<_ACEOF
48333 /* confdefs.h. */
48334 _ACEOF
48335 cat confdefs.h >>conftest.$ac_ext
48336 cat >>conftest.$ac_ext <<_ACEOF
48337 /* end confdefs.h. */
48338 $ac_includes_default
48339 #include <X11/Xlib.h>
48340 _ACEOF
48341 rm -f conftest.$ac_objext
48342 if { (ac_try="$ac_compile"
48343 case "(($ac_try" in
48344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48345 *) ac_try_echo=$ac_try;;
48346 esac
48347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48348 (eval "$ac_compile") 2>conftest.er1
48349 ac_status=$?
48350 grep -v '^ *+' conftest.er1 >conftest.err
48351 rm -f conftest.er1
48352 cat conftest.err >&5
48353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48354 (exit $ac_status); } && {
48355 test -z "$ac_c_werror_flag" ||
48356 test ! -s conftest.err
48357 } && test -s conftest.$ac_objext; then
48358 ac_header_compiler=yes
48359 else
48360 echo "$as_me: failed program was:" >&5
48361 sed 's/^/| /' conftest.$ac_ext >&5
48363 ac_header_compiler=no
48366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48368 echo "${ECHO_T}$ac_header_compiler" >&6; }
48370 # Is the header present?
48371 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48372 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48373 cat >conftest.$ac_ext <<_ACEOF
48374 /* confdefs.h. */
48375 _ACEOF
48376 cat confdefs.h >>conftest.$ac_ext
48377 cat >>conftest.$ac_ext <<_ACEOF
48378 /* end confdefs.h. */
48379 #include <X11/Xlib.h>
48380 _ACEOF
48381 if { (ac_try="$ac_cpp conftest.$ac_ext"
48382 case "(($ac_try" in
48383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48384 *) ac_try_echo=$ac_try;;
48385 esac
48386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48388 ac_status=$?
48389 grep -v '^ *+' conftest.er1 >conftest.err
48390 rm -f conftest.er1
48391 cat conftest.err >&5
48392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48393 (exit $ac_status); } >/dev/null && {
48394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48395 test ! -s conftest.err
48396 }; then
48397 ac_header_preproc=yes
48398 else
48399 echo "$as_me: failed program was:" >&5
48400 sed 's/^/| /' conftest.$ac_ext >&5
48402 ac_header_preproc=no
48405 rm -f conftest.err conftest.$ac_ext
48406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48407 echo "${ECHO_T}$ac_header_preproc" >&6; }
48409 # So? What about this header?
48410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48411 yes:no: )
48412 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
48413 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48414 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
48415 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
48416 ac_header_preproc=yes
48418 no:yes:* )
48419 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
48420 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
48421 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
48422 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
48423 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
48424 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
48425 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
48426 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
48427 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
48428 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
48429 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
48430 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
48431 ( cat <<\_ASBOX
48432 ## ------------------------------- ##
48433 ## Report this to www.asterisk.org ##
48434 ## ------------------------------- ##
48435 _ASBOX
48436 ) | sed "s/^/$as_me: WARNING: /" >&2
48438 esac
48439 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48440 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48441 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48442 echo $ECHO_N "(cached) $ECHO_C" >&6
48443 else
48444 ac_cv_header_X11_Xlib_h=$ac_header_preproc
48446 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48447 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48450 if test $ac_cv_header_X11_Xlib_h = yes; then
48451 X11_HEADER_FOUND=1
48452 else
48453 X11_HEADER_FOUND=0
48457 CPPFLAGS="${saved_cppflags}"
48459 if test "x${X11_HEADER_FOUND}" = "x0" ; then
48460 X11_LIB=""
48461 X11_INCLUDE=""
48462 else
48463 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48464 X11_LIB=""
48466 PBX_X11=1
48467 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48469 cat >>confdefs.h <<_ACEOF
48470 #define HAVE_X11 1
48471 _ACEOF
48474 cat >>confdefs.h <<_ACEOF
48475 #define HAVE_X11_VERSION standard_path
48476 _ACEOF
48483 if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
48484 pbxlibdir=""
48485 # if --with-X11=DIR has been specified, use it.
48486 if test "x${X11_DIR}" != "x"; then
48487 if test -d ${X11_DIR}/lib; then
48488 pbxlibdir="-L${X11_DIR}/lib"
48489 else
48490 pbxlibdir="-L${X11_DIR}"
48493 pbxfuncname="XOpenDisplay"
48494 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
48495 AST_X11_FOUND=yes
48496 else
48497 as_ac_Lib=`echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
48498 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lX11" >&5
48499 echo $ECHO_N "checking for ${pbxfuncname} in -lX11... $ECHO_C" >&6; }
48500 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
48501 echo $ECHO_N "(cached) $ECHO_C" >&6
48502 else
48503 ac_check_lib_save_LIBS=$LIBS
48504 LIBS="-lX11 ${pbxlibdir} $LIBS"
48505 cat >conftest.$ac_ext <<_ACEOF
48506 /* confdefs.h. */
48507 _ACEOF
48508 cat confdefs.h >>conftest.$ac_ext
48509 cat >>conftest.$ac_ext <<_ACEOF
48510 /* end confdefs.h. */
48512 /* Override any GCC internal prototype to avoid an error.
48513 Use char because int might match the return type of a GCC
48514 builtin and then its argument prototype would still apply. */
48515 #ifdef __cplusplus
48516 extern "C"
48517 #endif
48518 char ${pbxfuncname} ();
48520 main ()
48522 return ${pbxfuncname} ();
48524 return 0;
48526 _ACEOF
48527 rm -f conftest.$ac_objext conftest$ac_exeext
48528 if { (ac_try="$ac_link"
48529 case "(($ac_try" in
48530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48531 *) ac_try_echo=$ac_try;;
48532 esac
48533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48534 (eval "$ac_link") 2>conftest.er1
48535 ac_status=$?
48536 grep -v '^ *+' conftest.er1 >conftest.err
48537 rm -f conftest.er1
48538 cat conftest.err >&5
48539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48540 (exit $ac_status); } && {
48541 test -z "$ac_c_werror_flag" ||
48542 test ! -s conftest.err
48543 } && test -s conftest$ac_exeext &&
48544 $as_test_x conftest$ac_exeext; then
48545 eval "$as_ac_Lib=yes"
48546 else
48547 echo "$as_me: failed program was:" >&5
48548 sed 's/^/| /' conftest.$ac_ext >&5
48550 eval "$as_ac_Lib=no"
48553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48554 conftest$ac_exeext conftest.$ac_ext
48555 LIBS=$ac_check_lib_save_LIBS
48557 ac_res=`eval echo '${'$as_ac_Lib'}'`
48558 { echo "$as_me:$LINENO: result: $ac_res" >&5
48559 echo "${ECHO_T}$ac_res" >&6; }
48560 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
48561 AST_X11_FOUND=yes
48562 else
48563 AST_X11_FOUND=no
48568 # now check for the header.
48569 if test "${AST_X11_FOUND}" = "yes"; then
48570 X11_LIB="${pbxlibdir} -lX11 "
48571 # if --with-X11=DIR has been specified, use it.
48572 if test "x${X11_DIR}" != "x"; then
48573 X11_INCLUDE="-I${X11_DIR}/include"
48575 X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
48576 if test "xX11/Xlib.h" = "x" ; then # no header, assume found
48577 X11_HEADER_FOUND="1"
48578 else # check for the header
48579 saved_cppflags="${CPPFLAGS}"
48580 CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE} -I/usr/X11R6/include"
48581 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48582 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48583 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48584 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48585 echo $ECHO_N "(cached) $ECHO_C" >&6
48587 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48588 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48589 else
48590 # Is the header compilable?
48591 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
48592 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
48593 cat >conftest.$ac_ext <<_ACEOF
48594 /* confdefs.h. */
48595 _ACEOF
48596 cat confdefs.h >>conftest.$ac_ext
48597 cat >>conftest.$ac_ext <<_ACEOF
48598 /* end confdefs.h. */
48599 $ac_includes_default
48600 #include <X11/Xlib.h>
48601 _ACEOF
48602 rm -f conftest.$ac_objext
48603 if { (ac_try="$ac_compile"
48604 case "(($ac_try" in
48605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48606 *) ac_try_echo=$ac_try;;
48607 esac
48608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48609 (eval "$ac_compile") 2>conftest.er1
48610 ac_status=$?
48611 grep -v '^ *+' conftest.er1 >conftest.err
48612 rm -f conftest.er1
48613 cat conftest.err >&5
48614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48615 (exit $ac_status); } && {
48616 test -z "$ac_c_werror_flag" ||
48617 test ! -s conftest.err
48618 } && test -s conftest.$ac_objext; then
48619 ac_header_compiler=yes
48620 else
48621 echo "$as_me: failed program was:" >&5
48622 sed 's/^/| /' conftest.$ac_ext >&5
48624 ac_header_compiler=no
48627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48629 echo "${ECHO_T}$ac_header_compiler" >&6; }
48631 # Is the header present?
48632 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
48633 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
48634 cat >conftest.$ac_ext <<_ACEOF
48635 /* confdefs.h. */
48636 _ACEOF
48637 cat confdefs.h >>conftest.$ac_ext
48638 cat >>conftest.$ac_ext <<_ACEOF
48639 /* end confdefs.h. */
48640 #include <X11/Xlib.h>
48641 _ACEOF
48642 if { (ac_try="$ac_cpp conftest.$ac_ext"
48643 case "(($ac_try" in
48644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48645 *) ac_try_echo=$ac_try;;
48646 esac
48647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48649 ac_status=$?
48650 grep -v '^ *+' conftest.er1 >conftest.err
48651 rm -f conftest.er1
48652 cat conftest.err >&5
48653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48654 (exit $ac_status); } >/dev/null && {
48655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48656 test ! -s conftest.err
48657 }; then
48658 ac_header_preproc=yes
48659 else
48660 echo "$as_me: failed program was:" >&5
48661 sed 's/^/| /' conftest.$ac_ext >&5
48663 ac_header_preproc=no
48666 rm -f conftest.err conftest.$ac_ext
48667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48668 echo "${ECHO_T}$ac_header_preproc" >&6; }
48670 # So? What about this header?
48671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48672 yes:no: )
48673 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
48674 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48675 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
48676 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
48677 ac_header_preproc=yes
48679 no:yes:* )
48680 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
48681 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
48682 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
48683 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
48684 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
48685 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
48686 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
48687 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
48688 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
48689 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
48690 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
48691 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
48692 ( cat <<\_ASBOX
48693 ## ------------------------------- ##
48694 ## Report this to www.asterisk.org ##
48695 ## ------------------------------- ##
48696 _ASBOX
48697 ) | sed "s/^/$as_me: WARNING: /" >&2
48699 esac
48700 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
48701 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
48702 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
48703 echo $ECHO_N "(cached) $ECHO_C" >&6
48704 else
48705 ac_cv_header_X11_Xlib_h=$ac_header_preproc
48707 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
48708 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
48711 if test $ac_cv_header_X11_Xlib_h = yes; then
48712 X11_HEADER_FOUND=1
48713 else
48714 X11_HEADER_FOUND=0
48718 CPPFLAGS="${saved_cppflags}"
48720 if test "x${X11_HEADER_FOUND}" = "x0" ; then
48721 X11_LIB=""
48722 X11_INCLUDE=""
48723 else
48724 if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
48725 X11_LIB=""
48727 PBX_X11=1
48728 # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
48730 cat >>confdefs.h <<_ACEOF
48731 #define HAVE_X11 1
48732 _ACEOF
48735 cat >>confdefs.h <<_ACEOF
48736 #define HAVE_X11_VERSION X11R6
48737 _ACEOF
48744 if test "${cross_compiling}" = "no";
48745 then
48746 { echo "$as_me:$LINENO: checking for /sbin/launchd" >&5
48747 echo $ECHO_N "checking for /sbin/launchd... $ECHO_C" >&6; }
48748 if test "${ac_cv_file__sbin_launchd+set}" = set; then
48749 echo $ECHO_N "(cached) $ECHO_C" >&6
48750 else
48751 test "$cross_compiling" = yes &&
48752 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
48753 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
48754 { (exit 1); exit 1; }; }
48755 if test -r "/sbin/launchd"; then
48756 ac_cv_file__sbin_launchd=yes
48757 else
48758 ac_cv_file__sbin_launchd=no
48761 { echo "$as_me:$LINENO: result: $ac_cv_file__sbin_launchd" >&5
48762 echo "${ECHO_T}$ac_cv_file__sbin_launchd" >&6; }
48763 if test $ac_cv_file__sbin_launchd = yes; then
48765 cat >>confdefs.h <<\_ACEOF
48766 #define HAVE_SBIN_LAUNCHD 1
48767 _ACEOF
48773 PBX_GTK=0
48775 if test "x${PBX_GTK}" != "x1" -a "${USE_GTK}" != "no"; then
48776 PBX_GTK=0
48777 if test -n "$ac_tool_prefix"; then
48778 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
48779 set dummy ${ac_tool_prefix}gtk-config; ac_word=$2
48780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48782 if test "${ac_cv_prog_CONFIG_GTK+set}" = set; then
48783 echo $ECHO_N "(cached) $ECHO_C" >&6
48784 else
48785 if test -n "$CONFIG_GTK"; then
48786 ac_cv_prog_CONFIG_GTK="$CONFIG_GTK" # Let the user override the test.
48787 else
48788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48789 for as_dir in $PATH
48791 IFS=$as_save_IFS
48792 test -z "$as_dir" && as_dir=.
48793 for ac_exec_ext in '' $ac_executable_extensions; do
48794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48795 ac_cv_prog_CONFIG_GTK="${ac_tool_prefix}gtk-config"
48796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48797 break 2
48799 done
48800 done
48801 IFS=$as_save_IFS
48805 CONFIG_GTK=$ac_cv_prog_CONFIG_GTK
48806 if test -n "$CONFIG_GTK"; then
48807 { echo "$as_me:$LINENO: result: $CONFIG_GTK" >&5
48808 echo "${ECHO_T}$CONFIG_GTK" >&6; }
48809 else
48810 { echo "$as_me:$LINENO: result: no" >&5
48811 echo "${ECHO_T}no" >&6; }
48816 if test -z "$ac_cv_prog_CONFIG_GTK"; then
48817 ac_ct_CONFIG_GTK=$CONFIG_GTK
48818 # Extract the first word of "gtk-config", so it can be a program name with args.
48819 set dummy gtk-config; ac_word=$2
48820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48822 if test "${ac_cv_prog_ac_ct_CONFIG_GTK+set}" = set; then
48823 echo $ECHO_N "(cached) $ECHO_C" >&6
48824 else
48825 if test -n "$ac_ct_CONFIG_GTK"; then
48826 ac_cv_prog_ac_ct_CONFIG_GTK="$ac_ct_CONFIG_GTK" # Let the user override the test.
48827 else
48828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48829 for as_dir in $PATH
48831 IFS=$as_save_IFS
48832 test -z "$as_dir" && as_dir=.
48833 for ac_exec_ext in '' $ac_executable_extensions; do
48834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48835 ac_cv_prog_ac_ct_CONFIG_GTK="gtk-config"
48836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48837 break 2
48839 done
48840 done
48841 IFS=$as_save_IFS
48845 ac_ct_CONFIG_GTK=$ac_cv_prog_ac_ct_CONFIG_GTK
48846 if test -n "$ac_ct_CONFIG_GTK"; then
48847 { echo "$as_me:$LINENO: result: $ac_ct_CONFIG_GTK" >&5
48848 echo "${ECHO_T}$ac_ct_CONFIG_GTK" >&6; }
48849 else
48850 { echo "$as_me:$LINENO: result: no" >&5
48851 echo "${ECHO_T}no" >&6; }
48854 if test "x$ac_ct_CONFIG_GTK" = x; then
48855 CONFIG_GTK="No"
48856 else
48857 case $cross_compiling:$ac_tool_warned in
48858 yes:)
48859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48860 whose name does not start with the host triplet. If you think this
48861 configuration is useful to you, please write to autoconf@gnu.org." >&5
48862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48863 whose name does not start with the host triplet. If you think this
48864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48865 ac_tool_warned=yes ;;
48866 esac
48867 CONFIG_GTK=$ac_ct_CONFIG_GTK
48869 else
48870 CONFIG_GTK="$ac_cv_prog_CONFIG_GTK"
48873 if test ! "x${CONFIG_GTK}" = xNo; then
48874 if test x"--cflags gthread" = x ; then A=--cflags ; else A="--cflags gthread" ; fi
48875 GTK_INCLUDE=$(${CONFIG_GTK} $A)
48876 if test x"--libs gthread" = x ; then A=--libs ; else A="--libs gthread" ; fi
48877 GTK_LIB=$(${CONFIG_GTK} $A)
48878 if test x"" != x ; then
48879 saved_cppflags="${CPPFLAGS}"
48880 if test "x${GTK_DIR}" != "x"; then
48881 GTK_INCLUDE="-I${GTK_DIR}/include"
48883 CPPFLAGS="${CPPFLAGS} ${GTK_INCLUDE}"
48885 saved_ldflags="${LDFLAGS}"
48886 LDFLAGS="${GTK_LIB}"
48888 cat >conftest.$ac_ext <<_ACEOF
48889 /* confdefs.h. */
48890 _ACEOF
48891 cat confdefs.h >>conftest.$ac_ext
48892 cat >>conftest.$ac_ext <<_ACEOF
48893 /* end confdefs.h. */
48896 main ()
48901 return 0;
48903 _ACEOF
48904 rm -f conftest.$ac_objext conftest$ac_exeext
48905 if { (ac_try="$ac_link"
48906 case "(($ac_try" in
48907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48908 *) ac_try_echo=$ac_try;;
48909 esac
48910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48911 (eval "$ac_link") 2>conftest.er1
48912 ac_status=$?
48913 grep -v '^ *+' conftest.er1 >conftest.err
48914 rm -f conftest.er1
48915 cat conftest.err >&5
48916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48917 (exit $ac_status); } && {
48918 test -z "$ac_c_werror_flag" ||
48919 test ! -s conftest.err
48920 } && test -s conftest$ac_exeext &&
48921 $as_test_x conftest$ac_exeext; then
48922 PBX_GTK=1
48924 cat >>confdefs.h <<\_ACEOF
48925 #define HAVE_GTK 1
48926 _ACEOF
48929 else
48930 echo "$as_me: failed program was:" >&5
48931 sed 's/^/| /' conftest.$ac_ext >&5
48937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48938 conftest$ac_exeext conftest.$ac_ext
48939 CPPFLAGS="${saved_cppflags}"
48940 LDFLAGS="${saved_ldflags}"
48941 else
48942 PBX_GTK=1
48944 cat >>confdefs.h <<\_ACEOF
48945 #define HAVE_GTK 1
48946 _ACEOF
48953 PBX_GTK2=0
48954 if test -n "$ac_tool_prefix"; then
48955 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
48956 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
48957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48959 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
48960 echo $ECHO_N "(cached) $ECHO_C" >&6
48961 else
48962 if test -n "$PKGCONFIG"; then
48963 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
48964 else
48965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48966 for as_dir in $PATH
48968 IFS=$as_save_IFS
48969 test -z "$as_dir" && as_dir=.
48970 for ac_exec_ext in '' $ac_executable_extensions; do
48971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48972 ac_cv_prog_PKGCONFIG="${ac_tool_prefix}pkg-config"
48973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48974 break 2
48976 done
48977 done
48978 IFS=$as_save_IFS
48982 PKGCONFIG=$ac_cv_prog_PKGCONFIG
48983 if test -n "$PKGCONFIG"; then
48984 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
48985 echo "${ECHO_T}$PKGCONFIG" >&6; }
48986 else
48987 { echo "$as_me:$LINENO: result: no" >&5
48988 echo "${ECHO_T}no" >&6; }
48993 if test -z "$ac_cv_prog_PKGCONFIG"; then
48994 ac_ct_PKGCONFIG=$PKGCONFIG
48995 # Extract the first word of "pkg-config", so it can be a program name with args.
48996 set dummy pkg-config; ac_word=$2
48997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48999 if test "${ac_cv_prog_ac_ct_PKGCONFIG+set}" = set; then
49000 echo $ECHO_N "(cached) $ECHO_C" >&6
49001 else
49002 if test -n "$ac_ct_PKGCONFIG"; then
49003 ac_cv_prog_ac_ct_PKGCONFIG="$ac_ct_PKGCONFIG" # Let the user override the test.
49004 else
49005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49006 for as_dir in $PATH
49008 IFS=$as_save_IFS
49009 test -z "$as_dir" && as_dir=.
49010 for ac_exec_ext in '' $ac_executable_extensions; do
49011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49012 ac_cv_prog_ac_ct_PKGCONFIG="pkg-config"
49013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49014 break 2
49016 done
49017 done
49018 IFS=$as_save_IFS
49022 ac_ct_PKGCONFIG=$ac_cv_prog_ac_ct_PKGCONFIG
49023 if test -n "$ac_ct_PKGCONFIG"; then
49024 { echo "$as_me:$LINENO: result: $ac_ct_PKGCONFIG" >&5
49025 echo "${ECHO_T}$ac_ct_PKGCONFIG" >&6; }
49026 else
49027 { echo "$as_me:$LINENO: result: no" >&5
49028 echo "${ECHO_T}no" >&6; }
49031 if test "x$ac_ct_PKGCONFIG" = x; then
49032 PKGCONFIG="No"
49033 else
49034 case $cross_compiling:$ac_tool_warned in
49035 yes:)
49036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49037 whose name does not start with the host triplet. If you think this
49038 configuration is useful to you, please write to autoconf@gnu.org." >&5
49039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49040 whose name does not start with the host triplet. If you think this
49041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49042 ac_tool_warned=yes ;;
49043 esac
49044 PKGCONFIG=$ac_ct_PKGCONFIG
49046 else
49047 PKGCONFIG="$ac_cv_prog_PKGCONFIG"
49050 if test ! "x${PKGCONFIG}" = xNo; then
49051 GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
49052 GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)
49053 PBX_GTK2=1
49055 cat >>confdefs.h <<\_ACEOF
49056 #define HAVE_GTK2 1
49057 _ACEOF
49064 if test "${USE_CURL}" != "no"; then
49065 if test -n "$ac_tool_prefix"; then
49066 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
49067 set dummy ${ac_tool_prefix}curl-config; ac_word=$2
49068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49070 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
49071 echo $ECHO_N "(cached) $ECHO_C" >&6
49072 else
49073 case $CURL_CONFIG in
49074 [\\/]* | ?:[\\/]*)
49075 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
49078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49079 for as_dir in $PATH
49081 IFS=$as_save_IFS
49082 test -z "$as_dir" && as_dir=.
49083 for ac_exec_ext in '' $ac_executable_extensions; do
49084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49085 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49087 break 2
49089 done
49090 done
49091 IFS=$as_save_IFS
49094 esac
49096 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
49097 if test -n "$CURL_CONFIG"; then
49098 { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
49099 echo "${ECHO_T}$CURL_CONFIG" >&6; }
49100 else
49101 { echo "$as_me:$LINENO: result: no" >&5
49102 echo "${ECHO_T}no" >&6; }
49107 if test -z "$ac_cv_path_CURL_CONFIG"; then
49108 ac_pt_CURL_CONFIG=$CURL_CONFIG
49109 # Extract the first word of "curl-config", so it can be a program name with args.
49110 set dummy curl-config; ac_word=$2
49111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49113 if test "${ac_cv_path_ac_pt_CURL_CONFIG+set}" = set; then
49114 echo $ECHO_N "(cached) $ECHO_C" >&6
49115 else
49116 case $ac_pt_CURL_CONFIG in
49117 [\\/]* | ?:[\\/]*)
49118 ac_cv_path_ac_pt_CURL_CONFIG="$ac_pt_CURL_CONFIG" # Let the user override the test with a path.
49121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49122 for as_dir in $PATH
49124 IFS=$as_save_IFS
49125 test -z "$as_dir" && as_dir=.
49126 for ac_exec_ext in '' $ac_executable_extensions; do
49127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49128 ac_cv_path_ac_pt_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49130 break 2
49132 done
49133 done
49134 IFS=$as_save_IFS
49137 esac
49139 ac_pt_CURL_CONFIG=$ac_cv_path_ac_pt_CURL_CONFIG
49140 if test -n "$ac_pt_CURL_CONFIG"; then
49141 { echo "$as_me:$LINENO: result: $ac_pt_CURL_CONFIG" >&5
49142 echo "${ECHO_T}$ac_pt_CURL_CONFIG" >&6; }
49143 else
49144 { echo "$as_me:$LINENO: result: no" >&5
49145 echo "${ECHO_T}no" >&6; }
49148 if test "x$ac_pt_CURL_CONFIG" = x; then
49149 CURL_CONFIG="No"
49150 else
49151 case $cross_compiling:$ac_tool_warned in
49152 yes:)
49153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49154 whose name does not start with the host triplet. If you think this
49155 configuration is useful to you, please write to autoconf@gnu.org." >&5
49156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49157 whose name does not start with the host triplet. If you think this
49158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49159 ac_tool_warned=yes ;;
49160 esac
49161 CURL_CONFIG=$ac_pt_CURL_CONFIG
49163 else
49164 CURL_CONFIG="$ac_cv_path_CURL_CONFIG"
49167 if test ! x"${CURL_CONFIG}" = xNo; then
49168 # check for version
49169 if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then
49170 CURL_INCLUDE=$(${CURL_CONFIG} --cflags)
49171 CURL_LIB=$(${CURL_CONFIG} --libs)
49173 { echo "$as_me:$LINENO: checking for curl_version() in curl/curl.h" >&5
49174 echo $ECHO_N "checking for curl_version() in curl/curl.h... $ECHO_C" >&6; }
49175 saved_cppflags="${CPPFLAGS}"
49176 CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}"
49177 cat >conftest.$ac_ext <<_ACEOF
49178 /* confdefs.h. */
49179 _ACEOF
49180 cat confdefs.h >>conftest.$ac_ext
49181 cat >>conftest.$ac_ext <<_ACEOF
49182 /* end confdefs.h. */
49183 #include <curl/curl.h>
49185 main ()
49187 curl_version();
49189 return 0;
49192 _ACEOF
49193 rm -f conftest.$ac_objext
49194 if { (ac_try="$ac_compile"
49195 case "(($ac_try" in
49196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49197 *) ac_try_echo=$ac_try;;
49198 esac
49199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49200 (eval "$ac_compile") 2>conftest.er1
49201 ac_status=$?
49202 grep -v '^ *+' conftest.er1 >conftest.err
49203 rm -f conftest.er1
49204 cat conftest.err >&5
49205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49206 (exit $ac_status); } && {
49207 test -z "$ac_c_werror_flag" ||
49208 test ! -s conftest.err
49209 } && test -s conftest.$ac_objext; then
49211 { echo "$as_me:$LINENO: result: yes" >&5
49212 echo "${ECHO_T}yes" >&6; }
49213 ac_cv_curl_h="yes"
49215 else
49216 echo "$as_me: failed program was:" >&5
49217 sed 's/^/| /' conftest.$ac_ext >&5
49220 { echo "$as_me:$LINENO: result: no" >&5
49221 echo "${ECHO_T}no" >&6; }
49222 ac_cv_curl_h="no"
49227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49228 CPPFLAGS="${saved_cppflags}"
49229 if test "${ac_cv_curl_h}" = "yes"; then
49230 PBX_CURL=1
49232 cat >>confdefs.h <<\_ACEOF
49233 #define HAVE_CURL 1
49234 _ACEOF
49241 ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts channels/h323/Makefile"
49244 { echo "$as_me:$LINENO: checking for mandatory modules: ${ac_mandatory_list}" >&5
49245 echo $ECHO_N "checking for mandatory modules: ${ac_mandatory_list}... $ECHO_C" >&6; }
49246 err=0;
49247 for i in ${ac_mandatory_list}; do
49248 eval "a=\${PBX_$i}"
49249 if test "x${a}" = "x1" ; then continue; fi
49250 if test ${err} = "0" ; then { echo "$as_me:$LINENO: result: fail" >&5
49251 echo "${ECHO_T}fail" >&6; } ; fi
49252 { echo "$as_me:$LINENO: result: " >&5
49253 echo "${ECHO_T}" >&6; }
49254 eval "a=\${${i}_OPTION}"
49255 { echo "$as_me:$LINENO: ***" >&5
49256 echo "$as_me: ***" >&6;}
49257 { echo "$as_me:$LINENO: *** The $i installation appears to be missing or broken." >&5
49258 echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
49259 { echo "$as_me:$LINENO: *** Either correct the installation, or run configure" >&5
49260 echo "$as_me: *** Either correct the installation, or run configure" >&6;}
49261 { echo "$as_me:$LINENO: *** including --without-${a}." >&5
49262 echo "$as_me: *** including --without-${a}." >&6;}
49263 err=1
49264 done
49265 if test $err = 1 ; then exit 1; fi
49266 { echo "$as_me:$LINENO: result: ok" >&5
49267 echo "${ECHO_T}ok" >&6; }
49270 cat >confcache <<\_ACEOF
49271 # This file is a shell script that caches the results of configure
49272 # tests run on this system so they can be shared between configure
49273 # scripts and configure runs, see configure's option --config-cache.
49274 # It is not useful on other systems. If it contains results you don't
49275 # want to keep, you may remove or edit it.
49277 # config.status only pays attention to the cache file if you give it
49278 # the --recheck option to rerun configure.
49280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49282 # following values.
49284 _ACEOF
49286 # The following way of writing the cache mishandles newlines in values,
49287 # but we know of no workaround that is simple, portable, and efficient.
49288 # So, we kill variables containing newlines.
49289 # Ultrix sh set writes to stderr and can't be redirected directly,
49290 # and sets the high bit in the cache file unless we assign to the vars.
49292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49293 eval ac_val=\$$ac_var
49294 case $ac_val in #(
49295 *${as_nl}*)
49296 case $ac_var in #(
49297 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
49298 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
49299 esac
49300 case $ac_var in #(
49301 _ | IFS | as_nl) ;; #(
49302 *) $as_unset $ac_var ;;
49303 esac ;;
49304 esac
49305 done
49307 (set) 2>&1 |
49308 case $as_nl`(ac_space=' '; set) 2>&1` in #(
49309 *${as_nl}ac_space=\ *)
49310 # `set' does not quote correctly, so add quotes (double-quote
49311 # substitution turns \\\\ into \\, and sed turns \\ into \).
49312 sed -n \
49313 "s/'/'\\\\''/g;
49314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49315 ;; #(
49317 # `set' quotes correctly as required by POSIX, so do not add quotes.
49318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49320 esac |
49321 sort
49323 sed '
49324 /^ac_cv_env_/b end
49325 t clear
49326 :clear
49327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49328 t end
49329 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49330 :end' >>confcache
49331 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49332 if test -w "$cache_file"; then
49333 test "x$cache_file" != "x/dev/null" &&
49334 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
49335 echo "$as_me: updating cache $cache_file" >&6;}
49336 cat confcache >$cache_file
49337 else
49338 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
49339 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49342 rm -f confcache
49344 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49345 # Let make expand exec_prefix.
49346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49348 DEFS=-DHAVE_CONFIG_H
49350 ac_libobjs=
49351 ac_ltlibobjs=
49352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49353 # 1. Remove the extension, and $U if already installed.
49354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49355 ac_i=`echo "$ac_i" | sed "$ac_script"`
49356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
49357 # will be set to the directory where LIBOBJS objects are built.
49358 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49359 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
49360 done
49361 LIBOBJS=$ac_libobjs
49363 LTLIBOBJS=$ac_ltlibobjs
49367 : ${CONFIG_STATUS=./config.status}
49368 ac_clean_files_save=$ac_clean_files
49369 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49370 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49371 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49372 cat >$CONFIG_STATUS <<_ACEOF
49373 #! $SHELL
49374 # Generated by $as_me.
49375 # Run this file to recreate the current configuration.
49376 # Compiler output produced by configure, useful for debugging
49377 # configure, is in config.log if it exists.
49379 debug=false
49380 ac_cs_recheck=false
49381 ac_cs_silent=false
49382 SHELL=\${CONFIG_SHELL-$SHELL}
49383 _ACEOF
49385 cat >>$CONFIG_STATUS <<\_ACEOF
49386 ## --------------------- ##
49387 ## M4sh Initialization. ##
49388 ## --------------------- ##
49390 # Be more Bourne compatible
49391 DUALCASE=1; export DUALCASE # for MKS sh
49392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49393 emulate sh
49394 NULLCMD=:
49395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49396 # is contrary to our usage. Disable this feature.
49397 alias -g '${1+"$@"}'='"$@"'
49398 setopt NO_GLOB_SUBST
49399 else
49400 case `(set -o) 2>/dev/null` in
49401 *posix*) set -o posix ;;
49402 esac
49409 # PATH needs CR
49410 # Avoid depending upon Character Ranges.
49411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49414 as_cr_digits='0123456789'
49415 as_cr_alnum=$as_cr_Letters$as_cr_digits
49417 # The user is always right.
49418 if test "${PATH_SEPARATOR+set}" != set; then
49419 echo "#! /bin/sh" >conf$$.sh
49420 echo "exit 0" >>conf$$.sh
49421 chmod +x conf$$.sh
49422 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49423 PATH_SEPARATOR=';'
49424 else
49425 PATH_SEPARATOR=:
49427 rm -f conf$$.sh
49430 # Support unset when possible.
49431 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49432 as_unset=unset
49433 else
49434 as_unset=false
49438 # IFS
49439 # We need space, tab and new line, in precisely that order. Quoting is
49440 # there to prevent editors from complaining about space-tab.
49441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
49442 # splitting by setting IFS to empty value.)
49443 as_nl='
49445 IFS=" "" $as_nl"
49447 # Find who we are. Look in the path if we contain no directory separator.
49448 case $0 in
49449 *[\\/]* ) as_myself=$0 ;;
49450 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49451 for as_dir in $PATH
49453 IFS=$as_save_IFS
49454 test -z "$as_dir" && as_dir=.
49455 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49456 done
49457 IFS=$as_save_IFS
49460 esac
49461 # We did not find ourselves, most probably we were run as `sh COMMAND'
49462 # in which case we are not to be found in the path.
49463 if test "x$as_myself" = x; then
49464 as_myself=$0
49466 if test ! -f "$as_myself"; then
49467 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
49468 { (exit 1); exit 1; }
49471 # Work around bugs in pre-3.0 UWIN ksh.
49472 for as_var in ENV MAIL MAILPATH
49473 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49474 done
49475 PS1='$ '
49476 PS2='> '
49477 PS4='+ '
49479 # NLS nuisances.
49480 for as_var in \
49481 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49482 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49483 LC_TELEPHONE LC_TIME
49485 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49486 eval $as_var=C; export $as_var
49487 else
49488 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
49490 done
49492 # Required to use basename.
49493 if expr a : '\(a\)' >/dev/null 2>&1 &&
49494 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49495 as_expr=expr
49496 else
49497 as_expr=false
49500 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49501 as_basename=basename
49502 else
49503 as_basename=false
49507 # Name of the executable.
49508 as_me=`$as_basename -- "$0" ||
49509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49510 X"$0" : 'X\(//\)$' \| \
49511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
49512 echo X/"$0" |
49513 sed '/^.*\/\([^/][^/]*\)\/*$/{
49514 s//\1/
49517 /^X\/\(\/\/\)$/{
49518 s//\1/
49521 /^X\/\(\/\).*/{
49522 s//\1/
49525 s/.*/./; q'`
49527 # CDPATH.
49528 $as_unset CDPATH
49532 as_lineno_1=$LINENO
49533 as_lineno_2=$LINENO
49534 test "x$as_lineno_1" != "x$as_lineno_2" &&
49535 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
49537 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49538 # uniformly replaced by the line number. The first 'sed' inserts a
49539 # line-number line after each line using $LINENO; the second 'sed'
49540 # does the real work. The second script uses 'N' to pair each
49541 # line-number line with the line containing $LINENO, and appends
49542 # trailing '-' during substitution so that $LINENO is not a special
49543 # case at line end.
49544 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49545 # scripts with optimization help from Paolo Bonzini. Blame Lee
49546 # E. McMahon (1931-1989) for sed's syntax. :-)
49547 sed -n '
49549 /[$]LINENO/=
49550 ' <$as_myself |
49551 sed '
49552 s/[$]LINENO.*/&-/
49553 t lineno
49555 :lineno
49557 :loop
49558 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
49559 t loop
49560 s/-\n.*//
49561 ' >$as_me.lineno &&
49562 chmod +x "$as_me.lineno" ||
49563 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
49564 { (exit 1); exit 1; }; }
49566 # Don't try to exec as it changes $[0], causing all sort of problems
49567 # (the dirname of $[0] is not the place where we might find the
49568 # original and so on. Autoconf is especially sensitive to this).
49569 . "./$as_me.lineno"
49570 # Exit status is that of the last command.
49571 exit
49575 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
49576 as_dirname=dirname
49577 else
49578 as_dirname=false
49581 ECHO_C= ECHO_N= ECHO_T=
49582 case `echo -n x` in
49583 -n*)
49584 case `echo 'x\c'` in
49585 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
49586 *) ECHO_C='\c';;
49587 esac;;
49589 ECHO_N='-n';;
49590 esac
49592 if expr a : '\(a\)' >/dev/null 2>&1 &&
49593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
49594 as_expr=expr
49595 else
49596 as_expr=false
49599 rm -f conf$$ conf$$.exe conf$$.file
49600 if test -d conf$$.dir; then
49601 rm -f conf$$.dir/conf$$.file
49602 else
49603 rm -f conf$$.dir
49604 mkdir conf$$.dir
49606 echo >conf$$.file
49607 if ln -s conf$$.file conf$$ 2>/dev/null; then
49608 as_ln_s='ln -s'
49609 # ... but there are two gotchas:
49610 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49611 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49612 # In both cases, we have to default to `cp -p'.
49613 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49614 as_ln_s='cp -p'
49615 elif ln conf$$.file conf$$ 2>/dev/null; then
49616 as_ln_s=ln
49617 else
49618 as_ln_s='cp -p'
49620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
49621 rmdir conf$$.dir 2>/dev/null
49623 if mkdir -p . 2>/dev/null; then
49624 as_mkdir_p=:
49625 else
49626 test -d ./-p && rmdir ./-p
49627 as_mkdir_p=false
49630 if test -x / >/dev/null 2>&1; then
49631 as_test_x='test -x'
49632 else
49633 if ls -dL / >/dev/null 2>&1; then
49634 as_ls_L_option=L
49635 else
49636 as_ls_L_option=
49638 as_test_x='
49639 eval sh -c '\''
49640 if test -d "$1"; then
49641 test -d "$1/.";
49642 else
49643 case $1 in
49644 -*)set "./$1";;
49645 esac;
49646 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
49647 ???[sx]*):;;*)false;;esac;fi
49648 '\'' sh
49651 as_executable_p=$as_test_x
49653 # Sed expression to map a string onto a valid CPP name.
49654 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49656 # Sed expression to map a string onto a valid variable name.
49657 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49660 exec 6>&1
49662 # Save the log message, to keep $[0] and so on meaningful, and to
49663 # report actual input values of CONFIG_FILES etc. instead of their
49664 # values after options handling.
49665 ac_log="
49666 This file was extended by asterisk $as_me 1.6, which was
49667 generated by GNU Autoconf 2.61. Invocation command line was
49669 CONFIG_FILES = $CONFIG_FILES
49670 CONFIG_HEADERS = $CONFIG_HEADERS
49671 CONFIG_LINKS = $CONFIG_LINKS
49672 CONFIG_COMMANDS = $CONFIG_COMMANDS
49673 $ $0 $@
49675 on `(hostname || uname -n) 2>/dev/null | sed 1q`
49678 _ACEOF
49680 cat >>$CONFIG_STATUS <<_ACEOF
49681 # Files that config.status was made for.
49682 config_files="$ac_config_files"
49683 config_headers="$ac_config_headers"
49685 _ACEOF
49687 cat >>$CONFIG_STATUS <<\_ACEOF
49688 ac_cs_usage="\
49689 \`$as_me' instantiates files from templates according to the
49690 current configuration.
49692 Usage: $0 [OPTIONS] [FILE]...
49694 -h, --help print this help, then exit
49695 -V, --version print version number and configuration settings, then exit
49696 -q, --quiet do not print progress messages
49697 -d, --debug don't remove temporary files
49698 --recheck update $as_me by reconfiguring in the same conditions
49699 --file=FILE[:TEMPLATE]
49700 instantiate the configuration file FILE
49701 --header=FILE[:TEMPLATE]
49702 instantiate the configuration header FILE
49704 Configuration files:
49705 $config_files
49707 Configuration headers:
49708 $config_headers
49710 Report bugs to <bug-autoconf@gnu.org>."
49712 _ACEOF
49713 cat >>$CONFIG_STATUS <<_ACEOF
49714 ac_cs_version="\\
49715 asterisk config.status 1.6
49716 configured by $0, generated by GNU Autoconf 2.61,
49717 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
49719 Copyright (C) 2006 Free Software Foundation, Inc.
49720 This config.status script is free software; the Free Software Foundation
49721 gives unlimited permission to copy, distribute and modify it."
49723 ac_pwd='$ac_pwd'
49724 srcdir='$srcdir'
49725 INSTALL='$INSTALL'
49726 _ACEOF
49728 cat >>$CONFIG_STATUS <<\_ACEOF
49729 # If no file are specified by the user, then we need to provide default
49730 # value. By we need to know if files were specified by the user.
49731 ac_need_defaults=:
49732 while test $# != 0
49734 case $1 in
49735 --*=*)
49736 ac_option=`expr "X$1" : 'X\([^=]*\)='`
49737 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
49738 ac_shift=:
49741 ac_option=$1
49742 ac_optarg=$2
49743 ac_shift=shift
49745 esac
49747 case $ac_option in
49748 # Handling of the options.
49749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49750 ac_cs_recheck=: ;;
49751 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
49752 echo "$ac_cs_version"; exit ;;
49753 --debug | --debu | --deb | --de | --d | -d )
49754 debug=: ;;
49755 --file | --fil | --fi | --f )
49756 $ac_shift
49757 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49758 ac_need_defaults=false;;
49759 --header | --heade | --head | --hea )
49760 $ac_shift
49761 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49762 ac_need_defaults=false;;
49763 --he | --h)
49764 # Conflict between --help and --header
49765 { echo "$as_me: error: ambiguous option: $1
49766 Try \`$0 --help' for more information." >&2
49767 { (exit 1); exit 1; }; };;
49768 --help | --hel | -h )
49769 echo "$ac_cs_usage"; exit ;;
49770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49771 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49772 ac_cs_silent=: ;;
49774 # This is an error.
49775 -*) { echo "$as_me: error: unrecognized option: $1
49776 Try \`$0 --help' for more information." >&2
49777 { (exit 1); exit 1; }; } ;;
49779 *) ac_config_targets="$ac_config_targets $1"
49780 ac_need_defaults=false ;;
49782 esac
49783 shift
49784 done
49786 ac_configure_extra_args=
49788 if $ac_cs_silent; then
49789 exec 6>/dev/null
49790 ac_configure_extra_args="$ac_configure_extra_args --silent"
49793 _ACEOF
49794 cat >>$CONFIG_STATUS <<_ACEOF
49795 if \$ac_cs_recheck; then
49796 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49797 CONFIG_SHELL=$SHELL
49798 export CONFIG_SHELL
49799 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49802 _ACEOF
49803 cat >>$CONFIG_STATUS <<\_ACEOF
49804 exec 5>>config.log
49806 echo
49807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49808 ## Running $as_me. ##
49809 _ASBOX
49810 echo "$ac_log"
49811 } >&5
49813 _ACEOF
49814 cat >>$CONFIG_STATUS <<_ACEOF
49815 _ACEOF
49817 cat >>$CONFIG_STATUS <<\_ACEOF
49819 # Handling of arguments.
49820 for ac_config_target in $ac_config_targets
49822 case $ac_config_target in
49823 "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
49824 "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
49825 "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
49826 "channels/h323/Makefile") CONFIG_FILES="$CONFIG_FILES channels/h323/Makefile" ;;
49828 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49829 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49830 { (exit 1); exit 1; }; };;
49831 esac
49832 done
49835 # If the user did not use the arguments to specify the items to instantiate,
49836 # then the envvar interface is used. Set only those that are not.
49837 # We use the long form for the default assignment because of an extremely
49838 # bizarre bug on SunOS 4.1.3.
49839 if $ac_need_defaults; then
49840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49844 # Have a temporary directory for convenience. Make it in the build tree
49845 # simply because there is no reason against having it here, and in addition,
49846 # creating and moving files from /tmp can sometimes cause problems.
49847 # Hook for its removal unless debugging.
49848 # Note that there is a small window in which the directory will not be cleaned:
49849 # after its creation but before its name has been assigned to `$tmp'.
49850 $debug ||
49852 tmp=
49853 trap 'exit_status=$?
49854 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
49856 trap '{ (exit 1); exit 1; }' 1 2 13 15
49858 # Create a (secure) tmp directory for tmp files.
49861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49862 test -n "$tmp" && test -d "$tmp"
49863 } ||
49865 tmp=./conf$$-$RANDOM
49866 (umask 077 && mkdir "$tmp")
49867 } ||
49869 echo "$me: cannot create a temporary directory in ." >&2
49870 { (exit 1); exit 1; }
49874 # Set up the sed scripts for CONFIG_FILES section.
49877 # No need to generate the scripts if there are no CONFIG_FILES.
49878 # This happens for instance when ./config.status config.h
49879 if test -n "$CONFIG_FILES"; then
49881 _ACEOF
49885 ac_delim='%!_!# '
49886 for ac_last_try in false false false false false :; do
49887 cat >conf$$subs.sed <<_ACEOF
49888 SHELL!$SHELL$ac_delim
49889 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
49890 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
49891 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
49892 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
49893 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
49894 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
49895 exec_prefix!$exec_prefix$ac_delim
49896 prefix!$prefix$ac_delim
49897 program_transform_name!$program_transform_name$ac_delim
49898 bindir!$bindir$ac_delim
49899 sbindir!$sbindir$ac_delim
49900 libexecdir!$libexecdir$ac_delim
49901 datarootdir!$datarootdir$ac_delim
49902 datadir!$datadir$ac_delim
49903 sysconfdir!$sysconfdir$ac_delim
49904 sharedstatedir!$sharedstatedir$ac_delim
49905 localstatedir!$localstatedir$ac_delim
49906 includedir!$includedir$ac_delim
49907 oldincludedir!$oldincludedir$ac_delim
49908 docdir!$docdir$ac_delim
49909 infodir!$infodir$ac_delim
49910 htmldir!$htmldir$ac_delim
49911 dvidir!$dvidir$ac_delim
49912 pdfdir!$pdfdir$ac_delim
49913 psdir!$psdir$ac_delim
49914 libdir!$libdir$ac_delim
49915 localedir!$localedir$ac_delim
49916 mandir!$mandir$ac_delim
49917 DEFS!$DEFS$ac_delim
49918 ECHO_C!$ECHO_C$ac_delim
49919 ECHO_N!$ECHO_N$ac_delim
49920 ECHO_T!$ECHO_T$ac_delim
49921 LIBS!$LIBS$ac_delim
49922 build_alias!$build_alias$ac_delim
49923 host_alias!$host_alias$ac_delim
49924 target_alias!$target_alias$ac_delim
49925 build!$build$ac_delim
49926 build_cpu!$build_cpu$ac_delim
49927 build_vendor!$build_vendor$ac_delim
49928 build_os!$build_os$ac_delim
49929 host!$host$ac_delim
49930 host_cpu!$host_cpu$ac_delim
49931 host_vendor!$host_vendor$ac_delim
49932 host_os!$host_os$ac_delim
49933 CC!$CC$ac_delim
49934 CFLAGS!$CFLAGS$ac_delim
49935 LDFLAGS!$LDFLAGS$ac_delim
49936 CPPFLAGS!$CPPFLAGS$ac_delim
49937 ac_ct_CC!$ac_ct_CC$ac_delim
49938 EXEEXT!$EXEEXT$ac_delim
49939 OBJEXT!$OBJEXT$ac_delim
49940 CPP!$CPP$ac_delim
49941 GREP!$GREP$ac_delim
49942 EGREP!$EGREP$ac_delim
49943 BUILD_PLATFORM!$BUILD_PLATFORM$ac_delim
49944 BUILD_CPU!$BUILD_CPU$ac_delim
49945 BUILD_VENDOR!$BUILD_VENDOR$ac_delim
49946 BUILD_OS!$BUILD_OS$ac_delim
49947 HOST_PLATFORM!$HOST_PLATFORM$ac_delim
49948 HOST_CPU!$HOST_CPU$ac_delim
49949 HOST_VENDOR!$HOST_VENDOR$ac_delim
49950 HOST_OS!$HOST_OS$ac_delim
49951 OSARCH!$OSARCH$ac_delim
49952 WINARCH!$WINARCH$ac_delim
49953 UNAME!$UNAME$ac_delim
49954 PBX_OSREV!$PBX_OSREV$ac_delim
49955 CXX!$CXX$ac_delim
49956 LD!$LD$ac_delim
49957 RANLIB!$RANLIB$ac_delim
49958 CXXFLAGS!$CXXFLAGS$ac_delim
49959 ac_ct_CXX!$ac_ct_CXX$ac_delim
49960 CXXCPP!$CXXCPP$ac_delim
49961 SED!$SED$ac_delim
49962 AWK!$AWK$ac_delim
49963 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
49964 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
49965 INSTALL_DATA!$INSTALL_DATA$ac_delim
49966 LN_S!$LN_S$ac_delim
49967 GNU_MAKE!$GNU_MAKE$ac_delim
49968 STRIP!$STRIP$ac_delim
49969 AR!$AR$ac_delim
49970 GNU_LD!$GNU_LD$ac_delim
49971 FIND!$FIND$ac_delim
49972 COMPRESS!$COMPRESS$ac_delim
49973 BASENAME!$BASENAME$ac_delim
49974 ID!$ID$ac_delim
49975 DIRNAME!$DIRNAME$ac_delim
49976 LN!$LN$ac_delim
49977 DOT!$DOT$ac_delim
49978 WGET!$WGET$ac_delim
49979 RUBBER!$RUBBER$ac_delim
49980 KPATHSEA!$KPATHSEA$ac_delim
49981 FETCH!$FETCH$ac_delim
49982 DOWNLOAD!$DOWNLOAD$ac_delim
49983 SOXMIX!$SOXMIX$ac_delim
49984 acx_pthread_config!$acx_pthread_config$ac_delim
49985 _ACEOF
49987 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
49988 break
49989 elif $ac_last_try; then
49990 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49991 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49992 { (exit 1); exit 1; }; }
49993 else
49994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49996 done
49998 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
49999 if test -n "$ac_eof"; then
50000 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50001 ac_eof=`expr $ac_eof + 1`
50004 cat >>$CONFIG_STATUS <<_ACEOF
50005 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
50006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50007 _ACEOF
50008 sed '
50009 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50010 s/^/s,@/; s/!/@,|#_!!_#|/
50013 s/'"$ac_delim"'$/,g/; t
50014 s/$/\\/; p
50015 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50016 ' >>$CONFIG_STATUS <conf$$subs.sed
50017 rm -f conf$$subs.sed
50018 cat >>$CONFIG_STATUS <<_ACEOF
50019 CEOF$ac_eof
50020 _ACEOF
50023 ac_delim='%!_!# '
50024 for ac_last_try in false false false false false :; do
50025 cat >conf$$subs.sed <<_ACEOF
50026 PTHREAD_CC!$PTHREAD_CC$ac_delim
50027 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
50028 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
50029 AST_DEVMODE!$AST_DEVMODE$ac_delim
50030 ALSA_LIB!$ALSA_LIB$ac_delim
50031 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
50032 ALSA_DIR!$ALSA_DIR$ac_delim
50033 PBX_ALSA!$PBX_ALSA$ac_delim
50034 BKTR_LIB!$BKTR_LIB$ac_delim
50035 BKTR_INCLUDE!$BKTR_INCLUDE$ac_delim
50036 BKTR_DIR!$BKTR_DIR$ac_delim
50037 PBX_BKTR!$PBX_BKTR$ac_delim
50038 CAP_LIB!$CAP_LIB$ac_delim
50039 CAP_INCLUDE!$CAP_INCLUDE$ac_delim
50040 CAP_DIR!$CAP_DIR$ac_delim
50041 PBX_CAP!$PBX_CAP$ac_delim
50042 CURL_LIB!$CURL_LIB$ac_delim
50043 CURL_INCLUDE!$CURL_INCLUDE$ac_delim
50044 CURL_DIR!$CURL_DIR$ac_delim
50045 PBX_CURL!$PBX_CURL$ac_delim
50046 CURSES_LIB!$CURSES_LIB$ac_delim
50047 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
50048 CURSES_DIR!$CURSES_DIR$ac_delim
50049 PBX_CURSES!$PBX_CURSES$ac_delim
50050 CRYPTO_LIB!$CRYPTO_LIB$ac_delim
50051 CRYPTO_INCLUDE!$CRYPTO_INCLUDE$ac_delim
50052 CRYPTO_DIR!$CRYPTO_DIR$ac_delim
50053 PBX_CRYPTO!$PBX_CRYPTO$ac_delim
50054 DAHDI_LIB!$DAHDI_LIB$ac_delim
50055 DAHDI_INCLUDE!$DAHDI_INCLUDE$ac_delim
50056 DAHDI_DIR!$DAHDI_DIR$ac_delim
50057 PBX_DAHDI!$PBX_DAHDI$ac_delim
50058 FFMPEG_LIB!$FFMPEG_LIB$ac_delim
50059 FFMPEG_INCLUDE!$FFMPEG_INCLUDE$ac_delim
50060 FFMPEG_DIR!$FFMPEG_DIR$ac_delim
50061 PBX_FFMPEG!$PBX_FFMPEG$ac_delim
50062 GSM_LIB!$GSM_LIB$ac_delim
50063 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
50064 GSM_DIR!$GSM_DIR$ac_delim
50065 PBX_GSM!$PBX_GSM$ac_delim
50066 GTK_LIB!$GTK_LIB$ac_delim
50067 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
50068 GTK_DIR!$GTK_DIR$ac_delim
50069 PBX_GTK!$PBX_GTK$ac_delim
50070 GTK2_LIB!$GTK2_LIB$ac_delim
50071 GTK2_INCLUDE!$GTK2_INCLUDE$ac_delim
50072 GTK2_DIR!$GTK2_DIR$ac_delim
50073 PBX_GTK2!$PBX_GTK2$ac_delim
50074 GMIME_LIB!$GMIME_LIB$ac_delim
50075 GMIME_INCLUDE!$GMIME_INCLUDE$ac_delim
50076 GMIME_DIR!$GMIME_DIR$ac_delim
50077 PBX_GMIME!$PBX_GMIME$ac_delim
50078 ICONV_LIB!$ICONV_LIB$ac_delim
50079 ICONV_INCLUDE!$ICONV_INCLUDE$ac_delim
50080 ICONV_DIR!$ICONV_DIR$ac_delim
50081 PBX_ICONV!$PBX_ICONV$ac_delim
50082 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
50083 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
50084 IKSEMEL_DIR!$IKSEMEL_DIR$ac_delim
50085 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
50086 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
50087 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
50088 IMAP_TK_DIR!$IMAP_TK_DIR$ac_delim
50089 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
50090 ISDNNET_LIB!$ISDNNET_LIB$ac_delim
50091 ISDNNET_INCLUDE!$ISDNNET_INCLUDE$ac_delim
50092 ISDNNET_DIR!$ISDNNET_DIR$ac_delim
50093 PBX_ISDNNET!$PBX_ISDNNET$ac_delim
50094 JACK_LIB!$JACK_LIB$ac_delim
50095 JACK_INCLUDE!$JACK_INCLUDE$ac_delim
50096 JACK_DIR!$JACK_DIR$ac_delim
50097 PBX_JACK!$PBX_JACK$ac_delim
50098 LDAP_LIB!$LDAP_LIB$ac_delim
50099 LDAP_INCLUDE!$LDAP_INCLUDE$ac_delim
50100 LDAP_DIR!$LDAP_DIR$ac_delim
50101 PBX_LDAP!$PBX_LDAP$ac_delim
50102 LTDL_LIB!$LTDL_LIB$ac_delim
50103 LTDL_INCLUDE!$LTDL_INCLUDE$ac_delim
50104 LTDL_DIR!$LTDL_DIR$ac_delim
50105 PBX_LTDL!$PBX_LTDL$ac_delim
50106 LUA_LIB!$LUA_LIB$ac_delim
50107 LUA_INCLUDE!$LUA_INCLUDE$ac_delim
50108 LUA_DIR!$LUA_DIR$ac_delim
50109 PBX_LUA!$PBX_LUA$ac_delim
50110 MISDN_LIB!$MISDN_LIB$ac_delim
50111 MISDN_INCLUDE!$MISDN_INCLUDE$ac_delim
50112 MISDN_DIR!$MISDN_DIR$ac_delim
50113 PBX_MISDN!$PBX_MISDN$ac_delim
50114 NBS_LIB!$NBS_LIB$ac_delim
50115 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
50116 NBS_DIR!$NBS_DIR$ac_delim
50117 PBX_NBS!$PBX_NBS$ac_delim
50118 NCURSES_LIB!$NCURSES_LIB$ac_delim
50119 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
50120 NCURSES_DIR!$NCURSES_DIR$ac_delim
50121 PBX_NCURSES!$PBX_NCURSES$ac_delim
50122 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
50123 _ACEOF
50125 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50126 break
50127 elif $ac_last_try; then
50128 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50129 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50130 { (exit 1); exit 1; }; }
50131 else
50132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50134 done
50136 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50137 if test -n "$ac_eof"; then
50138 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50139 ac_eof=`expr $ac_eof + 1`
50142 cat >>$CONFIG_STATUS <<_ACEOF
50143 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
50144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50145 _ACEOF
50146 sed '
50147 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50148 s/^/s,@/; s/!/@,|#_!!_#|/
50151 s/'"$ac_delim"'$/,g/; t
50152 s/$/\\/; p
50153 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50154 ' >>$CONFIG_STATUS <conf$$subs.sed
50155 rm -f conf$$subs.sed
50156 cat >>$CONFIG_STATUS <<_ACEOF
50157 CEOF$ac_eof
50158 _ACEOF
50161 ac_delim='%!_!# '
50162 for ac_last_try in false false false false false :; do
50163 cat >conf$$subs.sed <<_ACEOF
50164 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
50165 NETSNMP_DIR!$NETSNMP_DIR$ac_delim
50166 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
50167 NEWT_LIB!$NEWT_LIB$ac_delim
50168 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
50169 NEWT_DIR!$NEWT_DIR$ac_delim
50170 PBX_NEWT!$PBX_NEWT$ac_delim
50171 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
50172 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
50173 UNIXODBC_DIR!$UNIXODBC_DIR$ac_delim
50174 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
50175 OGG_LIB!$OGG_LIB$ac_delim
50176 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
50177 OGG_DIR!$OGG_DIR$ac_delim
50178 PBX_OGG!$PBX_OGG$ac_delim
50179 OSPTK_LIB!$OSPTK_LIB$ac_delim
50180 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
50181 OSPTK_DIR!$OSPTK_DIR$ac_delim
50182 PBX_OSPTK!$PBX_OSPTK$ac_delim
50183 OSS_LIB!$OSS_LIB$ac_delim
50184 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
50185 OSS_DIR!$OSS_DIR$ac_delim
50186 PBX_OSS!$PBX_OSS$ac_delim
50187 PGSQL_LIB!$PGSQL_LIB$ac_delim
50188 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
50189 PGSQL_DIR!$PGSQL_DIR$ac_delim
50190 PBX_PGSQL!$PBX_PGSQL$ac_delim
50191 POPT_LIB!$POPT_LIB$ac_delim
50192 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
50193 POPT_DIR!$POPT_DIR$ac_delim
50194 PBX_POPT!$PBX_POPT$ac_delim
50195 PORTAUDIO_LIB!$PORTAUDIO_LIB$ac_delim
50196 PORTAUDIO_INCLUDE!$PORTAUDIO_INCLUDE$ac_delim
50197 PORTAUDIO_DIR!$PORTAUDIO_DIR$ac_delim
50198 PBX_PORTAUDIO!$PBX_PORTAUDIO$ac_delim
50199 PRI_LIB!$PRI_LIB$ac_delim
50200 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
50201 PRI_DIR!$PRI_DIR$ac_delim
50202 PBX_PRI!$PBX_PRI$ac_delim
50203 SPANDSP_LIB!$SPANDSP_LIB$ac_delim
50204 SPANDSP_INCLUDE!$SPANDSP_INCLUDE$ac_delim
50205 SPANDSP_DIR!$SPANDSP_DIR$ac_delim
50206 PBX_SPANDSP!$PBX_SPANDSP$ac_delim
50207 SS7_LIB!$SS7_LIB$ac_delim
50208 SS7_INCLUDE!$SS7_INCLUDE$ac_delim
50209 SS7_DIR!$SS7_DIR$ac_delim
50210 PBX_SS7!$PBX_SS7$ac_delim
50211 PWLIB_LIB!$PWLIB_LIB$ac_delim
50212 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
50213 PWLIB_DIR!$PWLIB_DIR$ac_delim
50214 PBX_PWLIB!$PBX_PWLIB$ac_delim
50215 OPENH323_LIB!$OPENH323_LIB$ac_delim
50216 OPENH323_INCLUDE!$OPENH323_INCLUDE$ac_delim
50217 OPENH323_DIR!$OPENH323_DIR$ac_delim
50218 PBX_OPENH323!$PBX_OPENH323$ac_delim
50219 RADIUS_LIB!$RADIUS_LIB$ac_delim
50220 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
50221 RADIUS_DIR!$RADIUS_DIR$ac_delim
50222 PBX_RADIUS!$PBX_RADIUS$ac_delim
50223 SDL_LIB!$SDL_LIB$ac_delim
50224 SDL_INCLUDE!$SDL_INCLUDE$ac_delim
50225 SDL_DIR!$SDL_DIR$ac_delim
50226 PBX_SDL!$PBX_SDL$ac_delim
50227 SDL_IMAGE_LIB!$SDL_IMAGE_LIB$ac_delim
50228 SDL_IMAGE_INCLUDE!$SDL_IMAGE_INCLUDE$ac_delim
50229 SDL_IMAGE_DIR!$SDL_IMAGE_DIR$ac_delim
50230 PBX_SDL_IMAGE!$PBX_SDL_IMAGE$ac_delim
50231 SACLM_LIB!$SACLM_LIB$ac_delim
50232 SACLM_INCLUDE!$SACLM_INCLUDE$ac_delim
50233 SACLM_DIR!$SACLM_DIR$ac_delim
50234 PBX_SACLM!$PBX_SACLM$ac_delim
50235 SAEVT_LIB!$SAEVT_LIB$ac_delim
50236 SAEVT_INCLUDE!$SAEVT_INCLUDE$ac_delim
50237 SAEVT_DIR!$SAEVT_DIR$ac_delim
50238 PBX_SAEVT!$PBX_SAEVT$ac_delim
50239 SPEEX_LIB!$SPEEX_LIB$ac_delim
50240 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
50241 SPEEX_DIR!$SPEEX_DIR$ac_delim
50242 PBX_SPEEX!$PBX_SPEEX$ac_delim
50243 SPEEXDSP_LIB!$SPEEXDSP_LIB$ac_delim
50244 SPEEXDSP_INCLUDE!$SPEEXDSP_INCLUDE$ac_delim
50245 SPEEXDSP_DIR!$SPEEXDSP_DIR$ac_delim
50246 PBX_SPEEXDSP!$PBX_SPEEXDSP$ac_delim
50247 SQLITE_LIB!$SQLITE_LIB$ac_delim
50248 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
50249 SQLITE_DIR!$SQLITE_DIR$ac_delim
50250 PBX_SQLITE!$PBX_SQLITE$ac_delim
50251 SQLITE3_LIB!$SQLITE3_LIB$ac_delim
50252 SQLITE3_INCLUDE!$SQLITE3_INCLUDE$ac_delim
50253 SQLITE3_DIR!$SQLITE3_DIR$ac_delim
50254 PBX_SQLITE3!$PBX_SQLITE3$ac_delim
50255 SUPPSERV_LIB!$SUPPSERV_LIB$ac_delim
50256 SUPPSERV_INCLUDE!$SUPPSERV_INCLUDE$ac_delim
50257 SUPPSERV_DIR!$SUPPSERV_DIR$ac_delim
50258 PBX_SUPPSERV!$PBX_SUPPSERV$ac_delim
50259 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
50260 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
50261 _ACEOF
50263 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
50264 break
50265 elif $ac_last_try; then
50266 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50267 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50268 { (exit 1); exit 1; }; }
50269 else
50270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50272 done
50274 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50275 if test -n "$ac_eof"; then
50276 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50277 ac_eof=`expr $ac_eof + 1`
50280 cat >>$CONFIG_STATUS <<_ACEOF
50281 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
50282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50283 _ACEOF
50284 sed '
50285 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50286 s/^/s,@/; s/!/@,|#_!!_#|/
50289 s/'"$ac_delim"'$/,g/; t
50290 s/$/\\/; p
50291 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50292 ' >>$CONFIG_STATUS <conf$$subs.sed
50293 rm -f conf$$subs.sed
50294 cat >>$CONFIG_STATUS <<_ACEOF
50295 CEOF$ac_eof
50296 _ACEOF
50299 ac_delim='%!_!# '
50300 for ac_last_try in false false false false false :; do
50301 cat >conf$$subs.sed <<_ACEOF
50302 OPENSSL_DIR!$OPENSSL_DIR$ac_delim
50303 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
50304 FREETDS_LIB!$FREETDS_LIB$ac_delim
50305 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
50306 FREETDS_DIR!$FREETDS_DIR$ac_delim
50307 PBX_FREETDS!$PBX_FREETDS$ac_delim
50308 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
50309 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
50310 TERMCAP_DIR!$TERMCAP_DIR$ac_delim
50311 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
50312 TINFO_LIB!$TINFO_LIB$ac_delim
50313 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
50314 TINFO_DIR!$TINFO_DIR$ac_delim
50315 PBX_TINFO!$PBX_TINFO$ac_delim
50316 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
50317 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
50318 TONEZONE_DIR!$TONEZONE_DIR$ac_delim
50319 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
50320 USB_LIB!$USB_LIB$ac_delim
50321 USB_INCLUDE!$USB_INCLUDE$ac_delim
50322 USB_DIR!$USB_DIR$ac_delim
50323 PBX_USB!$PBX_USB$ac_delim
50324 VORBIS_LIB!$VORBIS_LIB$ac_delim
50325 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
50326 VORBIS_DIR!$VORBIS_DIR$ac_delim
50327 PBX_VORBIS!$PBX_VORBIS$ac_delim
50328 VPB_LIB!$VPB_LIB$ac_delim
50329 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
50330 VPB_DIR!$VPB_DIR$ac_delim
50331 PBX_VPB!$PBX_VPB$ac_delim
50332 X11_LIB!$X11_LIB$ac_delim
50333 X11_INCLUDE!$X11_INCLUDE$ac_delim
50334 X11_DIR!$X11_DIR$ac_delim
50335 PBX_X11!$PBX_X11$ac_delim
50336 ZLIB_LIB!$ZLIB_LIB$ac_delim
50337 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
50338 ZLIB_DIR!$ZLIB_DIR$ac_delim
50339 PBX_ZLIB!$PBX_ZLIB$ac_delim
50340 ALLOCA!$ALLOCA$ac_delim
50341 LIBOBJS!$LIBOBJS$ac_delim
50342 POW_LIB!$POW_LIB$ac_delim
50343 HAS_POLL!$HAS_POLL$ac_delim
50344 PBX_PTHREAD_RWLOCK_INITIALIZER!$PBX_PTHREAD_RWLOCK_INITIALIZER$ac_delim
50345 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP!$PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP$ac_delim
50346 GC_CFLAGS!$GC_CFLAGS$ac_delim
50347 GC_LDFLAGS!$GC_LDFLAGS$ac_delim
50348 AST_DECLARATION_AFTER_STATEMENT!$AST_DECLARATION_AFTER_STATEMENT$ac_delim
50349 AST_NO_STRICT_OVERFLOW!$AST_NO_STRICT_OVERFLOW$ac_delim
50350 PBX_RTLD_NOLOAD!$PBX_RTLD_NOLOAD$ac_delim
50351 PBX_IP_MTU_DISCOVER!$PBX_IP_MTU_DISCOVER$ac_delim
50352 GSM_INTERNAL!$GSM_INTERNAL$ac_delim
50353 PBX_MISDN_FAC_RESULT!$PBX_MISDN_FAC_RESULT$ac_delim
50354 PBX_MISDN_FAC_ERROR!$PBX_MISDN_FAC_ERROR$ac_delim
50355 CONFIG_NETSNMP!$CONFIG_NETSNMP$ac_delim
50356 PG_CONFIG!$PG_CONFIG$ac_delim
50357 PTLIB_CONFIG!$PTLIB_CONFIG$ac_delim
50358 PWLIBDIR!$PWLIBDIR$ac_delim
50359 PWLIB_INCDIR!$PWLIB_INCDIR$ac_delim
50360 PWLIB_LIBDIR!$PWLIB_LIBDIR$ac_delim
50361 PWLIB_PLATFORM!$PWLIB_PLATFORM$ac_delim
50362 OPENH323DIR!$OPENH323DIR$ac_delim
50363 OPENH323_INCDIR!$OPENH323_INCDIR$ac_delim
50364 OPENH323_LIBDIR!$OPENH323_LIBDIR$ac_delim
50365 OPENH323_SUFFIX!$OPENH323_SUFFIX$ac_delim
50366 OPENH323_BUILD!$OPENH323_BUILD$ac_delim
50367 PBX_SPEEX_PREPROCESS!$PBX_SPEEX_PREPROCESS$ac_delim
50368 CONFIG_GMIME!$CONFIG_GMIME$ac_delim
50369 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
50370 PBX_H323!$PBX_H323$ac_delim
50371 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
50372 CONFIG_SDL!$CONFIG_SDL$ac_delim
50373 CONFIG_GTK!$CONFIG_GTK$ac_delim
50374 PKGCONFIG!$PKGCONFIG$ac_delim
50375 CURL_CONFIG!$CURL_CONFIG$ac_delim
50376 LTLIBOBJS!$LTLIBOBJS$ac_delim
50377 _ACEOF
50379 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
50380 break
50381 elif $ac_last_try; then
50382 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
50383 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
50384 { (exit 1); exit 1; }; }
50385 else
50386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50388 done
50390 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
50391 if test -n "$ac_eof"; then
50392 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
50393 ac_eof=`expr $ac_eof + 1`
50396 cat >>$CONFIG_STATUS <<_ACEOF
50397 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
50398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
50399 _ACEOF
50400 sed '
50401 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
50402 s/^/s,@/; s/!/@,|#_!!_#|/
50405 s/'"$ac_delim"'$/,g/; t
50406 s/$/\\/; p
50407 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
50408 ' >>$CONFIG_STATUS <conf$$subs.sed
50409 rm -f conf$$subs.sed
50410 cat >>$CONFIG_STATUS <<_ACEOF
50411 :end
50412 s/|#_!!_#|//g
50413 CEOF$ac_eof
50414 _ACEOF
50417 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50418 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50419 # trailing colons and then remove the whole line if VPATH becomes empty
50420 # (actually we leave an empty line to preserve line numbers).
50421 if test "x$srcdir" = x.; then
50422 ac_vpsub='/^[ ]*VPATH[ ]*=/{
50423 s/:*\$(srcdir):*/:/
50424 s/:*\${srcdir}:*/:/
50425 s/:*@srcdir@:*/:/
50426 s/^\([^=]*=[ ]*\):*/\1/
50427 s/:*$//
50428 s/^[^=]*=[ ]*$//
50432 cat >>$CONFIG_STATUS <<\_ACEOF
50433 fi # test -n "$CONFIG_FILES"
50436 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
50438 case $ac_tag in
50439 :[FHLC]) ac_mode=$ac_tag; continue;;
50440 esac
50441 case $ac_mode$ac_tag in
50442 :[FHL]*:*);;
50443 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
50444 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
50445 { (exit 1); exit 1; }; };;
50446 :[FH]-) ac_tag=-:-;;
50447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
50448 esac
50449 ac_save_IFS=$IFS
50450 IFS=:
50451 set x $ac_tag
50452 IFS=$ac_save_IFS
50453 shift
50454 ac_file=$1
50455 shift
50457 case $ac_mode in
50458 :L) ac_source=$1;;
50459 :[FH])
50460 ac_file_inputs=
50461 for ac_f
50463 case $ac_f in
50464 -) ac_f="$tmp/stdin";;
50465 *) # Look for the file first in the build tree, then in the source tree
50466 # (if the path is not absolute). The absolute path cannot be DOS-style,
50467 # because $ac_f cannot contain `:'.
50468 test -f "$ac_f" ||
50469 case $ac_f in
50470 [\\/$]*) false;;
50471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
50472 esac ||
50473 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
50474 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
50475 { (exit 1); exit 1; }; };;
50476 esac
50477 ac_file_inputs="$ac_file_inputs $ac_f"
50478 done
50480 # Let's still pretend it is `configure' which instantiates (i.e., don't
50481 # use $as_me), people would be surprised to read:
50482 # /* config.h. Generated by config.status. */
50483 configure_input="Generated from "`IFS=:
50484 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
50485 if test x"$ac_file" != x-; then
50486 configure_input="$ac_file. $configure_input"
50487 { echo "$as_me:$LINENO: creating $ac_file" >&5
50488 echo "$as_me: creating $ac_file" >&6;}
50491 case $ac_tag in
50492 *:-:* | *:-) cat >"$tmp/stdin";;
50493 esac
50495 esac
50497 ac_dir=`$as_dirname -- "$ac_file" ||
50498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50499 X"$ac_file" : 'X\(//\)[^/]' \| \
50500 X"$ac_file" : 'X\(//\)$' \| \
50501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
50502 echo X"$ac_file" |
50503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50504 s//\1/
50507 /^X\(\/\/\)[^/].*/{
50508 s//\1/
50511 /^X\(\/\/\)$/{
50512 s//\1/
50515 /^X\(\/\).*/{
50516 s//\1/
50519 s/.*/./; q'`
50520 { as_dir="$ac_dir"
50521 case $as_dir in #(
50522 -*) as_dir=./$as_dir;;
50523 esac
50524 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50525 as_dirs=
50526 while :; do
50527 case $as_dir in #(
50528 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
50529 *) as_qdir=$as_dir;;
50530 esac
50531 as_dirs="'$as_qdir' $as_dirs"
50532 as_dir=`$as_dirname -- "$as_dir" ||
50533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50534 X"$as_dir" : 'X\(//\)[^/]' \| \
50535 X"$as_dir" : 'X\(//\)$' \| \
50536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50537 echo X"$as_dir" |
50538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50539 s//\1/
50542 /^X\(\/\/\)[^/].*/{
50543 s//\1/
50546 /^X\(\/\/\)$/{
50547 s//\1/
50550 /^X\(\/\).*/{
50551 s//\1/
50554 s/.*/./; q'`
50555 test -d "$as_dir" && break
50556 done
50557 test -z "$as_dirs" || eval "mkdir $as_dirs"
50558 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
50560 { (exit 1); exit 1; }; }; }
50561 ac_builddir=.
50563 case "$ac_dir" in
50564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
50566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50567 # A ".." for each directory in $ac_dir_suffix.
50568 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
50569 case $ac_top_builddir_sub in
50570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
50571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
50572 esac ;;
50573 esac
50574 ac_abs_top_builddir=$ac_pwd
50575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
50576 # for backward compatibility:
50577 ac_top_builddir=$ac_top_build_prefix
50579 case $srcdir in
50580 .) # We are building in place.
50581 ac_srcdir=.
50582 ac_top_srcdir=$ac_top_builddir_sub
50583 ac_abs_top_srcdir=$ac_pwd ;;
50584 [\\/]* | ?:[\\/]* ) # Absolute name.
50585 ac_srcdir=$srcdir$ac_dir_suffix;
50586 ac_top_srcdir=$srcdir
50587 ac_abs_top_srcdir=$srcdir ;;
50588 *) # Relative name.
50589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
50590 ac_top_srcdir=$ac_top_build_prefix$srcdir
50591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
50592 esac
50593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
50596 case $ac_mode in
50599 # CONFIG_FILE
50602 case $INSTALL in
50603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50604 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50605 esac
50606 _ACEOF
50608 cat >>$CONFIG_STATUS <<\_ACEOF
50609 # If the template does not know about datarootdir, expand it.
50610 # FIXME: This hack should be removed a few years after 2.60.
50611 ac_datarootdir_hack=; ac_datarootdir_seen=
50613 case `sed -n '/datarootdir/ {
50617 /@datadir@/p
50618 /@docdir@/p
50619 /@infodir@/p
50620 /@localedir@/p
50621 /@mandir@/p
50622 ' $ac_file_inputs` in
50623 *datarootdir*) ac_datarootdir_seen=yes;;
50624 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
50625 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
50626 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50627 _ACEOF
50628 cat >>$CONFIG_STATUS <<_ACEOF
50629 ac_datarootdir_hack='
50630 s&@datadir@&$datadir&g
50631 s&@docdir@&$docdir&g
50632 s&@infodir@&$infodir&g
50633 s&@localedir@&$localedir&g
50634 s&@mandir@&$mandir&g
50635 s&\\\${datarootdir}&$datarootdir&g' ;;
50636 esac
50637 _ACEOF
50639 # Neutralize VPATH when `$srcdir' = `.'.
50640 # Shell code in configure.ac might set extrasub.
50641 # FIXME: do we really want to maintain this feature?
50642 cat >>$CONFIG_STATUS <<_ACEOF
50643 sed "$ac_vpsub
50644 $extrasub
50645 _ACEOF
50646 cat >>$CONFIG_STATUS <<\_ACEOF
50648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50649 s&@configure_input@&$configure_input&;t t
50650 s&@top_builddir@&$ac_top_builddir_sub&;t t
50651 s&@srcdir@&$ac_srcdir&;t t
50652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
50653 s&@top_srcdir@&$ac_top_srcdir&;t t
50654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50655 s&@builddir@&$ac_builddir&;t t
50656 s&@abs_builddir@&$ac_abs_builddir&;t t
50657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50658 s&@INSTALL@&$ac_INSTALL&;t t
50659 $ac_datarootdir_hack
50660 " $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
50662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
50663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
50664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
50665 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50666 which seems to be undefined. Please make sure it is defined." >&5
50667 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50668 which seems to be undefined. Please make sure it is defined." >&2;}
50670 rm -f "$tmp/stdin"
50671 case $ac_file in
50672 -) cat "$tmp/out"; rm -f "$tmp/out";;
50673 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
50674 esac
50678 # CONFIG_HEADER
50680 _ACEOF
50682 # Transform confdefs.h into a sed script `conftest.defines', that
50683 # substitutes the proper values into config.h.in to produce config.h.
50684 rm -f conftest.defines conftest.tail
50685 # First, append a space to every undef/define line, to ease matching.
50686 echo 's/$/ /' >conftest.defines
50687 # Then, protect against being on the right side of a sed subst, or in
50688 # an unquoted here document, in config.status. If some macros were
50689 # called several times there might be several #defines for the same
50690 # symbol, which is useless. But do not sort them, since the last
50691 # AC_DEFINE must be honored.
50692 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
50693 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
50694 # NAME is the cpp macro being defined, VALUE is the value it is being given.
50695 # PARAMS is the parameter list in the macro definition--in most cases, it's
50696 # just an empty string.
50697 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
50698 ac_dB='\\)[ (].*,\\1define\\2'
50699 ac_dC=' '
50700 ac_dD=' ,'
50702 uniq confdefs.h |
50703 sed -n '
50704 t rset
50705 :rset
50706 s/^[ ]*#[ ]*define[ ][ ]*//
50707 t ok
50710 s/[\\&,]/\\&/g
50711 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
50712 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
50713 ' >>conftest.defines
50715 # Remove the space that was appended to ease matching.
50716 # Then replace #undef with comments. This is necessary, for
50717 # example, in the case of _POSIX_SOURCE, which is predefined and required
50718 # on some systems where configure will not decide to define it.
50719 # (The regexp can be short, since the line contains either #define or #undef.)
50720 echo 's/ $//
50721 s,^[ #]*u.*,/* & */,' >>conftest.defines
50723 # Break up conftest.defines:
50724 ac_max_sed_lines=50
50726 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
50727 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
50728 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
50729 # et cetera.
50730 ac_in='$ac_file_inputs'
50731 ac_out='"$tmp/out1"'
50732 ac_nxt='"$tmp/out2"'
50734 while :
50736 # Write a here document:
50737 cat >>$CONFIG_STATUS <<_ACEOF
50738 # First, check the format of the line:
50739 cat >"\$tmp/defines.sed" <<\\CEOF
50740 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
50741 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
50743 :def
50744 _ACEOF
50745 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
50746 echo 'CEOF
50747 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
50748 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
50749 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
50750 grep . conftest.tail >/dev/null || break
50751 rm -f conftest.defines
50752 mv conftest.tail conftest.defines
50753 done
50754 rm -f conftest.defines conftest.tail
50756 echo "ac_result=$ac_in" >>$CONFIG_STATUS
50757 cat >>$CONFIG_STATUS <<\_ACEOF
50758 if test x"$ac_file" != x-; then
50759 echo "/* $configure_input */" >"$tmp/config.h"
50760 cat "$ac_result" >>"$tmp/config.h"
50761 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
50762 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50763 echo "$as_me: $ac_file is unchanged" >&6;}
50764 else
50765 rm -f $ac_file
50766 mv "$tmp/config.h" $ac_file
50768 else
50769 echo "/* $configure_input */"
50770 cat "$ac_result"
50772 rm -f "$tmp/out12"
50776 esac
50778 done # for ac_tag
50781 { (exit 0); exit 0; }
50782 _ACEOF
50783 chmod +x $CONFIG_STATUS
50784 ac_clean_files=$ac_clean_files_save
50787 # configure is writing to config.log, and then calls config.status.
50788 # config.status does its own redirection, appending to config.log.
50789 # Unfortunately, on DOS this fails, as config.log is still kept open
50790 # by configure, so config.status won't be able to write to it; its
50791 # output is simply discarded. So we exec the FD to /dev/null,
50792 # effectively closing config.log, so it can be properly (re)opened and
50793 # appended to by config.status. When coming back to configure, we
50794 # need to make the FD available again.
50795 if test "$no_create" != yes; then
50796 ac_cs_success=:
50797 ac_config_status_args=
50798 test "$silent" = yes &&
50799 ac_config_status_args="$ac_config_status_args --quiet"
50800 exec 5>/dev/null
50801 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50802 exec 5>>config.log
50803 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50804 # would make configure fail if this is the last instruction.
50805 $ac_cs_success || { (exit 1); exit 1; }
50809 if test "x${silent}" != "xyes" ; then
50810 echo
50811 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
50812 echo " .\$7\$7.. .7\$\$7:. "
50813 echo " .\$\$:. ,\$7.7 "
50814 echo " .\$7. 7\$\$\$\$ .\$\$77 "
50815 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
50816 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
50817 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
50818 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
50819 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
50820 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
50821 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
50822 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
50823 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
50824 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
50825 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
50826 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
50827 echo " \$\$\$\$\$ \$\$\$ "
50828 echo " \$\$\$\$7. \$\$ (TM) "
50829 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
50830 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
50831 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
50832 echo
50835 { echo "$as_me:$LINENO: Package configured for: " >&5
50836 echo "$as_me: Package configured for: " >&6;}
50837 { echo "$as_me:$LINENO: OS type : $host_os" >&5
50838 echo "$as_me: OS type : $host_os" >&6;}
50839 { echo "$as_me:$LINENO: Host CPU : $host_cpu" >&5
50840 echo "$as_me: Host CPU : $host_cpu" >&6;}
50841 { echo "$as_me:$LINENO: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
50842 echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
50843 { echo "$as_me:$LINENO: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
50844 echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
50845 if test "${cross_compiling}" = "yes"; then
50846 { echo "$as_me:$LINENO: Cross Compilation = YES" >&5
50847 echo "$as_me: Cross Compilation = YES" >&6;}